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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="../GVinc/gvInclude.jsp" %>
  3. <%@ include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="ctm" scope="page" class="com.gamvan.club.topic.ClubTopicManage" />
  5. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  6. <% 
  7. //权限判断共享代码
  8. boolean ispass = false;
  9. //ArrayEdit ae = new ArrayEdit();
  10. ispass = ae.txtsArray(gvcmgTxt,21,"|");
  11. if(!ispass){
  12. out.print(prtCenter2("您无权进行此项操作!","",2));
  13. out.close();
  14. return;
  15. }
  16. int iPage = ParamUtils.getIntParameter(request,"iPage");
  17. if(iPage<1){
  18. iPage = 1;
  19. }
  20. boolean isRe = ParamUtils.getBooleanParameter(request,"isRe");
  21. short pro = 0;
  22. int isPass = 0;
  23. short layer = 0;
  24. if(request.getParameter("pro")!=null){
  25. pro = TypeChange.stringToShort(request.getParameter("pro"));
  26. }else{
  27. pro = -1;
  28. }
  29. if(request.getParameter("isPass")!=null){
  30. isPass = ParamUtils.getIntParameter(request,"isPass");
  31. }else{
  32. isPass = -1;
  33. }
  34. if(request.getParameter("layer")!=null){
  35. layer = TypeChange.stringToShort(request.getParameter("layer"));
  36. }else{
  37. layer = -1;
  38. }
  39. if(request.getMethod().equals("POST")){
  40. ctm.setIsRe(isRe);
  41. ctm.setAct(request.getParameter("act"));
  42. ctm.topicDos(request.getParameterValues("topicID"));
  43. out.print(prtCenter2("操作成功,点击这里返回!","clubTopicList.jsp?isPass="+isPass+"&pro="+pro+"&layer="+layer+"&iPage="+iPage+"",1));
  44. out.close();
  45. if(true)return;
  46. }
  47. %>
  48. <html>
  49. <head>
  50. <title>社区管理</title>
  51. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  52. <link href="css.css" rel="stylesheet" type="text/css">
  53. </head>
  54. <body>
  55. <script language="javascript" src="../GVscript/GVtopCode.js"></script>
  56. <script language="javascript" src="../GVscript/GVshowMenu.js"></script>
  57. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#CCCCCC">
  58.   <tr>
  59.     <td height="25" align="center"><strong>社区文章管理</strong></td>
  60.   </tr>
  61. <tr>
  62.   <td height="25" bgcolor="#FFFFFF">
  63. <a href="clubTopicList.jsp?isPass=-1&pro=-1&isRe=false">全部主题</a>
  64. &nbsp;&nbsp;
  65. <a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&isRe=false">已认证主题</a>
  66. &nbsp;&nbsp;
  67. <a href="clubTopicList.jsp?isPass=0&pro=<%=pro%>&isRe=false">未认证主题</a>
  68. &nbsp;&nbsp;
  69. <a href="clubTopicList.jsp?isPass=<%=isPass%>&pro=4&isRe=false">回收站主题</a>
  70. &nbsp;&nbsp;
  71. <br>
  72. <a href="clubTopicList.jsp?isPass=-1&pro=-1&isRe=true">全部回复</a>
  73. &nbsp;&nbsp;
  74. <a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&isRe=true">已认证回复</a>
  75. &nbsp;&nbsp;
  76. <a href="clubTopicList.jsp?isPass=0&pro=<%=pro%>&isRe=true">未认证回复</a>
  77. &nbsp;&nbsp;
  78. <a href="clubTopicList.jsp?isPass=<%=isPass%>&pro=4&isRe=true">回收站回复</a></td>
  79. </tr>
  80. </table>
  81. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cccccc">
  82.   <form name="form1" method="post" action="">
  83.   <tr bgcolor="#e6e6e6">
  84.     <td width="30" height="25" align="center">&nbsp;</td>
  85.   <td align="center"><strong>主题</strong></td>
  86.     <td width="100" align="center"><strong>所在版面</strong></td>
  87.     <td width="100" align="center"><strong>作者</strong></td>
  88. <td width="40" align="center"><strong>认证</strong></td>
  89.     <td width="40" align="center"><strong>属性</strong></td>
  90.     <td width="40" align="center"><strong>类型</strong></td>
  91.   <td width="50" align="center"><strong>型别</strong></td>
  92.     <td width="100" align="center"><strong>发表时间</strong></td>
  93.   </tr>
  94. <%
  95. ccID = TypeChange.stringToInt(request.getParameter("ccID"));
  96. String tUrl = "../clubPage.jsp?ccStyle=1";
  97. ctm.setTopicPro(pro);
  98. ctm.setIsRe(isRe);
  99. int totalPage = ctm.topicCount(-1);
  100. ClubClassItem ccit = null;
  101. %>
  102. <c:forEach var="t" items="<%=ctm.topicList(iPage,30,isPass)%>">
  103. <tr>
  104. <td width="30" height="25" align="center" bgcolor="#f6f6f6">
  105. <%if(isRe){%>
  106. <club:topic type="htmlCheckbox"  idIs="${t.topicReID}"/>
  107. <%}else{%>
  108. <club:topic type="htmlCheckbox"  idIs="${t.topicID}"/>
  109. <%}%>
  110. </td>
  111. <td bgcolor="#f6f6f6">
  112. <club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" linkId="${t.topicReID}" value="${t.topic}" bea="<%=true%>"/>
  113. </td>
  114.   <td align="center" bgcolor="#f6f6f6">
  115. <c:set value="${t.ccID}"  target="${cci}" property="ccID" />
  116. <%
  117. ccit = (ClubClassItem)cci.getClubClassInfo();
  118. %>
  119. <club:classinfo type="className"  url="../" value="<%=ccit.getCcName()%>" idIs="<%=ccit.getCcID()%>"/>  </td>
  120. <td align="center" bgcolor="#f6f6f6">
  121. <club:users type="userName"  idIs="${t.userID}" value="${t.userName}" url="../" bea="<%=false%>"/></td>
  122. <td align="center" bgcolor="#f6f6f6">
  123. <club:topic type="topicIsPass" bea="${t.topicIsPass}" value="${t.topicIsPass}"/></td>
  124. <td align="center" bgcolor="#f6f6f6">
  125. <club:topic type="topicPro" idIs="${t.topicPro}"/></td>
  126. <td align="center" bgcolor="#f6f6f6">
  127. <c:if test="${t.topicLayer>0}" >
  128. 回复
  129. </c:if>
  130. <c:if test="${t.topicLayer==0}" ><strong>
  131. 主题
  132. </strong>
  133. </c:if></td>
  134. <td align="center" bgcolor="#f6f6f6">
  135. <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/></td>
  136. <td align="center" bgcolor="#f6f6f6">
  137. <club:topic type="topicAddTime" value="${t.topicAddTime}"/></td>
  138. </tr>
  139. </c:forEach>
  140.   <tr>
  141.     <td height="25" align="center" bgcolor="#f6f6f6">
  142. <input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/> </td>
  143.     <td colspan="8" bgcolor="#f6f6f6"><select name="act" id="act">
  144.       <option value="0" selected>操作内容</option>
  145.       <option value="1">认证主题</option>
  146.       <option value="2">反认证主题</option>
  147.       <option value="3">删除主题至回收站</option>
  148.       <option value="4">还原回收站主题</option>
  149.       <option value="5">物理删除主题</option>
  150.     </select>
  151. <input name="gvSubmit" type="submit" id="gvSubmit" value="确定提交">
  152. <strong>(为了统计的精确性,删除主题时建议全部归入回收站再执行物理删除操作)</strong>
  153. </td>
  154.   </tr>
  155.   </form>
  156. </table>
  157. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#CCCCCC">
  158.   <tr>
  159.     <td><strong><%=OutPrint.pageJump(totalPage,30, iPage, "clubTopicList.jsp?isPass="+isPass+"&pro="+pro+"&isRe="+isRe+"&")%></strong></td>
  160.   </tr>
  161. </table>
  162. </body>
  163. </html>