clubTopicList.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:6k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="ctm" scope="page" class="com.gamvan.club.topic.ClubTopicManage" />
- <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,21,"|");
- if(!ispass){
- out.print(prtCenter2("您无权进行此项操作!","",2));
- out.close();
- return;
- }
- int iPage = ParamUtils.getIntParameter(request,"iPage");
- if(iPage<1){
- iPage = 1;
- }
- boolean isRe = ParamUtils.getBooleanParameter(request,"isRe");
- short pro = 0;
- int isPass = 0;
- short layer = 0;
- if(request.getParameter("pro")!=null){
- pro = TypeChange.stringToShort(request.getParameter("pro"));
- }else{
- pro = -1;
- }
- if(request.getParameter("isPass")!=null){
- isPass = ParamUtils.getIntParameter(request,"isPass");
- }else{
- isPass = -1;
- }
- if(request.getParameter("layer")!=null){
- layer = TypeChange.stringToShort(request.getParameter("layer"));
- }else{
- layer = -1;
- }
- if(request.getMethod().equals("POST")){
- ctm.setIsRe(isRe);
- ctm.setAct(request.getParameter("act"));
- ctm.topicDos(request.getParameterValues("topicID"));
- out.print(prtCenter2("操作成功,点击这里返回!","clubTopicList.jsp?isPass="+isPass+"&pro="+pro+"&layer="+layer+"&iPage="+iPage+"",1));
- out.close();
- if(true)return;
- }
- %>
- <html>
- <head>
- <title>社区管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <script language="javascript" src="../GVscript/GVtopCode.js"></script>
- <script language="javascript" src="../GVscript/GVshowMenu.js"></script>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#CCCCCC">
- <tr>
- <td height="25" align="center"><strong>社区文章管理</strong></td>
- </tr>
- <tr>
- <td height="25" bgcolor="#FFFFFF">
- <a href="clubTopicList.jsp?isPass=-1&pro=-1&isRe=false">全部主题</a>
-
- <a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&isRe=false">已认证主题</a>
-
- <a href="clubTopicList.jsp?isPass=0&pro=<%=pro%>&isRe=false">未认证主题</a>
-
- <a href="clubTopicList.jsp?isPass=<%=isPass%>&pro=4&isRe=false">回收站主题</a>
-
- <br>
- <a href="clubTopicList.jsp?isPass=-1&pro=-1&isRe=true">全部回复</a>
-
- <a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&isRe=true">已认证回复</a>
-
- <a href="clubTopicList.jsp?isPass=0&pro=<%=pro%>&isRe=true">未认证回复</a>
-
- <a href="clubTopicList.jsp?isPass=<%=isPass%>&pro=4&isRe=true">回收站回复</a></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cccccc">
- <form name="form1" method="post" action="">
- <tr bgcolor="#e6e6e6">
- <td width="30" height="25" align="center"> </td>
- <td align="center"><strong>主题</strong></td>
- <td width="100" align="center"><strong>所在版面</strong></td>
- <td width="100" align="center"><strong>作者</strong></td>
- <td width="40" align="center"><strong>认证</strong></td>
- <td width="40" align="center"><strong>属性</strong></td>
- <td width="40" align="center"><strong>类型</strong></td>
- <td width="50" align="center"><strong>型别</strong></td>
- <td width="100" align="center"><strong>发表时间</strong></td>
- </tr>
- <%
- ccID = TypeChange.stringToInt(request.getParameter("ccID"));
- String tUrl = "../clubPage.jsp?ccStyle=1";
- ctm.setTopicPro(pro);
- ctm.setIsRe(isRe);
- int totalPage = ctm.topicCount(-1);
- ClubClassItem ccit = null;
- %>
- <c:forEach var="t" items="<%=ctm.topicList(iPage,30,isPass)%>">
- <tr>
- <td width="30" height="25" align="center" bgcolor="#f6f6f6">
- <%if(isRe){%>
- <club:topic type="htmlCheckbox" idIs="${t.topicReID}"/>
- <%}else{%>
- <club:topic type="htmlCheckbox" idIs="${t.topicID}"/>
- <%}%>
- </td>
- <td bgcolor="#f6f6f6">
- <club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" linkId="${t.topicReID}" value="${t.topic}" bea="<%=true%>"/>
- </td>
- <td align="center" bgcolor="#f6f6f6">
- <c:set value="${t.ccID}" target="${cci}" property="ccID" />
- <%
- ccit = (ClubClassItem)cci.getClubClassInfo();
- %>
- <club:classinfo type="className" url="../" value="<%=ccit.getCcName()%>" idIs="<%=ccit.getCcID()%>"/> </td>
- <td align="center" bgcolor="#f6f6f6">
- <club:users type="userName" idIs="${t.userID}" value="${t.userName}" url="../" bea="<%=false%>"/></td>
- <td align="center" bgcolor="#f6f6f6">
- <club:topic type="topicIsPass" bea="${t.topicIsPass}" value="${t.topicIsPass}"/></td>
- <td align="center" bgcolor="#f6f6f6">
- <club:topic type="topicPro" idIs="${t.topicPro}"/></td>
- <td align="center" bgcolor="#f6f6f6">
- <c:if test="${t.topicLayer>0}" >
- 回复
- </c:if>
- <c:if test="${t.topicLayer==0}" ><strong>
- 主题
- </strong>
- </c:if></td>
- <td align="center" bgcolor="#f6f6f6">
- <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/></td>
- <td align="center" bgcolor="#f6f6f6">
- <club:topic type="topicAddTime" value="${t.topicAddTime}"/></td>
- </tr>
- </c:forEach>
- <tr>
- <td height="25" align="center" bgcolor="#f6f6f6">
- <input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/> </td>
- <td colspan="8" bgcolor="#f6f6f6"><select name="act" id="act">
- <option value="0" selected>操作内容</option>
- <option value="1">认证主题</option>
- <option value="2">反认证主题</option>
- <option value="3">删除主题至回收站</option>
- <option value="4">还原回收站主题</option>
- <option value="5">物理删除主题</option>
- </select>
- <input name="gvSubmit" type="submit" id="gvSubmit" value="确定提交">
- <strong>(为了统计的精确性,删除主题时建议全部归入回收站再执行物理删除操作)</strong>
- </td>
- </tr>
- </form>
- </table>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#CCCCCC">
- <tr>
- <td><strong><%=OutPrint.pageJump(totalPage,30, iPage, "clubTopicList.jsp?isPass="+isPass+"&pro="+pro+"&isRe="+isRe+"&")%></strong></td>
- </tr>
- </table>
- </body>
- </html>