EditArticle.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:7k
源码类别:
OA系统
开发平台:
Java
- <%@ 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 intArticleID = m_request.GetInt("ID");
- int iSysDirID = m_request.GetInt("SysDirID");
- if(intArticleID <1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的新闻,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = ArticleManager.getRecordByID(intArticleID);
- if(vt.size()==1)
- {
- if(("," + iSysDirID + "," + SystemDirectoryManager.getSubSystemDirectoryIDs(iSysDirID) + ",").indexOf("," + ((Vector)vt.get(0)).get(11).toString() + ",")>=0)
- {
- %>
- <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 checkEditArticle()
- {
- if(document.editarticle.Title.value=="")
- {
- alert("请输入主题内容!");
- document.editarticle.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" onload="document.editarticle.Title.focus();">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <table width="90%" border="0" cellpadding="0" cellspacing="0">
- <tr align="center" valign="middle">
- <th nowrap colspan=2 align="center"><font color="#000000">信 息 修 改</font></th>
- </tr>
- <tr><td> </td>
- </tr>
- </table>
- <form name="editarticle" action="EditArticleAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkEditArticle();">
- <table border="1" cellpadding="1" cellspacing="1" 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="Title" type="text" maxlength="100" size="37" Value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- <input name="ID" type="hidden" Value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">作 者: </font></td>
- <td colspan="3" align="left" valign="middle" nowrap> <input name="Author" type="text" maxlength="50" size="20" Value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">出 版 社: </font></td>
- <td colspan="3" align="left" valign="middle" nowrap> <input name="Publisher" type="text" maxlength="100" size="37" Value="<%=((Vector)vt.get(0)).get(3).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">来源网址: </font></td>
- <td colspan="3" align="left" valign="middle" nowrap>
- <input name="FromURL" type="text" maxlength="150" size="37" Value="<%=((Vector)vt.get(0)).get(4).toString()%>">
- <input name="PublishDate" type="hidden" value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(5).toString(),"yyyy-MM-dd")%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">内 容: </font></td>
- <td colspan="3" align="left" valign="middle" nowrap height="280">
- <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=Content" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
- <textarea name="Content" cols="75" rows="3" readonly="true" style="display:none;"><%=((Vector)vt.get(0)).get(6).toString()%></textarea>
- <input name="ViewTimes" type="hidden" Value="<%=((Vector)vt.get(0)).get(7).toString()%>"> </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">是否热点: </font></td>
- <td align="left" valign="middle" nowrap colspan="3"> <font color="#0A0A0A">
- <input name="IsHot" type="radio" value="1" <%if(((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase("true"))out.print("checked");%>>是
- <input name="IsHot" type="radio" value="0" <%if(((Vector)vt.get(0)).get(8).toString().equalsIgnoreCase("false"))out.print("checked");%>>否</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">关 键 字: </font></td>
- <td align="left" valign="middle" nowrap colspan="3"> <input name="KeyWords" type="text" maxlength="100" size="37" Value="<%=((Vector)vt.get(0)).get(10).toString()%>">
- <input name="PublishUserID" type="hidden" Value="<%=((Vector)vt.get(0)).get(12).toString()%>">
- </td>
- </tr>
- </table>
- <table width="90%" border="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td align="right" valign="middle" nowrap>
- <td colspan="3" align="right" valign="middle" nowrap><input type="submit" value="确 定" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="button" value="返 回" onclick="window.location='ArticleManage.jsp?SysDirID=<%=iSysDirID%>';" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </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>
- <%
- }
- }
- %>