加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 5.61 KB
一键复制 编辑 原始数据 按行查看 历史
hansst 提交于 2016-12-21 19:14 . 少时诵诗书
<?php
session_start();
if(!@$_SESSION['username']) {
echo "<script>window.location.href='login.php';</script>";
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!--[if IE 7]>
<link href="lib/font-awesome/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>在线订票系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
<body>
<header class="Hui-header cl"> <a class="Hui-logo l" title="H-ui.admin v2.2" href="/">在线订票系统</a> <a class="Hui-logo-m l" href="/" title="H-ui.admin">在线订票系统</a> <span class="Hui-subtitle l">V1.0</span> <span class="Hui-userbox"><span class="c-white"><?php if((int)$_SESSION['uid'] === 2) echo "超级管理员:".$_SESSION['username']; else echo "普通用户:".$_SESSION['username']; ?></span> <a class="btn btn-danger radius ml-10" href="modules/user/exitAction.php" title="退出" target="_self"><i class="icon-off"></i> 退出</a></span> <a aria-hidden="false" class="Hui-nav-toggle" href="#"></a> </header>
<aside class="Hui-aside">
<input runat="server" id="divScrollValue" type="hidden" value="" />
<div class="menu_dropdown bk_2">
<dl id="menu-user">
<dt><i class="icon-user"></i> 订票中心<i class="iconfont menu_dropdown-arrow">&#xf02a9;</i></dt>
<dd>
<ul>
<li><a _href="user-list.php" href="javascript:;">车次列表</a></li>
<li><a _href="order-list.php" href="javascript:;">我的订单</a></li>
<li><a _href="user-show.php" href="javascript:;">订单详情</a></li>
</ul>
</dd>
</dl>
<dl id="user-center">
<dt><i class="icon-user"></i> 个人中心<i class="iconfont menu_dropdown-arrow">&#xf02a9;</i></dt>
<dd>
<ul>
<li><a _href="user-password-edit.php" href="javascript:;">修改密码</a></li>
<li><a _href="user-details.php" href="javascript:;">个人信息</a></li>
<li><a _href="user-edit.php" href="javascript:;">修改信息</a></li>
<li><a href="modules/user/exitAction.php">退出登陆</a></li>
</ul>
</dd>
</dl>
<?php
if((int)$_SESSION['uid'] === 2) {
echo "
<dl id='menu-admin'>
<dt><i class='icon-user'></i> 系统管理<i class='iconfont menu_dropdown-arrow'>&#xf02a9;</i></dt>
<dd>
<ul>
<li><a _href='user-all-list.php' href='javascript:;'>用户列表</a></li>
</ul>
<ul>
<li><a _href='order-all-list.php' href='javascript:;'>浏览订单</a></li>
</ul>
<ul>
<li><a _href='station-list.php' href='javascript:;'>车站管理</a></li>
</ul>
</dd>
</dl>
";
}
?>
</div>
</aside>
<div class="dislpayArrow"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
<div id="Hui-tabNav" class="Hui-tabNav">
<div class="Hui-tabNav-wp">
<ul id="min_title_list" class="acrossTab cl">
<li class="active"><span title="我的桌面" data-href="welcome.php">我的桌面</span><em></em></li>
</ul>
</div>
<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="icon-step-backward"></i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="icon-step-forward"></i></a></div>
</div>
<div id="iframe_box" class="Hui-article">
<div class="show_iframe">
<div style="display:none" class="loading"></div>
<iframe scrolling="yes" frameborder="0" src="welcome.php"></iframe>
</div>
</div>
</section>
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="lib/layer1.8/layer.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="js/H-ui.admin.js"></script>
<script type="text/javascript" src="js/H-ui.admin.doc.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化