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

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. <%
  5. Request m_request = new Request(request);
  6. int intBBSID = m_request.GetInt("ID");
  7. int iSysDirID = m_request.GetInt("SysDirID");
  8. if(intBBSID <1)
  9. {
  10. %>
  11. <script language="JavaScript" type="text/JavaScript">
  12. alert("请选择正确的文章,修改失败!");
  13. history.back();
  14. </script>
  15. <%
  16. }
  17. else
  18. {
  19. Vector vt = BBSManager.getRecordByID(intBBSID);
  20. if(vt.size()==1)
  21. {
  22. if(((Vector)vt.get(0)).get(7).toString().equalsIgnoreCase(iSysDirID+""))
  23. {
  24. %>
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  28. <title>在线论坛-- GForce OA 2.0</title>
  29. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  30. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  31. <script language="JavaScript" src="/js/changestyle.js"></script>
  32. <script language="JavaScript" type="text/javascript">
  33. function checkEditBBS()
  34. {
  35.     if(document.EditBBS.Title.value=="")
  36.     {
  37.         alert("请输入文章主题!");
  38.         document.EditBBS.Title.focus();
  39.         return false;
  40.     }
  41. }
  42. </script>
  43. <style type="text/css">
  44. <!--
  45. .imgtd {
  46.     border: 1px solid #0A0A0A;
  47. }
  48. -->
  49. </style>
  50. </head>
  51. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  52. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  53.      <tr>
  54.         <td align="center" valign="top"><p>&nbsp;</p>
  55.         <form name="EditBBS" action="EditOnBBSAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditBBS();">
  56.         <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  57.           <tr>
  58.             <td width="80" align="right" valign="middle"><font color="#0A0A0A">主题:</font></td>
  59.             <td colspan="3" align="left" valign="middle" nowrap>
  60.             <input name="ID" type="hidden" Value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  61.             <input name="Title" type="text" maxlength="60" size="60" Value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  62.             </td>
  63.           </tr>
  64.           <tr>
  65.             <td align="right" valign="middle"><font color="#0A0A0A">表情:</font></td>
  66.             <td colspan="3" align="left" valign="middle" nowrap>
  67.             <input name="FaceID" type="radio" value="1" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("1")) out.println("checked");%>>
  68.       <img src="/images/BBS/face1.gif">
  69.       <input name="FaceID" type="radio" value="2" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("2")) out.println("checked");%>>
  70.       <img src="/images/BBS/face2.gif">
  71.         <input name="FaceID" type="radio" value="3" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("3")) out.println("checked");%>>
  72.       <img src="/images/BBS/face3.gif">
  73.         <input name="FaceID" type="radio" value="4" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("4")) out.println("checked");%>>
  74.       <img src="/images/BBS/face4.gif">
  75.         <input name="FaceID" type="radio" value="5" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("5")) out.println("checked");%>>
  76.       <img src="/images/BBS/face5.gif">
  77.         <input name="FaceID" type="radio" value="6" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("6")) out.println("checked");%>>
  78.       <img src="/images/BBS/face6.gif">
  79.         <input name="FaceID" type="radio" value="7" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("7")) out.println("checked");%>>
  80.       <img src="/images/BBS/face7.gif">
  81.         <input name="FaceID" type="radio" value="8" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("8")) out.println("checked");%>>
  82.       <img src="/images/BBS/face8.gif">
  83.         <input name="FaceID" type="radio"  value="9" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("9")) out.println("checked");%>>
  84.       <img src="/images/BBS/face9.gif">
  85.             </td>
  86.           </tr>
  87.       <tr>
  88.             <td align="right" valign="middle">&nbsp;</td>
  89.             <td colspan="3" align="left" valign="middle" nowrap>
  90.         <input name="FaceID" type="radio" value="10" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("10")) out.println("checked");%>>
  91.       <img src="/images/BBS/face10.gif">
  92.         <input name="FaceID" type="radio" value="11" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("11")) out.println("checked");%>>
  93.       <img src="/images/BBS/face11.gif">
  94.         <input name="FaceID" type="radio" value="12" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("12")) out.println("checked");%>>
  95.       <img src="/images/BBS/face12.gif">
  96.         <input name="FaceID" type="radio" value="13" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("13")) out.println("checked");%>>
  97.       <img src="/images/BBS/face13.gif">
  98.         <input name="FaceID" type="radio" value="14" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("14")) out.println("checked");%>>
  99.       <img src="/images/BBS/face14.gif">
  100.         <input name="FaceID" type="radio" value="15" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("15")) out.println("checked");%>>
  101.       <img src="/images/BBS/face15.gif">
  102.         <input name="FaceID" type="radio" value="16" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("16")) out.println("checked");%>>
  103.       <img src="/images/BBS/face16.gif">
  104.         <input name="FaceID" type="radio" value="17" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("17")) out.println("checked");%>>
  105.       <img src="/images/BBS/face17.gif">
  106.       <input name="FaceID" type="radio"  value="18" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("18")) out.println("checked");%>>
  107.       <img src="/images/BBS/face18.gif">
  108.       </td>
  109.           </tr>
  110.           <tr>
  111.             <td align="right" valign="middle"><font color="#0A0A0A">内容:</font></td>
  112.             <td colspan="3" align="left" valign="middle" nowrap>
  113.             <textarea name="Content" cols="50" rows="10"><%=((Vector)vt.get(0)).get(5).toString()%></textarea>
  114.             <input name="PublishTime" type="hidden" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
  115.             <input name="PublishUserID" type="hidden" Value="<%=((Vector)vt.get(0)).get(3).toString()%>"> </td>
  116.             <input name="Station" type="hidden" Value="<%=((Vector)vt.get(0)).get(6).toString()%>"> </td>
  117.             <input name="SysDirID" type="hidden" Value="<%=((Vector)vt.get(0)).get(7).toString()%>"> </td>
  118.             <input name="ViewTimes" type="hidden" Value="<%=((Vector)vt.get(0)).get(8).toString()%>"> </td>
  119.           </tr>
  120.           <tr>
  121.             <td align="right" valign="middle">&nbsp;</td>
  122.             <td colspan="3" align="left" valign="middle" nowrap> </td>
  123.           </tr>
  124.           <tr>
  125.             <td align="right" valign="middle">&nbsp;</td>
  126.             <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
  127.               &nbsp;&nbsp;&nbsp; <input type="reset" value="重填"> &nbsp;&nbsp;&nbsp;
  128.               <input type="button" value="返回" onclick="window.location='BBSOnManage.jsp?SysDirID=<%=iSysDirID%>';">
  129.             </td>
  130.           </tr>
  131.         </table>
  132.         </form>
  133.         </td>
  134.     </tr>
  135. </table>
  136. </body>
  137. </html>
  138. <%
  139. }
  140. else
  141. {
  142. %>
  143. <script language="JavaScript" type="text/JavaScript">
  144. alert("您没有权限修改此记录,修改失败!");
  145. history.back();
  146. </script>
  147. <%
  148. }
  149. }
  150. else
  151. {
  152. %>
  153. <script language="JavaScript" type="text/JavaScript">
  154. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  155. history.back();
  156. </script>
  157. <%
  158. }
  159. }
  160. %>