north.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  5. <link id="easyuiTheme" rel="stylesheet" href="<%=basePath %>/js/easyui/themes/default/easyui.css" type="text/css"></link>
  6. <style>
  7. <!--
  8. .tip
  9. {
  10. margin-left:-5px;
  11. margin-top:-5px;
  12. width:235px;
  13. height:92px;
  14. line-height:28px;
  15. font-size:14px;
  16. }
  17. -->
  18. </style>
  19. <script type="text/javascript">
  20. /*****************2014-08-26*********************/
  21. /**定时器,每隔30秒运行一次*/
  22. //timer = setInterval("Tip()",1800000); //单位毫秒
  23. /**定时器实现操作*/
  24. function Tip()
  25. {
  26. $.post('tipAction_getTipInfo', function (result) {
  27. var parseResult = $.parseJSON(result);
  28. var str = "<div class=\"tip\" onMouseOver =\"clearTimeout(timer);\" onMouseOut=\"onSecondDelay();\">您有";
  29. if(parseResult.obj.cb20Count.toString() != '0')
  30. {
  31. str += parseResult.obj.cb20Count.toString()+"条单位信息未审核!<br />";
  32. }
  33. if(parseResult.obj.cb21Count.toString() != '0')
  34. {
  35. str += parseResult.obj.cb21Count.toString()+"条职位信息未审核!";
  36. }
  37. str += "</div>"
  38. if(parseResult.success){
  39. if(parseResult.obj.cb20Count.toString() == '0'&& parseResult.obj.cb21Count.toString() == '0')
  40. {
  41. return;
  42. }
  43. else if(parseResult.obj.cb21Count.toString() != '0')
  44. {
  45. $.messager.show({
  46. title: '<font color=red>系统短消息提醒</font>',
  47. msg: str,
  48. showSpeed: 2000,
  49. timeout:30000, //30秒超时
  50. showType: 'show',
  51. width: 260,
  52. height: 140
  53. });
  54. }
  55. }
  56. });
  57. }
  58. /*重新打开定时器**/
  59. function onSecondDelay() {
  60. clearTimeout(timer);
  61. timer = setInterval("Tip()",180000); //单位毫秒
  62. }
  63. /*****************2014-08-26*********************/
  64. var logout = function() {
  65. var url = "<%=basePath%>";
  66. $.post(url + '/userAction_logout', function(result) {
  67. location.replace(url);
  68. }, 'json');
  69. };
  70. var userinfo = function(){
  71. $('<div/>').dialog(
  72. {
  73. href : '<%=basePath%>/userAction_grxx',
  74. width : 520,
  75. height : 285,
  76. iconCls:'icon-user',
  77. modal : true,
  78. title : '个人信息',
  79. buttons : []
  80. }
  81. );
  82. };
  83. </script>
  84. <div style="position: absolute; left:0px;top:0px ;width: 620px; height: 60px; background-color: #1369d8;">
  85. <div style="line-height: 60px;margin-left: 20px;color: white;font-size: 24px;width:350px;float:left;font-family:'微软雅黑';text-align: right;">淮安市保障性住房建设管理中心</div>
  86. <div style="float:left; margin-left:5px; width:1px;height:21px;margin-top:19px;overflow: hidden;background: url(images/shu.png);">&nbsp;</div>
  87. <div style="line-height: 60px;margin-left:5px;color: white;font-size: 18px;width:220px;float:left;font-family:'微软雅黑'; text-align: left;">淮安住房保障管理服务平台</div>
  88. </div>
  89. <div id="sessionDiv" style="position: absolute; right:70px;top:30px;color:#ffffff;">
  90. <c:if test="${user != null }">
  91. [<strong>${user.fullName}</strong>],欢迎您!
  92. </c:if>
  93. </div>
  94. <div style="position: absolute; right: 10px; top: 25px;color:#ffffff;">
  95. <!-- <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_kzmbMenu'">控制面板</a> -->
  96. <a href="javascript:void(0);" class="easyui-menubutton" data-options="menu:'#layout_north_zxMenu'">注销</a>
  97. </div>
  98. <div id="layout_north_kzmbMenu" style="width: 100px; display: none;">
  99. <!-- <div onclick="userinfo();" data-options="iconCls:'icon-user'">个人信息</div> -->
  100. <!--<div class="menu-sep"></div>-->
  101. <div onclick="$('#passwordDialog').dialog('open');" data-options="iconCls:'icon-useredit'">修改密码</div>
  102. </div>
  103. <div id="layout_north_zxMenu" style="width: 100px; display: none;">
  104. <div onclick="logout();" data-options="iconCls:'icon-exit'">退出系统</div>
  105. </div>