dir_priv_add.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="java.util.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="com.redmoon.oa.netdisk.*"%>
  5. <%@ page import="com.redmoon.oa.pvg.*"%>
  6. <%@ page import="cn.js.fan.web.*"%>
  7. <html>
  8. <head>
  9. <title>管理共享</title>
  10. <link href="../admin/default.css" rel="stylesheet" type="text/css">
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  12. <style type="text/css">
  13. <!--
  14. .style4 {
  15. color: #FFFFFF;
  16. font-weight: bold;
  17. }
  18. -->
  19. </style>
  20. <script>
  21. function setPerson(deptCode, deptName, userName, userRealName)
  22. {
  23. form1.name.value = userName;
  24. form1.userRealName.value = userRealName;
  25. }
  26. </script>
  27. </head>
  28. <body bgcolor="#FFFFFF" text="#000000">
  29. <jsp:useBean id="usergroupmgr" scope="page" class="com.redmoon.oa.pvg.UserGroupMgr"/>
  30. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  31. <%
  32. String dirCode = ParamUtil.get(request, "dirCode");
  33. Leaf leaf = new Leaf();
  34. leaf = leaf.getLeaf(dirCode);
  35. %>
  36. <table cellSpacing="0" cellPadding="0" width="100%">
  37.   <tbody>
  38.     <tr>
  39.       <td class="head">设置<%=leaf.getName()%>共享</td>
  40.     </tr>
  41.   </tbody>
  42. </table>
  43. <%
  44. String code;
  45. String desc;
  46. UserGroupDb ugroup = new UserGroupDb();
  47. Vector result = ugroup.list();
  48. Iterator ir = result.iterator();
  49. %>
  50. <br>
  51. <br>
  52. <table style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid" cellSpacing="0" cellPadding="3" width="95%" align="center">
  53.   <tbody>
  54.     <tr>
  55.       <td class="thead" style="PADDING-LEFT: 10px" noWrap width="26%">用户组名称</td>
  56.       <td class="thead" noWrap width="40%"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">描述</td>
  57.       <td width="34%" noWrap class="thead"><img src="../admin/images/tl.gif" align="absMiddle" width="10" height="15">操作</td>
  58.     </tr>
  59. <%
  60. while (ir.hasNext()) {
  61.   UserGroupDb ug = (UserGroupDb)ir.next();
  62. code = ug.getCode();
  63. desc = ug.getDesc();
  64. %>
  65.     <tr class="row" style="BACKGROUND-COLOR: #ffffff">
  66.       <td style="PADDING-LEFT: 10px">&nbsp;<img src="../admin/../admin/images/arrow.gif" align="absmiddle">&nbsp;<%=code%></td>
  67.       <td><%=desc%></td>
  68.       <td>
  69.   <a href="dir_priv_m.jsp?op=add&dirCode=<%=StrUtil.UrlEncode(leaf.getCode())%>&name=<%=StrUtil.UrlEncode(code)%>&type=<%=LeafPriv.TYPE_USERGROUP%>">[ 添加 ]</a></td>
  70.     </tr>
  71. <%}%>
  72.   </tbody>
  73. </table>
  74. <br>
  75. <br>
  76. <table width="489"  border="0" align="center" cellpadding="0" cellspacing="0"  style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid">
  77.   <tr>
  78.     <td width="329" class="thead">添加用户</td>
  79.   </tr>
  80.   <form name="form1" action="dir_priv_m.jsp?op=add" method=post>
  81.   <tr>
  82.     <td height="25" align="center">
  83. 用户名:
  84.   
  85.   <input name="userRealName" value="" readonly>
  86.   <input type=hidden name=type value=1>
  87.   <input type=hidden name=dirCode value="<%=leaf.getCode()%>">
  88.   <input name="name" value="" type=hidden>
  89.   &nbsp;
  90. <INPUT type=image 
  91. onclick="javascript:location.href='user_group_op.jsp';" src="../admin/../admin/images/btn_add.gif" align="middle" width=80 
  92. height=20>
  93. <span class="p14">&nbsp;<a href="#" onClick="javascript:showModalDialog('../user_sel.jsp',window.self,'dialogWidth:500px;dialogHeight:320px;status:no;help:no;')">选择用户</a></span></td>
  94.   </tr></form>
  95. </table>
  96. </body>
  97. <script language="javascript">
  98. <!--
  99. function form1_onsubmit()
  100. {
  101. errmsg = "";
  102. if (form1.pwd.value!=form1.pwd_confirm.value)
  103. errmsg += "密码与确认密码不致,请检查!n"
  104. if (errmsg!="")
  105. {
  106. alert(errmsg);
  107. return false;
  108. }
  109. }
  110. //-->
  111. </script>
  112. </html>