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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ 
  2.  include file="./GVinc/gvImport.jsp" %><%@ 
  3.  include file="./GVinc/gvTopicVar.jsp" 
  4.  %><jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
  6. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
  7. <jsp:useBean id="ctm" scope="request" class="com.gamvan.club.topic.ClubTopicManage"/>
  8. <jsp:useBean id="cti" scope="page" class="com.gamvan.club.topic.ClubTopicInfo"/>
  9. <jsp:useBean id="crl" scope="page" class="com.gamvan.club.ClubRule"/><%@ 
  10. include file="./GVinc/gvClassInfo.jsp" %><% 
  11. ccStyle = ParamUtils.getByteParameter(request,"ccStyle");
  12. int reID = ParamUtils.getIntParameter(request,"reID");
  13. int tID = ParamUtils.getIntParameter(request,"tID");
  14. String act =  TypeChange.nullOfString(request.getParameter("act"));
  15. boolean isRe = false;
  16. if(reID>0){
  17. isRe = true;
  18. }
  19. // 判断是显示回复还是主题
  20. ClubTopicItem ctit = null;
  21. ClubTopicReItem ctrit = null;
  22. if(request.getMethod().equals("POST")){
  23. ctm.setUserMark(TypeChange.stringToDouble(request.getParameter("userMark")));
  24. ctm.setUserMoney(TypeChange.stringToDouble(request.getParameter("userMoney")));
  25. ctm.setUserCredit(TypeChange.stringToDouble(request.getParameter("userCredit")));
  26. ctm.setMoveCCID(TypeChange.stringToInt(request.getParameter("moveCCID")));
  27. ctm.setSaveLink(request.getParameter("saveLink"));
  28. ctm.setTopicOrder(TypeChange.stringToInt(request.getParameter("topicOrder")));
  29. ctm.setCcID(ccID);
  30. ctm.setCcName(request.getParameter("oCCNAME"));
  31. ctm.setByUser(gvUserName);
  32. ctm.setByUserID(gvUserID);
  33. ctm.setTopicLogTxt(request.getParameter("topicLogTxt"));
  34. ctm.setByUserIP(request.getRemoteAddr());
  35. if(isPass(gvUserGradeTxt,44)){
  36. if(request.getParameter("listMyID").equals("0")){
  37. ctm.setTopicLogByUserList((short)0);
  38. }else{
  39. ctm.setTopicLogByUserList(TypeChange.stringToShort(String.valueOf(gvUserGradeID)));
  40. }
  41. }else{
  42. ctm.setTopicLogByUserList(TypeChange.stringToShort(String.valueOf(gvUserGradeID)));
  43. }
  44. if(act.equals("top")||act.equals("manage")||act.equals("best")||act.equals("move")||act.equals("del")){
  45. ctm.setTopicLogList(true);
  46. }else{
  47. ctm.setTopicLogList(false);
  48. }
  49. ctm.setTopicID(tID);
  50. ctm.setTopicReID(reID);
  51. ctm.topicManage(act);
  52. if(request.getParameter("topicLayer").equals("0")){ //如果是主题
  53. out.print(prtCenter(ctm.getMessage(),"clubPage.jsp?ccID="+ ccID +"&tID="+ tID +"&ccStyle="+ccStyle+"",1));
  54. }else{
  55. out.print(prtCenter(ctm.getMessage(),"clubPage.jsp?ccID="+ ccID +"&tID="+ request.getParameter("topicReID") +"&reID="+ tID +"&ccStyle=1",1));
  56. }
  57. out.close();
  58. if(true)return;
  59. }
  60. if(isRe){
  61. ctrit = (ClubTopicReItem)cti.topicInfo(0, reID, (byte)1);
  62. if(ctrit==null){
  63. out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
  64. out.close();
  65. return;
  66. }
  67. userName = ctrit.getUserName();
  68. topicMood = ctrit.getTopicMood();
  69. userID = ctrit.getUserID();
  70. topic = ctrit.getTopic();
  71. }else{
  72. ctit = (ClubTopicItem)cti.topicInfo(tID, 0, (byte)0);
  73. if(ctit==null){
  74. out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
  75. out.close();
  76. return;
  77. }
  78. userName = ctit.getUserName();
  79. topicMood = ctit.getTopicMood();
  80. userID = ctit.getUserID();
  81. topic = ctit.getTopic();
  82. }
  83. %><html xmlns="http://www.w3.org/1999/xhtml">
  84. <head>
  85. <title><%=clubTitle%>__<%
  86. if(ccIDD1>0){out.print(ccName2 +"__");}
  87. if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>
  88. </title>
  89. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  90. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  91. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  92. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  93. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  94. </head>
  95. <body>
  96. <DIV class="popLayer" id="popLayer" style="Z-INDEX: 100"></DIV>
  97. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  98. <TABLE cellPadding=6 border=0>
  99. <TBODY><TR><TD align=middle>
  100. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  101. <BR>
  102. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  103. <script type="text/javascript" src="GVscript/GVtopCode.js"></script>
  104. <script type="text/javascript" src="GVscriptInc/topBar.js"></script>
  105. <script type="text/javascript" src="GVscript/GVshowLayer.js"></script>
  106. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  107. <script language="javascript" type="text/javascript">
  108. prtie2('<%=clubTitle%>__文章管理');
  109. </script>
  110. <%
  111. if(tID<=0){
  112. out.print(errs(3,"您所请求的页面不存在或已被删除!"));
  113. out.close();
  114. if(true) return;
  115. }
  116. //权限判断开始
  117. if(ccID<=0){
  118. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  119. out.close();
  120. if(true) return;
  121. }
  122. if(ccType==0){
  123. if(!isPass(gvUserGradeTxt,2)){
  124. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览论坛分类!"));
  125. out.close();
  126. if(true) return;
  127. }
  128. }else{
  129. if(!isPass(gvUserGradeTxt,3)){
  130. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览论坛版面!"));
  131. out.close();
  132. if(true) return;
  133. }
  134. }
  135. if(act.equals("del")){
  136. if(!userName.equals(gvUserName)){
  137. if(!isPass(gvUserGradeTxt,21)){
  138. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权删除他人文章!"));
  139. out.close();
  140. if(true) return;
  141. }
  142. }else{
  143. if(!isPass(gvUserGradeTxt,16)){
  144. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权删除文章!"));
  145. out.close();
  146. if(true) return;
  147. }
  148. }
  149. }else if(act.equals("move")){
  150. if(!userName.equals(gvUserName)){
  151. if(!isPass(gvUserGradeTxt,20)){
  152. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权移动他人文章!"));
  153. out.close();
  154. if(true) return;
  155. }
  156. }else{
  157. if(!isPass(gvUserGradeTxt,17)){
  158. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权移动文章!"));
  159. out.close();
  160. if(true) return;
  161. }
  162. }
  163. }else if(act.equals("best")){
  164. if(!isPass(gvUserGradeTxt,22)){
  165. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
  166. out.close();
  167. if(true) return;
  168. }
  169. }else if(act.equals("nobest")){
  170. if(!isPass(gvUserGradeTxt,22)){
  171. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
  172. out.close();
  173. if(true) return;
  174. }
  175. }else if(act.equals("top")){
  176. if(!isPass(gvUserGradeTxt,24)){
  177. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
  178. out.close();
  179. if(true) return;
  180. }
  181. }else if(act.equals("manage")){
  182. if(!isPass(gvUserGradeTxt,43)){
  183. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权进行此项操作!"));
  184. out.close();
  185. if(true) return;
  186. }
  187. }else{
  188. out.print(errs(3,"您的操作触发一个美丽的错误,请返回重新进入本页!"));
  189. out.close();
  190. if(true) return;
  191. }
  192. %>
  193. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  194.   <tr class="tab1">
  195.     <td>
  196. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
  197. com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
  198. )%>
  199. <%
  200. int num = 0;
  201. if(act.equals("del")){
  202. num = 5;
  203. out.print("删除文章");
  204. temp+="删除文章";
  205. }else if(act.equals("best")){
  206. num = 6;
  207. out.print("文章加精");
  208. temp+="文章加精";
  209. }else if(act.equals("nobest")){
  210. num = 7;
  211. out.print("文章取消精品");
  212. temp+="文章取消精品";
  213. }else if(act.equals("move")){
  214. num = 4;
  215. out.print("移动文章");
  216. temp+="移动文章";
  217. }else if(act.equals("top")){
  218. num = 8;
  219. out.print("文章置顶");
  220. temp+="文章置顶";
  221. }else if(act.equals("manage")){
  222. num = 0;
  223. out.print("管理主题");
  224. temp+="管理主题";
  225. }
  226. //out.print(act);
  227. //out.close();
  228. //if(true) return;
  229. double userMark, userMoney, userCredit;
  230. String txts;
  231. if(num > 0 ){
  232. ClubRuleItem cri = null;
  233. cri = crl.ruleInfo();
  234. txts = cri.getCrMark();
  235. userMark = ae.txtsList(txts,num,"|");
  236. txts = "";
  237. txts = cri.getCrMoney();
  238. userMoney = ae.txtsList(txts,num,"|");
  239. txts = "";
  240. txts = cri.getCrCredit();
  241. userCredit = ae.txtsList(txts,num,"|");
  242. }else{
  243. userMark  = 0;
  244. userMoney = 0;
  245. userCredit = 0;
  246. }
  247. %></td></tr></table>
  248. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
  249. <form name="Gforms" id="form1" method="post" action="" onSubmit="postMsg();">
  250. <tr class="tab1">
  251. <td width="160" height="22"><strong>&nbsp;用户:</strong>
  252. <club:users type="userName"  idIs="<%=userID%>" value="<%=userName%>"/>
  253. </td>
  254. <td height="22"><strong><club:topic type="topic"  value="<%=topic%>"/></strong>
  255. <input name="tID" type="hidden" id="tID" value="<%=tID%>" />
  256. </td></tr>
  257. <tr class="tab2"><td class="tab1"><strong>&nbsp;信誉操作</strong></td><td>
  258. <select name="userCredit" id="select">
  259. <option value="0" selected="selected">信誉操作</option>
  260. <%
  261. for(double i=userCredit-10; i<=userCredit+10; i++){
  262. if(i==userCredit){
  263. out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
  264. }else{
  265. out.print("<option value=""+ i +"">"+ i +"</option>");
  266. }
  267. }
  268. %></select></td></tr>   
  269. <tr class="tab2">
  270. <td class="tab1"><strong>&nbsp;积分操作</strong></td><td>
  271. <select name="userMark" id="userMark">
  272. <option value="0" selected="selected">积分操作</option>
  273. <%
  274. for(double i=userMark-21; i<=userMark+19; i++){
  275. if(i==userMark){
  276. out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
  277. }else{
  278. out.print("<option value=""+ i +"">"+ i +"</option>");
  279. }
  280. }
  281. %>
  282. </select>
  283. </td></tr>
  284. <tr class="tab2"><td class="tab1"><strong>&nbsp;今币操作</strong></td><td>
  285. <select name="userMoney" id="select">
  286. <option value="0" selected="selected">今币操作</option>
  287. <%
  288. for(double i=userMoney-10; i<=userMoney+10; i++){
  289. if(i==userMoney){
  290. out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
  291. }else{
  292. out.print("<option value=""+ i +"">"+ i +"</option>");
  293. }
  294. }
  295. %></select></td></tr> 
  296. <tr class="tab2">
  297. <td class="tab1"><strong>&nbsp;所在版面</strong></td>
  298. <td><%=ccName%>
  299. <input name="oCCNAME" type="hidden" value="<%=ccName%>" />
  300. </td></tr>
  301. <%
  302. if(act.equals("move")){
  303. %>
  304. <tr class="tab2">
  305. <td class="tab1"><strong>&nbsp;目标版面</strong></td>
  306. <td><%
  307. com.gamvan.club.classed.ClubClassCollection cccm = new com.gamvan.club.classed.ClubClassCollection();
  308. %><select name="moveCCID">
  309. <c:forEach var="ccc0" items="<%=cccm.classList()%>">
  310. <club:classinfo type="option"  idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
  311. <c:set value="${ccc0.ccID}"  target="${ccc}" property="reId" />
  312. <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
  313. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
  314. <c:set value="${ccc1.ccID}"  target="${ccc}" property="reId" />
  315. <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
  316. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
  317. </c:forEach>
  318. </c:forEach>
  319. </c:forEach>
  320. </select>
  321. </td></tr>
  322. <tr class="tab2">
  323. <td  class="tab1">
  324. <strong>是否在原有位置保留链接</strong>
  325. </td><td>
  326. <input name="saveLink" type="radio" value="0" checked="checked" />不保留
  327. &nbsp;&nbsp;&nbsp;&nbsp;
  328. <input name="saveLink" type="radio" value="1" />保留
  329. </td></tr>
  330. <%}else if(act.equals("top")){%>
  331. <tr class="tab2">
  332. <td class="tab1"><strong>&nbsp;目标版面</strong></td>
  333. <td>
  334. <input name="topicOrder" type="radio" value="0" />解除置顶
  335. &nbsp;&nbsp;
  336. <input name="topicOrder" type="radio" value="1" checked="checked" />本版置顶
  337. &nbsp;&nbsp;
  338. <input name="topicOrder" type="radio" value="2" />区置顶
  339. &nbsp;&nbsp;
  340. <input name="topicOrder" type="radio" value="3" />总置顶
  341. </td>
  342. </tr>
  343. <%}%>
  344. <tr class="tab2">
  345. <td class="tab1"><strong>&nbsp;操作理由</strong></td>
  346. <td>
  347. <input name="topicLogTxt" type="text" value="" size="50" maxlength="200" />
  348. </td></tr>
  349. <%
  350. if(isPass(gvUserGradeTxt,44)){%>
  351. <tr class="tab2">
  352. <td class="tab1"><strong>&nbsp;是否在日志显示ID</strong></td>
  353. <td>
  354. <input name="listMyID" type="radio" value="0" checked="checked" />隐藏
  355. &nbsp;&nbsp;&nbsp;&nbsp;
  356. <input name="listMyID" type="radio" value="1" />显示
  357. </td></tr>
  358. <%}else{%>
  359. <input name="listMyID" type="hidden" value="1" />
  360. <%}%>
  361. <tr class="tab2">
  362. <td height="34" class="tab1">&nbsp;</td>
  363. <td class="tab1">
  364. <% 
  365. if(act.equals("del")){
  366. out.print("<input class="btn" name="gvSubmit" type="submit" value="确定删除此主题" />");
  367. }else if(act.equals("move")){
  368. out.print("<input class="btn" name="gvSubmit" type="submit" value="确定移动此主题" />");
  369. }else if(act.equals("best")){
  370. out.print("<input class="btn" name="gvSubmit" type="submit" value="确定更新主题属性为精品" />");
  371. }else if(act.equals("nobest")){
  372. out.print("<input class="btn" name="gvSubmit" type="submit" value="确定主题取消精品属性" />");
  373. }else if(act.equals("top")){
  374. out.print("<input class="btn" name="gvSubmit" type="submit" value="主题置顶属性更改" />");
  375. }else if(act.equals("manage")){
  376. out.print("<input class="btn" name="gvSubmit" type="submit" value="确定对此主题进行操作" />");
  377. }
  378. %>
  379. <input name="topicLayer" type="hidden" value="<%=topicLayer%>" /> 
  380. <input name="topicReID" type="hidden" value="<%=topicReID%>" />
  381. </td></tr></form></table>
  382. <script language="javascript" type="text/javascript" src="../GVscript/GVpost.js"></script>
  383. <%=Gfoot()%>
  384. </body>
  385. </html>
  386. <!-- Powered by www.GamVan.com -->