AddBBS.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>在线论坛管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <script language="JavaScript" type="text/javascript">
  11. function checkAddBBS()
  12. {
  13.     if(document.AddBBS.Title.value=="")
  14.     {
  15.         alert("请输入文章主题!");
  16.         document.AddBBS.Title.focus();
  17.         return false;
  18.     }
  19.     if(document.AddBBS.Anonymity.checked)
  20. {
  21.  document.AddBBS.PublishUserID.value = <%=SystemParament.GetAnonymity()%>;
  22. }
  23. }
  24. </script>
  25. <style type="text/css">
  26. <!--
  27. .imgtd {
  28.     border: 1px solid #0A0A0A;
  29. }
  30. -->
  31. </style>
  32. </head>
  33. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  34. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  35.     <tr>
  36.         <td align="center" valign="top"><p>&nbsp;</p>
  37. <%
  38. Request m_request = new Request(request);
  39. int iSysDirID = m_request.GetInt("SysDirID");
  40. int intUserID = m_session.GetInt("UserID");
  41. %>
  42.         <form name="AddBBS" action="AddBBSAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddBBS();">
  43.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  44.           <tr>
  45.             <td width="80" align="right" valign="middle"><font color="#0A0A0A">主题:</font></td>
  46.             <td colspan="3" align="left" valign="middle" nowrap>
  47.             <input name="Title" type="text" maxlength="60" size="60">
  48.             </td>
  49.           </tr>
  50.           <tr>
  51.             <td align="right" valign="middle"><font color="#0A0A0A">表情:</font></td>
  52.             <td colspan="3" align="left" valign="middle" nowrap>
  53.             <input name="FaceID" type="radio" value="1">
  54.       <img src="/images/BBS/face1.gif">
  55.       <input name="FaceID" type="radio" value="2">
  56.       <img src="/images/BBS/face2.gif">
  57.         <input name="FaceID" type="radio" value="3">
  58.       <img src="/images/BBS/face3.gif">
  59.         <input name="FaceID" type="radio" value="4">
  60.       <img src="/images/BBS/face4.gif">
  61.         <input name="FaceID" type="radio" value="5">
  62.       <img src="/images/BBS/face5.gif">
  63.         <input name="FaceID" type="radio" value="6">
  64.       <img src="/images/BBS/face6.gif">
  65.         <input name="FaceID" type="radio" value="7">
  66.       <img src="/images/BBS/face7.gif">
  67.         <input name="FaceID" type="radio" value="8">
  68.       <img src="/images/BBS/face8.gif">
  69.         <input name="FaceID" type="radio" value="9">
  70.       <img src="/images/BBS/face9.gif">
  71.             </td>
  72.           </tr>
  73.       <tr>
  74.             <td align="right" valign="middle">&nbsp;</td>
  75.             <td colspan="3" align="left" valign="middle" nowrap>
  76.         <input name="FaceID" type="radio" value="10">
  77.       <img src="/images/BBS/face10.gif">
  78.         <input name="FaceID" type="radio" value="11">
  79.       <img src="/images/BBS/face11.gif">
  80.         <input name="FaceID" type="radio" value="12">
  81.       <img src="/images/BBS/face12.gif">
  82.         <input name="FaceID" type="radio" value="13">
  83.       <img src="/images/BBS/face13.gif">
  84.         <input name="FaceID" type="radio" value="14">
  85.       <img src="/images/BBS/face14.gif">
  86.         <input name="FaceID" type="radio" value="15">
  87.       <img src="/images/BBS/face15.gif">
  88.         <input name="FaceID" type="radio" value="16">
  89.       <img src="/images/BBS/face16.gif">
  90.         <input name="FaceID" type="radio" value="17">
  91.       <img src="/images/BBS/face17.gif">
  92.       <input name="FaceID" type="radio" value="18">
  93.       <img src="/images/BBS/face18.gif">
  94.       </td>
  95.           </tr>
  96.           <tr>
  97.             <td align="right" valign="middle"><font color="#0A0A0A">内容:</font></td>
  98.             <td colspan="3" align="left" valign="middle" nowrap>
  99.             <textarea name="Content" cols="50" rows="10"></textarea>
  100.             <%java.util.Date t_Date = new java.util.Date();%>
  101.             <input name="PublishTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
  102.             <input name="PublishUserID" type="hidden" Value="<%=intUserID%>">
  103.             <input name="Station" type="hidden" Value="_0_">
  104.             <input name="SysDirID" type="hidden" Value="<%=iSysDirID%>">
  105.             <input name="ViewTimes" type="hidden" Value="0">
  106.           </td>
  107.           </tr>
  108.           <tr>
  109.             <td align="right" valign="middle"> </td>
  110.             <td colspan="3" align="left" valign="middle" nowrap>
  111.             <input name="Anonymity" type="checkbox">匿名发布
  112.            </td>
  113.           </tr>
  114.           <tr>
  115.             <td align="right" valign="middle">&nbsp;</td>
  116.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  117.           </tr>
  118.           <tr>
  119.             <td align="right" valign="middle">&nbsp;</td>
  120.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  121.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  122.               <input type="button" value="返回" onclick="window.location='BBSManage.jsp?SysDirID=<%=iSysDirID%>';">
  123.             </td>
  124.           </tr>
  125.         </table>
  126.         </form>
  127.         </td>
  128.     </tr>
  129. </table>
  130. </body>
  131. </html>