⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 directory_create.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ taglib uri="/vnex_directory.tld" prefix="directory" %>
<jsp:useBean id="dPermissionProxy"  class="com.vnex.intranet.directory.proxy.DirectoryPermissionProxyBean"  scope="Application"/>
<jsp:useBean id="BusinessName"  class="com.vnex.intranet.pub.BusinessSession"  scope="session"/>
<%
	int id = Integer.parseInt(request.getParameter("id"));
	int empId = BusinessName.getEmpId();
	System.out.println("empId---"+empId);
	System.out.println("id---"+id);	
	if (!(dPermissionProxy.haveDirectoryWriteRight(id,empId)))
	{
        response.sendRedirect("/mainctrl/directory/directory_deny?id="+id+"&type=modify");
        return;
   }
%>
<script language="JavaScript" src="/vnex/util/popSelect.js"></script>
<script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
<script language="JavaScript" src="/vnex/util/validate.js"></script>

<script language="JavaScript">
function dosubmit()
{
  	if(isEmpty(form1.directoryName.value) || isEmptyStr(form1.directoryName.value) )
  	{	
		alert("目录名称不能为空!");
		form1.directoryName.focus();
		return;
  	}
	if (isInvalidateLen(form1.directoryName.value,30))
	{
		alert("目录名称长度不能大于30!");
		form1.directoryName.focus();
		return;
	}	
    selectAll(document.forms[0].selectedIDList);
    selectAll(document.forms[0].selectedIDListWrite);
	form1.action="/mainctrl/directory/management/directory_create_process";
	form1.submit();
}
</script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff
topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">

<script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>

<DIV align=center>
<form name="form1" method="post" action="">
<input type=hidden name=directoryId value=<%=id%>>
  <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
    <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" /> 
    <TR>
        <TD colSpan=3 align="center" class="iframestyle" valign="top">
          <br>
          <table width="600" border="1" cellspacing="1" bordercolor="#666666">
            <tr valign="top" bgcolor="#fafafa">
              <td bgcolor="#fafafa" >
                <table width="600" border="0" cellpadding="2" cellspacing="0">
                    <tr>
                      <td bgcolor="#666666"><font class=strongw>
			<directory:DirectoryNaviBar1 isAdmin="true"/>
				增加目录</font></td>
                    </tr>
                  </table>
                <table width="600" border="0" cellpadding="2" cellspacing="1" class=title>
                  <tr bgcolor="#fafafa">
                    <td width="115"><font class=strong>&nbsp;目录名称:</font></td>
                    <td width="474">
                      <input type="text" name="directoryName" size="24" class=text maxlength="30">&nbsp;
                            *&nbsp; (注:带*为必填内容) 
                    </td>
                  </tr>
                  <tr bgcolor="#e0e0e0">
                    <td width="115"><font class=strong>&nbsp;是否叶子结点:</font></td>
                    <td width="474">
                      <input type="radio" name="isLeaf" value="1" checked>是
                      <input type="radio" name="isLeaf" value="0">否</td>
                  </tr>
                  <tr bgcolor="#fafafa">
                    <td width="115"><font class=strong>&nbsp;限制读权限:</font></td>
                    <td width="474">
                      <input type="radio" name="readControl" onclick="form1.selectedIDList.disabled=false;" value="1">是
                      <input type="radio" name="readControl" onclick="form1.selectedIDList.disabled=true;" value="0" checked>否</td>
                  </tr>
                  <tr bgcolor="#e0e0e0">
                    <td width="115"><font class=strong>&nbsp;分配读权限:</font></td>
                    <td width="474">
                      <input type="hidden" name="updated" value="false">
                      <input type="hidden" name="tempHidden" value="false">

                      <select disabled name="selectedIDList" size="4" multiple style="width:260" >
                      </select>
                      <input type="button" style="width:70px" name="Submit1" value="按部门选择" class="file" onClick="javascript:addList(selectedIDList)">&nbsp;
                        <input type="button"  name="Submit5" value="删除" class="file" onClick="javascript:remove1(selectedIDList)">
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa">
                    <td width="115"><font class=strong>&nbsp;限制写权限:</font></td>
                    <td width="474">
                      <input type="radio" name="writeControl" onclick="form1.selectedIDListWrite.disabled=false;" value="1" checked>是
                      <input type="radio" name="writeControl" onclick="form1.selectedIDListWrite.disabled=true;" value="0">否</td>
                  </tr>
                  <tr bgcolor="#e0e0e0">
                    <td width="115"><font class=strong>&nbsp;分配写权限:</font></td>
                    <td width="474">                      
                      <select name="selectedIDListWrite" size="4" multiple style="width:260" ></select>
                      <input type="button" style="width:70px" name="Submit2" value="按部门选择" class="file" onClick="javascript:addList2(selectedIDListWrite)">&nbsp;
                        <input type="button"  name="Submit6" value="删除" class="file" onClick="javascript:remove1(selectedIDListWrite)">
                    </td>
                  </tr>
                  <tr align="center" bgcolor="#fafafa">
                    <td colspan="2" height="30">
                      <input type="button" name="Submit3" class=text value="保存" onClick="dosubmit()">
                      &nbsp;&nbsp;<input type="submit" name="Submit" value="重置" class=text>
                     &nbsp;&nbsp;
                      <input type="button" name="Button" value="放弃" class=text onClick="history.back()">
                    </td>
                  </tr>
                </table>
              </td></tr></table>
          <br>
          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
       </TD>
     </TR>
     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />

  </TABLE>
    <BR>
  <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
</form>
</DIV>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -