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.
127 lines
4.2 KiB
127 lines
4.2 KiB
<%@page contentType="text/html;charset=UTF-8" %>
|
|
<%@taglib prefix="z" uri="http://cjy.jsp/tags" %>
|
|
<div class="header_top">
|
|
<p class="header_xtbt" id="sysName"></p>
|
|
<div class="header_right">
|
|
<div class="header_yongh">
|
|
<div class="yongh_tx"></div>
|
|
<div class="yongh_xx">
|
|
<p class="yh_mc">你好,${admin.realname}</p>
|
|
<%-- <a href="javascript:userCore();" class="beader_yhzx">用户中心</a>--%>
|
|
<a href="javascript:userCore();" class="beader_yhzx">密码修改</a>
|
|
</div>
|
|
</div>
|
|
<div class="header_rlsj">
|
|
<p class="header_riqi"><span id="now_date"></span><span id="week"></span></p>
|
|
<p class="header_shijian"></p>
|
|
</div>
|
|
<%-- alter by Zero --%>
|
|
<a href="<z:link name='index' def='javascript:gotoIndex();'/>" class="beader_bttn" title="首页"><span class=" beader_bttn_home"></span></a>
|
|
<%--<a href="javascript:setUp();" class="beader_bttn" title="设置"><span class=" beader_bttn_sz"></span></a>--%>
|
|
<a href="javascript:loginOut();" class="beader_bttn" title="退出账号"><span class=" beader_bttn_tc"></span></a>
|
|
</div>
|
|
<div class="hd_top_btn" id="geography_map" style="display: none">
|
|
<a href="javascript:setSatellite()" class="on">卫星地图</a>
|
|
<a href="javascript:hideSatellite()">数字地图</a>
|
|
</div>
|
|
</div>
|
|
<div class="che_caid" id="bottom_menu">
|
|
<a class="bttn_caid"><span class="bttn_sxdh"></span></a>
|
|
<div class="caid_nr" style="width:140px;box-sizing: content-box;">
|
|
<div id="menuList"></div>
|
|
<span class="jb-lefts"></span>
|
|
<span class="jb-leftx"></span>
|
|
<span class="jb-rights"></span>
|
|
<span class="jb-rightx"></span>
|
|
</div>
|
|
</div>
|
|
<div class="xcy_dawz" id="current_page" style="display: ${hide_location=='true'?'none':''}">
|
|
<p><i class="fa fa-home"></i>当前位置:
|
|
<a href="#">主页</a><i class="fa fa-angle-right"></i>
|
|
<a id="pageName"></a>
|
|
</p>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
var time = new Date();
|
|
var mon = time.getMonth() + 1;//月
|
|
var day = time.getDate();//日
|
|
|
|
var now_date = (mon<10?"0"+mon:mon) + "月" +(day<10?"0"+day:day) + "日";
|
|
$("#now_date").html(now_date);
|
|
|
|
var week = "周" + "日一二三四五六".charAt(new Date().getDay());
|
|
$("#week").html(week);
|
|
|
|
showTime();
|
|
});
|
|
|
|
//显示实时时间
|
|
function showTime(){
|
|
var time = new Date();
|
|
|
|
var hour = time.getHours();//时
|
|
var minute = time.getMinutes();//分
|
|
var second = time.getSeconds();//秒
|
|
var nowTime = (hour<10?"0"+hour:hour) + ":" + (minute<10?"0"+minute:minute) + ":" + (second<10?"0"+second:second);
|
|
$(".header_shijian").html(nowTime);
|
|
}
|
|
setInterval("showTime()",1000);
|
|
|
|
//用户中心
|
|
function userCore(){
|
|
layer.open({
|
|
type : 2,
|
|
shade: [0.7, '#333'],
|
|
title : '',
|
|
anim : 2,
|
|
area : [ '600px', '290px' ],
|
|
content : "${ctx}/sysuser/editAdmin.do",
|
|
});
|
|
}
|
|
|
|
//回到主页
|
|
function gotoIndex(){
|
|
window.location.href = "${ctx}/";
|
|
}
|
|
|
|
//设置
|
|
function setUp(){
|
|
window.open("${ctx}/sysuser/userlist.do");
|
|
}
|
|
|
|
//退出登录
|
|
function loginOut(){
|
|
var y = ScollPostion().top + $(window).height()/3;
|
|
layer.confirm('确定退出账号吗?',
|
|
{
|
|
skin: 'log-out',
|
|
title:'',
|
|
offset:y
|
|
}, function(){
|
|
window.location.href = "${ctx}/hbcyjclogin/logout.do";
|
|
});
|
|
}
|
|
|
|
|
|
function ScollPostion() { //滚动条位置
|
|
var t, l, w, h;
|
|
if(document.documentElement && document.documentElement.scrollTop) {
|
|
t = document.documentElement.scrollTop;
|
|
l = document.documentElement.scrollLeft;
|
|
w = document.documentElement.scrollWidth;
|
|
h = document.documentElement.scrollHeight;
|
|
} else if(document.body) {
|
|
t = document.body.scrollTop;
|
|
l = document.body.scrollLeft;
|
|
w = document.body.scrollWidth;
|
|
h = document.body.scrollHeight;
|
|
}
|
|
return {
|
|
top: t,
|
|
left: l,
|
|
width: w,
|
|
height: h
|
|
};
|
|
}
|
|
</script>
|
|
|