-
Notifications
You must be signed in to change notification settings - Fork 202
/
header.php
71 lines (65 loc) · 2.91 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<title>ZVulDrill</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link rel="stylesheet" href="<?php echo $basedir?>/css/bootstrap.css" media="screen">
<link rel="stylesheet" href="<?php echo $basedir?>/css/bootswatch.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../bower_components/html5shiv/dist/html5shiv.js"></script>
<script src="../bower_components/respond/dest/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23019901-1']);
_gaq.push(['_setDomainName', "bootswatch.com"]);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<script src="<?php echo $basedir?>/js/bsa.js"></script>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a href="<?php echo $basedir?>" class="navbar-brand">ZVulDrill</a>
</div>
<div class="navbar-collapse collapse" id="navbar-main">
<ul class="nav navbar-nav">
<li>
<a href="<?php echo $basedir?>/message.php">留言</a>
</li>
<li>
<a href="<?php echo $basedir?>/chanllege.php">Chanllege</a>
</li>
<li>
<a href="<?php echo $basedir?>/about.php?f=header.php">About<span></a>
</li>
</ul>
<form class="navbar-form navbar-left" action="<?php echo $basedir?>/search.php" method="get">
<input type="text" name="search" class="form-control col-lg-8" placeholder="搜索留言">
</form>
<ul class="nav navbar-nav navbar-right">
<?php if (isset($_SESSION['username'])) {?>
<li><a href="<?php echo $basedir?>/user/user.php"><?php echo $_SESSION['username'];?></a></li>
<li><a href="<?php echo $basedir?>/user/logout.php">退出</a></li>
<?php } else if (isset($_SESSION['admin'])) {?>
<li><a href="<?php echo $basedir?>/admin/manage.php"><?php echo $_SESSION['admin'];?></a></li>
<li><a href="<?php echo $basedir?>/user/logout.php">退出</a></li>
<?php } else {?>
<li><a href="<?php echo $basedir?>/user/login.php">登录</a></li>
<li><a href="<?php echo $basedir?>/user/reg.php">注册</a></li>
<?php }?>
</ul>
</div>
</div>
</div>
<br />
<div class="container">