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

电子政务应用

开发平台:

Java

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