top.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
  2. <%@ page import="java.text.SimpleDateFormat"%>
  3. <%@ page import="java.util.Date"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <link href="${pageContext.request.contextPath}/Css_file/oa.css" rel="stylesheet" type="text/css" />
  6. <%SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd");
  7. String datetime = simple.format(new Date());
  8. %>
  9. <style type="text/css">
  10. <!--
  11. body {
  12. margin-left: 0px;
  13. margin-top: 0px;
  14. }
  15. -->
  16. </style>
  17. <script>
  18.    var oPopup = window.createPopup();
  19. var popTop=50;
  20. var checkvalue=0;
  21. function popmsg(){
  22. var affair="${hint.affairname}";
  23. var meeting="${hint.meetingname}";
  24. var email="${hint.emailname}";
  25. var anum = "${hint.affairnumber}";
  26. var mnum = "${hint.meetingnumber}";
  27. var emnum = "${hint.emailnumber}";
  28. var winstr="<table style="border:0 solid  #cccccc"  width="241" height=datetimeorder="0" cellpadding="0" cellspacing="0" bgcolor='#E1F4EE'>";
  29. winstr+="<tr><td height="100%">小贴士提醒您:</td></tr><tr><td><table width="100%" height="110" border="0" cellpadding="0" cellspacing="0">";
  30. winstr+="<tr><td align="center" style="font-size:14px; color: #268edf; face: 宋体">"+affair+"&nbsp;&nbsp;<a  id='affair' href='#' >"+anum+"</a></td></tr>";
  31. winstr+="<tr><td align="center" style="font-size:14px; color: #268edf; face: 宋体">"+meeting+"&nbsp;&nbsp;<a id='meeting' href='#' >"+mnum+"</a></td></tr>";
  32. winstr+="<tr><td align="center" style="font-size:14px; color: #268edf; face: 宋体">"+email+"&nbsp;&nbsp;<a id='email' href='#' >"+emnum+"</a></td></tr>";
  33. winstr+="</table></td></tr>";
  34. winstr+="<tr><td align="center" style="font-size:16px; color: #268edf; face: 宋体"><a id='sethint' href='#' >设 置</a></td></tr>"
  35. winstr+="</table>";
  36. oPopup.document.body.innerHTML = winstr;
  37. popshow();
  38. popTop=50;
  39. if(oPopup.document.getElementById("affair") != null){
  40. oPopup.document.getElementById("affair").onclick=function(){
  41. window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.affairpath}";
  42. }
  43. }
  44. if(oPopup.document.getElementById("meeting") != null){
  45. oPopup.document.getElementById("meeting").onclick=function(){
  46. window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.meetingpath}";
  47. }
  48. }
  49. if(oPopup.document.getElementById("email") != null){
  50. oPopup.document.getElementById("email").onclick=function(){
  51. window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.emailpath}";
  52. }
  53. }
  54. if(oPopup.document.getElementById("sethint") != null){
  55. oPopup.document.getElementById("sethint").onclick=function(){
  56. window.top.mainFrame.location="${pageContext.request.contextPath}/hint.do?method=editshow";
  57. }
  58. }
  59. }
  60. function popshow(){
  61. window.status=popTop;
  62. if(popTop>1720){
  63. clearTimeout(mytime);
  64. oPopup.hide();
  65. popTop=50;
  66. return;
  67. }else if(popTop>1520&&popTop<1720){
  68. oPopup.show(screen.width-260,screen.height+30,241,1720-popTop-20);
  69. }else if(popTop>1500&&popTop<1720){
  70. oPopup.show(screen.width-260,screen.height+30+(popTop-1720),241,152);
  71. }else if(popTop<180){
  72. oPopup.show(screen.width-260,screen.height+30,241,popTop-20);
  73. }else if(popTop<220){
  74. oPopup.show(screen.width-260,screen.height+30-popTop,241,152);
  75. }
  76. popTop+=10;
  77. var mytime=setTimeout("popshow();",20);
  78. }
  79. if(checkvalue==0){
  80. window.setTimeout("popmsg();",500);
  81. checkvalue=1;
  82. }
  83.  window.setInterval("renovate();",${hint.interval});
  84. function renovate(){
  85. location.href ="${pageContext.request.contextPath}/login.do?method=settop";
  86. }
  87.   </script>
  88. <table width="100%" class="myTable" bgcolor="#B3E7F9" cellpadding="0" cellspacing="0">
  89. <tr>
  90. <td height="92">
  91. <img src="${pageContext.request.contextPath}/Img_file/top.gif" width="1024" height="92" /></td>
  92. </tr>
  93. <tr>
  94. <td height="28" background="${pageContext.request.contextPath}/Img_file/back2.jpg">
  95. &nbsp;&nbsp;<a href="${pageContext.request.contextPath}/login.do?method=main" target="mainFrame">首页</a>
  96. &nbsp;&nbsp;<a href="${pageContext.request.contextPath}/login.do?method=close" >退出</a>
  97.  &nbsp;&nbsp;[${sessionScope.user.uname}],欢迎您登录!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  98. <%=datetime%>
  99.   </td>
  100. </tr>
  101. </table>