-
Notifications
You must be signed in to change notification settings - Fork 26
/
header.php
62 lines (59 loc) · 2.41 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
<?php
session_start();
?>
<?php
if ($_GET['tj'] == 'logout') {
session_start();
//开启session
unset($_SESSION['user_shell']);
//session_destroy(); //注销session
header("location:index.php");
//跳转到首页
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<!-- 包含头部信息用于适应不同设备 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 包含 bootstrap 样式表 -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<title>记账多用户版</title>
</head>
<body>
<?php
include("config.php");
$arr = user_shell($_SESSION['uid'],$_SESSION['user_shell']);
//对权限进行判断
?>
<div style="max-width:780px;width:auto;margin-left: auto;margin-right: auto;padding:5px;">
<div class="table-responsive">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#example-navbar-collapse">
<span class="sr-only">导航</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="add.php">记一笔</a>
</div>
<div class="collapse navbar-collapse" id="example-navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="stat.php">近期统计</a></li>
<li><a href="annual_stat.php">全年统计</a></li>
<li><a href="classify.php">分类编辑</a></li>
<li><a href="search.php">导入导出</a></li>
<li><a href="edit.php">查询修改</a></li>
<li><a href="users.php"><?php echo"账号:";
echo $arr['username'];
?></a></li>
<li><a href="logout.php">退出</a></li>
<?php //index.php?tj=logout ?>
</ul>
</div>
</div>
</nav>