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

📄 file_create.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ 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;
   }
%>
<HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language="JavaScript1.2" src="/vnex/util/popSelect.js"></script>
<script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
<script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu_leader.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>

<script language="JavaScript1.2" type="text/javascript">

function dosubmit()
{
	if(isEmpty(form1.fileName.value) || isEmptyStr(form1.fileName.value) )
  	{	
		alert("文件名称不能为空!");
		form1.fileName.focus();
		return;
  	}
	if (isInvalidateLen(form1.fileName.value,30))
  	{
		alert("文件名称长度不能大于30!");
		form1.fileName.focus();
		return;
	}
	if(isEmpty(form1.uploadFile.value) || isEmptyStr(form1.uploadFile.value) )
  	{	
		alert("请选择上传文件!");
		form1.uploadFile.focus();
		return;
  	}
  	selectAll(document.forms[0].selectedIDList);
  	selectAll(document.forms[0].selectedIDListWrite);
  	form1.action= "/mainctrl/directory/management/file_create_process?id=<%=request.getParameter("id")%>";  
  	form1.encoding="multipart/form-data";
  	form1.submit();
}
</script>

<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff 
topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">

<DIV align=center>
<form name="form1" method="post" action="">
  <input type=hidden name=directoryId value=<%=request.getParameter("id")%>>
    <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
    <TBODY> 
    <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="#e0e0e0"> 
                    <td width="115"><font class=strong>&nbsp;文件名称:</font></td>
                    <td width="474"> 
                      <input type="text" name="fileName" size="24" class=text maxlength="30">&nbsp;
                            *&nbsp; (注:带*为必填内容) 
                    </td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="115" bgcolor="#fafafa"><font class=strong>&nbsp;上传文件:</font></td>
                    <td width="474"> 
                      <input type="file" name="uploadFile" class=text size="24" >&nbsp;
                            *&nbsp; (注:带*为必填内容)
                    </td>
                  </tr>
                  <tr bgcolor="#e0e0e0">
                    <td width="115"><font class=strong>&nbsp;限制读权限:</font></td>
                    <td width="474"> 
                      <input type="radio" onclick="form1.selectedIDList.disabled=false;" name="readControl" value="1" >
                      <input type="radio" onclick="form1.selectedIDList.disabled=true;" name="readControl" value="0" checked>
                      否</td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <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="">
                      <select name="selectedIDList" disabled size="6" 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="#e0e0e0"> 
                    <td width="115"><font class=strong>&nbsp;限制写权限:</font></td>
                    <td width="474"> 
                      <input type="radio" onclick="form1.selectedIDListWrite.disabled=false;" name="writeControl" value="1" checked>
                      <input type="radio" onclick="form1.selectedIDListWrite.disabled=true;"  name="writeControl" value="0" >
                      否</td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="115"><font class=strong>&nbsp;分配写权限:</font></td>
                    <td width="474"> 
                      <input type="hidden" name="updated2" value="false">
                      <input type="hidden" name="tempHidden2" value="">
                      <select name="selectedIDListWrite" size="6" 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="#e0e0e0"> 
                    <td colspan="2" height="30"> 
                      <input type="button" name="Submit21" value="保存" onClick="dosubmit()" class=text>
                      &nbsp;&nbsp;<input type="submit" name="Reset" value="重置" class=text>
                      &nbsp;&nbsp;
                      <input type="button" name="Submit22" value="放弃" onClick='history.back()' class=text>
                    </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" />
    </TBODY> 
  </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 + -