newmsg.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8" %>
  2. <%@ include file="../inc/nocache.jsp"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="com.redmoon.oa.message.*"%>
  5. <html>
  6. <head>
  7. <title>查看新消息</title>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  9. <LINK href="../common.css" type=text/css rel=stylesheet>
  10. <SCRIPT language=javascript src="../inc/risewindow.js"></SCRIPT>
  11. <script>
  12. function window_onload() {
  13. START();
  14. getMsg();
  15. focus();
  16. }
  17. function getMsg() {
  18. divMsg.innerHTML = window.opener.getDivMsg();
  19. }
  20. function openWin(url,width,height)
  21. {
  22.   var newwin = window.open(url,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,top=50,left=120,width="+width+",height="+height);
  23. }
  24. function showmsg(id) {
  25. openWin("showmsg.jsp?id=" + id, 320, 260);
  26. window.close();
  27. }
  28. function IKnow() {
  29. form1.submit();
  30. }
  31. </script>
  32. </head>
  33. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="window_onload()">
  34. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  35. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  36. <jsp:useBean id="Msg" scope="page" class="com.redmoon.oa.message.MessageMgr"/>
  37. <table width="100%" height="183" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#99CCFF" class="9black">
  38.   <tr> 
  39.     <td width="100%" height="23" bgcolor="#CEE7FF">
  40.     <div align="center"> <b>新 消 息</b></div>    </td>
  41.   </tr>
  42.   <form id="form1" name="form1" action="iknow.jsp" method="post">
  43.   <tr> 
  44.       <td bgcolor="#FFFFFF" valign="top"><hr size="1" width="260">
  45.         <table width="100%" height="103" border="0" align="center" cellpadding="0" cellspacing="0" class="9black">
  46.           <tr> 
  47.             <td width="100%" height="103" valign="top">
  48. <div id="divMsg" name="divMsg"></div>
  49. </td>
  50.           </tr>
  51.         </table>
  52.         <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="9black">
  53.           <tr> 
  54.             <td width="100%" height="21"> 
  55.             <div align="center"><a href="javascript:IKnow()">我知道了</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:window.close()">&nbsp;关闭窗口</a></div>            </td>
  56.           </tr>
  57.         </table>
  58.   </td>
  59.   </tr>
  60.   </form>
  61.   <tr> 
  62.     <td bgcolor="#CEE7FF" height="6"></td>
  63.   </tr>
  64. </table>
  65. </body>
  66. </html>