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

电子政务应用

开发平台:

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/thingCreateProcess";
  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.saveDate.value))
  52.   {
  53.      if(!isInteger(form.saveDate.value))
  54.      {
  55.         alert("奖状只能是数字!");
  56. form.saveDate.focus();
  57.         return false;
  58.      }
  59.   }  
  60.   if(!isEmpty(form.buildYear.value))
  61.   {
  62.      if(!isInteger(form.buildYear.value))
  63.      {
  64.         alert("奖牌只能是数字!");
  65. form.buildYear.focus();
  66.         return false;
  67.      }
  68.   }  
  69.   if(!isEmpty(form.secret.value))
  70.   {
  71.      if(!isInteger(form.secret.value))
  72.      {
  73.         alert("证书只能是数字!");
  74. form.secret.focus();
  75.         return false;
  76.      }
  77.   }  
  78.   return true;
  79. }
  80. </script>
  81. <DIV align=center>
  82. <form name="form1" method="post" >
  83.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  84.     <TBODY> 
  85.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  86.       <TR> 
  87.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  88.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  89.             <tr valign="top"> 
  90.               <td bgcolor="#fafafa" > 
  91.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  92.                   <tr valign="top" bgcolor="#cccccc"> 
  93.                     <td> 
  94.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  95.                         <tr bgcolor="#666666"> 
  96.                             
  97.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt; 
  98.                             <a href="/mainctrl/archive/todayArchives"><font color="#ffffff">档案管理</font></a>&gt;&gt;<a href="/mainctrl/thingIndex"><font color="#ffffff">实物档案</font></a>&gt;&gt; 
  99.                             新建实物档案</font> </td>
  100.                         </tr>
  101.                       </table>
  102.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  103.                   <tr bgcolor="#e0e0e0"> 
  104.                           <td colspan="4"> 
  105.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  106.                               <tr bgcolor="#e0e0e0"> 
  107.                                 <td width="24%"><strong>档案号</strong>:</td>
  108.                                 <td width="76%" bgcolor="#e0e0e0"> 
  109.                                   <input type="hidden" name="archiveId">
  110.                                   <input type="text" name="docName" size="30" class="text" maxlength="30">
  111.                                   * (注:带*为必填内容) </td>
  112.                               </tr>
  113.                               <tr bgcolor="#fafafa"> 
  114.                                 <td width="24%"><strong>类别:</strong></td>
  115.                                 <td width="76%"> 
  116.                                   <input type="text" name="topName" size="30" class="text" maxlength="30">
  117.                                 </td>
  118.                               </tr>
  119.                               <tr bgcolor="#e0e0e0"> 
  120.                                 <td width="24%"><strong>专业:</strong></td>
  121.                                 <td width="76%"> 
  122.                                   <input type="text" name="fileBef" size="30" class="text" maxlength="30">
  123.                                 </td>
  124.                               </tr>
  125.                               <tr bgcolor="#fafafa"> 
  126.                                 <td width="24%"><strong>名称:</strong></td>
  127.                                 <td width="76%"> 
  128.                                   <input type="text" name="title" size="30" class="text" maxlength="30">
  129.                                   * </td>
  130.                               </tr>
  131.                               <tr bgcolor="#e0e0e0"> 
  132.                                 <td width="24%"><strong>获奖级别:</strong></td>
  133.                                 <td width="76%"> 
  134.                                   <input type="text" name="wordKey" size="10" class="text" maxlength="10">
  135.                                 </td>
  136.                               </tr>
  137.                               <tr bgcolor="#fafafa"> 
  138.                                 <td width="24%"><strong>发奖单位:</strong></td>
  139.                                 <td width="76%" bgcolor="#fafafa"> 
  140.                                   <input type="text" name="dep" size="30" class="text" maxlength="30">
  141.                                 </td>
  142.                               </tr>
  143.                               <tr bgcolor="#e0e0e0"> 
  144.                                 <td width="24%"> 
  145.                                   <div align="left"><strong>获奖时间:</strong></div>
  146.                                 </td>
  147.                                 <td width="76%"> 
  148.                                   <div align="left"> 
  149.                                     <input type="text" name="buildDate" readonly size="10" class="text">
  150.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(buildDate);return false"> 
  151.                                     * </div>
  152.                                 </td>
  153.                               </tr>
  154.                               <tr bgcolor="#fafafa"> 
  155.                                 <td width="24%"><strong>奖状(个):</strong></td>
  156.                                 <td width="76%"> 
  157.                                   <input type="text" name="saveDate" size="4" class="text" maxlength="4">
  158.                                 </td>
  159.                               </tr>
  160.                               <tr bgcolor="#e0e0e0"> 
  161.                                 <td width="24%"> 
  162.                                   <div align="left"><strong>奖牌(个):</strong></div>
  163.                                 </td>
  164.                                 <td width="76%"> 
  165.                                   <input type="text" name="buildYear" size="4" class="text" maxlength="4">
  166.                                 </td>
  167.                               </tr>
  168.                               <tr bgcolor="#fafafa"> 
  169.                                 <td width="24%"> 
  170.                                   <div align="left"><strong>证书(本):</strong></div>
  171.                                 </td>
  172.                                 <td width="76%"> 
  173.                                   <input type="text" name="secret" size="4" class="text" maxlength="4">
  174.                                 </td>
  175.                               </tr>
  176.                               <tr bgcolor="#e0e0e0"> 
  177.                                 <td width="24%"><strong>附件:</strong></td>
  178.                                 <td width="76%" bgcolor="#e0e0e0"> 
  179.                                   <input type="file" name="attachment" class="text">
  180.                                 </td>
  181.                               </tr>
  182.                               <tr bgcolor="#fafafa"> 
  183.                                 <td width="24%"> 
  184.                                   <div align="left"><strong>备注:</strong></div>
  185.                                 </td>
  186.                                 <td width="76%"> 
  187.                                   <div align="left"> 
  188.                                     <input type="text" class="text" name="remark" maxlength="10" size="10" value="">
  189.                                   </div>
  190.                                 </td>
  191.                               </tr>
  192.                               <tr bgcolor="#fafafa"> 
  193.                                 <td colspan="2" align="center" height="30"> 
  194.                                   <input onClick="createArchive(this.form)" type="button" value="保存"  class="text">
  195.                                   &nbsp;&nbsp; 
  196.                                   <input type="reset" value="重置"  class="text">
  197.                                   &nbsp;&nbsp; 
  198.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  199.                                 </td>
  200.                               </tr>
  201.                             </table>
  202.                             </td>
  203.                   </tr>
  204.                      
  205.                 </table>
  206.                     </td>
  207.                     </tr>
  208.                   </table>
  209.                 </td>
  210.              </tr>
  211.           </table>
  212.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  213.        </TD>
  214.      </TR>
  215.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  216.     </TBODY> 
  217.   </TABLE>
  218.     <BR>
  219.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  220. </form>
  221. </DIV>
  222. </BODY>
  223. </HTML>