ShowArticle.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:4k
源码类别:
OA系统
开发平台:
Java
- <%@ 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 intArticleID = m_request.GetInt("ID");
- int iSysDirID = m_request.GetInt("SysDirID");
- Vector vt = ArticleManager.getRecordByID(intArticleID);
- if(vt.size()==1)
- {
- if(("," + iSysDirID + "," + SystemDirectoryManager.getSubSystemDirectoryIDs(iSysDirID) + ",").indexOf("," + ((Vector)vt.get(0)).get(11).toString() + ",")>=0)
- {
- ArticleManager.UpdateReocordView(intArticleID);
- %>
- <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">
- </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" cellspacing="1" align="center">
- <tr>
- <td align="right" height="20">
- <input type="button" value="关闭窗口" onclick="window.close()" style="border-style: solid; border-width: 1px; background-color: #FFFFFF">
- </td>
- </tr>
- <tr>
- <td align="center" valign="top">
- <table width="90%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top" class="newTitle"><b><%=((Vector)vt.get(0)).get(1).toString()%></b><br> <hr></td>
- </tr>
- <tr>
- <td align="right">
- <%
- if(((Vector)vt.get(0)).get(2).toString().length()>1)
- out.println("作者:" + ((Vector)vt.get(0)).get(2).toString() + "");
- out.println(" 发布者:" + UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(12).toString())) + "");
- out.println(" 发布时间:" + StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy-MM-dd") + "");
- out.println(" 浏览次数:" + ((Vector)vt.get(0)).get(7).toString() + "");
- %><br>
- </td>
- </tr>
- <tr>
- <td align="left" valign="top">
- <%
- if(((Vector)vt.get(0)).get(9).toString().length()>2)
- out.println("<img src="" + ((Vector)vt.get(0)).get(9).toString() + "" border="0" align="left">");
- %>
- <%=((Vector)vt.get(0)).get(6).toString()%>
- </td>
- </tr>
- <tr>
- <td align="right"> <br>
- 摘自:
- <%
- if(((Vector)vt.get(0)).get(4).toString().length()>5)
- {
- out.println("<a href="" + ((Vector)vt.get(0)).get(4).toString() + "" target="_blank">");
- if(((Vector)vt.get(0)).get(3).toString().length()>1)
- {
- out.println("" + ((Vector)vt.get(0)).get(3).toString() + "");
- }
- else
- {
- out.println("" + ((Vector)vt.get(0)).get(4).toString() + "");
- }
- out.println("</a>");
- }
- else
- {
- if(((Vector)vt.get(0)).get(3).toString().length()>1)
- {
- out.println("" + ((Vector)vt.get(0)).get(3).toString() + "");
- }
- }
- %>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td align="right">
- <input type="button" value="关闭窗口" onclick="window.close()" style="border-style: solid; border-width: 1px; background-color: #FFFFFF">
- </td>
- </tr>
- </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>
- <%
- }
- %>