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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="com.redmoon.oa.pvg.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="cn.js.fan.db.*"%>
  5. <%@ page import="cn.js.fan.web.*"%>
  6. <html>
  7. <head>
  8. <title>管理登录</title>
  9. <link href="../common.css" rel="stylesheet" type="text/css">
  10. <link href="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. </head>
  21. <body bgcolor="#FFFFFF" text="#000000">
  22. <%
  23. String op = ParamUtil.get(request, "op");
  24. UserGroup ug = null;
  25. boolean isEdit = false;
  26. if (op.equals("edit")) {
  27. isEdit = true;
  28. String code = ParamUtil.get(request, "code");
  29. if (code.equals("")) {
  30. StrUtil.Alert_Back("编码不能为空!");
  31. return;
  32. }
  33. ug = new UserGroup(code);
  34. }
  35. if (op.equals("editdo")) {
  36. isEdit = true;
  37. UserGroupMgr usergroupmgr = new UserGroupMgr();
  38. try {
  39. if (usergroupmgr.update(request))
  40. out.print(StrUtil.Alert("修改成功!"));
  41. }
  42. catch (ErrMsgException e) {
  43. out.print(StrUtil.Alert_Back(e.getMessage()));
  44. }
  45. String code = ParamUtil.get(request, "code");
  46. if (code.equals("")) {
  47. StrUtil.Alert_Back("编码不能为空!");
  48. return;
  49. }
  50. ug = usergroupmgr.getUserGroup(code);
  51. }
  52. %>
  53. <table cellSpacing="0" cellPadding="0" width="100%">
  54.   <tbody>
  55.     <tr>
  56.       <td class="head">管理用户组</td>
  57.     </tr>
  58.   </tbody>
  59. </table>
  60. <br>
  61. <TABLE 
  62. style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid" 
  63. cellSpacing=0 cellPadding=3 width="95%" align=center>
  64.   <!-- Table Head Start-->
  65.   <TBODY>
  66.     <TR>
  67.       <TD class=thead style="PADDING-LEFT: 10px" noWrap width="70%">
  68.   <%if (isEdit) {%>
  69.      修改用户组
  70.   <%}else{%>
  71.   添加用户组
  72.   <%}%>
  73.   </TD>
  74.     </TR>
  75.     <TR class=row style="BACKGROUND-COLOR: #fafafa">
  76.       <TD height="175" align="center" style="PADDING-LEFT: 10px"><table class="frame_gray" width="53%" border="0" cellpadding="0" cellspacing="1">
  77.           <tr>
  78.             <td align="center"><table width="65%" border="0" cellpadding="0" cellspacing="0">
  79.                 <form name="form1" method="post" action="<%=isEdit?"user_group_op.jsp?op=editdo":"user_group_m.jsp?op=add"%>">
  80.                   <tr>
  81.                     <td width="100" height="31" align="center">代码</td>
  82.                   <td width="142" align="left"><input name="code" value="<%=isEdit?ug.getCode():""%>" <%=isEdit?"readonly":""%>></td>
  83.                   </tr>
  84.                   <tr>
  85.                     <td height="32" align="center">描述</td>
  86.                   <td align="left"><input name="desc" value="<%=isEdit?ug.getDesc():""%>"></td>
  87.                   </tr>
  88.                   <tr>
  89.                     <td colspan="2" align="center">
  90.                     </td>
  91.                   </tr>
  92.                   <tr>
  93.                     <td height="43" colspan="2" align="center"><input name="Submit" type="submit" class="singleboarder" value="提交">
  94. &nbsp;&nbsp;&nbsp;
  95.                       <input name="Submit" type="reset" class="singleboarder" value="重置"></td>
  96.                   </tr>
  97.                 </form>
  98.             </table></td>
  99.           </tr>
  100.       </table></TD>
  101.     </TR>
  102.     <!-- Table Body End -->
  103.     <!-- Table Foot -->
  104.     <TR>
  105.       <TD class=tfoot align=right><DIV align=right> </DIV></TD>
  106.     </TR>
  107.     <!-- Table Foot -->
  108.   </TBODY>
  109. </TABLE>
  110. <br>
  111. <br>
  112. </body>
  113. <script language="javascript">
  114. <!--
  115. function form1_onsubmit()
  116. {
  117. }
  118. //-->
  119. </script>
  120. </html>