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

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.ClubClassInfo"/>
  5. <jsp:useBean id="cbr" scope="page" class="com.gamvan.club.user.ClubBlackRequest"/>
  6. <%@ include file="./GVinc/gvClassInfo.jsp" %>
  7. <%
  8. String act = "add";
  9. if(request.getParameter("act")!=null){
  10. act = request.getParameter("act");
  11. }
  12. String userName=new String();
  13. if(request.getParameter("uName")!=null){
  14. userName = request.getParameter("uName");
  15. }
  16. int bID=0;
  17. if(request.getParameter("bID")!=null){
  18. bID = Integer.parseInt(request.getParameter("bID"));
  19. }
  20. blackDate=3;
  21. blackInfo="";
  22. if(request.getMethod().equals("POST")){
  23. temp="";
  24. String txt="";
  25. for(int i = 1; i < 30; i++){
  26. txt = request.getParameter("blackInfo"+String.valueOf(i));
  27. if(txt==null){
  28. txt="0";
  29. }
  30. if(temp.equals("")){
  31. temp = txt;
  32. }else{
  33. temp = temp + "|" + txt;
  34. }
  35. }
  36. blackInfo = temp;
  37. userName = clubgb.gb(userName);
  38. cbr.setBlackUserName(userName);
  39. //out.print(userName);
  40. if(userName.equals("")){
  41. out.print(prtCenter("用户ID不能为空!","",2));
  42. out.close();
  43. if(true)return;
  44. }
  45. cbr.setBid(bID);
  46. cbr.setBlackInfo(blackInfo);
  47. cbr.setBlackTxt(clubgb.gb(request.getParameter("blackTxt")));
  48. cbr.setBlackDate(request.getParameter("blackDate"));
  49. //cbr.setBlackOver(request.getParameter("blackOver"));
  50. cbr.setByUserIp(request.getRemoteAddr());
  51. cbr.setByUserName(gvUserName);
  52. cbr.setCCID(request.getParameter("ccID"));
  53. cbr.blackAct();
  54. out.print(prtCenter(cbr.getMessage(),"",2));
  55. out.close();
  56. if(true)return;
  57. }
  58. int [] bInfo = new int[20];
  59. if(bID>0){
  60. cbg.clubBlackBid(bID,1);
  61. userName = cbg.getBlackUserName();
  62. ccID = cbg.getCCID();
  63. blackInfo = cbg.getBlackInfo();
  64. blackTxt = cbg.getBlackTxt();
  65. blackDate = cbg.getBlackDate();
  66. StringTokenizer st = new StringTokenizer(blackInfo,"|");
  67.     bInfo = new int[st.countTokens()];
  68. for(int i=0;st.hasMoreTokens();i++){
  69. bInfo[i]=Integer.parseInt(st.nextToken().trim());
  70. }
  71. }
  72. %>
  73. <html xmlns="http://www.w3.org/1999/xhtml">
  74. <head>
  75. <title><%=clubTitle%>&gt;&gt;<%
  76. if(ccIDD1>0){
  77. out.print(ccName2 +"&gt;&gt;");
  78. }
  79. %>
  80. <%
  81. if(ccIDD>0){
  82. out.print(ccName1 +"&gt;&gt;");
  83. }
  84. %>
  85. <%=ccName%>
  86. </title>
  87. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  88. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  89. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  90. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  91. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  92. </head>
  93. <body>
  94. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  95. <TABLE cellPadding=6 border=0>
  96. <TBODY><TR><TD align=middle>
  97. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  98. <BR>
  99. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  100. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  101. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  102. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  103. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  104. <%
  105. //权限判断开始
  106. if(ccID<=0){
  107. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  108. out.close();
  109. if(true) return;
  110. }
  111. if(!isPass(gvUserGradeTxt,34)){
  112. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
  113. out.close();
  114. if(true) return;
  115. }
  116. %>
  117. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  118.   <tr class="tab1">
  119.     <td>
  120. <strong>您的位置</strong>&gt;&gt;<a href="default.jsp" target="_parent">社区首页</a>&gt;&gt;
  121. <a href="main.jsp">进站画面</a>&gt;&gt;
  122. <%
  123. temp = "";
  124. if(ccIDD1>0){
  125. out.print("<a href="clubClass.jsp?ccID="+ ccID2 +"&ccStyle="+ ccStyle +"">"+ ccName2 +"</a>&gt;&gt;");
  126. temp =  ccName2 + ">>";
  127. }
  128. %>
  129. <%
  130. if(ccIDD>0){
  131. out.print("<a href="clubClass.jsp?ccID="+ ccID1 +"&ccStyle="+ ccStyle +"">"+ ccName1 +"</a>&gt;&gt;");
  132. temp += ccName1 + ">>";
  133. }
  134. temp += ccName + ">>";
  135. %>
  136. <a href="clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>"><%=ccName%></a>&gt;&gt;
  137. 黑名单管理
  138. <SCRIPT language="javascript">prtie('<%=clubName%>>><%=temp%> 黑名单管理');</SCRIPT>
  139. </td>
  140.   </tr>
  141. </table>
  142. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  143. <tr>
  144.     <td height="22" colspan="5" class="tab1">
  145. <strong>
  146. <a href="cmUserop.jsp?ccID=<%=ccID%>">更新管理员</a>&nbsp;&nbsp;
  147. <a href="clubClassManage.jsp?ccID=<%=ccID%>">更新版面寄语</a>&nbsp;&nbsp;
  148. <a href="cmAffiche.jsp?ccID=<%=ccID%>">管理公告</a>
  149. &nbsp;&nbsp;
  150. <a href="cmUserArticle.jsp?ccID=<%=ccID%>">文章批量管理</a>
  151. &nbsp;&nbsp;
  152. <a href="cmBlacklist.jsp?ccID=<%=ccID%>">黑名单管理</a>
  153. </strong>
  154. </td>
  155.   </tr>
  156.   <tr>
  157.     <td colspan="5" class="tab3">&nbsp;
  158. </td>
  159.   </tr>
  160.   <tr>
  161.     <td height="24" colspan="5" class="tab1"><strong>
  162. <a href="cmBlackEdit.jsp?ccID=<%=ccID%>">添加到黑名单</a>&nbsp;&nbsp;
  163. <a href="cmBlacklist.jsp?ccID=<%=ccID%>">黑名单列表</a>
  164. </strong></td>
  165.   </tr>
  166. </table>
  167. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
  168. <form name="form1" method="post" action="">
  169.     <tr class="tab3">
  170.       <td width="100"><strong>用户ID</strong></td>
  171.       <td><input name="uName" type="text" id="uName" value="<%=userName%>" size="30" maxlength="30"></td>
  172.     </tr>
  173. <tr class="tab3">
  174. <td class="tab3"><strong>操作内容</strong></td>
  175. <td>
  176. <input name="blackInfo1" type="checkbox" id="blackInfo1" value="1" <% if(bInfo[0]==1){out.print("checked");}%>>
  177. 1.禁止发表主题<br>
  178. <input name="blackInfo2" type="checkbox" id="blackInfo2" value="1" <% if(bInfo[1]==1){out.print("checked");}%>>
  179. 2.禁止回复主题<br>
  180. <input name="blackInfo3" type="checkbox" id="blackInfo3" value="1" <% if(bInfo[2]==1){out.print("checked");}%>>
  181. 3.禁止浏览帖子<br>
  182. <input name="blackInfo4" type="checkbox" id="blackInfo4" value="1" <% if(bInfo[3]==1){out.print("checked");}%>>
  183. 4.禁止显示其发表的主题<br>
  184. <input name="blackInfo5" type="checkbox" id="blackInfo5" value="1" <% if(bInfo[4]==1){out.print("checked");}%>>
  185. 5.禁止显示其发表的回复<br>
  186. <input name="blackInfo6" type="checkbox" id="blackInfo6" value="1" <% if(bInfo[5]==1){out.print("checked");}%>>
  187. 6.禁止上传文件<br>
  188. <input name="blackInfo7" type="checkbox" id="blackInfo7" value="1" <% if(bInfo[6]==1){out.print("checked");}%>>
  189. 7.禁止显示签名<br>
  190. </td>
  191. </tr>
  192. <tr class="tab3">
  193.   <td class="tab3"><strong>操作理由</strong><br>
  194.     支持UBB</td>
  195.   <td><textarea name="blackTxt" cols="60" rows="4" id="blackTxt"><%=blackTxt%></textarea></td>
  196. </tr>
  197. <tr class="tab3">
  198.   <td class="tab3"><strong>限制时间</strong></td>
  199.   <td><input name="blackDate" type="text" id="blackDate" value="<%=blackDate%>" size="3" maxlength="4">
  200.     天</td>
  201. </tr>
  202. <tr class="tab2">
  203.   <td></td>
  204.   <td><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
  205. </tr>
  206. </form>
  207. </table>
  208. <script language="JavaScript" type="text/javascript">tabline(1,2,"#ffffff");</script>
  209. <%=Gfoot()%>
  210. </body>
  211. </html>