📄 clubtopiclist.jsp
字号:
<%@ 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 = TypeChange.stringToInt(request.getParameter("iPage"));
if(iPage<1){
iPage = 1;
}
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 = TypeChange.stringToInt(request.getParameter("isPass"));
}else{
isPass = -1;
}
if(request.getParameter("layer")!=null){
layer = TypeChange.stringToShort(request.getParameter("layer"));
}else{
layer = -1;
}
if(request.getMethod().equals("POST")){
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" align="center" bgcolor="#FFFFFF">
<a href="clubTopicList.jsp?isPass=-1&pro=-1&layer=-1">全部帖子</a>
<a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&layer=<%=layer%>">所有已认证</a>
<a href="clubTopicList.jsp?isPass=0&pro=<%=pro%>&layer=<%=layer%>">所有未认证</a>
<a href="clubTopicList.jsp?isPass=<%=isPass%>&pro=4&layer=<%=layer%>">回收站主题</a>
<a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&layer=0">所有主题</a>
<a href="clubTopicList.jsp?isPass=1&pro=<%=pro%>&layer=1">所有回复</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.setTopicLayer(layer);
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">
<club:topic type="htmlCheckbox" idIs="${t.topicID}"/>
</td>
<td bgcolor="#f6f6f6">
<c:if test="${t.topicLayer>0}" >
<club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicReID}" linkId="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
</c:if>
<c:if test="${t.topicLayer==0}" >
<club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
</c:if>
</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+"&layer="+layer+"&")%></strong></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -