NoteOnMe博客平台搭建
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

86 wiersze
2.5 KiB

<?php
require_once "pdo.php";
session_start();
?>
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/templatemo-style.css">
<title>Home</title>
<style type="text/css">
.hidee{
display:none;
}
</style>
</head>
<body>
<div class="fixed-header">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Puzzle</a>
</div>
<nav class="main-menu">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#clients">Clients</a></li>
<li><a class="external" href="#" target="_blank">External</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</div>
</div>
<div class="container">
<div class="container">
<section class="col-md-12 content" id="home">
<div class="col-lg-12 col-md-12 content-item content-item-1 background">
<h2 class="main-title text-center dark-blue-text">Puzzle Bootstrap Template</h2>
<p>Puzzle is a Bootstrap (v3.3.6) HTML CSS layout provided by <span class="light-blue-text">templatemo</span>. You can download, modify and use this layout for absolutely free of charge.</p>
<p>No backlink is needed to use this website template. Credit goes to <span class="light-blue-text">Unsplash</span> for images used in this layout.</p>
<a href="signup.php"><button >注册</button></a>
<a href="login.php"><button >登录</button></a>
<div class="hidee">
<a href="edit_article.php"><button >写新文章</button></a>
</div>
<button type="button" class="btn btn-big dark-blue-bordered-btn">Big Button</button>
<button type="button" class="btn btn-big dark-blue-btn">Download</button>
<button type="button" class="btn dark-blue-bordered-btn normal-btn">Small Button</button>
<button type="button" class="btn yellow-btn normal-btn">Download</button>
<button type="button" class="btn green-btn normal-btn">Demo</button>
</div>
</section>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<script>
var user_id = '<%= session.getAttribute("user_id")%>' ;
if(user_id)
{
$(".hidee").show();
}
</script>