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

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="cti" scope="page" class="com.gamvan.club.topic.ClubTopicInfo"/>
  6. <jsp:useBean id="ctli" scope="request" class="com.gamvan.club.topic.ClubTopicLogInfo"/>
  7. <jsp:useBean id="ctc" scope="request" class="com.gamvan.club.topic.ClubTopicCollection"/>
  8. <jsp:useBean id="ccc" scope="request" class="com.gamvan.club.topic.ClubContentCollection"/>
  9. <jsp:useBean id="ctil" scope="request" class="com.gamvan.club.topic.ClubTopicIlike"/>
  10. <jsp:useBean id="ctt" scope="request" class="com.gamvan.club.topic.ClubTopicType"/>
  11. <jsp:useBean id="csrs" scope="request" class="com.gamvan.club.ClubStringReplaces"/><%@ 
  12. include file="./GVinc/gvClassInfo.jsp" 
  13. %><%
  14. if(request.getParameter("ccStyle")!=null){
  15. ccStyle = ParamUtils.getByteParameter(request,"ccStyle");
  16. }else{
  17. ccStyle = ccoStyle;
  18. }
  19. //定义函数,准备读取主题内容
  20. int reID = ParamUtils.getIntParameter(request,"reID");
  21. int tID = ParamUtils.getIntParameter(request,"tID");
  22. if(tID<=0){
  23. out.print(OutPrint.prtCenter("您所请求的页面不存在或已被删除!","userLogin.jsp",1));
  24. out.close();
  25. return;
  26. }
  27. ctil.updateMyLike(tID,gvUserID); //更新订阅收藏的主题最后查看时间
  28. cti.topicUpdate(tID, reID, ccStyle); //浏览次数加1 
  29. // 判断是显示回复还是主题
  30. ClubTopicItem ctit = null;
  31. ClubTopicReItem ctrit = null;
  32. ClubContentReItem ccrItem = null;
  33. ClubContentItem ccItem = null;
  34. /**
  35.  * 用来判断调用哪个类的方法
  36.  * 0调用主题表 1调用回复表
  37.  */
  38. boolean isRe = false; //用来判断调用哪个类的方法
  39. if(ccStyle==1){
  40. if(reID>0){
  41. isRe = true;
  42. }
  43. }
  44. if(isRe){
  45. ctrit = (ClubTopicReItem)cti.topicInfo(tID, reID, ccStyle);
  46. if(ctrit==null){
  47. out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
  48. out.close();
  49. return;
  50. }
  51. }else{
  52. ctit = (ClubTopicItem)cti.topicInfo(tID, reID, ccStyle);
  53. if(ctit==null){
  54. out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
  55. out.close();
  56. return;
  57. }
  58. }
  59. %><%@ include file="./GVinc/gvTopicGet.jsp" %><html xmlns="http://www.w3.org/1999/xhtml">
  60. <head>
  61. <title><%=topic%>__来自:<%=clubTitle%>__<%=ccName%></title>
  62. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  63. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  64. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  65. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  66. <STYLE type=text/css media=screen>
  67. @import url(./GVinc/main.css);
  68. </STYLE>
  69. </head>
  70. <body>
  71. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  72. <TABLE cellPadding=6 border=0>
  73. <TBODY><TR><TD align=middle>
  74. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  75. <BR><FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  76. <script language="javascript"  type="text/javascript" src="GVscript/GVtopCode.js"></script>
  77. <script language="javascript"  type="text/javascript" src="GVscript/GVrunCode.js"></script>
  78. <SCRIPT language="javascript" type="text/javascript" >gv_showWait('waitDiv', 1); </SCRIPT>
  79. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  80. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  81. <script language="javascript" type="text/javascript">
  82. prtie2('<%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>__<%=topic%>')
  83. </script>
  84. <%
  85. int iPage = ParamUtils.getIntParameter(request,"iPage");
  86. if(iPage < 1 ){ iPage=1; }
  87. if(ccID<=0){
  88. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  89. out.close();
  90. if(true) return;
  91. }
  92. if(!topicIsPass){
  93. out.print(errs(1,"你请求的主题正在审核中。。。"));
  94. out.close();
  95. if(true) return;
  96. }
  97. /*
  98. //黑名单判断开始
  99. if(cbg.clubBlackSelect(gvUserID, 1)){
  100. blackInfo = cbg.getBlackInfo();
  101. blackTxt = cbg.getBlackTxt();
  102. blackOver = cbg.getBlackOver();
  103. blackCCID = cbg.getCCID();
  104. if(blackCCID==0 || blackCCID==ccID || blackCCID==ccID1 || blackCCID==ccID2){
  105. if(isPass(blackInfo,3)){ //禁止浏览主题
  106. if(blackOver==0){
  107. out.print(errs(1,"您的浏览权限被社区勤杂工屏闭,操作理由是:<strong>"+blackTxt+"</strong>"));
  108. out.close();
  109. if(true) return;
  110. }
  111. }
  112. }
  113. }
  114. */
  115. //权限判断开始
  116. if(ccUgid<gvUserGradeID){
  117. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权查看本主题!如果您尚未登陆,请先登陆社区!"));
  118. out.close();
  119. if(true) return;
  120. }
  121. if(ccType==0){
  122. if(!isPass(gvUserGradeTxt,2)){
  123. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区分类!"));
  124. out.close();
  125. if(true) return;
  126. }
  127. }else{
  128. if(!isPass(gvUserGradeTxt,3)){
  129. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区版面!"));
  130. out.close();
  131. if(true) return;
  132. }
  133. }
  134. if(ccPro>0){
  135. boolean passPro=false; //判断用户是否有访问特殊属性的版面
  136. if(ccPro==3){
  137. passPro = ae.txtsArray(ccUserPass, gvUserName, "|");
  138. if(!passPro && !isPass(gvUserGradeTxt,41)){
  139. out.print(errs(1,"本版为成员版,须经过管理员认证才能访问!"));
  140. out.close();
  141. if(true) return;
  142. }
  143. }
  144. }
  145. //================判断主题型别开始===========================
  146. switch(topicType){
  147. case 0:
  148. if(!isPass(gvUserGradeTxt,4)){
  149. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览本版内容,如果您还没有登陆,请先登陆!"));
  150. out.close();
  151. if(true) return;
  152. }
  153. break;
  154. default:
  155. if(!isPass(gvUserGradeTxt,5)){
  156. out.print(errs(1,"您的级别("+ gvUserGradeName +")不可以请求浏览社区<strong>金钱、散分、积分、隐藏</strong>等特殊型别的主题!"));
  157. out.close();
  158. if(true) return;
  159. }
  160. break;
  161. }
  162. if(topicPro==1){
  163. if(!isPass(gvUserGradeTxt,6)){
  164. out.print(errs(1,"您的级别("+ gvUserGradeName +")不可以请求浏览社区<strong>精华帖</strong>!"));
  165. out.close();
  166. if(true) return;
  167. }
  168. }
  169. if(request.getMethod().equals("POST")){
  170. switch(topicType){
  171. case 2:
  172. //判断主题型别库当前用户是否参与过selectTopicType返回 double
  173. boolean bea = false;
  174. if(cti.selectTopicType(topicID, gvUserID, topicType, topicTypeNum)<=0){
  175. bea = cti.addTopicType(topicID, gvUserID, topicType, topicTypeNum);
  176. }else{
  177. bea = cti.updateTopicType(topicID, gvUserID, topicType, topicTypeNum);
  178. }
  179. if(!bea){
  180. out.print(prtCenter(cti.getMessage(),"",2));
  181. response.setHeader("Refresh", "2; ");
  182. out.print(Gfoot());
  183. out.close();
  184. if(true)return;
  185. }
  186. break;
  187. case 3:
  188. break;
  189. }
  190. }
  191. double userTypeNum=0;
  192. String reUsers = "";
  193. switch(topicType){
  194. case 1:
  195. userTypeNum=gvUserMark;
  196. break;
  197. case 2:
  198. //out.print(userTypeNum);
  199. userTypeNum=cti.selectTopicType(topicID, gvUserID, topicType, topicTypeNum);
  200. break;
  201. case 3:
  202. break;
  203. case 4:
  204. ClubTopicReUsersItem ctrui = null;
  205. ctrui = (ClubTopicReUsersItem)cti.selectReUsers(tID);
  206. if(ctrui!=null){
  207. reUsers = "|" + ctrui.getReUsers() + "|";
  208. }
  209. topicTypeNum = reUsers.indexOf("|" + gvUserName + "|"); //如果回复过则返回0,否则返回-1
  210. //out.print(reUsers);
  211. break;
  212. }
  213. if(userName.equals(gvUserName)){
  214. userTypeNum=-1;
  215. }
  216. if(isPass(gvUserGradeTxt,42)){ //判断是否开通特殊权限
  217. userTypeNum=-2;
  218. }
  219. /**
  220. content = es.htmlEncoder(content);
  221. es.setUbbImg(contentImg);
  222. es.setUbbUrl(contentUrl);
  223. content = es.ubbEncoder(content);
  224. ctt.setTopicType(topicType);
  225. ctt.setTopicTypeNum(topicTypeNum);
  226. ctt.setUserTypeNum(userTypeNum);
  227. content = ctt.encoderType(content);
  228. */
  229. //=============================================================================
  230. double userMark = 0;
  231. double userMoney = 0;
  232. double userCredit = 0;
  233. int userTopicCount=0, userReCount=0;
  234. String userRegDate="", userLastDate="";
  235. String userWeb="", userArea="", userCity="", userPen="", userPic="";
  236. String userName2 = "";
  237. boolean userIsDel = false;
  238. cui = null;
  239. cui = cu.userInfo(userID);
  240. if(cui!=null){
  241. userIsDel = cui.getUserIsDel();
  242. if(!userIsDel){
  243. userName2 = cui.getUserName2();
  244. userMark = cui.getUserMark();
  245. userMoney = cui.getUserMoney();
  246. userCredit = cui.getUserCredit();
  247. userTopicCount = cui.getUserTopicCount();
  248. userReCount = cui.getUserReCount();
  249. //userRegDate = cui.getUserRegDate();
  250. userWeb = cui.getUserWeb();
  251. userArea = cui.getUserArea();
  252. userCity = cui.getUserCity();
  253. //userQQ = cu.getUserQQ();
  254. userPen = cui.getUserPen();
  255. //userPen = es.htmlEncoder(userPen);
  256. //userPen = es.ubbEncoder(userPen);
  257. userPic = cui.getUserPic();
  258. }
  259. }
  260. /*
  261. //黑名单过滤开始
  262. if(cbg.clubBlackSelect(userID, 1)){
  263. blackInfo = cbg.getBlackInfo();
  264. blackTxt = cbg.getBlackTxt();
  265. blackOver = cbg.getBlackOver();
  266. blackCCID = cbg.getCCID();
  267. if(blackCCID==0 || blackCCID==ccID || blackCCID==ccID1 || blackCCID==ccID2){
  268. if(isPass(blackInfo,7)){ //禁止显示签名
  269. if(blackOver==0){
  270. userPen = "<font color="#000099">==>此用户签名已被社区勤杂工屏闭<==<br>";
  271. userPen += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;操作理由是:"+blackTxt+"</font>";
  272. }
  273. }
  274. if(isPass(blackInfo,4)){ //禁止显示签名
  275. if(blackOver==0){
  276. content = "<font color="#bb0000">==>此用户发表的主题已被社区勤杂工屏闭 禁止显示<==<br>";
  277. content += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;操作理由是:"+blackTxt+"</font>";
  278. }
  279. }
  280. }
  281. blackInfo=null;
  282. blackTxt=null;
  283. }
  284. */
  285. %>
  286. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  287. <tr class="tab1"><td height="25">
  288. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
  289. com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
  290. )%>查看文章
  291. </td>
  292. </tr></table>
  293. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="bg0">
  294. <tr><td height="20">
  295. <a href="clubPost.jsp?ccID=<%=ccID%>&act=add"><img alt="发表新主题" src="GVimgs/topic.gif" border="0" align="absmiddle" /></a>
  296. &nbsp;&nbsp;
  297. <a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=re"><img alt="回复本主题" src="GVimgs/reTopic.gif" border="0" align="absmiddle"/></a>
  298. &nbsp;&nbsp;
  299. 本主题已被查阅<strong>&nbsp;<%=topicViewCount%>&nbsp;</strong>次,
  300. 回复<strong>&nbsp;<%=topicReCount%>&nbsp;</strong>次。
  301. </td><td width="160" align="right">
  302. <%
  303. if(ccStyle==0){
  304. %>
  305. <a href="clubPage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&ccStyle=1&iPage=<%=iPage%>">树型显示</a>
  306. <%
  307. }else{
  308. %>
  309. <a href="clubPage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&ccStyle=0&iPage=<%=iPage%>">平板显示</a>
  310. <%
  311. }
  312. %>
  313. &nbsp;&nbsp;<a href="./clubPageSend.jsp?ccID=<%=ccID%>&tID=<%=tID%>">推荐给朋友</a>
  314. </td></tr></table>
  315. <script>
  316. document.write("<table width="99%"  border="0" align="center" cellpadding="2" cellspacing="1" class="bg0"><tr>");
  317. document.write("<td width="100">本页URL地址</td>");
  318. document.write("<td><input onfocus="this.select();" class="inputText"  size="60"  name="" type="text"  style='width:100%; height:20px'   value=""+self.location+"" /></td>");
  319. document.write("<td width="120" align="right">");
  320. document.write("<a href="./clubTopicIlike.jsp?tID=<%=tID%>" target="_self">订阅本主题</a>");
  321. document.write("</td>");
  322. document.write("</tr></table>");
  323. </script>
  324. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  325. <tr class="tr2">
  326. <td width="128" height="22"><strong>&nbsp;用户:</strong>
  327. <club:users type="userName"  idIs="<%=userID%>" value="<%=userName%>" bea="<%=userIsDel%>"/>
  328. </td>
  329. <td height="22">
  330. <club:topic type="img_listMood"  value="<%=String.valueOf(topicMood)%>"/>
  331. <club:topic type="img_listType" idIs="<%=topicType%>" value="<%=String.valueOf(topicTypeNum)%>"/>
  332. <strong>
  333. <club:topic type="topic"  value="<%=topic%>"/>
  334. </strong>
  335. &nbsp;
  336. <span class="smallTxt">
  337. <club:topic type="topicAddTime" value="<%=topicAddTime%>"/>
  338. </span>
  339. </td>
  340. </tr>
  341. <tr class="tab2">
  342. <td width="128" valign="top" class="td">
  343. <table width="100%" border="0" align="center" cellpadding="1" cellspacing="2">
  344. <%
  345. if(userPic!=null && !userPic.equals("")){
  346. out.print("<tr><td colspan="2">");
  347. out.print("<div align="center"><img src=""+ userPic +"" border="0" onload="javascript:if(this.width > 120){this.width = 120};"></div>");
  348. out.print("</td></tr>");
  349. }
  350. %>
  351. <tr>
  352. <td width="35"><strong>积分:</strong></td>
  353. <td ><%=userMark%></td>
  354. </tr><tr>
  355.       <td><strong>金币:</strong></td>
  356.       <td><%=userMoney%></td>
  357.       </tr>
  358.     <tr>
  359.       <td><strong>信誉:</strong></td>
  360.       <td><%=userCredit%></td>
  361.       </tr>
  362.     <tr>
  363.       <td><strong>发帖:    </strong></td>
  364.       <td><%=userTopicCount%></td>
  365.       </tr>
  366.     <tr>
  367.       <td><strong>来自:</strong></td>
  368.       <td><%
  369. out.print(userArea);
  370. if(userCity!=null && !userCity.equals("")){
  371. out.print("," + userCity);
  372. }
  373. %></td></tr>
  374. </table>
  375. </td>
  376. <td valign="top" class="bg0">
  377. <!-----------------文章顶部按钮开始------------------>
  378. <table width="100%" border="0" cellpadding="1" cellspacing="2">
  379. <tr><td align="right" >
  380. <span style="float:left; color:#0022aa">楼主<%
  381. out.print("->&nbsp;<a href="userInfo.jsp?userID="+userID+"" target="_blank" style="color:#009900">"+userName2+"</a>");
  382. %></span>
  383. <%if(userWeb != ""){%>
  384. <a href="<%=userWeb%>" target="_blank"><img alt="查看用户个人主页" src="GVimgs/pages/1.gif" border="0" /></a>
  385. <%}%>
  386. <a href="userInfo.jsp?userID=<%=userID%>" target="_blank"><img alt="查看用户信息" src="GVimgs/pages/2.gif" border="0" /></a>
  387. <a onClick="return openPop(this,500,400,100,200);" href="emailSend.jsp?userID=<%=userID%>" target="_self"><img alt="给用户发送Email" src="GVimgs/pages/3.gif" border="0"  /></a>
  388. <club:users type="imgFriend"  idIs="<%=userID%>" property="<%=userName%>"/>
  389. <club:users type="imgMessage"  idIs="<%=userID%>" property="<%=userName%>"/>
  390. <a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<%=reID%>&act=re" target="_self"><img alt="回复主题" src="GVimgs/pages/7.gif" border="0"  /></a>
  391. <a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<%=reID%>&act=re&ac=quote" target="_self"><img alt="引用回复主题" src="GVimgs/pages/8.gif" border="0"  /></a>
  392. <a onmouseover="showmenu(event,'','Menu_Show_<%=-1%>')" href="#"><img alt="帖子管理" src="GVimgs/pages/9.gif" border="0"  /></a>
  393. <DIV class="showMenu" id="Menu_Show_<%=-1%>" >
  394. <UL>
  395. <li><a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<%=reID%>&act=edit" target="_self">编辑主题</A></li>
  396. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<%=reID%>&act=del" target="_self">删除主题</a></li>
  397. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<%=reID%>&act=manage" target="_self">管理主题</a></li>
  398. <li><%if(topicPro==1){%>
  399. <a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=nobest" target="_self">解除精品</a>
  400. <%}else{%><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=best" target="_self">加为精品</a>
  401. <%}%></li>
  402. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=move" target="_self">移动主题</a></li>
  403. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=top" target="_self">置顶主题</a></li>
  404. </UL></DIV>
  405. </td></tr></table>
  406. <!-----------------文章顶部按钮结束------------------>
  407. <club:topicPage type="content" value="<%=content%>"   idIs="<%=tID%>"
  408. pro="<%=topicPro%>"  bea="<%=isPass(gvUserGradeTxt,35)%>"   
  409. bea_img="<%=contentImg%>"  bea_url="<%=contentUrl%>"  
  410. tpType="<%=topicType%>" 
  411. tpTypeNum="<%=topicTypeNum%>"  
  412. tpUserNum="<%=userTypeNum%>"  
  413. />
  414. <club:topicPage type="topicLog" linkId="<%=reID%>" idIs="<%=tID%>" />
  415. <club:topicPage type="contentCopyRight" name="<%=clubName%>" idIs="<%=contentCopyRight%>"/>
  416. <club:topicPage type="contentUserPen" bea="<%=contentUserPen%>" value="<%=userPen%>"/>
  417. </td></tr></table>
  418. <%-- ---------平板文章回复列表开始-------- --%>
  419. <% 
  420. //===========回复开始=====================
  421. int storey = 0;
  422. storey = storey + ((iPage-1) * ccReplyNum);
  423. int totalPage = 0;
  424. totalPage = ctc.topicReCount(tID);
  425. int rtID = 0;
  426. if(ccStyle==0){
  427. %>
  428. <c:set value="<%=String.valueOf(ccStyle)%>"  target="${ctc}" property="ccStyle"/>
  429. <c:set value="<%=String.valueOf(tID)%>"  target="${ctc}" property="topicID"/>
  430. <c:forEach var="re" items="<%=ctc.topicReList(iPage,ccReplyNum)%>">
  431. <c:set value="${re.userID}"  target="${cu}" property="userID" /><%
  432. storey++;
  433. cui = null;
  434. cui = (ClubUserItem)cu.userInfo(0);
  435. if(cui!=null){
  436. userIsDel = cui.getUserIsDel();
  437. if(!userIsDel){
  438. userID = cui.getUserID();
  439. userName2 = cui.getUserName2();
  440. userMark = cui.getUserMark();
  441. userMoney = cui.getUserMoney();
  442. userCredit = cui.getUserCredit();
  443. userTopicCount = cui.getUserTopicCount();
  444. userReCount = cui.getUserReCount();
  445. //userRegDate = cui.getUserRegDate();
  446. userWeb = cui.getUserWeb();
  447. userArea = cui.getUserArea();
  448. userCity = cui.getUserCity();
  449. userPen = cui.getUserPen();
  450. userPic = cui.getUserPic();
  451. }else{
  452. userName = "<font color="#aaaaaa">"+ userName +"</font>";
  453. }
  454. }
  455. %>
  456. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab"><tr class="tr2"><td width="128" height="22">
  457. <strong>&nbsp;用户:</strong>
  458. <club:users type="userName" idIs="${re.userID}" value="${re.userName}" bea="<%=userIsDel%>"/>
  459. </td><td height="22">
  460. <club:topic type="img_listMood"  value="${re.topicMood}"/>
  461. <strong>
  462. <club:topic type="topic"  idIs="${re.topicID}" value="${re.topic}"/>
  463. </strong>
  464. &nbsp;
  465. <span class="smallTxt">
  466. <club:topic type="topicAddTime" value="${re.topicAddTime}"/>
  467. </span>
  468. </td></tr><tr class="tab2"><td width="128" valign="top" class="td">
  469. <!---------------------用户信息开始显示------------------------->
  470. <table width="100%" border="0" align="center" cellpadding="1" cellspacing="2">
  471. <%if(userPic!=null && !userPic.equals("")){
  472. out.print("<tr><td colspan="2">");
  473. out.print("<div align="center"><img src=""+ userPic +"" border="0"  onload="javascript:if(this.width > 120){this.width = 120};"></div>");
  474. out.print("</td></tr>");
  475. }
  476. %><tr><td width="35"><strong>积分:</strong></td><td><%=userMark%></td></tr>
  477. <tr><td><strong>金币:</strong></td><td><%=userMoney%></td></tr>
  478. <tr><td><strong>信誉:</strong></td><td><%=userCredit%></td></tr>
  479. <tr><td><strong>发帖:</strong></td><td><%=userTopicCount%></td></tr>
  480. <tr><td><strong>来自:</strong></td><td><%
  481. out.print(userArea);
  482. if(userCity!=null && !userCity.equals("")){out.print("," + userCity);}
  483. %></td></tr></table>
  484. <!---------------------用户信息结束显示------------------------->
  485. </td><td valign="top"  class="bg0">
  486. <!-----------------文章顶部按钮开始------------------>
  487. <table  width="100%" border="0" cellpadding="1" cellspacing="2">
  488. <tr><td  align="right">
  489. <span style="float:left">
  490. <%
  491. out.print("<span style=color:#0022aa>["+storey+"]楼</span>");
  492. out.print("->&nbsp;<a href="userInfo.jsp?userID="+userID+"" target="_blank" style="color:#009900">"+userName2+"</a>");
  493. %></span>
  494. <%if(userWeb != ""){%>
  495. <a href="<%=userWeb%>" target="_blank"><img alt="查看用户个人主页" src="GVimgs/pages/1.gif" border="0" /></a>
  496. <%}%>
  497. <a href="userInfo.jsp?userID=<%=userID%>" target="_blank"><img alt="查看用户信息" src="GVimgs/pages/2.gif" border="0" /></a>
  498. <a onClick="return openPop(this,500,400,100,200);" href="emailSend.jsp?userID=<%=userID%>" target="_self"><img alt="给用户发送Email" src="GVimgs/pages/3.gif" border="0" /></a>
  499. <club:users type="imgFriend"  idIs="${re.userID}" property="${re.userName}"/>
  500. <club:users type="imgMessage"  idIs="${re.userID}" property="${re.userName}"/>
  501. <a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<club:topic type="topicID" value="${re.topicReID}"/>&act=re&iPage=<%=iPage%>" target="_self"><img alt="回复主题" src="GVimgs/pages/7.gif" border="0" /></a>
  502. <a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<club:topic type="topicID" value="${re.topicReID}"/>&act=re&ac=quote&iPage=<%=iPage%>" target="_self"><img alt="引用回复主题" src="GVimgs/pages/8.gif" border="0"  /></a>
  503. <a onmouseover="showmenu(event,'','Menu_Show_<%=storey%>')" href="#">
  504. <img alt="帖子管理" src="GVimgs/pages/9.gif" border="0"  /></a>
  505. <DIV class="showMenu" id="Menu_Show_<%=storey%>" >
  506. <UL>
  507. <li><a href="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<club:topic type="topicID" value="${re.topicReID}"/>&act=edit" target="_self">编辑主题</A></li>
  508. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<club:topic type="topicID" value="${re.topicReID}"/>&act=del" target="_self">删除主题</a></li>
  509. <li><a href="clubPageManage.jsp?ccID=<%=ccID%>&tID=<%=tID%>&reID=<club:topic type="topicID" value="${re.topicReID}"/>&act=manage" target="_self">管理主题</a></li>
  510. </UL>
  511. </DIV>
  512. </td></tr></table>
  513. <!-----------------文章顶部按钮结束------------------>
  514. <c:set value="${re.topicReID}"  target="${ctc}" property="topicReID" />
  515. <% 
  516. content = "";
  517. contentUserPen = false;
  518. contentUrl = false;
  519. contentImg = false;
  520. contentEmail = false;
  521. contentCopyRight = (short)0;
  522. ccrItem = ctc.contentReItem();
  523. if(ccrItem!=null){
  524. content = ccrItem.getContent();
  525. contentUserPen = ccrItem.getContentUserPen();
  526. contentUrl = ccrItem.getContentUrl();
  527. contentImg = ccrItem.getContentImg();
  528. contentEmail = ccrItem.getContentEmail();
  529. contentCopyRight = ccrItem.getContentCopyRight();
  530. }
  531. %>
  532. <club:topicPage type="content" value="<%=content%>" pro="${re.topicPro}"  idIs="${re.topicID}"
  533.  bea="<%=isPass(gvUserGradeTxt,35)%>"  bea_img="<%=contentImg%>"  
  534.  bea_url="<%=contentUrl%>"/>
  535. <club:topicPage type="topicLog"  idIs="${re.topicID}" linkId="${re.topicReID}"/>
  536. <club:topicPage type="contentCopyRight" name="<%=clubName%>" idIs="<%=contentCopyRight%>"/>
  537. <club:topicPage type="contentUserPen" bea="<%=contentUserPen%>" value="<%=userPen%>"/>
  538. </td></tr>
  539. </table></c:forEach>
  540. <%-- ---------平板文章列表结束-------- --%>
  541. <%
  542. }else{
  543. %>
  544. <%-- ---------树型列表开始-------- --%>
  545. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  546. <tr align="center" class="tr">
  547. <td height="22"><strong>树型列表</strong></td>
  548. <td width="30"><strong>查阅</strong></td>
  549. <td width="30"><strong>回复</strong></td>
  550. <td width="120"><strong>发表时间</strong></td></tr><%
  551. ctit = null;
  552. ctit = (ClubTopicItem)cti.topicInfo(tID, 0, (byte)0);
  553. ccID = ctit.getCcID();
  554. topicID = ctit.getTopicID();
  555. topicReID = ctit.getTopicReID();
  556. topicOrder = ctit.getTopicOrder();
  557. topicLayer = ctit.getTopicLayer();
  558. topicTree = ctit.getTopicTree();
  559. topicMood = ctit.getTopicMood();
  560. topic = ctit.getTopic();
  561. userName = ctit.getUserName();
  562. userID = ctit.getUserID();
  563. topicAddTime = ctit.getTopicAddTime();
  564. topicViewCount = ctit.getTopicViewCount();
  565. topicReCount = ctit.getTopicReCount();
  566. topicLen = ctit.getTopicLen();
  567. ctit = null;
  568. String tUrl = "clubPage.jsp?ccID="+ccID+"&ccStyle="+ccStyle;
  569. %>
  570. <!-------------讨论区风格主题开始---------------->
  571. <tr class="tab2">
  572. <td height="25">
  573. <club:topic type="img_listMood"  value="<%=String.valueOf(topicMood)%>"/>
  574. 〖<club:topic type="userName" idIs="<%=(userID)%>" value="<%=userName%>" bea="<%=true%>"/>〗
  575. <club:topic type="topic" url="<%=tUrl%>" idIs="<%=(tID)%>"  value="<%=topic%>" bea="<%=true%>"/>
  576. <club:topic type="img_listHot" idIs="<%=(topicViewCount)%>" value="<%=String.valueOf(topicReCount)%>"/>
  577. </td><td align="center" class="smallTxt" width="30">
  578. <c:out value="<%=String.valueOf(topicViewCount)%>" escapeXml="false"/>
  579. </td><td align="center" class="smallTxt" width="30">
  580. <c:out value="<%=String.valueOf(topicReCount)%>" escapeXml="false"/>
  581. </td><td align="center" class="smallTxt" width="120">
  582. <club:topic type="topicAddTime" value="<%=topicAddTime%>"/>
  583. </td></tr>
  584. <!-------------讨论区风格主题结束---------------->
  585. <!-------------讨论区风格回复开始---------------->
  586. <c:set value="<%=String.valueOf(tID)%>"  target="${ctc}" property="topicID"/>
  587. <c:set value="<%=String.valueOf(ccStyle)%>"  target="${ctc}" property="ccStyle"/>
  588. <c:forEach var="re" items="<%=ctc.topicReList(iPage,ccReplyNum)%>">
  589. <c:set var="id_1" value="<%=String.valueOf(reID)%>"  scope="page"/>
  590. <c:set var="id_2" value="${re.topicReID}"  scope="page"/>
  591. <c:if test="${id_1 != id_2}">
  592. <tr class="bg0">
  593. </c:if>
  594. <c:if test="${id_1 == id_2}">
  595. <tr class="tab3">
  596. </c:if><td height="25">
  597. <club:topic type="tree_list" idIs="${re.topicLayer}" value="${re.topicTree}"/>
  598. <club:topic type="img_listMood"  value="${re.topicMood}"/>〖<club:topic type="userName" idIs="${re.userID}" value="${re.userName}" bea="<%=true%>"/>〗<club:topic type="topic" url="<%=tUrl%>" idIs="<%=tID%>" linkId="${re.topicReID}" value="${re.topic}" bea="<%=true%>"/>
  599. <club:topic type="img_listHot" idIs="${re.topicViewCount}" value="${re.topicReCount}"/>
  600. &nbsp;<i><club:topic type="topicLen" value="${re.topicLen}"/></i>
  601. </td><td align="center" class="smallTxt" width="30">
  602. <c:out value="${re.topicViewCount}" escapeXml="false"/>
  603. </td><td align="center" class="smallTxt" width="30">
  604. <c:out value="${re.topicReCount}" escapeXml="false"/>
  605. </td><td align="center" class="smallTxt" width="120">
  606. <club:topic type="topicAddTime" value="${re.topicAddTime}"/>
  607. </td></tr>
  608. </c:forEach>
  609. <!-------------讨论区风格回复开始---------------->
  610. </table>
  611. <%-- ---------数型列表结束-------- --%>
  612. <%}%>
  613. <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>
  614. <%=OutPrint.pageJump(totalPage,ccReplyNum, iPage, "clubPage.jsp?ccID="+ccID+"&tID="+ tID +"&ccStyle="+ ccStyle +"&")%>
  615. </td></tr></table>
  616. <script language="JavaScript" type="text/javascript" src="GVscript/GVpost.js"></script>
  617. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
  618. <form name="Gforms" id="Gforms" method="post" onSubmit="return checkForm();" action="clubPost.jsp?ccID=<%=ccID%>&tID=<%=tID%>&act=re&iPage=<%=iPage%>"><tr>
  619. <td width="128"  class="tab1"><strong>用户</strong></td>
  620. <td class="bg2">
  621. <input name="gvUserName" type="text" id="gvUserName" value="<%=gvUserName%>" size="20" maxlength="20" />
  622. </td></tr>
  623. <tr><td  class="tab1"><strong>密码</strong></td>
  624. <td class="bg2">
  625. <input name="gvUserPass" type="password" id="gvUserPass" value="<%=gvUserPass%>" size="20" maxlength="50" />
  626. <input name="gvUserPass2" type="hidden" id="gvUserPass2" value="<%=gvUserPass%>" size="20" maxlength="50" />
  627. </td></tr>
  628. <tr><td  class="tab1"><strong>主题</strong></td>
  629. <td class="bg2">
  630. <!--onfocus="this.value='';"-->
  631. <input  name="gvTopic" type="text" id="gvTopic" size="60" maxlength="100" value=""/>
  632. </td></tr>
  633. <tr><td valign="top"  class="tab1"><strong>正文</strong>(可选)<br /></td>
  634. <td class="bg2"><%
  635. out.print(textArea("content",78,8,""));
  636. content="";%>
  637. </td></tr>
  638. <tr><td height="30" colspan="2"  class="tab1">
  639. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  640. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  641. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  642. <input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="  确定提交  " />
  643. &nbsp;&nbsp;&nbsp;&nbsp;
  644. <input name="gvBack" type="button" class="btn" onClick="javascript:history.back();" value="  取消  "/>
  645. <input name="ccID1" type="hidden" id="ccID1" value="<%=ccID1%>" />
  646. <input name="ccID2" type="hidden" id="ccID2" value="<%=ccID2%>" /></td>
  647. </tr></form></table>
  648. <%@ include file="GVinc/gvOnlineArea.jsp" %>
  649. <%=Gfoot()%>
  650. </body>
  651. </html>
  652. <!-- Powered by www.GamVan.com -->