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

电子政务应用

开发平台:

Java

  1. <%@ page import="com.vnex.intranet.pub.BusinessSession"%>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  4. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  5. <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
  6. <script language="JavaScript1.2" src="/vnex/util/strutil.js"></script>
  7. <script language="Javascript">
  8. function dosubmit()
  9. {
  10.    if(isEmpty(form1.categoryName.value) || isEmptyStr(form1.categoryName.value) )
  11. {
  12. alert("目录名称不能为空!");
  13. form1.categoryName.focus();
  14. return false;
  15. }
  16. if (form1.categoryName.value.length > 10)
  17. {
  18. alert("目录名称不能大于10!");
  19. form1.categoryName.focus();
  20. return false;
  21. }
  22. form1.action="/mainctrl/system/categoryCreate";
  23. form1.submit();
  24. }
  25. </script>
  26. <STYLE>
  27. #ssm2 A {
  28. FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana; TEXT-DECORATION: none
  29. }
  30. #ssm2 A:hover {
  31. COLOR: red
  32. }
  33. </STYLE>
  34. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_system.js"></script>
  36. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  37. <DIV align=center>
  38. <form name="form1" method="post" >
  39.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  40.     <TBODY>
  41.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  42.     <TR>
  43.         <TD colSpan=3 align="center" class="iframestyle" valign="top"> <!--菜单开始 -->
  44.           <br>
  45.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  46.             <tr valign="top" bgcolor="#fafafa">
  47.               <td height="178" >
  48.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  49.                     <tr>
  50.                     <td bgcolor="#fafafa"> 
  51.                       <table class=title cellpadding="2" cellspacing="1" border="0" width="600">
  52.                         <tr> 
  53.                           <td colspan="2" bgcolor="#666666">
  54.   <!--
  55.   <font class="strongw"> 
  56.                             <org:OrganizationNaviBar level="1"/> <a href="/mainctrl/system/categoryList"><font color="#ffffff">系统类别设置维护</font></a>&gt;&gt; 
  57.                             新增系统类别设置</font>
  58. -->
  59. <font class="strongw">
  60. <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;
  61. <a href="/mainctrl/system/main"><font color="#ffffff">系统管理</font></a>&gt;&gt;
  62. <a href="/mainctrl/system/categoryList"><font color="#ffffff">数据字典管理</font></a>&gt;&gt;新增系统类别设置</font>
  63. </td>
  64.                         </tr>
  65.                         <tr bgcolor="#fafafa"> 
  66.                           <td width="30%" align="left"> <font class="strong">&nbsp;编号:</font> 
  67.                           </td>
  68.                           <td width="70%" align="left"> 自动产生 </td>
  69.                         </tr>
  70.                         <tr bgcolor="#fafafa"> 
  71.                           <td width="30%" align="left" bgcolor="#e0e0e0"><font class="strong">&nbsp;名称:</font></td>
  72.                           <td width="70%" align="left" bgcolor="#e0e0e0"> 
  73.                             <input type="text" name="categoryName" size="40" value="" class="text">&nbsp;
  74.                             *&nbsp; (注:带*为必填内容) </td>
  75.                         </tr>
  76.                         <tr bgcolor="#e0e0e0"> 
  77.                           <td width="30%" align="left" bgcolor="#fafafa"><font class="strong">&nbsp;父分类:</font></td>
  78.                           <td width="70%" align="left" bgcolor="#fafafa"> <%= request.getParameter("categoryName") %> 
  79.                             -- <%= request.getParameter("categoryId") %> 
  80.                             <input type="hidden" name="parentId" value="<%= request.getParameter("categoryId") %>" >
  81.                           </td>
  82.                         </tr>
  83.                         <tr bgcolor="#fafafa"> 
  84.                           <td width="30%" align="left" bgcolor="#e0e0e0"><font class="strong">&nbsp;是否叶子节点:</font></td>
  85.                           <td width="70%" align="left" bgcolor="#e0e0e0"> 
  86.                             <select name="isLeaf">
  87.                               <option value="0" >否</option>
  88.                               <option value="1" >是</option>
  89.                             </select>
  90.                           </td>
  91.                         </tr>
  92.                         <tr bgcolor="#e0e0e0"> 
  93.                           <td width="30%" align="left" bgcolor="#fafafa"><font class="strong">&nbsp;创建人:</font></td>
  94.                           <%
  95. BusinessSession bs =(BusinessSession) session.getAttribute("BusinessName");
  96. String creatorName = null;
  97. if (bs != null)
  98. creatorName = bs.getEmpName();
  99. %>
  100.                           <td width="70%" align="left" bgcolor="#fafafa"> <%=creatorName%> 
  101.                           </td>
  102.                         </tr>
  103.                         <tr bgcolor="#fafafa"> 
  104.                           <td width="30%" align="left" bgcolor="#e0e0e0"><font class="strong">&nbsp;创建时间:</font></td>
  105.                           <td width="70%" align="left" bgcolor="#e0e0e0"> 自动记录 
  106.                           </td>
  107.                         </tr>
  108.                         <tr bgcolor="#fafafa"> 
  109.                           <td colspan="2" height="30" align="center"> 
  110.                             <input type="button" value="保存" name="B1" class="text" onclick="dosubmit()">
  111.                             &nbsp;&nbsp; 
  112.                             <input type="button" value="返回" name="B2" onClick="location='/mainctrl/system/categoryList'" class="text">
  113.                           </td>
  114.                         </tr>
  115.                       </table>
  116.                     </td>
  117.                     </tr>
  118.                   </table>
  119.               </td>
  120.             </tr>
  121.           </table>
  122.           <br>
  123.           <br>
  124.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  125.        </TD>
  126.      </TR>
  127.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  128.     </TBODY> 
  129.   </TABLE>
  130.     <BR>
  131.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  132. </form>
  133. </DIV>
  134. </BODY>
  135. </HTML>