Directory_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <!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="javascript" src="/vnex/validate.js" ></script>
- <script language=JavaScript>
- function isValidChar(str)
- {
- var i,j,strTemp;
- strTemp="<>";
- for (i=0;i<str.length;i++)
- {
- j=strTemp.indexOf(str.charAt(i));
- if (j!=-1)
- {
- return false;
- }
- }
- return true;
- }
- function check()
- {
- if (!stripWhitespace(document.myform.directoryName.value) || document.myform.directoryName.value=="" || document.myform.directoryName.value.length>50)
- {
- alert("办事指南名不能为空,并且少于50个字。");
- document.myform.directoryName.focus();
- return false;
- }
- if (document.myform.directoryDepartment.value==0)
- {
- alert("请选择部门。");
- document.myform.directoryDepartment.focus();
- return false;
- }
- if (document.myform.attachmentUrl.value=="")
- {
- alert("必须上传附件。");
- document.myform.attachmentUrl.focus();
- return false;
- }
- if(!isValidChar(myform.attachmentUrl.value))
- {
- alert("上传文件不能包括 < > 这些特殊字符。");
- return false;
- }
- else
- return true;
- }
- function createDirectory()
- {
- if( !check() )
- {
- return false;
- }
- myform.action= "/mainctrl/commoninfo/directory/createDirectorySuccess";
- myform.encoding="multipart/form-data";
- myform.submit();
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <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"><br>
- <!--个人信息开始 -->
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td bgcolor="#fafafa">
- <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
- <tr>
- <td colspan="2" height="15" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>><a href="/mainctrl/commoninfo/directory/getDirectoryList"><font color="#FFFFFF">办事指南</font></a>>>新增办事指南
- </font></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"><font class="strong"> 名称:</font></td>
- <td width="487">
- <input type="text" name="directoryName" class="file" size="24"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"><font class="strong"> 发布部门:</font></td>
- <td width="487">
- <org:DivisionList>
- <select name="directoryDepartment">
- <option value="0" selected>-请选择-</option>
- <vnex:items>
- <option value="<org:DivisionAttribute attribute="name"/>" <org:DivisionAttribute attribute="isSelectedByName"/> >
- <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items>
- </select> *
- </org:DivisionList>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"><font class="strong"> 上传文件:</font></td>
- <td width="487">
- <input type="file" name="attachmentUrl" class="text" size="24"> *
- </td>
- </tr>
- <tr align="center">
- <td colspan="2" height="30" bgcolor="#fafafa">
- <input type="button" name="Submit32" value="保存" class="file" onClick="createDirectory()">
- <input type="reset" name="Submit33" value="重置" class="file">
- <input type="button" name="Submit34" value="放弃" class="file" onClick="history.back()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <br>
- <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>