You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
302 lines
9.9 KiB
302 lines
9.9 KiB
4 years ago
|
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:81:"/alidata/www/myproject/hospital/public/../application/admin/view/index/index.html";i:1591285740;}*/ ?>
|
||
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>医院就诊管理系统后台</title>
|
||
|
<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,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||
|
<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/font.css">
|
||
|
<link rel="stylesheet" href="/hospital/public/static/admin/x-admin/css/xadmin.css">
|
||
|
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
|
||
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/fonts/iconfont.eot" charset="utf-8"></script>
|
||
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/fonts/iconfont.svg" charset="utf-8"></script>
|
||
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/fonts/iconfont.ttf" charset="utf-8"></script>
|
||
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/fonts/iconfont.woff" charset="utf-8"></script>
|
||
|
<script src="/hospital/public/static/admin/x-admin/lib/layui/layui.js" charset="utf-8"></script>
|
||
|
<script type="text/javascript" src="/hospital/public/static/admin/x-admin/js/xadmin.js"></script>
|
||
|
<style>
|
||
|
.third-menu li{
|
||
|
margin-left:20px;
|
||
|
}
|
||
|
body.index{background: linear-gradient(to left,rgba(57, 61, 73, 1), rgba(0, 0, 0, 0.5)) !important;}
|
||
|
.container{background: linear-gradient(to left,rgba(57, 61, 73, 1), rgba(0, 0, 0, 0.5)) !important;}
|
||
|
.container .layui-nav-bar{background:rgba(153, 153, 153, 1) !important;}
|
||
|
.container .logo a{background:rgba(150, 144, 144, 0.5) !important;}
|
||
|
.container .logo a{color:rgba(213, 211, 211, 1) !important;}
|
||
|
.left-nav{background:rgba(153, 153, 153, 1) !important;}
|
||
|
.left-nav a{color:rgba(57, 61, 73, 1) !important;}
|
||
|
.left-nav a:hover,.left-nav a.active{background: linear-gradient(to left,rgba(221, 220, 220, 1), rgba(0, 0, 0, 0.5)) !important;}
|
||
|
.left-nav a:hover,.left-nav a.active{color:rgba(153, 153, 153, 1) !important;}
|
||
|
.left-nav a:hover,.left-nav a.active{border-color:rgba(153, 153, 153, 1) !important;}
|
||
|
body{background:rgba(0,0,0,0) !important;}
|
||
|
</style>
|
||
|
</head>
|
||
|
|
||
|
|
||
|
<style type="text/css">
|
||
|
*{
|
||
|
margin:0;
|
||
|
padding:0;
|
||
|
list-style:none;
|
||
|
text-decoration:none;
|
||
|
}
|
||
|
body{
|
||
|
font-family:sans-serif;
|
||
|
}
|
||
|
.sidebar{
|
||
|
position:fixed;
|
||
|
left:-250px;
|
||
|
width:250px;
|
||
|
height:100%;
|
||
|
background:#9CC;
|
||
|
}
|
||
|
.sidebar header{
|
||
|
font-size:20px;
|
||
|
color:#FFF;
|
||
|
text-align:center;
|
||
|
line-height:45px;
|
||
|
background:#066;
|
||
|
user-select:none;
|
||
|
}
|
||
|
.sidebar ul a{
|
||
|
display:block;
|
||
|
height:100%;
|
||
|
width:100%;
|
||
|
line-height:65px;
|
||
|
font-size:20px;
|
||
|
color:#FFF;
|
||
|
padding-left:60px;
|
||
|
box-sizing:border-box;
|
||
|
border-top:1px solid rgba(255,255,255,1);
|
||
|
border-bottom:1px solid black;
|
||
|
|
||
|
}
|
||
|
.sidebar ul li:hover a{
|
||
|
padding-left:70px;
|
||
|
}
|
||
|
|
||
|
.sidebar ul a i{
|
||
|
margin-right:16px;
|
||
|
}
|
||
|
#check{
|
||
|
display:none;
|
||
|
}
|
||
|
label #btn,label #cancel{
|
||
|
position:absolute;
|
||
|
cursor:pointer;
|
||
|
background:#9CC;
|
||
|
border-radius:3px;
|
||
|
}
|
||
|
label #btn{
|
||
|
left:0px;
|
||
|
top:0px;
|
||
|
font-size:30px;
|
||
|
color:#FFF;
|
||
|
padding:6px 12px;
|
||
|
|
||
|
}
|
||
|
label #cancel{
|
||
|
z-index:1111;
|
||
|
left:-195px;
|
||
|
top:10px;
|
||
|
font-size:20px;
|
||
|
color:#FFF;
|
||
|
padding:4px 9px;
|
||
|
}
|
||
|
#check:checked ~.sidebar{
|
||
|
left:0;
|
||
|
}
|
||
|
#check:checked ~label #btn{
|
||
|
left:250px;
|
||
|
opacity:0;
|
||
|
pointer-events:none;
|
||
|
}
|
||
|
#check:checked ~label #cancel{
|
||
|
left:195px;
|
||
|
|
||
|
}
|
||
|
#check:checked ~section{
|
||
|
margin-left:250px;
|
||
|
}
|
||
|
.navbar{
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
background:#066;
|
||
|
box-shadow: 0 -2px 2px #000;
|
||
|
left: 1px;
|
||
|
top: 0px;
|
||
|
height: 45px;
|
||
|
}
|
||
|
.navbar ul li{
|
||
|
list-style:none;
|
||
|
float:right;
|
||
|
color:#FFF;
|
||
|
font-size:20px;
|
||
|
text-align:center;
|
||
|
padding:10px 5px;
|
||
|
}
|
||
|
.navbar ul li a:hover{
|
||
|
color:#0FF;
|
||
|
}
|
||
|
section{
|
||
|
background:url(../../../../public/static/admin/bg2.jpg) no-repeat;
|
||
|
background-position:center;
|
||
|
background-size:cover;
|
||
|
height:100vh;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<body>
|
||
|
<!-- 顶部开始 -->
|
||
|
<div class="navbar">
|
||
|
<ul>
|
||
|
<li><a title="退出" onclick="log_out(this)" href="javascript:;" style="margin-right: 5vh">退出系统</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
<input type="checkbox" id="check" />
|
||
|
<label for="check">
|
||
|
<i class="fas fa-bars iconfont" title="展开左侧栏" id="btn"></i>
|
||
|
<i class="fas fa-times iconfont" title="关闭左侧栏" id="cancel"></i>
|
||
|
</label>
|
||
|
<!-- </div>-->
|
||
|
<!-- 顶部结束 -->
|
||
|
<!-- 中部开始 -->
|
||
|
<!-- 左侧菜单开始 -->
|
||
|
|
||
|
<!-- {if condition="$role_id==1 "}-->
|
||
|
<!-- <div class="sidebar">-->
|
||
|
<!-- <header>管理员页面</header>-->
|
||
|
<!-- <ul>-->
|
||
|
|
||
|
|
||
|
<div class="sidebar">
|
||
|
|
||
|
<?php if($role_id==3): ?>
|
||
|
<header>护士页面</header>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('Register/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>挂号登记</cite>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('Payment/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>统计缴费</cite>
|
||
|
</a>
|
||
|
</li >
|
||
|
</ul>
|
||
|
<?php endif; if($role_id==2): ?>
|
||
|
<header>医生页面</header>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('PatientInfo/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>患者信息</cite>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('PatientMedical/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>患者药单</cite>
|
||
|
</a>
|
||
|
</li >
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('DrugsManager/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>药库信息</cite>
|
||
|
</a>
|
||
|
</li >
|
||
|
</ul>
|
||
|
<?php endif; if($role_id==1): ?>
|
||
|
<header>管理员页面</header>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('PatientInfo/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>患者信息</cite>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('MemberManager/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>职工信息</cite>
|
||
|
</a>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a data-src="<?php echo url('DrugsManager/index'); ?>">
|
||
|
<i class="iconfont"></i>
|
||
|
<cite>药库信息</cite>
|
||
|
</a>
|
||
|
</li >
|
||
|
</ul>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<!-- <div class="x-slide_left"></div> -->
|
||
|
<!-- 左侧菜单结束 -->
|
||
|
<!-- 右侧主体开始 -->
|
||
|
<section>
|
||
|
<div style="width: 100%;background:#066;box-shadow: 0 -2px 2px #000;left: 1px;height: 45px;"></div>
|
||
|
<iframe src='<?php echo url("welcome"); ?>' frameborder="0" scrolling="yes" style="width:100%;height:90vh"></iframe>
|
||
|
</section>
|
||
|
<!-- 右侧主体结束 -->
|
||
|
<!-- 中部结束 -->
|
||
|
<!-- 底部开始 -->
|
||
|
<div class="footer" style="background-color:#066 ">
|
||
|
<div class="copyright">-</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<script>
|
||
|
$(function(){
|
||
|
$(".sidebar li a").on("click",function(){
|
||
|
var address =$(this).attr("data-src");
|
||
|
$("iframe").attr("src",address);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
|
||
|
|
||
|
function log_out(obj){
|
||
|
const url = "<?php echo url('Login/logOut'); ?>";
|
||
|
layer.confirm('确定要退出吗?',function(index){
|
||
|
//发异步删除数据
|
||
|
$.ajax({
|
||
|
url:url,
|
||
|
type:"Post",
|
||
|
dataType:"json",//前端指定后端响应的格式
|
||
|
success:function(data){
|
||
|
const {status,message} = data;
|
||
|
if(!status){
|
||
|
layer.msg(message,{icon: 6, time: 2000});
|
||
|
window.location.href = "<?php echo url('Login/index'); ?>";
|
||
|
} else {
|
||
|
layer.msg(message,{icon: 5, time: 2000});
|
||
|
}
|
||
|
},
|
||
|
error:function(data){
|
||
|
console.log(data);
|
||
|
}
|
||
|
});
|
||
|
//layer.msg('已删除!',{icon:1,time:1000});
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|