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

电子政务应用

开发平台:

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.startTime.value=form.startTime.value.replace("-","");
  16.     form.startTime.value=form.startTime.value.replace("-","");
  17.     form.returnTime.value=form.returnTime.value.replace("-","");
  18.     form.returnTime.value=form.returnTime.value.replace("-","");
  19.     form.action="/mainctrl/borrowCreateProcess";
  20.     form.submit();
  21.   }  
  22. }
  23. function checkIt(form)
  24. {
  25.   if(isEmpty(form.startTime.value))
  26.   {
  27.       alert("请选择借出日期!");
  28.   form.startTime.focus();
  29.       return false;
  30.   }
  31.   if(isEmpty(form.returnTime.value))
  32.   {
  33.       alert("请选择偿还日期!");
  34.   form.returnTime.focus();
  35.       return false;
  36.   }
  37.   if(!isEmpty(form.remark.value))
  38.   {
  39.      if(isInvalidateLen(form.remark.value, 400))
  40.      {
  41.         alert("内容概要不要超过250个汉字或1000个英文字符!");
  42. form.remark.focus();
  43.         return false;
  44.      }
  45.   }
  46.   return true;
  47. }
  48. </script>
  49. <DIV align=center>
  50. <form name="form1" method="post" >
  51.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  52.     <TBODY> 
  53.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  54.       <TR> 
  55.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  56.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  57.             <tr valign="top"> 
  58.               <td bgcolor="#fafafa" > 
  59.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  60.                   <tr valign="top" bgcolor="#cccccc"> 
  61.                     <td> 
  62.                       <table width="600" border="0" cellpadding="2" cellspacing="0">
  63.                         <tr bgcolor="#666666"> 
  64.                             
  65.                           <td><font class="strongw"> <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/archives/main"><font color="#ffffff">档案管理</font></a>&gt;&gt; 
  66.                             新建借阅记录</font> </td>
  67.                         </tr>
  68.                       </table>
  69.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  70.                   <tr bgcolor="#e0e0e0"> 
  71.                           <td colspan="4"> 
  72.                             <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  73.                               <tr bgcolor="#fafafa"> 
  74.                                 <td width="24%"> 
  75.                                   <input type="hidden" name="archiveId" value="<%=request.getParameter("archiveId")%>">
  76.                                   <input type="hidden" name="type" value="<%=request.getParameter("type")%>">
  77.                                   <div align="left"><strong>借出日期:</strong></div>
  78.                                 </td>
  79.                                 <td width="76%"> 
  80.                                   <div align="left"> 
  81.                                     <input type="text" name="startTime" readonly size="10" class="text">
  82.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(startTime);return false">* 
  83.                                     (注:带*为必填内容) </div>
  84.                                 </td>
  85.                               </tr>
  86.                               <tr bgcolor="#e0e0e0"> 
  87.                                 <td width="24%"> 
  88.                                   <div align="left"><strong>偿还日期:</strong></div>
  89.                                 </td>
  90.                                 <td width="76%"> 
  91.                                   <div align="left"> 
  92.                                     <input type="text" name="returnTime" readonly size="10" class="text">
  93.                                     &nbsp; <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="选择借阅档案日期" onClick="fPopUpCalendarDlg(returnTime);return false"> 
  94.                                     * </div>
  95.                                 </td>
  96.                               </tr>
  97.                               <tr bgcolor="#fafafa"> 
  98.                                 <td width="24%"> 
  99.                                   <div align="left"><strong>借阅人:</strong></div>
  100.                                 </td>
  101.                                 <td width="76%"> 
  102.                                   <div align="left"> 
  103.                                     <input type="text" name="lendMan" size="30" class="text" value="">
  104.                                   </div>
  105.                                 </td>
  106.                               </tr>
  107.                               <tr bgcolor="#e0e0e0"> 
  108.                                 <td width="24%"> 
  109.                                   <div align="left"><strong>备注:</strong></div>
  110.                                 </td>
  111.                                 <td width="76%" bgcolor="#e0e0e0"> 
  112.                                   <div align="left"> 
  113.                                     <textarea name="remark" cols="30" class="text"></textarea>
  114.                                   </div>
  115.                                 </td>
  116.                               </tr>
  117.                               <tr bgcolor="#fafafa"> 
  118.                                 <td colspan="2" align="center" height="30"> 
  119.                                   <input onClick="createArchive(this.form)" type="button" value="保存"  class="text">
  120.                                   &nbsp;&nbsp; 
  121.                                   <input type="reset" value="重置"  class="text">
  122.                                   &nbsp;&nbsp; 
  123.                                   <input type="button" value="放弃"  class="text" onClick="history.back()">
  124.                                 </td>
  125.                               </tr>
  126.                             </table>
  127.                             </td>
  128.                   </tr>
  129.                 </table>
  130.                     </td>
  131.                     </tr>
  132.                   </table>
  133.                 </td>
  134.              </tr>
  135.           </table>
  136.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  137.        </TD>
  138.      </TR>
  139.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  140.     </TBODY> 
  141.   </TABLE>
  142.     <BR>
  143.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  144. </form>
  145. </DIV>
  146. </BODY>
  147. </HTML>