writ_create.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:14k
源码类别:

电子政务应用

开发平台:

Java

  1. <HTML>
  2. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  5. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_archives.js"></script>
  6. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  7. <script Language="JavaScript" src="/vnex/util/Popup.js"></script>
  8. <script language="javascript" src="/vnex/util/strUtil.js"></script>
  9. <script language="javascript" src="/vnex/validate.js"></script>
  10. <script language=javascript>
  11. function createArchive(form)
  12. {
  13.   if(checkIt(form))
  14.   {
  15.     form.buildDate.value=form.buildDate.value.replace("-","");
  16.     form.buildDate.value=form.buildDate.value.replace("-","");
  17.     form.action="/mainctrl/writCreateProcess";
  18.     form.encoding="multipart/form-data";
  19.     form.submit();
  20.   }  
  21. }
  22. function checkIt(form)
  23. {
  24.   if(isEmpty(form.docName.value))
  25.   {
  26.       alert("请输入所属卷号!");
  27.   form.docName.focus();
  28.       return false;
  29.   }
  30.   if(isEmpty(form.title.value))
  31.   {
  32.       alert("请输入内容摘要!");
  33.   form.title.focus();
  34.       return false;
  35.   }
  36.   if(isEmpty(form.buildDate.value))
  37.   {
  38.       alert("请选择文件日期!");
  39.   form.buildDate.focus();
  40.       return false;
  41.   }
  42.   if(!isEmpty(form.remark.value))
  43.   {
  44.      if(isInvalidateLen(form.remark.value, 400))
  45.      {
  46.         alert("内容概要不要超过250个汉字或1000个英文字符!");
  47. form.remark.focus();
  48.         return false;
  49.      }
  50.   }
  51.   if(!isEmpty(form.fileNum.value))
  52.   {
  53.      if(!isInteger(form.fileNum.value))
  54.      {
  55.         alert("卷内份数只能是数字!");
  56. form.fileNum.focus();
  57.         return false;
  58.      }
  59.   }  
  60.   return true;
  61. }
  62. </script>
  63. <DIV align=center>
  64. <form name="form1" method="post" >
  65.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  66.     <TBODY> 
  67.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  68.       <TR> 
  69.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  70.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  71.             <tr valign="top"> 
  72.               <td bgcolor="#fafafa" > 
  73.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  74.                   <tr valign="top" bgcolor="#cccccc"> 
  75.                     <td> 
  76.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  77.                         <tr bgcolor="#666666"> 
  78.                             
  79.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  80.                             <a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/writIndex"><font color="#ffffff">文书档案</font></a>&gt;&gt; 
  81.                             新建文书档案</font> </td>
  82.                         </tr>
  83.                       </table>
  84.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  85.                   <tr bgcolor="#e0e0e0"> 
  86.                           <td colspan="4"> 
  87.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  88.                               <!--
  89.   <tr bgcolor="#fafafa"> 
  90.                                 <td width="24%" > 
  91.                                   <div align="left"><strong>全综号:</strong></div>
  92.                                 </td>
  93.                                 <td width="76%" > 
  94.                                   <div align="left"> 
  95.                                     <input type="text" name="topName" size="30" class="text" value="铁通总公司" maxlength="30">
  96.                                     *&nbsp;(注:带*为必填内容) </div>
  97.                                 </td>
  98.                               </tr>
  99.   -->
  100.                               <tr bgcolor="#e0e0e0"> 
  101.                                 <td width="24%"><strong>所属卷号:</strong></td>
  102.                                 <td width="76%"> 
  103.                                     <input type="hidden" name="topName" size="30" class="text" value="铁通总公司" maxlength="30">
  104. <input type="hidden" name="archiveId">
  105.                                   <input type="text" name="docName" size="30" class="text" maxlength="30">
  106.                                   * (注:带*为必填内容) </td>
  107.                               </tr>
  108.                               <tr bgcolor="#fafafa"> 
  109.                                 <td width="24%"><strong>文件发文号:</strong></td>
  110.                                 <td width="76%"> 
  111.                                   <input type="text" name="fileBef" size="30" class="text" maxlength="30">
  112.                                 </td>
  113.                               </tr>
  114.                               <tr bgcolor="#e0e0e0"> 
  115.                                 <td width="24%"><strong>内容摘要:</strong></td>
  116.                                 <td width="76%"> 
  117.                                   <input type="text" name="title" size="30" class="text" maxlength="30">
  118.                                   * </td>
  119.                               </tr>
  120.                               <tr bgcolor="#fafafa"> 
  121.                                 <td width="24%"><strong>文件作者:</strong></td>
  122.                                 <td width="76%"> 
  123.                                   <input type="text" name="dep" size="30" class="text" maxlength="30">
  124.                                 </td>
  125.                               </tr>
  126.                               <tr bgcolor="#e0e0e0"> 
  127.                                 <td width="24%"> 
  128.                                   <div align="left"><strong>文件日期:</strong></div>
  129.                                 </td>
  130.                                 <td width="76%"> 
  131.                                   <div align="left">
  132.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  133.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  134.                                     * </div>
  135.                                 </td>
  136.                               </tr>
  137.                               <tr bgcolor="#fafafa"> 
  138.                                 <td width="24%"><strong>保管期限:</strong></td>
  139.                                 <td width="76%"> 
  140.                                   <select name="saveDate" size="1">
  141.                                     <option value="1">短期</option>
  142.                                     <option value="2">长期</option>
  143.                                     <option value="3">永久</option>
  144.                                   </select>
  145.                                 </td>
  146.                               </tr>
  147.                               <tr bgcolor="#e0e0e0"> 
  148.                                 <td width="24%"> 
  149.                                   <div align="left"><strong>密级:</strong></div>
  150.                                 </td>
  151.                                 <td width="76%"> 
  152.                                   <select name="secret" size="1">
  153.                                     <option value="1">一般</option>
  154. <option value="2">秘密</option>
  155.                                     <option value="3">机密</option>
  156.                                     <option value="4">绝密</option>
  157.                                   </select>
  158.                                 </td>
  159.                               </tr>
  160.                               <tr bgcolor="#fafafa"> 
  161.                                 <td width="24%"><strong>卷内份数:</strong></td>
  162.                                 <td width="76%"> 
  163.                                   <input type="text" name="fileNum" size="10" class="text" maxlength="6">
  164.                                 </td>
  165.                               </tr>
  166.                               <tr bgcolor="#e0e0e0"> 
  167.                                 <td width="24%"><strong>主题词:</strong></td>
  168.                                 <td width="76%"> 
  169.                                   <input type="text" name="wordKey" size="30" class="text" maxlength="30">
  170.                                 </td>
  171.                               </tr>
  172.                               <tr bgcolor="#fafafa"> 
  173.                                 <td width="24%"> 
  174.                                   <div align="left"><strong>年度:</strong></div>
  175.                                 </td>
  176.                                 <td width="76%"> 
  177.                                   <select style="WIDTH: 65px" name="buildYear" class="button">
  178. <option value="1996"><b>1996</b></option>
  179. <option value="1997"><b>1997</b></option>
  180. <option value="1998"><b>1998</b></option>
  181. <option value="1999"><b>1999</b></option>
  182. <option value="2000"><b>2000</b></option>
  183. <option value="2001" selected><b>2001</b></option>
  184. <option value="2002"><b>2002</b></option>
  185. <option value="2003"><b>2003</b></option>
  186. <option value="2004"><b>2004</b></option>
  187. <option value="2005"><b>2005</b></option>
  188. <option value="2006"><b>2006</b></option>
  189. <option value="2007"><b>2007</b></option>
  190. <option value="2008"><b>2008</b></option>
  191. <option value="2009"><b>2009</b></option>
  192. <option value="2010"><b>2010</b></option>
  193. <option value="2011"><b>2011</b></option>
  194. <option value="2012"><b>2012</b></option>
  195. <option value="2013"><b>2013</b></option>
  196. <option value="2014"><b>2014</b></option>
  197. <option value="2015"><b>2015</b></option>
  198. <option value="2016"><b>2016</b></option>
  199. <option value="2017"><b>2017</b></option>
  200. <option value="2018"><b>2018</b></option>
  201. <option value="2019"><b>2019</b></option>
  202. <option value="2020"><b>2020</b></option>
  203. <option value="2021"><b>2021</b></option>
  204. <option value="2022"><b>2022</b></option>
  205. <option value="2023"><b>2023</b></option>
  206. <option value="2024"><b>2024</b></option>
  207. <option value="2025"><b>2025</b></option>
  208. <option value="2026"><b>2026</b></option>
  209. <option value="2027"><b>2027</b></option>
  210. <option value="2028"><b>2028</b></option>
  211. <option value="2029"><b>2029</b></option>
  212. <option value="2030"><b>2030</b></option>
  213. <option value="2031"><b>2031</b></option>
  214. <option value="2032"><b>2032</b></option>
  215. <option value="2033"><b>2033</b></option>
  216. <option value="2034"><b>2034</b></option>
  217. <option value="2035"><b>2035</b></option>
  218. <option value="2036"><b>2036</b></option>
  219. <option value="2037"><b>2037</b></option>
  220. <option value="2038"><b>2038</b></option>
  221. <option value="2039"><b>2039</b></option>
  222. <option value="2040"><b>2040</b></option>
  223. <option value="2041"><b>2041</b></option>
  224. <option value="2042"><b>2042</b></option>
  225. <option value="2043"><b>2043</b></option>
  226. <option value="2044"><b>2044</b></option>
  227. <option value="2045"><b>2045</b></option>
  228. <option value="2046"><b>2046</b></option>
  229. <option value="2047"><b>2047</b></option>
  230. <option value="2048"><b>2048</b></option>
  231. <option value="2049"><b>2049</b></option>
  232. </select>年                              </td>
  233.                               </tr>
  234.                               <tr bgcolor="#e0e0e0"> 
  235.                                 <td width="24%"> 
  236.                                   <div align="left"><strong>排架:</strong></div>
  237.                                 </td>
  238.                                 <td width="76%"> 
  239.                                   <div align="left"> 
  240.                                     <input type="text" name="shelf" size="30" class="text" maxlength="30">
  241.                                   </div>
  242.                                 </td>
  243.                               </tr>
  244.                               <tr bgcolor="#fafafa"> 
  245.                                 <td width="24%"><strong>附件:</strong></td>
  246.                                 <td width="76%"> 
  247.                                   <input type="file" name="attachment" class="text">
  248.                                 </td>
  249.                               </tr>
  250.                               <tr bgcolor="#e0e0e0"> 
  251.                                 <td width="24%" bgcolor="#e0e0e0"> 
  252.                                   <div align="left"><strong>备注:</strong></div>
  253.                                 </td>
  254.                                 <td width="76%"> 
  255.                                   <div align="left"> 
  256.                                     <input type="text" name="remark"  class="text" size="10" value="" maxlength="10">
  257.                                   </div>
  258.                                 </td>
  259.                               </tr>
  260.                               <tr bgcolor="#fafafa"> 
  261.                                 <td colspan="2" align="center" height="30"> 
  262.                                   <input onClick="createArchive(this.form)" type="button" value="保存"  class="text">
  263.                                   &nbsp;&nbsp; 
  264.                                   <input type="reset" value="重置"  class="text">
  265.                                   &nbsp;&nbsp; 
  266.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  267.                                 </td>
  268.                               </tr>
  269.                             </table>
  270.                             </td>
  271.                   </tr>
  272.                 </table>
  273.                     </td>
  274.                     </tr>
  275.                   </table>
  276.                 </td>
  277.              </tr>
  278.           </table>
  279.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  280.        </TD>
  281.      </TR>
  282.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  283.     </TBODY> 
  284.   </TABLE>
  285.     <BR>
  286.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  287. </form>
  288. </DIV>
  289. </BODY>
  290. </HTML>