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.forum.person.*"%>
  3. <%@ page import="cn.js.fan.util.*"%>
  4. <%@ page import="cn.js.fan.db.*"%>
  5. <%@ page import="cn.js.fan.web.*"%>
  6. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. <title><lt:Label res="res.label.forum.admin.user_group_m" key="user_group_manage"/></title>
  11. <link href="../common.css" rel="stylesheet" type="text/css">
  12. <link href="default.css" rel="stylesheet" type="text/css">
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <style type="text/css">
  15. <!--
  16. .style4 {
  17. color: #FFFFFF;
  18. font-weight: bold;
  19. }
  20. -->
  21. </style>
  22. </head>
  23. <body bgcolor="#FFFFFF" text="#000000">
  24. <%
  25. String op = ParamUtil.get(request, "op");
  26. UserGroupDb ug = null;
  27. boolean isEdit = false;
  28. if (op.equals("edit")) {
  29. isEdit = true;
  30. String code = ParamUtil.get(request, "code");
  31. if (code.equals("")) {
  32. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "res.label.forum.admin_user_group_m", "need_code")));
  33. return;
  34. }
  35. ug = new UserGroupDb();
  36. ug = ug.getUserGroupDb(code);
  37. }
  38. if (op.equals("editdo")) {
  39. isEdit = true;
  40. UserGroupMgr usergroupmgr = new UserGroupMgr();
  41. try {
  42. if (usergroupmgr.update(request))
  43. out.print(StrUtil.Alert(SkinUtil.LoadString(request, "info_op_success"))); 
  44. }
  45. catch (ErrMsgException e) {
  46. out.print(StrUtil.Alert_Back(e.getMessage()));
  47. }
  48. String code = ParamUtil.get(request, "code");
  49. if (code.equals("")) {
  50. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "res.label.forum.admin_user_group_m", "need_code")));
  51. return;
  52. }
  53. ug = usergroupmgr.getUserGroupDb(code);
  54. }
  55. %>
  56. <table cellSpacing="0" cellPadding="0" width="100%">
  57.   <tbody>
  58.     <tr>
  59.       <td class="head"><a href="user_group_m.jsp"><lt:Label res="res.label.forum.admin.user_group_m" key="user_group_manage"/></a></td>
  60.     </tr>
  61.   </tbody>
  62. </table>
  63. <br>
  64. <TABLE 
  65. style="BORDER-RIGHT: #a6a398 1px solid; BORDER-TOP: #a6a398 1px solid; BORDER-LEFT: #a6a398 1px solid; BORDER-BOTTOM: #a6a398 1px solid" 
  66. cellSpacing=0 cellPadding=3 width="95%" align=center>
  67.   <TBODY>
  68.     <TR>
  69.       <TD class=thead style="PADDING-LEFT: 10px" noWrap width="70%">
  70.   <%if (isEdit) {%>
  71.      <lt:Label res="res.label.forum.admin.user_group_m" key="user_group_modify"/>
  72.   <%}else{%>
  73.   <lt:Label res="res.label.forum.admin.user_group_m" key="user_group_add"/>
  74.   <%}%>
  75.   </TD>
  76.     </TR>
  77.     <TR class=row style="BACKGROUND-COLOR: #fafafa">
  78.       <TD height="175" align="center" style="PADDING-LEFT: 10px"><table class="frame_gray" width="53%" border="0" cellpadding="0" cellspacing="1">
  79.           <tr>
  80.             <td align="center"><table width="65%" border="0" cellpadding="0" cellspacing="0">
  81.                 <form name="form1" method="post" action="<%=isEdit?"user_group_op.jsp?op=editdo":"user_group_m.jsp?op=add"%>">
  82.                   <tr>
  83.                     <td width="19%" height="31" align="center"><lt:Label res="res.label.forum.admin.user_group_m" key="code"/></td>
  84.                   <td width="81%" align="left"><input name="code" value="<%=isEdit?ug.getCode():""%>" <%=isEdit?"readonly":""%>></td>
  85.                   </tr>
  86.                   <tr>
  87.                     <td height="32" align="center"><lt:Label res="res.label.forum.admin.user_group_m" key="desc"/></td>
  88.                   <td align="left"><input name="desc" value="<%=isEdit?ug.getDesc():""%>"></td>
  89.                   </tr>
  90.                   <tr>
  91.                     <td height="32" align="center"><lt:Label res="res.label.forum.admin.user_group_m" key="display_order"/></td>
  92.                     <td align="left"><input name="displayOrder" value="<%=isEdit?ug.getDisplayOrder():""%>"></td>
  93.                   </tr>
  94.                   <tr>
  95.                     <td colspan="2" align="center">                    </td>
  96.                   </tr>
  97.                   <tr>
  98.                     <td height="43" colspan="2" align="center"><input name="Submit" type="submit" value="<lt:Label key="commit"/>">
  99. &nbsp;&nbsp;&nbsp;
  100.                       <input name="Submit" type="reset" value="<lt:Label key="reset"/>"></td>
  101.                   </tr>
  102.                 </form>
  103.             </table></td>
  104.           </tr>
  105.       </table></TD>
  106.     </TR>
  107.     <TR>
  108.       <TD class=tfoot align=right></TD>
  109.     </TR>
  110.   </TBODY>
  111. </TABLE>
  112. <br>
  113. <br>
  114. </body>
  115. </html>