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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8" %>
  2. <%@ page import="cn.js.fan.util.*"%>
  3. <%@ page import="java.sql.ResultSet"%>
  4. <%@ page import="java.sql.SQLException"%>
  5. <LINK href="../common.css" type=text/css rel=stylesheet>
  6. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  7. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  8. <%
  9. if (!privilege.isMasterLogin(request))
  10. {
  11. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  12. return;
  13. }
  14. %>
  15. <html>
  16. <head>
  17. <title>撰写群发消息</title>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <script language=javascript>
  20. <!--
  21. function form1_onsubmit()
  22. {
  23. errmsg = "";
  24. if (!form1.isToAll.checked)
  25. if (form1.receiver.value=="")
  26. errmsg += "请填写接收者!n"
  27. if (form1.title.value=="")
  28. errmsg += "请填写标题!n"
  29. if (form1.content.value=="")
  30. errmsg += "请填写内容!n"
  31. if (errmsg!="")
  32. {
  33. alert(errmsg);
  34. return false;
  35. }
  36. }
  37. //-->
  38. </script>
  39. </head>
  40. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  41. <table width="320" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#99CCFF" class="9black" height="260">
  42.   <form name="form1" method="post" action="send_do.jsp" onSubmit="return form1_onsubmit()">
  43.   <tr> 
  44.     <td bgcolor="#CEE7FF" height="23">
  45.         <div align="center"> <b>撰 写 群 发 消 息</b></div>
  46.     </td>
  47.   </tr>
  48.   <tr> 
  49.     <td bgcolor="#FFFFFF" height="50"> 
  50.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
  51.           <tr> 
  52.             <td width="75"> 
  53.               <div align="center"><a href="message.jsp?page=1"><img src="images/inboxpm.gif" width="40" height="40" border="0"></a></div>
  54.             </td>
  55.             <td width="75"> 
  56.               <div align="center"><a href="mysend.jsp"><img src="images/m_outbox.gif" width="40" height="40" border="0"></a></div>
  57.             </td>
  58.             <td width="75"> 
  59.               <div align="center"><img src="images/newpm.gif" width="40" height="40" border="0"></div>
  60.             </td>
  61.             <td width="75"> 
  62.               <div align="center"> <img src="images/m_delete.gif" width="40" height="40"></div>
  63.             </td>
  64.           </tr>
  65.         </table>
  66.     </td>
  67.   </tr>
  68.   <tr> 
  69.       <td bgcolor="#FFFFFF" height="152" valign="top">
  70.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center" class="9black" height="6">
  71.           <tr> 
  72.             <td></td>
  73.           </tr>
  74.         </table>
  75.         <table width="300" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  76.           <tr> 
  77.             <td width="68" height="27"> 
  78.               <div align="center">接 收 者:</div>
  79.             </td>
  80.             <td width="217" height="27">
  81.               <input type="text" name="receiver" class="input1" size="20" maxlength="20">
  82.   <%
  83.   com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
  84.   String sender = cfg.getProperty("forum.message_sender");
  85.   %>
  86.   <input type="hidden" name="sender" value="<%=sender%>">
  87.   <input name="type" type="hidden" value="<%=com.redmoon.forum.message.MessageDb.TYPE_SYSTEM%>">
  88.   <input name="isToAll" type="checkbox" value="true">全体
  89.             </td>
  90.           </tr>
  91.           <tr> 
  92.             <td width="68" height="26"> 
  93.               <div align="center">消息标题:</div>
  94.             </td>
  95.             <td width="217" height="26">
  96.               <input type="text" name="title" class="input1" size="30" maxlength="30">
  97.             </td>
  98.           </tr>
  99.           <tr> 
  100.             <td width="68" height="26"> 
  101.               <div align="center">消息内容:</div>
  102.             </td>
  103.             <td width="217" height="26"> 
  104.               <textarea name="content" cols="28" rows="3"></textarea>
  105.             </td>
  106.           </tr>
  107.           <tr> 
  108.             <td colspan="2" height="26"> 
  109.               <div align="center">
  110.                 <input type="submit" name="Submit" value="发送消息" class="button1">
  111.                 &nbsp; 
  112.                 <input type="reset" name="Submit2" value="重写" class="button1">
  113.               </div>
  114.             </td>
  115.           </tr>
  116.         </table>
  117.         <table width="300" border="0" cellspacing="0" cellpadding="0" align="center" class="9black" height="6">
  118.           <tr> 
  119.             <td></td>
  120.           </tr>
  121.         </table>
  122.       </td>
  123.   </tr>
  124.   <tr> 
  125.     <td bgcolor="#CEE7FF" height="6"></td>
  126.   </tr></form>
  127. </table>
  128. </body>
  129. </html>