clubUseropEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:6k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2.  errorPage="err.jsp" %>
  3. <%@ include file="./GVinc/gvImport.jsp" %>
  4. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="ccm" scope="page" class="com.gamvan.club.manage.ClubClassManage"/>
  6. <%@ include file="./GVinc/gvClassInfo.jsp" %>
  7. <%
  8. int iPage = 1;
  9. if(request.getParameter("iPage")!=null){
  10. iPage = TypeChange.stringToInt(request.getParameter("iPage")); 
  11. }
  12. String act = "";
  13. if(request.getParameter("act")!=null){
  14. act = request.getParameter("act");
  15. }
  16. String uoUser = "";
  17. int uoCID =0, uoGradeID=0;
  18. byte uoIs = 0;
  19. int uoID = 0;
  20. if(request.getParameter("uoID") != null){
  21. uoID = TypeChange.stringToInt(request.getParameter("uoID"));
  22. }else{
  23. uoID = 0;
  24. }
  25. if(request.getMethod().equals("POST")){
  26. uoUser = request.getParameter("uoUser");
  27. if(uoUser.equals("")){
  28. out.print(prtCenter("用户ID不能为空!","cmUseropEdit.jsp?ccID="+ ccID +"&act="+ act +"",1));
  29. out.close();
  30. if(true){return;}
  31. }
  32. cuo.setUoUser(uoUser);
  33. cuo.setUoID(uoID);
  34. cuo.setUoGradeID(TypeChange.stringToInt(request.getParameter("ugID")));
  35. cuo.setUoCID(ccID);
  36. cuo.setUoByUser(gvUserName);
  37. cuo.setUoIs(TypeChange.stringToByte(request.getParameter("uoIs")));
  38. cuo.setUoByip(request.getRemoteAddr());
  39. temp = cuo.useropEdit(act);
  40. out.print(prtCenter(temp,"cmUserop.jsp?ccID="+ ccID +"",1));
  41. out.close();
  42. if(true){return;}
  43. }
  44. if(uoID>0){
  45. cuoi = (ClubUseropItem)cuo.useropInfo(uoID);
  46. uoUser = cuoi.getUoUser();
  47. uoIs = cuoi.getUoIs();
  48. uoGradeID = cuoi.getUoGradeID();
  49. cuoi = null;
  50. }
  51. %>
  52. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  53. <html>
  54. <head>
  55. <title><%=clubTitle%>&gt;&gt;<%
  56. if(ccIDD1>0){
  57. out.print(ccName2 +"&gt;&gt;");
  58. }
  59. %>
  60. <%
  61. if(ccIDD>0){
  62. out.print(ccName1 +"&gt;&gt;");
  63. }
  64. %>
  65. <%=ccName%>
  66. </title>
  67. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  68. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  69. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  70. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  71. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  72. </head>
  73. <body>
  74. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  75. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  76. <TABLE cellPadding=6 border=0>
  77. <TBODY><TR><TD align=middle>
  78. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  79. <BR>
  80. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  81. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  82. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  83. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  84. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  85. <%
  86. //权限判断开始
  87. if(ccID<=0){
  88. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  89. out.close();
  90. if(true) return;
  91. }
  92. if(ccType==0){
  93. if(!isPass(gvUserGradeTxt,32)){
  94. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
  95. out.close();
  96. if(true) return;
  97. }
  98. }else{
  99. if(!isPass(gvUserGradeTxt,33)){
  100. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
  101. out.close();
  102. if(true) return;
  103. }
  104. }
  105. %>
  106. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  107.   <tr class="tab1">
  108.     <td>
  109. <strong>您的位置</strong>&gt;&gt;<a href="default.jsp" target="_parent">社区首页</a>&gt;&gt;
  110. <a href="main.jsp">进站画面</a>&gt;&gt;
  111. <%
  112. temp = "";
  113. if(ccIDD1>0){
  114. out.print("<a href="clubClass.jsp?ccID="+ ccID2 +"&ccStyle="+ ccStyle +"">"+ ccName2 +"</a>&gt;&gt;");
  115. temp =  ccName2 + ">>";
  116. }
  117. %>
  118. <%
  119. if(ccIDD>0){
  120. out.print("<a href="clubClass.jsp?ccID="+ ccID1 +"&ccStyle="+ ccStyle +"">"+ ccName1 +"</a>&gt;&gt;");
  121. temp += ccName1 + ">>";
  122. }
  123. temp += ccName + ">>";
  124. %>
  125. <a href="clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>"><%=ccName%></a>&gt;&gt;
  126. 版面管理
  127. <SCRIPT language="javascript">prtie('<%=clubName%>>><%=temp%> 版面管理');</SCRIPT>
  128. </td>
  129.   </tr>
  130. </table>
  131. <%@ include file="./GVfilesInc/classManageMenu.jsp" %>
  132. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  133. <form name="Gforms" id="Gforms" method="post" action="">
  134.   <tr>
  135.     <td height="30" class="tab3">
  136. 管理员ID <input name="uoUser" type="text" id="uoUser" value="<%=uoUser%>" size="20" maxlength="20" /></td>
  137.   </tr>
  138.   <tr>
  139.     <td height="30" class="tab3">
  140. <%
  141. if(ccType==1){
  142. %>
  143. <input type="radio" name="ugID" value="5" <% if(uoGradeID==5){out.print("checked");} %> />正版主 
  144. &nbsp;
  145. <input type="radio" name="ugID" value="6" <% if(uoGradeID==6){out.print("checked");} %> />副版主
  146. &nbsp;
  147. <input type="radio" name="ugID" value="7" <% if(uoGradeID!=5 && uoGradeID!=6){out.print("checked");} %> />荣誉版主
  148. <%
  149. }else{
  150. %>
  151. <input type="radio" name="ugID" value="3" <% if(uoGradeID==3){out.print("checked");} %> />正区长
  152. &nbsp;
  153. <input name="ugID" type="radio" value="4" <% if(uoGradeID!=3){out.print("checked");} %> />副区长
  154. <%
  155. }
  156. %></td>
  157. </tr>
  158.   <tr>
  159.     <td height="30" class="tab3">
  160. <input type="radio" name="uoIs" value="1" <% if(uoIs==1){out.print("checked");} %>/>权限开通 
  161. &nbsp;
  162. <input type="radio" name="uoIs" value="0" <% if(uoIs==0){out.print("checked");} %>/>权限关闭
  163. </td>
  164.   </tr>
  165.   <tr>
  166.     <td height="30" class="tab3">
  167. <input name="act" type="submit" class="btn" id="act" value="确定添加" /> </td>
  168.   </tr>
  169.   <tr>
  170.     <td class="tab3">&nbsp;</td>
  171.   </tr>
  172. </form>
  173. </table>
  174. <%=Gfoot()%>
  175. </body>
  176. </html>