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

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. <html>
  5. <head>
  6. <title>撰写消息</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <LINK href="../common.css" type=text/css rel=stylesheet>
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  11. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  12. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  13. <%
  14. if (!privilege.isUserLogin(request)) {
  15. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  16. return;
  17. }
  18. %>
  19. <table width="320" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#99CCFF" class="9black" height="260">
  20.   <tr> 
  21.     <td bgcolor="#CEE7FF" height="23">
  22.         <div align="center"> <b>撰 写 新 消 息</b></div>
  23.     </td>
  24.   </tr>
  25.   <tr> 
  26.     <td bgcolor="#FFFFFF" height="50"> 
  27.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
  28.           <tr> 
  29.             <td width="75"> 
  30.               <div align="center"><a href="message.jsp?page=1"><img src="images/inboxpm.gif" width="40" height="40" border="0"></a></div>
  31.             </td>
  32.             <td width="75"> 
  33.               <div align="center"><a href="listdraft.jsp"><img src="images/m_draftbox.gif" width="40" height="40" border="0"></a></div>
  34.             </td>
  35.             <td width="75"> 
  36.               <div align="center"><a href="send.jsp"><img src="images/newpm.gif" width="40" height="40" border="0"></a></div>
  37.             </td>
  38.             <td width="75"> 
  39.               <div align="center"> <img src="images/m_delete.gif" width="40" height="40"></div>
  40.             </td>
  41.           </tr>
  42.         </table>
  43.     </td>
  44.   </tr>
  45.   <tr> 
  46.       <td bgcolor="#FFFFFF" height="152" valign="top">
  47.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center" class="9black" height="6">
  48.           <tr> 
  49.             <td></td>
  50.           </tr>
  51.         </table>
  52.         <table width="300" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  53.           <tr> 
  54.             
  55.           <td height="35"> <li>
  56. <jsp:useBean id="Msg" scope="page" class="com.redmoon.oa.message.MessageMgr"/>
  57. <%
  58. String op = ParamUtil.get(request, "op");
  59. boolean isSuccess = false;
  60. try {
  61. if (op.equals("")) {
  62. isSuccess = Msg.AddMsg(application, request);
  63. }
  64. if (op.equals("sendDraft")) {
  65. isSuccess = Msg.sendDraft(request);
  66. }
  67. }
  68. catch (ErrMsgException e) {
  69. out.println(StrUtil.Alert_Back("消息发送失败:"+e.getMessage()));
  70. System.out.println("--------------");
  71. e.printStackTrace();
  72. }
  73. %>
  74. <%if (isSuccess) { %>
  75.     消息处理成功!
  76. <%} else {%>
  77. 消息发送失败!
  78. <%}%>
  79.   </td>
  80.           </tr>
  81.           <tr> 
  82.             <td height="35"> 
  83.               <div align="center"></div>
  84.             </td>
  85.           </tr>
  86.           <tr> 
  87.             <td height="35"> 
  88.               <div align="center"></div>
  89.             </td>
  90.           </tr>
  91.           <tr> 
  92.             <td height="35"> 
  93.               <div align="center"> </div>
  94.             </td>
  95.           </tr>
  96.         </table>
  97.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center" class="9black" height="6">
  98.           <tr> 
  99.             <td></td>
  100.           </tr>
  101.         </table>
  102.       </td>
  103.   </tr>
  104.   <tr> 
  105.     <td bgcolor="#CEE7FF" height="6"></td>
  106.   </tr>
  107. </table>
  108. </body>
  109. </html>