123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
- <link id="easyuiTheme" rel="stylesheet" href="<%=basePath %>/js/easyui/themes/default/easyui.css" type="text/css"></link>
- <style>
- <!--
- .tip
- {
- margin-left:-5px;
- margin-top:-5px;
- width:235px;
- height:92px;
- line-height:28px;
- font-size:14px;
- }
- -->
- </style>
- <script type="text/javascript">
- /*****************2014-08-26*********************/
- /**定时器,每隔30秒运行一次*/
- //timer = setInterval("Tip()",1800000); //单位毫秒
- /**定时器实现操作*/
- function Tip()
- {
- $.post('tipAction_getTipInfo', function (result) {
- var parseResult = $.parseJSON(result);
- var str = "<div class=\"tip\" onMouseOver =\"clearTimeout(timer);\" onMouseOut=\"onSecondDelay();\">您有";
- if(parseResult.obj.cb20Count.toString() != '0')
- {
- str += parseResult.obj.cb20Count.toString()+"条单位信息未审核!<br />";
- }
- if(parseResult.obj.cb21Count.toString() != '0')
- {
- str += parseResult.obj.cb21Count.toString()+"条职位信息未审核!";
- }
- str += "</div>"
- if(parseResult.success){
- if(parseResult.obj.cb20Count.toString() == '0'&& parseResult.obj.cb21Count.toString() == '0')
- {
- return;
- }
- else if(parseResult.obj.cb21Count.toString() != '0')
- {
- $.messager.show({
- title: '<font color=red>系统短消息提醒</font>',
- msg: str,
- showSpeed: 2000,
- timeout:30000, //30秒超时
- showType: 'show',
- width: 260,
- height: 140
- });
- }
- }
- });
- }
- /*重新打开定时器**/
- function onSecondDelay() {
- clearTimeout(timer);
- timer = setInterval("Tip()",180000); //单位毫秒
- }
- /*****************2014-08-26*********************/
- var logout = function() {
- var url = "<%=basePath%>";
- $.post(url + '/userAction_logout', function(result) {
- location.replace(url);
- }, 'json');
- };
- var userinfo = function(){
-
- $('<div/>').dialog(
- {
- href : '<%=basePath%>/userAction_grxx',
- width : 520,
- height : 285,
- iconCls:'icon-user',
- modal : true,
- title : '个人信息',
- buttons : []
- }
-
- );
-
- };
- </script>
- <div style="position: absolute; left:0px;top:0px ;width: 620px; height: 60px; background-color: #1369d8;">
- <div style="line-height: 60px;margin-left: 20px;color: white;font-size: 24px;width:350px;float:left;font-family:'微软雅黑';text-align: right;">淮安市保障性住房建设管理中心</div>
- <div style="float:left; margin-left:5px; width:1px;height:21px;margin-top:19px;overflow: hidden;background: url(images/shu.png);"> </div>
- <div style="line-height: 60px;margin-left:5px;color: white;font-size: 18px;width:220px;float:left;font-family:'微软雅黑'; text-align: left;">淮安住房保障管理服务平台</div>
- </div>
- <div id="sessionDiv" style="position: absolute; right:70px;top:30px;color:#ffffff;">
- <c:if test="${user != null }">
- [<strong>${user.fullName}</strong>],欢迎您!
- </c:if>
- </div>
- <div style="position: absolute; right: 10px; top: 25px;color:#ffffff;">
- <!-- <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_kzmbMenu'">控制面板</a> -->
- <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_zxMenu'">注销</a>
- </div>
- <div id="layout_north_kzmbMenu" style="width: 100px; display: none;">
- <!-- <div onclick="userinfo();" data-options="iconCls:'icon-user'">个人信息</div> -->
- <!--<div class="menu-sep"></div>-->
- <div onclick="$('#passwordDialog').dialog('open');" data-options="iconCls:'icon-useredit'">修改密码</div>
- </div>
- <div id="layout_north_zxMenu" style="width: 100px; display: none;">
- <div onclick="logout();" data-options="iconCls:'icon-exit'">退出系统</div>
- </div>
|