- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intBBSID = m_request.GetInt("ID");
- int iSysDirID = m_request.GetInt("SysDirID");
- if(intBBSID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的文章,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = BBSManager.getRecordByID(intBBSID);
- if(vt.size()==1)
- {
- if(((Vector)vt.get(0)).get(7).toString().equalsIgnoreCase(iSysDirID+""))
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>在线论坛管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <script language="JavaScript" type="text/javascript">
- function checkEditBBS()
- {
- if(document.EditBBS.Title.value=="")
- {
- alert("请输入文章主题!");
- document.EditBBS.Title.focus();
- return false;
- }
- }
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="EditBBS" action="EditBBSAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditBBS();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td width="80" align="right" valign="middle"><font color="#0A0A0A">主题:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="ID" type="hidden" Value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- <input name="Title" type="text" maxlength="60" size="60" Value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">表情:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="FaceID" type="radio" value="1" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("1")) out.println("checked");%>>
- <img src="/images/BBS/face1.gif">
- <input name="FaceID" type="radio" value="2" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("2")) out.println("checked");%>>
- <img src="/images/BBS/face2.gif">
- <input name="FaceID" type="radio" value="3" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("3")) out.println("checked");%>>
- <img src="/images/BBS/face3.gif">
- <input name="FaceID" type="radio" value="4" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("4")) out.println("checked");%>>
- <img src="/images/BBS/face4.gif">
- <input name="FaceID" type="radio" value="5" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("5")) out.println("checked");%>>
- <img src="/images/BBS/face5.gif">
- <input name="FaceID" type="radio" value="6" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("6")) out.println("checked");%>>
- <img src="/images/BBS/face6.gif">
- <input name="FaceID" type="radio" value="7" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("7")) out.println("checked");%>>
- <img src="/images/BBS/face7.gif">
- <input name="FaceID" type="radio" value="8" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("8")) out.println("checked");%>>
- <img src="/images/BBS/face8.gif">
- <input name="FaceID" type="radio" value="9" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("9")) out.println("checked");%>>
- <img src="/images/BBS/face9.gif">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="FaceID" type="radio" value="10" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("10")) out.println("checked");%>>
- <img src="/images/BBS/face10.gif">
- <input name="FaceID" type="radio" value="11" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("11")) out.println("checked");%>>
- <img src="/images/BBS/face11.gif">
- <input name="FaceID" type="radio" value="12" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("12")) out.println("checked");%>>
- <img src="/images/BBS/face12.gif">
- <input name="FaceID" type="radio" value="13" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("13")) out.println("checked");%>>
- <img src="/images/BBS/face13.gif">
- <input name="FaceID" type="radio" value="14" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("14")) out.println("checked");%>>
- <img src="/images/BBS/face14.gif">
- <input name="FaceID" type="radio" value="15" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("15")) out.println("checked");%>>
- <img src="/images/BBS/face15.gif">
- <input name="FaceID" type="radio" value="16" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("16")) out.println("checked");%>>
- <img src="/images/BBS/face16.gif">
- <input name="FaceID" type="radio" value="17" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("17")) out.println("checked");%>>
- <img src="/images/BBS/face17.gif">
- <input name="FaceID" type="radio" value="18" <%if(((Vector)vt.get(0)).get(4).toString().equalsIgnoreCase("18")) out.println("checked");%>>
- <img src="/images/BBS/face18.gif">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">内容:</font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <textarea name="Content" cols="50" rows="10"><%=((Vector)vt.get(0)).get(5).toString()%></textarea>
- <input name="PublishTime" type="hidden" value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- <input name="PublishUserID" type="hidden" Value="<%=((Vector)vt.get(0)).get(3).toString()%>"> </td>
- <input name="Station" type="hidden" Value="<%=((Vector)vt.get(0)).get(6).toString()%>"> </td>
- <input name="SysDirID" type="hidden" Value="<%=((Vector)vt.get(0)).get(7).toString()%>"> </td>
- <input name="ViewTimes" type="hidden" Value="<%=((Vector)vt.get(0)).get(8).toString()%>"> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap> <input type="submit" value="确定">
- <input type="reset" value="重填">
- <input type="button" value="返回" onclick="window.location='BBSManage.jsp?SysDirID=<%=iSysDirID%>';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>