- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin1.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intBBSID = m_request.GetInt("ID");
- int intUserID = m_session.GetInt("UserID");
- int iSysDirID = m_request.GetInt("SysDirID");
- Vector vt = BBSManager.getRecordByID(intBBSID);
- if(vt.size()==1)
- {
- if(((Vector)vt.get(0)).get(7).toString().equalsIgnoreCase(iSysDirID+""))
- {
- BBSManager.UpdateReocordView(intBBSID);
- vt = BBSManager.getRecordByID(intBBSID);
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title><%=((Vector)vt.get(0)).get(1).toString()%>-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript">
- function checkAddBBS()
- {
- if(document.AddBBS.Title.value=="")
- {
- alert("请输入文章主题!");
- document.AddBBS.Title.focus();
- return false;
- }
- if(document.AddBBS.Anonymity.checked)
- {
- document.AddBBS.PublishUserID.value = <%=SystemParament.GetAnonymity()%>;
- }
- }
- window.opener.location="BBSManage.jsp?SysDirID=<%=iSysDirID%>";
- </script>
- <style type="text/css">
- <!--
- .imgtd {
- border: 1px solid #0A0A0A;
- }
- .unnamed1 {
- border: 1pt solid #3366CC;
- }
- -->
- </style>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="90%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="4" align="right"> <input type="button" value="关闭窗口" onclick="window.close()"> </p>
- </td>
- </tr>
- <tr>
- <td width="68" height="32" align="center" valign="middle" class="unnamed1"><strong>主题</strong></td>
- <td colspan="3" align="center" class="unnamed1"><strong><%=((Vector)vt.get(0)).get(1).toString()%></strong> </td>
- </tr>
- <tr>
- <td width="68" height="25" align="center" valign="middle" class="unnamed1"><strong>文章信息</strong></td>
- <td width="771" height="25" align="left" valign="bottom" class="unnamed1"><img src="/images/BBS/face<%=((Vector)vt.get(0)).get(4).toString()%>.gif">
- <%
- //**************判断是否匿名用户
- if (((Vector)vt.get(0)).get(3).toString().equalsIgnoreCase(SystemParament.GetAnonymity()))
- out.println("作者:匿名");
- else
- {
- if(((Vector)vt.get(0)).get(2).toString().length()>1)
- out.println("作者:" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(3).toString())) + "");
- }
- //**************判断是否匿名用户完
- out.println(" 发布时间:" + StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"MM月dd日 HH点mm分") + "");
- out.println(" 浏览次数:" + ((Vector)vt.get(0)).get(8).toString() + " ");
- %> </td>
- <td width="36" align="center" valign="bottom" class="unnamed1"><strong><a href="EditShowBBS.jsp?SysDirID=<%=iSysDirID%>&ID=<%=intBBSID%>">修改</a></strong></td>
- <td width="33" align="center" valign="bottom" class="unnamed1"><strong><a href="DelShowBBS.jsp?SysDirID=<%=iSysDirID%>&ID=<%=intBBSID%>" onclick="return confirm('您确实要删除该文章吗?');">删除</a></strong></td>
- </tr>
- <tr>
- <td width="68" align="center" valign="middle" class="unnamed1"><strong>内容</strong></td>
- <td colspan="3" align="left" valign="top" class="unnamed1"><p><%=((Vector)vt.get(0)).get(5).toString()%> </p>
- <strong> </strong></td>
- </tr>
- <tr class="cgal">
- <td align="center" valign="middle" class="unnamed1"><strong>相关文章</strong></td>
- <td colspan="3" class="unnamed1"> <strong>
- <%
- Vector vtr = BBSManager.getBBSRevertRecord(((Vector)vt.get(0)).get(6).toString()+((Vector)vt.get(0)).get(0).toString()+"_");
- if(vtr.size() >0)
- {
- for (int i=0;i<vtr.size();i++)
- {
- String strID = ((Vector)vtr.get(i)).get(0).toString();
- out.println(" <img src="/images/BBS/face"+((Vector)vt.get(0)).get(4).toString()+".gif"> <a href="ShowBBS.jsp?SysDirID="+iSysDirID+"&ID="+((Vector)vtr.get(i)).get(0).toString()+"">"+((Vector)vtr.get(i)).get(1).toString()+"</a><br><br>");
- }
- }
- %>
- </strong> </td>
- </tr>
- <form name="AddBBS" action="AddBBSRevertAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddBBS();">
- <tr>
- <td width="68" height="36" align="center" valign="middle" class="unnamed1"><strong>回复主题</strong></td>
- <td colspan="3" align="left" valign="middle" class="unnamed1"> <input name="Title" type="text" maxlength="60" size="90" value="回复:<%=((Vector)vt.get(0)).get(1).toString()%>">
- </td>
- </tr>
- <tr>
- <td width="68" height="30" align="center" valign="middle" class="unnamed1"><strong>表情</strong></td>
- <td height="30" colspan="3" align="left" valign="top" class="unnamed1">
- <input name="FaceID" type="radio" value="1"> <img src="/images/BBS/face1.gif">
- <input name="FaceID" type="radio" value="2"> <img src="/images/BBS/face2.gif">
- <input name="FaceID" type="radio" value="3"> <img src="/images/BBS/face3.gif">
- <input name="FaceID" type="radio" value="4"> <img src="/images/BBS/face4.gif">
- <input name="FaceID" type="radio" value="5"> <img src="/images/BBS/face5.gif">
- <input name="FaceID" type="radio" value="6"> <img src="/images/BBS/face6.gif">
- <input name="FaceID" type="radio" value="7"> <img src="/images/BBS/face7.gif">
- <input name="FaceID" type="radio" value="8"> <img src="/images/BBS/face8.gif">
- <input name="FaceID" type="radio" value="9"> <img src="/images/BBS/face9.gif"><br>
- <input name="FaceID" type="radio" value="10"> <img src="/images/BBS/face10.gif">
- <input name="FaceID" type="radio" value="11"> <img src="/images/BBS/face11.gif">
- <input name="FaceID" type="radio" value="12"> <img src="/images/BBS/face12.gif">
- <input name="FaceID" type="radio" value="13"> <img src="/images/BBS/face13.gif">
- <input name="FaceID" type="radio" value="14"> <img src="/images/BBS/face14.gif">
- <input name="FaceID" type="radio" value="15"> <img src="/images/BBS/face15.gif">
- <input name="FaceID" type="radio" value="16"> <img src="/images/BBS/face16.gif">
- <input name="FaceID" type="radio" value="17"> <img src="/images/BBS/face17.gif">
- <input name="FaceID" type="radio" value="18"> <img src="/images/BBS/face18.gif"></td>
- </tr>
- <tr>
- <td width="68" align="center" valign="middle" class="unnamed1"><strong>内容</strong></td>
- <td height="55" colspan="3" align="left" valign="top" class="unnamed1">
- <textarea name="Content" cols="90" rows="5"></textarea>
- <%java.util.Date t_Date = new java.util.Date();%> <input name="PublishTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss")%>">
- <input name="PublishUserID" type="hidden" Value="<%=intUserID%>"> <input name="Station" type="hidden" Value="<%=((Vector)vt.get(0)).get(6).toString()%><%=((Vector)vt.get(0)).get(0).toString()%>_">
- <input name="SysDirID" type="hidden" Value="<%=iSysDirID%>"> <input name="ViewTimes" type="hidden" Value="0">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="Anonymity" type="checkbox">匿名发布
- </td>
- </tr>
- <tr>
- <td colspan="4" align="right"> </td>
- </tr>
- <tr>
- <td colspan="7" align="right" valign="middle" nowrap> <input name="submit" type="submit" value="确定">
- <input name="reset" type="reset" value="重填">
- <input name="button" type="button" onClick="window.close()" value="关闭窗口">
- </tr>
- <tr>
- <td colspan="7" nowrap> <strong> </strong> </tr>
- </form>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("您没有权限查看此记录,请与管理员联系!");
- window.close();
- </script>
- <%
- }
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("此记录已被删除,请与管理员联系!");
- window.close();
- </script>
- <%
- }
- %>