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

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. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>新闻管理-- GForce OA 2.0</title>
  8. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <script language="JavaScript" type="text/javascript">
  11. function checkAddArticle()
  12. {
  13.     if(document.addarticle.Title.value=="")
  14.     {
  15.         alert("请输入主题内容!");
  16.         document.addarticle.Title.focus();
  17.         return false;
  18.     }
  19. }
  20. </script>
  21. <style type="text/css">
  22. <!--
  23. .imgtd {
  24.     border: 1px solid #0A0A0A;
  25. }
  26. -->
  27. </style>
  28. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0" onload="document.addarticle.Title.focus();">
  30. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  31.     <tr>
  32.         <td align="center" valign="top"><p>&nbsp;</p>
  33.            <table width="90%" border="0" cellpadding="0" cellspacing="0">
  34.                 <tr align="center" valign="middle">
  35.                 <th nowrap colspan=2 align="center"><font color="#000000">信&nbsp;息&nbsp;新&nbsp;增</font></th>
  36.               </tr>
  37.                <tr><td>&nbsp;</td>
  38.                 </tr>
  39.               </table>
  40. <%
  41. Request m_request = new Request(request);
  42. int iSysDirID = m_request.GetInt("SysDirID");
  43. int intUserID = m_session.GetInt("UserID");
  44. %>
  45.         <form name="addarticle" action="AddArticleAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddArticle();">
  46.         <table  border="1" cellpadding="0" cellspacing="0" width="90%">
  47.           <tr>
  48.             <td width="80" align="right" valign="middle"><font color="#0A0A0A">标&nbsp;&nbsp;&nbsp;&nbsp;题:&nbsp;</font></td>
  49.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Title" type="text" maxlength="100" size="37">
  50.             </td>
  51.           </tr>
  52.           <tr>
  53.             <td align="right" valign="middle"><font color="#0A0A0A">作&nbsp;&nbsp;&nbsp;&nbsp;者:&nbsp;</font></td>
  54.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Author" type="text" maxlength="50" size="20">
  55.             </td>
  56.           </tr>
  57.           <tr>
  58.             <td align="right" valign="middle"><font color="#0A0A0A">出&nbsp;版&nbsp;社:&nbsp;</font></td>
  59.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Publisher" type="text" maxlength="100" size="37">
  60.             </td>
  61.           </tr>
  62.           <tr>
  63.             <td align="right" valign="middle"><font color="#0A0A0A">来源网址:&nbsp;</font></td>
  64.             <td colspan="3" align="left" valign="middle" nowrap>
  65.              &nbsp;<input name="FromURL" type="text" maxlength="150" size="37">
  66.               <%java.util.Date t_Date = new java.util.Date();%>
  67.               <input name="PublishDate" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd")%>">
  68.             </td>
  69.           </tr>
  70.           <tr>
  71.             <td align="right" valign="middle"><font color="#0A0A0A">内&nbsp;&nbsp;&nbsp;&nbsp;容:&nbsp;</font></td>
  72.             <td colspan="3" align="left" valign="middle" nowrap height="280">
  73.                   <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=Content" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
  74.                   <textarea name="Content" cols="75" rows="3" readonly="true" style="display:none;"></textarea>
  75.               <input name="ViewTimes" type="hidden" Value="0"> </td>
  76.           </tr>
  77.           <tr>
  78.             <td align="right" valign="middle"><font color="#0A0A0A">是否热点:&nbsp;</font></td>
  79.             <td align="left" valign="middle" nowrap colspan="3"> <font color="#0A0A0A">
  80.               &nbsp;<input name="IsHot" type="radio" value="1">是
  81.               &nbsp;<input name="IsHot" type="radio" value="0" checked>否</font>
  82.              </td>
  83.           </tr>
  84.           <tr>
  85.             <td align="right" valign="middle"><font color="#0A0A0A">关&nbsp;键&nbsp;字:&nbsp;</font></td>
  86.             <td align="left" valign="middle" nowrap colspan="3">&nbsp;<input name="KeyWords" type="text" maxlength="100" size="37">
  87.               <input name="PublishUserID" type="hidden" Value="<%=intUserID%>">
  88.             </td>
  89.           </tr>
  90.         </table>
  91.         <table width="90%" border="0">
  92.                 <tr>
  93.                     <td>&nbsp;</td>
  94.                </tr>
  95.                 <tr>
  96.                   <td>&nbsp;</td>
  97.                    <td align="right" valign="middle" nowrap>
  98.                         <td colspan="3" align="right" valign="middle" nowrap><input type="submit" value="确 定" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返 回" onclick="window.location='ArticleManage.jsp?SysDirID=<%=iSysDirID%>';" style="background-color: #FFFFFF; border: 1 solid #000000">
  99.                      </td>
  100.                 </tr>
  101.                 <tr>
  102.                     <td align="right" valign="middle">&nbsp;</td>
  103.                </tr>
  104.             </table>
  105.         </form>
  106.         </td>
  107.     </tr>
  108. </table>
  109. </body>
  110. </html>