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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  3. <%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
  4. <jsp:useBean id="dPermissionProxy"  class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean"  scope="Application"/>
  5. <jsp:useBean id="BusinessName"  class="com.vnex.intranet.pub.BusinessSession"  scope="session"/>
  6. <%
  7. int id = Integer.parseInt(request.getParameter("id"));
  8. int empId = BusinessName.getEmpId();
  9. System.out.println("empId---"+empId);
  10. System.out.println("id---"+id);
  11. if (!(dPermissionProxy.haveDirectoryWriteRight(id,empId)))
  12. {
  13.         response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=modify");
  14.         return;
  15.    }
  16. %>
  17. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  18. <script language="JavaScript1.2" src="/vnex/util/popSelect.js"></script>
  19. <script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
  20. <script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
  21. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
  22. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  23. <script language="JavaScript1.2" type="text/javascript">
  24. function dosubmit()
  25. {
  26. if(isEmpty(form1.fileName.value) || isEmptyStr(form1.fileName.value) )
  27.    {
  28. alert("文件名称不能为空!");
  29. form1.fileName.focus();
  30. return;
  31.    }
  32. if (isInvalidateLen(form1.fileName.value,30))
  33.    {
  34. alert("文件名称长度不能大于30!");
  35. form1.fileName.focus();
  36. return;
  37. }
  38. if(isEmpty(form1.uploadFile.value) || isEmptyStr(form1.uploadFile.value) )
  39.    {
  40. alert("请选择上传文件!");
  41. form1.uploadFile.focus();
  42. return;
  43.    }
  44.    selectAll(document.forms[0].selectedIDList);
  45.    selectAll(document.forms[0].selectedIDListWrite);
  46.    form1.action= "/mainctrl/directory/management/file_create_process?id=<%=request.getParameter("id")%>";  
  47.    form1.encoding="multipart/form-data";
  48.    form1.submit();
  49. }
  50. </script>
  51. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
  52. topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  53. <DIV align=center>
  54. <form name="form1" method="post" action="">
  55.   <input type=hidden name=directoryId value=<%=request.getParameter("id")%>>
  56.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  57.     <TBODY> 
  58.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" /> 
  59.     <TR> 
  60.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <!--菜单开始 --> 
  61.           <br>
  62.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  63.             <tr valign="top" bgcolor="#fafafa"> 
  64.               <td bgcolor="#fafafa">  
  65.                   <table width="600" border="0" cellpadding="2" cellspacing="0">
  66.                     <tr> 
  67.                       <td bgcolor="#666666"><font class=strongw>
  68. <directory:DirectoryNaviBar1 isAdmin="true"/>文件上载</font></td>
  69.                     </tr>
  70.                   </table>                                  
  71.                 <table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
  72.                   <tr bgcolor="#e0e0e0"> 
  73.                     <td width="115"><font class=strong>&nbsp;文件名称:</font></td>
  74.                     <td width="474"> 
  75.                       <input type="text" name="fileName" size="24" class=text maxlength="30">&nbsp;
  76.                             *&nbsp; (注:带*为必填内容) 
  77.                     </td>
  78.                   </tr>
  79.                   <tr bgcolor="#fafafa"> 
  80.                     <td width="115" bgcolor="#fafafa"><font class=strong>&nbsp;上传文件:</font></td>
  81.                     <td width="474"> 
  82.                       <input type="file" name="uploadFile" class=text size="24" >&nbsp;
  83.                             *&nbsp; (注:带*为必填内容)
  84.                     </td>
  85.                   </tr>
  86.                   <tr bgcolor="#e0e0e0">
  87.                     <td width="115"><font class=strong>&nbsp;限制读权限:</font></td>
  88.                     <td width="474"> 
  89.                       <input type="radio" onclick="form1.selectedIDList.disabled=false;" name="readControl" value="1" >
  90.                       是 
  91.                       <input type="radio" onclick="form1.selectedIDList.disabled=true;" name="readControl" value="0" checked>
  92.                       否</td>
  93.                   </tr>
  94.                   <tr bgcolor="#fafafa"> 
  95.                     <td width="115"><font class=strong>&nbsp;分配读权限:</font></td>
  96.                     <td width="474"> 
  97.                       <input type="hidden" name="updated" value="false">
  98.                       <input type="hidden" name="tempHidden" value="">
  99.                       <select name="selectedIDList" disabled size="6" multiple style="width:260" >
  100.                       </select>
  101.                       <input type="button" style="width:70px" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList( selectedIDList )">&nbsp;
  102.                       <input type="button"  name="Submit5" value="删除" class="file" onClick="javascript:remove1( selectedIDList )">
  103.                     </td>
  104.                   </tr>
  105.                   <tr bgcolor="#e0e0e0"> 
  106.                     <td width="115"><font class=strong>&nbsp;限制写权限:</font></td>
  107.                     <td width="474"> 
  108.                       <input type="radio" onclick="form1.selectedIDListWrite.disabled=false;" name="writeControl" value="1" checked>
  109.                       是 
  110.                       <input type="radio" onclick="form1.selectedIDListWrite.disabled=true;"  name="writeControl" value="0" >
  111.                       否</td>
  112.                   </tr>
  113.                   <tr bgcolor="#fafafa"> 
  114.                     <td width="115"><font class=strong>&nbsp;分配写权限:</font></td>
  115.                     <td width="474"> 
  116.                       <input type="hidden" name="updated2" value="false">
  117.                       <input type="hidden" name="tempHidden2" value="">
  118.                       <select name="selectedIDListWrite" size="6" multiple style="width:260" >
  119.                       </select>
  120.                       <input type="button" style="width:70px" name="Submit2" value="按部门选择" class="file" onClick="javascript:addList2(selectedIDListWrite)">&nbsp;
  121.                       <input type="button"  name="Submit6" value="删除" class="file" onClick="javascript:remove1(selectedIDListWrite)">
  122.                     </td>
  123.                   </tr>
  124.                   <tr align="center" bgcolor="#e0e0e0"> 
  125.                     <td colspan="2" height="30"> 
  126.                       <input type="button" name="Submit21" value="保存" onClick="dosubmit()" class=text>
  127.                       &nbsp;&nbsp;<input type="submit" name="Reset" value="重置" class=text>
  128.                       &nbsp;&nbsp;
  129.                       <input type="button" name="Submit22" value="放弃" onClick='history.back()' class=text>
  130.                     </td>
  131.                   </tr>
  132.                 </table>
  133.                   </td></tr></table>
  134.           <br>
  135.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  136.        </TD>
  137.      </TR>
  138.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  139.     </TBODY> 
  140.   </TABLE>
  141.     <BR>
  142.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  143. </form>
  144. </DIV>
  145. </BODY>
  146. </HTML>