当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 1 Fork 4

小透明 / easyAccountSystem
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
header.php 1.83 KB
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
小透明 提交于 2017-11-21 22:19 . no commit message
<?php
session_start();
//自定义关闭报错
ini_set("display_errors", "off");
error_reporting(E_ALL | E_STRICT);
?>
<?php
if($_GET['tj'] == 'logout'){
session_start(); //开启session
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" style="Font-weight:boder; Font-size=larger;" href="add.php"><b>记一笔吧</b></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>
</ul>
</div>
</div>
</nav>
PHP
1
https://gitee.com/1301914984/esayAccountSystem.git
git@gitee.com:1301914984/esayAccountSystem.git
1301914984
esayAccountSystem
easyAccountSystem
master

搜索帮助