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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"  session="true" errorPage="err.jsp" %>
  2. <%@ include file="./GVinc/gvImport.jsp" %>
  3. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  4. <jsp:useBean id="ca" scope="page" class="com.gamvan.club.ClubAffiche"/>
  5. <jsp:useBean id="ctc" scope="page" class="com.gamvan.club.topic.ClubTopicCollection"/><%@ 
  6. include file="./GVinc/gvClassInfo.jsp" %><%
  7. if(request.getParameter("ccStyle")!=null){
  8. ccStyle = TypeChange.stringToByte(request.getParameter("ccStyle"));
  9. }else{
  10. ccStyle = ccoStyle;
  11. }
  12. int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
  13. if(iPage<1){iPage = 1;}
  14. short tPro = TypeChange.stringToShort(request.getParameter("tPro"));
  15. String menuStyle="CurNew";
  16. if(request.getParameter("menuStyle")!=null){
  17. menuStyle=request.getParameter("menuStyle");
  18. }
  19. %><html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <title><%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%></title>
  22. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  23. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  24. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  25. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  26. <STYLE type=text/css media=screen>
  27. @import url(./GVinc/classMenu.css);
  28. @import url(./GVinc/main.css);
  29. @import url(./GVinc/newStyle.css);
  30. </STYLE>
  31. </head>
  32. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  33. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  34. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  35. <script language="javascript" type="text/javascript" src="GVscript/GVtree.js"></script>
  36. <script language="javascript" type="text/javascript" src="GVscript/GVloadImgs.js"></script>
  37. <script language="javascript" type="text/javascript">
  38. prtie2('<%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>')
  39. </script>
  40. <body class=<%=menuStyle%> onLoad="loadImg();">
  41. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  42. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 40%; TEXT-ALIGN: center">
  43. <TABLE cellPadding=6 border=0>
  44. <TBODY><TR><TD align=middle>
  45. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  46. <BR>
  47. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  48. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  49. <%
  50. //权限判断开始
  51. if(ccID<=0){
  52. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  53. out.close();
  54. if(true) return;
  55. }
  56. if(ccUgid<gvUserGradeID){
  57. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区分类!如果您尚未登陆,请先登陆社区!"));
  58. out.close();
  59. if(true) return;
  60. }
  61. if(ccType==0){
  62. if(!isPass(gvUserGradeTxt,2)){
  63. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区分类!"));
  64. out.close();
  65. if(true) return;
  66. }
  67. }else{
  68. if(!isPass(gvUserGradeTxt,3)){
  69. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区版面!"));
  70. out.close();
  71. if(true) return;
  72. }
  73. }
  74. if(ccPro>0){
  75. boolean passPro=false; //判断用户是否有访问特殊属性的版面
  76. if(ccPro==3){
  77. passPro = ae.txtsArray(ccUserPass, gvUserName, "|");
  78. if(!passPro && !isPass(gvUserGradeTxt,41)){
  79. out.print(errs(1,"本版为成员版,须经过管理员认证才能访问!"));
  80. out.close();
  81. if(true) return;
  82. }
  83. }
  84. }
  85. %>
  86. <div class="line"></div>
  87. <DIV class="list_table_20">
  88. <span style="float:right">
  89. <strong><a onmouseover="showmenu(event,'','Menu_Show_')" href="#">显示风格</a></strong>
  90. <DIV class="showMenu" id="Menu_Show_" ><UL>
  91. <li><a href="clubClass.jsp?ccID=<%=ccID%>&iPage=<%=iPage%>&ccStyle=0&tPro=<%=tPro%>&menuStyle=<%=menuStyle%>">BBS风格</a></li>
  92. <li><a href="clubClass.jsp?ccID=<%=ccID%>&iPage=<%=iPage%>&ccStyle=1&tPro=<%=tPro%>&menuStyle=<%=menuStyle%>">讨区风格</a></li>
  93. </UL></DIV>
  94. &nbsp;&nbsp;
  95. <a href="clubClass.jsp?&menuStyle=CurBest&ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&tPro=1" target="_self">精华</a>
  96. &nbsp;&nbsp;
  97. <a href="clubClassManage.jsp?ccID=<%=ccID%>">管理</a>&nbsp;
  98. </span>
  99. <div style="float:left">
  100. <strong>版主:</strong>&nbsp;
  101. <c:forEach var="cuo" items="<%=cuo.useropList(ccID, ccID1, ccID2)%>">
  102. <club:userop type="uoUser" idIs="${cuo.userID}" value="${cuo.uoUser}" url=""/>&nbsp;&nbsp;
  103. </c:forEach>
  104. </div>
  105. </DIV>
  106. <div class="line"></div>
  107. <DIV class="list_table_20">
  108. <span style="float:right">
  109. <%if(ccType==1){%><strong>主题:</strong>
  110. <%out.print(ccTopic+ccReply);%>&nbsp;<strong>今日主题:</strong>
  111. <%out.print(ccTodayTopic+ccTodayReply);%><%}%>&nbsp;
  112. </span>
  113. <span style="float:left">
  114. <strong>寄语</strong>:<%=ccSummary%>
  115. </span>
  116. </DIV>
  117. <div class="line"></div>
  118. <DIV class="list_table_30">
  119. <span style="float:right">
  120. <%if(ccType==1){%>
  121. <a href="clubPost.jsp?ccID=<%=ccID%>&act=add"><img src="GVimgs/topic.gif" border="0" /></a>
  122. <%}else{%>进入小分类发表文章<%}%>
  123. </span><DIV class="list_img_left"><strong>公告:</strong></DIV>
  124. <span style="float:left">
  125. <%=ca.afficheMarquee(ccID,8)%></span>
  126. </DIV>
  127. <div class="line"></div>
  128. <DIV class="list_table_0">
  129. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
  130. com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
  131. )%>&nbsp;&nbsp;
  132. <%if(tPro==1){%><a href="clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&tPro=1"><strong>精华区</strong></a><%}%>
  133. </DIV>
  134. <div class="line"></div>
  135. <DIV id=Head> 
  136. <DIV id="tabBar"><ul id="tab_bar">
  137. <li id=menuNew><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurNew&iPage=<%=iPage%>"><SPAN>最新更新</span></a></li>
  138. <li id=menuTopic><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurTopic&iPage=<%=iPage%>"><SPAN>最新发表</span></a></li>
  139. <li id=menuHot><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurHot&iPage=<%=iPage%>"><SPAN>热门主题</span></a></li>
  140. <li id=menuBest><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurBest&iPage=<%=iPage%>&tPro=1"><SPAN>最新精品</span></a></li>
  141. <li id=menuAsk><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurAsk&iPage=<%=iPage%>"><SPAN>最新提问</span></a></li>
  142. <li id=menuAnswer><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurAnswer&iPage=<%=iPage%>"><SPAN>最新结贴</span></a></li>
  143. </ul></DIV>
  144. </DIV><%
  145. //--------------头部文件结束-----------------
  146. int totalPage = 0; // 总页数
  147. //================BBS风格开始========================
  148. ctc.setTopicPro(tPro);
  149. ctc.setCcID(ccID);
  150. ctc.setMenuStyle(menuStyle);
  151. totalPage = ctc.topicCount();
  152. String tUrl = "clubPage.jsp?ccStyle="+ccStyle+"";
  153. List list = null;
  154. list = ctc.topicList(iPage,ccTopicNum);
  155. if(ccStyle==0){
  156. %>
  157. <DIV class="list_tab_0">
  158. <DIV class="list_r_0">
  159. <DIV class="list_0"><span class="text_bold">查阅</span></DIV>
  160. <DIV class="list_1"><span class="text_bold">回复</span></DIV>
  161. <DIV class="list_3"><span class="text_bold">作者</span></DIV>
  162. <DIV class="list_2"><span class="text_bold">最后更新</span></DIV>
  163. <DIV class="list_none"><span class="text_bold">最后回复</span></DIV>
  164. </DIV>
  165. <DIV class="list_center"><span class="text_bold">主题</span></DIV>
  166. </DIV>
  167. <c:forEach var="t" items="<%=list%>">
  168. <DIV class="list_tab_1">
  169. <DIV class="list_r_0">
  170. <DIV class="list_0">
  171. <span class="smallTxt"><club:topic type="topicViewCount" value="${t.topicViewCount}"/></span>
  172. </DIV>
  173. <DIV class="list_1">
  174. <span class="smallTxt"><club:topic type="topicReCount" value="${t.topicReCount}"/></span>
  175. </DIV>
  176. <DIV class="list_3">
  177. <club:users type="userName" idIs="${t.userID}" value="${t.userName}" bea="<%=false%>"/>
  178. </DIV>
  179. <DIV class="list_2">
  180. <span class="smallTxt"><club:topic type="topicLastReTime" value="${t.topicLastReTime}"/></span>
  181. </DIV>
  182. <DIV class="list_none">
  183. <club:users type="userName" value="${t.topicLastReUser}"/>
  184. </DIV>
  185. </DIV>
  186. <DIV class="list_left_2">
  187. <club:topic type="img_listNew" ccID="${t.ccID}" url="<%=tUrl%>" linkId="${t.topicID}" idIs="${t.topicOrder}" value="${t.topicPro}" property="${t.topicAddTime}" />
  188. </DIV>
  189. <DIV class="list_left_0">
  190. <club:topic type="img_listMood"  value="${t.topicMood}"/>
  191. </DIV>
  192. <div class="list_img_left">
  193. <club:topic type="img_listClick" idIs="${t.topicID}" value="${t.ccID}"/>
  194. </div>
  195. <div class="list_img_right">
  196. <club:topic type="img_listHot" idIs="${t.topicViewCount}" value="${t.topicReCount}"/>
  197. <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
  198. </div>
  199. <DIV class="list_topic">
  200. <club:topic type="topic" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
  201. </DIV>
  202. </DIV>
  203. <div  class="list_display_none" style="DISPLAY: none" id="load_<c:out value="${t.topicID}"/>"> 
  204. <div style='margin-left:25px;margin-right:10px;' id='replies_<c:out value="${t.topicID}"/>'> <strong>正在读取此主题相关回复,请稍候......</strong></div>
  205. </div>
  206. </c:forEach><%
  207. //================BBS风格结束========================
  208. }else{
  209. //================讨论区风格开始========================
  210. %><DIV class="list_tab_0">
  211. <DIV class="list_r_1">
  212. <DIV class="list_0"><span class="text_bold">查阅</span></DIV>
  213. <DIV class="list_1"><span class="text_bold">回复</span></DIV>
  214. <DIV class="list_2"><span class="text_bold">发表时间</span></DIV>
  215. <DIV class="list_none"><span class="text_bold">型别</span></DIV>
  216. </DIV>
  217. <DIV class="list_center"><span class="text_bold">主题</span></DIV>
  218. </DIV>
  219. <c:set var="cas" value="0"/>
  220. <c:forEach var="t" items="<%=list%>">
  221. <DIV class="list_tab_1">
  222. <DIV class="list_r_1">
  223. <DIV class="list_0">
  224. <span class="smallTxt"><c:out value="${t.topicViewCount}" escapeXml="false"/></span>
  225. </DIV>
  226. <DIV class="list_1">
  227. <span class="smallTxt"><c:out value="${t.topicReCount}" escapeXml="false"/></span>
  228. </DIV>
  229. <DIV class="list_2">
  230. <span class="smallTxt"><club:topic type="topicAddTime" value="${t.topicAddTime}"/></span>
  231. </DIV>
  232. <DIV class="list_3">
  233. <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
  234. </DIV>
  235. </DIV>
  236. <DIV class="list_topic">
  237. <club:topic type="img_listMood"  value="${t.topicMood}"/>
  238. 【<club:users type="userName" idIs="${t.userID}" value="${t.userName}" bea="<%=false%>"/>】
  239. <club:topic type="topic" url="<%=tUrl%>" ccID="${t.ccID}" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
  240. <club:topic type="img_listHot" idIs="${t.topicViewCount}" value="${t.topicReCount}"/>
  241. <c:if test="${t.topicOrder>0}">
  242. <club:topic type="img_listNew" url="<%=tUrl%>" ccID="${t.ccID}" linkId="${t.topicID}" idIs="${t.topicOrder}" value="${t.topicPro}" property="${t.topicAddTime}" />
  243. </c:if>
  244. &nbsp;<span class="smallTxt"><i><club:topic type="topicLen" value="${t.topicLen}" 
  245. idIs="${t.topicID}" linkId="0" 
  246. url="clubPost.jsp?ccID=${t.ccID}"/></i></span>
  247. </DIV>
  248. </DIV>
  249. <!--=============回复内容开始==================-->
  250. <c:if test="${t.topicOrder==0}" >
  251. <c:set value="${t.topicID}"  target="${ctc}" property="topicID" />
  252. <c:set value="<%=String.valueOf(ccStyle)%>"  target="${ctc}" property="ccStyle"/>
  253. <c:forEach var="re" items="<%=ctc.topicReList(1,100)%>">
  254. <DIV class=list_tab_2>
  255. <DIV class="list_r_1">
  256. <DIV class="list_0">
  257. <span class="smallTxt"><c:out value="${re.topicViewCount}" escapeXml="false"/></span>
  258. </DIV>
  259. <DIV class="list_1">
  260. <span class="smallTxt"><c:out value="${re.topicReCount}" escapeXml="false"/></span>
  261. </DIV>
  262. <DIV class="list_2">
  263. <span class="smallTxt"><club:topic type="topicAddTime" value="${re.topicAddTime}"/></span>
  264. </DIV>
  265. <DIV class="list_3">
  266. <club:topic type="img_listType" idIs="${re.topicType}" value="${re.topicTypeNum}"/>
  267. </DIV>
  268. </DIV>
  269. <DIV class="topic">
  270. <club:topic type="tree_list" idIs="${re.topicLayer}" value="${re.topicTree}"/>
  271. <club:topic type="img_listMood"  value="${re.topicMood}"/>
  272. 〖<club:topic type="userName" idIs="${re.userID}" value="${re.userName}" bea="<%=true%>"/>〗
  273. <club:topic type="topic" url="<%=tUrl%>"  ccID="${re.ccID}" idIs="${t.topicID}" linkId="${re.topicReID}" value="${re.topic}" bea="<%=true%>"/>
  274. <club:topic type="img_listHot" idIs="${re.topicViewCount}" value="${re.topicReCount}"/>
  275. &nbsp;<i class="smallTxt"><club:topic type="topicLen" value="${re.topicLen}" 
  276. idIs="${t.topicID}" linkId="${re.topicReID}" 
  277. url="clubPost.jsp?ccID=${t.ccID}"/></i>
  278. </DIV>
  279. </DIV>
  280. </c:forEach>
  281. </c:if>
  282. <!---------------回复内容结束-------------------->
  283. </c:forEach>
  284. <%
  285. }
  286. list = null;
  287. out.println(ctc.getMessage());
  288. //===========讨论区风格结束==================
  289. %>
  290. <div class="line"></div>
  291. <DIV class="list_tab">
  292. <%=OutPrint.pageJump(totalPage,ccTopicNum, iPage, "clubClass.jsp?ccID="+ccID+"&ccStyle="+ccStyle+"&tPro="+tPro+"&menuStyle="+menuStyle+"&")%>
  293. </div>
  294. <div class="line"></div>
  295. <DIV class="list_tab_0">
  296. <DIV class="text_bold">
  297. 版面图例 
  298. </DIV>
  299. </DIV>
  300. <DIV class="list_tab_1">
  301. <DIV class="list_img_left">
  302. <img src="GVimgs/topicPro/new.gif" align="absmiddle" />新帖
  303. &nbsp;&nbsp;
  304. <img src="GVimgs/topicPro/old.gif" align="absmiddle" />旧帖
  305. &nbsp;&nbsp;
  306. <img src="GVimgs/topicPro/up3.gif" align="absmiddle" />总置顶帖
  307. &nbsp;&nbsp;
  308. <img src="GVimgs/topicPro/up1.gif" align="absmiddle" />置顶帖
  309. &nbsp;&nbsp;
  310. <img src="GVimgs/topicPro/best.gif" align="absmiddle" />精品帖
  311. &nbsp;&nbsp;
  312. <img src="GVimgs/topicPro/hot.gif" align="absmiddle" />热门帖
  313. &nbsp;&nbsp;
  314. <img src="GVimgs/topicPro/lock.gif" align="absmiddle" />锁定帖
  315. </DIV>
  316. </DIV>
  317. <div class="line"></div>
  318. <%@ include file="GVinc/gvOnlineArea.jsp" %>
  319. <%=Gfoot()%>
  320. </body>
  321. </html>
  322. <!-- Powered by www.GamVan.com -->