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

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">
  33.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  34.         <tr>
  35.           <td height="50" valign="top" background="../images/dy-back.gif">
  36.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  37.               <tr valign="middle">
  38.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  39.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">信息新增</font></strong></td>
  40.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  41.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  42.                  <!-- <img src="/images/Single.gif" onMouseOver="this.src='/images/Single_a.gif';" onMouseOut="this.src='/images/Single.gif';" border="0" height="22" width="59" alt="">&nbsp;-->
  43.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  44.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  45.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  46.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  47.                 </td>
  48.               </tr>
  49.             </table>
  50.           </td>
  51.         </tr>
  52.       </table>
  53. <%
  54. Request m_request = new Request(request);
  55. int iSysDirID = m_request.GetInt("SysDirID");
  56. int intUserID = m_session.GetInt("UserID");
  57. %>
  58.         <form name="addarticle" action="AddArticleAction.jsp?SysDirID=<%=iSysDirID%>" method="post" onSubmit="javascript:return checkAddArticle();">
  59.         <table  border="1" cellpadding="0" cellspacing="0" width="90%">
  60.           <tr>
  61.             <td width="80" align="right" valign="middle"><font color="#0A0A0A">标&nbsp;&nbsp;&nbsp;&nbsp;题:&nbsp;</font></td>
  62.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Title" type="text" maxlength="100" size="37">
  63.             </td>
  64.           </tr>
  65.           <tr>
  66.             <td align="right" valign="middle"><font color="#0A0A0A">作&nbsp;&nbsp;&nbsp;&nbsp;者:&nbsp;</font></td>
  67.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Author" type="text" maxlength="50" size="20">
  68.             </td>
  69.           </tr>
  70.           <tr>
  71.             <td align="right" valign="middle"><font color="#0A0A0A">出&nbsp;版&nbsp;社:&nbsp;</font></td>
  72.             <td colspan="3" align="left" valign="middle" nowrap>&nbsp;<input name="Publisher" type="text" maxlength="100" size="37">
  73.             </td>
  74.           </tr>
  75.           <tr>
  76.             <td align="right" valign="middle"><font color="#0A0A0A">来源网址:&nbsp;</font></td>
  77.             <td colspan="3" align="left" valign="middle" nowrap>
  78.              &nbsp;<input name="FromURL" type="text" maxlength="150" size="37">
  79.               <%java.util.Date t_Date = new java.util.Date();%>
  80.               <input name="PublishDate" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd")%>">
  81.             </td>
  82.           </tr>
  83.           <tr>
  84.             <td align="right" valign="middle"><font color="#0A0A0A">内&nbsp;&nbsp;&nbsp;&nbsp;容:&nbsp;</font></td>
  85.             <td colspan="3" align="left" valign="middle" nowrap height="280">
  86.                   <IFRAME ID="WebEditor1" src="/WebEditor/WebEditor.jsp?id=Content" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
  87.                   <textarea name="Content" cols="75" rows="3" readonly="true" style="display:none;"></textarea>
  88.               <input name="ViewTimes" type="hidden" Value="0"> </td>
  89.           </tr>
  90.           <tr>
  91.             <td align="right" valign="middle"><font color="#0A0A0A">是否热点:&nbsp;</font></td>
  92.             <td align="left" valign="middle" nowrap colspan="3"> <font color="#0A0A0A">
  93.               &nbsp;<input name="IsHot" type="radio" value="1">是
  94.               &nbsp;<input name="IsHot" type="radio" value="0" checked>否</font>
  95.              </td>
  96.           </tr>
  97.           <tr>
  98.             <td align="right" valign="middle"><font color="#0A0A0A">关&nbsp;键&nbsp;字:&nbsp;</font></td>
  99.             <td align="left" valign="middle" nowrap colspan="3">&nbsp;<input name="KeyWords" type="text" maxlength="100" size="37">
  100.               <input name="PublishUserID" type="hidden" Value="<%=intUserID%>">
  101.             </td>
  102.           </tr>
  103.         </table>
  104.         <table width="90%" border="0">
  105.                 <tr>
  106.                     <td>&nbsp;</td>
  107.                </tr>
  108.                 <tr>
  109.                   <td>&nbsp;</td>
  110.                    <td align="right" valign="middle" nowrap>
  111.                         <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">
  112.                      </td>
  113.                 </tr>
  114.                 <tr>
  115.                     <td align="right" valign="middle">&nbsp;</td>
  116.                </tr>
  117.             </table>
  118.         </form>
  119.         </td>
  120.     </tr>
  121. </table>
  122. </body>
  123. </html>