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

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="ctp" scope="page" class="com.gamvan.club.topic.ClubTopicPost"/>
  7. <jsp:useBean id="ctt" scope="page" class="com.gamvan.club.topic.ClubTopicType"/>
  8. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.topic.ClubContentCollection"/>
  9. <jsp:useBean id="ud" scope="page" class="com.gamvan.club.manage.UpLoadDataBase"/><%@ 
  10. include file="./GVinc/gvClassInfo.jsp" %><%
  11. int iPage = ParamUtils.getIntParameter(request, "iPage");
  12. int reID = ParamUtils.getIntParameter(request, "reID");
  13. int tID = ParamUtils.getIntParameter(request, "tID");
  14. String act = ParamUtils.getStringParameter(request, "act");
  15. if(act.equals("")){
  16. act = "add";
  17. }
  18. String ac = ParamUtils.getStringParameter(request, "ac");
  19. String  userPass="", upfilesname="";
  20. double userTypeNum=0;
  21. short reTopicType = 0;
  22. double reTopicTypeNum=0;
  23. String reUsers = "";
  24. boolean tempBea=false;
  25. boolean isRe = false; //用来判断调用哪个类的方法
  26. /******************************************
  27. * 判断如果是新建主题,则不提取文章信息
  28. * 而回复文章取数据内容出来
  29. * 主要是为了引用回复这个功能
  30. *******************************************/
  31. ClubTopicItem ctit = null;
  32. ClubTopicReItem ctrit = null;
  33. ClubContentReItem ccrItem = null;
  34. ClubContentItem ccItem = null;
  35. if(!act.equals("add")){ //判断是否为回复
  36. /**
  37.  * 用来判断调用哪个类的方法
  38.  * 0调用主题表 1调用回复表
  39. */
  40. if(reID>0){ //判断是回复主题,还是回复主题的回复
  41. isRe = true; // 回复主题的回复
  42. }
  43. if(isRe){
  44. ctrit = (ClubTopicReItem)cti.topicInfo(tID, reID, (byte)1); //取回复表数据
  45. }else{
  46. ctit = (ClubTopicItem)cti.topicInfo(tID, reID, (byte)0); //取主题表数据
  47. }
  48. %><%@ include file="./GVinc/gvTopicGet.jsp" %><%
  49. switch(topicType){
  50. case 1:
  51. userTypeNum=gvUserMark;
  52. break;
  53. case 2:
  54. //out.print(userTypeNum);
  55. userTypeNum=cti.selectTopicType(topicID, gvUserID, topicType, topicTypeNum);
  56. break;
  57. case 3:
  58. break;
  59. case 4:
  60. ClubTopicReUsersItem ctrui = null;
  61. ctrui = (ClubTopicReUsersItem)cti.selectReUsers(topicID);
  62. if(ctrui!=null){
  63. reUsers = "|" + ctrui.getReUsers() + "|";
  64. }
  65. topicTypeNum = reUsers.indexOf("|" + gvUserName + "|"); //如果回复过则返回0,否则返回-1
  66. break;
  67. }
  68. if(userName.equals(gvUserName)){
  69. userTypeNum=-1;
  70. }
  71. if(isPass(gvUserGradeTxt,42)){ //判断是否开通特殊权限
  72. userTypeNum=-2;
  73. }
  74. }
  75. /******************************************
  76. * 判断如果是新建主题,则不提取文章信息
  77. * END
  78. *******************************************/
  79. %>
  80. <html xmlns="http://www.w3.org/1999/xhtml">
  81. <head>
  82. <title><%=topic%>&nbsp;&nbsp;From <%=clubTitle%>&gt;&gt;<%
  83. if(ccIDD1>0){
  84. out.print(ccName2 +"&gt;&gt;");
  85. }
  86. if(ccIDD>0){
  87. out.print(ccName1 +"&gt;&gt;");
  88. }
  89. %><%=ccName%></title>
  90. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  91. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  92. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  93. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  94. <STYLE type=text/css media=screen>
  95. @import url(./GVinc/main.css);
  96. </STYLE>
  97. </head>
  98. <body onload="loadTreeNoimg(<%=ccID%> ,'GVinc/gvMood.jsp?tID=<%=ccID%>');">
  99. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  100. <TABLE cellPadding=6 border=0>
  101. <TBODY><TR><TD align=middle>
  102. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  103. <BR>
  104. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  105. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  106. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  107. <script language="javascript" type="text/JavaScript" src="GVscript/GVtree.js"></script>
  108. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  109. <script language="javascript" type="text/javascript" src="GVscript/GVpost.js"></script>
  110. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  111. <script language="javascript" type="text/javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  112. <%
  113. if(request.getMethod().equals("POST")){
  114. if(session.getAttribute("gvPost")==null){
  115. session.setAttribute("gvPost",now);
  116. }else{
  117. String isNow1 = FormatDateTime.dateAdd("s", -15); //返回30秒前的时间
  118. String isNow2 = String.valueOf(session.getAttribute("gvPost"));
  119. //out.print(isNow1);
  120. //out.println(isNow2);
  121. if(FormatDateTime.secondCompare(isNow1,isNow2)){
  122. out.print(prtCenter("您的帖子发的太快了,坐下来喝杯茶吧!","",2));
  123. out.print(Gfoot());
  124. out.close();
  125. if(true)return;
  126. }else{
  127. session.setAttribute("gvPost",now);
  128. }
  129. }
  130. StringBuffer sb = new StringBuffer();
  131. topic = ParamUtils.getStringParameter(request,"gvTopic");
  132. if(topic.equals("")){
  133. out.print(prtCenter("文章主题不能为空","",2));
  134. out.print(Gfoot());
  135. out.close();
  136. if(true)return;
  137. }
  138. userName = ParamUtils.getStringParameter(request,"gvUserName");
  139. userPass = ParamUtils.getStringParameter(request,"gvUserPass");
  140. if((userName.equals(""))||(userPass.equals(""))){
  141. out.print(prtCenter("用户名、密码不能为空!","",2));
  142. out.print(Gfoot());
  143. out.close();
  144. if(true)return;
  145. }
  146. ctp.setAct(act);
  147. ctp.setUserName(userName);
  148. ctp.setUserID(gvUserID);
  149. ctp.setUserPass(userPass);
  150. ctp.setUserPass2(ParamUtils.getStringParameter(request,"gvUserPass2"));
  151. ctp.setTopic(ParamUtils.getStringParameter(request,"gvTopic"));
  152. ctp.setTopicColor(ParamUtils.getStringParameter(request,"gvTopicColor"));
  153. ctp.setTopicBold(ParamUtils.getStringParameter(request, "gvTopicBold"));
  154. ctp.setCcID(ParamUtils.getIntParameter(request,"ccID"));
  155. ctp.setCcID1(ParamUtils.getIntParameter(request,"ccID1"));
  156. ctp.setCcID2(ParamUtils.getIntParameter(request,"ccID2"));
  157. ctp.setMoveCCID(0);
  158. ctp.setTopicMood(ParamUtils.getShortParameter(request,"gvTopicMood"));
  159. topicType = ParamUtils.getShortParameter(request,"gvTopicType");
  160. ctp.setTopicType(topicType);
  161. if(topicType==1){
  162. ctp.setTopicTypeNum(ParamUtils.getDoubleParameter(request,"gvTopicTypeNum1"));
  163. }else if(topicType==2){
  164. ctp.setTopicTypeNum(ParamUtils.getDoubleParameter(request,"gvTopicTypeNum2"));
  165. }else if(topicType==3){
  166. ctp.setTopicTypeNum(ParamUtils.getDoubleParameter(request,"gvTopicTypeNum3"));
  167. }
  168. ctp.setTopicAddip(request.getRemoteAddr());
  169. ctp.setTopicIsPass(clubTopicIsPass);
  170. ctp.setContent(ParamUtils.getStringParameter(request,"content"));
  171. ctp.setContentUserPen(ParamUtils.getBooleanParameter(request,"gvContentUserPen"));
  172. ctp.setContentUrl(ParamUtils.getBooleanParameter(request,"gvContentUrl"));
  173. ctp.setContentImg(ParamUtils.getBooleanParameter(request,"gvContentImg"));
  174. ctp.setContentEmail(ParamUtils.getBooleanParameter(request,"gvContentEmail"));
  175. ctp.setContentCopyRight(ParamUtils.getByteParameter(request,"gvContentCopyRight"));
  176. ctp.setTopicID(tID);
  177. ctp.setTopicReID(reID);
  178. try{
  179. tempBea = ctp.topicPost(ccID1, ccID2);
  180. }catch(Exception e){
  181. out.print(e.toString());
  182. }
  183. tID = ctp.getTopicID();
  184. reID = ctp.getTopicReID();
  185. sb.append("<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">");
  186. if(tempBea){
  187. sb.append("<tr class="tab1" align="center" ><td height="25"><strong>文章发表成功,您现在可以……</strong></td></tr>");
  188. sb.append("<tr class="tab3" align="center" ><td height="25"><a href="clubClass.jsp?ccID="+ ccID +"" target="_self">返回文章所在版面!</a></td></tr>");
  189. sb.append("<tr class="tab3" align="center" ><td height="25">");
  190. sb.append("<a href="clubPage.jsp?ccID="+ ccID +"&tID="+ tID +"&reID="+ reID +"&ccStyle=1&iPage="+iPage+"">查看你所发表的文章!</a>");
  191. sb.append("</td></tr>");
  192. ud.setCfUseID(tID); //上传文件使用ID
  193. ud.setCfUseTxt(topic);//更新上传文件状态
  194. ud.uploadUpdates(request.getParameter("upfilesname")); //更新上传文件状态
  195. sb.append("<tr class="tab3" align="center" ><td height="25">");
  196. sb.append("<span style="color:#bb0000">3秒后,自动跳转至文章所在版面!</span>");
  197. sb.append("</td></tr>");
  198. response.setHeader("Refresh", "2; URL=clubClass.jsp?ccID="+ ccID +"");
  199. }else{
  200. out.print(prtCenter(ctp.getMessage(),"",3));
  201. out.print(Gfoot());
  202. out.close();
  203. if(true)return;
  204. }
  205. sb.append("</table>");
  206. out.print(sb.toString() + Gfoot());
  207. out.close();
  208. if(true)return;
  209. }
  210. if(ccID<=0){
  211. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  212. out.close();
  213. if(true) return;
  214. }
  215. /*
  216. //黑名单判断开始
  217. if(cbg.clubBlackSelect(gvUserID, 1)){
  218. blackInfo = cbg.getBlackInfo();
  219. blackTxt = cbg.getBlackTxt();
  220. blackOver = cbg.getBlackOver();
  221. blackCCID = cbg.getCCID();
  222. if(blackCCID==0 || blackCCID==ccID || blackCCID==ccID1 || blackCCID==ccID2){
  223. if(act.equals("add")){
  224. if(isPass(blackInfo,1)){ //禁止发表
  225. if(blackOver==0){
  226. out.print(errs(1,"您发表主题的权限被社区勤杂工屏闭,操作理由是:<strong>"+blackTxt+"</strong>"));
  227. out.close();
  228. if(true) return;
  229. }
  230. }
  231. }else if(act.equals("re")){
  232. if(isPass(blackInfo,2)){ //禁止回复
  233. if(blackOver==0){
  234. out.print(errs(1,"您回复主题的权限被社区勤杂工屏闭,操作理由是:<strong>"+blackTxt+"</strong>"));
  235. out.close();
  236. if(true) return;
  237. }
  238. }
  239. }
  240. }
  241. }
  242. */
  243. //权限判断开始
  244. if(act.equals("add")){
  245. if(!isPass(gvUserGradeTxt,13)){
  246. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能发表主题,如果你还没有登陆,请先登陆!"));
  247. out.close();
  248. if(true) return;
  249. }
  250. }
  251. if(act.equals("re")){
  252. //topicType = 0;
  253. //topicTypeNum=20;
  254. if(!isPass(gvUserGradeTxt,14)){
  255. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能回复主题,如果你还没有登陆,请先登陆!"));
  256. out.close();
  257. if(true) return;
  258. }
  259. }
  260. if(act.equals("edit")){
  261. if(userName.equals(gvUserName)){
  262. if(!isPass(gvUserGradeTxt,15)){
  263. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能编辑自己的主题,如果你还没有登陆,请先登陆!"));
  264. out.close();
  265. if(true) return;
  266. }
  267. }else{
  268. if(!isPass(gvUserGradeTxt,19)){
  269. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能编辑他人主题,如果你还没有登陆,请先登陆!"));
  270. out.close();
  271. if(true) return;
  272. }
  273. }
  274. if(ccPro>0){
  275. boolean passPro=false; //判断用户是否有访问特殊属性的版面
  276. if(ccPro==3){
  277. passPro = ae.txtsArray(ccUserPass, gvUserName, "|");
  278. if(!passPro && !isPass(gvUserGradeTxt,41)){
  279. out.print(errs(1,"本版为成员版,须经过管理员认证才能访问!"));
  280. out.close();
  281. if(true) return;
  282. }
  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. if(act.equals("add")){
  292. out.print("发表主题");
  293. }
  294. if(act.equals("re")){
  295. out.print("回复主题");
  296. }
  297. if(act.equals("edit")){
  298. out.print("编辑主题");
  299. }
  300. %></td></tr></table>
  301. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
  302. <form name="Gforms" id="Gforms" method="post" action="" onSubmit="return checkForm();"><tr>
  303. <td width="80"  class="tab1"><strong>用户</strong></td>
  304. <td class="bg2">
  305. <input name="gvUserName" type="text" id="gvUserName" value="<%=gvUserName%>"  maxlength="20"  style="width:180px;height:20px" />
  306. </td></tr>
  307. <tr><td  class="tab1"><strong>密码</strong></td>
  308. <td class="bg2">
  309. <input name="gvUserPass" type="password" id="gvUserPass" value="<%=gvUserPass%>" maxlength="30"  style="width:180px;height:20px"/>
  310. <input name="gvUserPass2" type="hidden" id="gvUserPass2" value="<%=gvUserPass%>"/>
  311. </td></tr>
  312. <tr><td  class="tab1"><strong>主题</strong></td>
  313. <td class="bg2">
  314. <input name="gvTopic" type="text" id="gvTopic" value="<%if(act.equals("edit")){out.print(topic);}%>" maxlength="100" onkeydown="keyForm();"  style="width:400px;height:20px"/>
  315. <%
  316. if(isPass(gvUserGradeTxt,39)){
  317. %>
  318. <select name="gvTopicColor" id="gvTopicColor">
  319.     <option selected value="">主题颜色</option>
  320.     <option style="COLOR: #000000" value="black">■■■■</option>
  321.     <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
  322.     <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
  323.     <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
  324.     <option style="COLOR: #008800" value="#008800">■■■■</option>
  325.     <option style="COLOR: orange" value="orange">■■■■</option>
  326.     <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
  327.     <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
  328.     <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
  329.     <option style="COLOR: #880000" value="#880000">■■■■</option>
  330.     <option style="COLOR: teal" value="teal">■■■■</option>
  331.     <option style="COLOR: #000088" value="#000088">■■■■</option>
  332. </select>
  333. <%
  334. }
  335. if(isPass(gvUserGradeTxt,38)){
  336. %>
  337. &nbsp;<input name="gvTopicBold" type="checkbox" id="gvTopicBold" value="1">加粗
  338. <%
  339. }
  340. %>
  341.   </td>
  342. </tr>
  343. <tr>
  344. <td  class="tab1" ><strong>型别</strong></td>
  345. <td class="bg2">
  346. <%
  347. if(act.equals("re")){
  348. %>
  349. <input name="gvTopicType" type="radio" value="0" checked="checked" />普通帖
  350. <%}else{%>
  351. <input name="gvTopicType" type="radio" value="0" <%if(topicType==0){out.print("checked="checked"");}%> onClick="showTypeInfo(this.value);writeContent(0);" />普通帖
  352. <%}%>
  353. <%
  354. if(act.equals("add") || (act.equals("edit")&&reID==0)){
  355. %>
  356. &nbsp;&nbsp;
  357. <input type="radio" name="gvTopicType" value="1" <%if(topicType==1){out.print("checked="checked"");}%> onClick="showTypeInfo(this.value);writeContent(1);"/>积分浏览帖
  358. &nbsp;&nbsp;
  359. <input type="radio" name="gvTopicType" value="2" <%if(topicType==2){out.print("checked="checked"");}%>  onClick="showTypeInfo(this.value);writeContent(2);"/>金钱购买帖
  360. &nbsp;&nbsp;
  361. <input type="radio" name="gvTopicType" value="3" <%if(topicType==3){out.print("checked="checked"");}%>  onClick="showTypeInfo(this.value);writeContent(3)"/>散分(求助)帖
  362. &nbsp;&nbsp;
  363. <input type="radio" name="gvTopicType" value="4" <%if(topicType==4){out.print("checked="checked"");}%>  onClick="showTypeInfo(this.value);writeContent(4);"/>回复可见帖
  364. <div id="div1"  style="DISPLAY:none; color: #CC0000;">
  365. 本主题只有积分大于等于&nbsp;<input name="gvTopicTypeNum1" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;才能浏览
  366. [GVtype] 标签内填写需要积分浏览的相关内容 [/GVtype]
  367. </div>
  368. <div id="div2"  style="DISPLAY:none; color: #CC0000;">
  369. 观看此帖用户需要支付&nbsp;<input name="gvTopicTypeNum2" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;枚今币
  370. [GVtype] 标签内填写需要金钱购买浏览的相关内容 [/GVtype]
  371. </div>
  372. <div id="div3"  style="DISPLAY:none; color: #CC0000;">
  373. 求助帖,需要作者结帖,本贴给分&nbsp;<input name="gvTopicTypeNum3" type="text" value="<%=topicTypeNum%>" size="4" maxlength="10"/>&nbsp;分,结帖扣作者积分,系统强制结帖将扣信誉分!
  374. </div>
  375. <div id="div4" style="DISPLAY:none; color: #CC0000;">
  376. <strong>回复可见帖</strong>,只有回复过的用户才能浏览!<br />
  377. [GVtype] 标签内填写需要回复可见的相关内容 [/GVtype]
  378. </div>
  379. <script language="javascript">
  380. showTypeInfo("<%=topicType%>");
  381. </script>
  382. <%
  383. }
  384. %>
  385. </td>
  386. </tr>
  387. <tr id="load_<%=ccID%>">
  388. <td  class="tab1"><strong>心情</strong></td>
  389. <td class="bg2">
  390. <table border="0" cellpadding="0" cellspacing="0">
  391. <tr><td>
  392. <img src="GVimgs/previous.gif" border="0" align="absmiddle" style="cursor:hand;" onclick="loadTreeNoimg(<%=ccID%> ,'GVinc/gvMood.jsp?tID=<%=ccID%>&ipage=1');" />
  393. </td>
  394. <td><div id="replies_<%=ccID%>"></div></td><td>
  395. <img src="GVimgs/next.gif" border="0" align="absmiddle" style="cursor:hand;" onclick="loadTreeNoimg(<%=ccID%> ,'GVinc/gvMood.jsp?tID=<%=ccID%>&ipage=2');" />
  396. </td>
  397. </tr></table>
  398. </tr>
  399. <tr>
  400.   <td  class="tab1"><strong>正文</strong></td>
  401.   <td class="bg2">
  402. <table width="100%" border="0" cellpadding="2" cellspacing="1">
  403.   <tr>
  404.     <td>
  405. <script language="javascript" src="GVscript/ubbAdd.js"></script>
  406. 颜色&nbsp;<select name="color" onChange=showcolor(this.options[this.selectedIndex].value)>
  407.   <option selected style="COLOR: #000000" value="black">■■■■</option>
  408.   <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
  409.   <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
  410.   <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
  411.   <option style="COLOR: #008800" value="#008800">■■■■</option>
  412.   <option style="COLOR: orange" value="orange">■■■■</option>
  413.   <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
  414.   <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
  415.   <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
  416.   <option style="COLOR: #880000" value="#880000">■■■■</option>
  417.   <option style="COLOR: teal" value="teal">■■■■</option>
  418.   <option style="COLOR: #000088" value="#000088">■■■■</option></select>
  419. &nbsp;&nbsp;&nbsp;字体大小&nbsp;<select name=size onChange=showsize(this.options[this.selectedIndex].value)>
  420. <option value="10">小</option>
  421. <option value="12" selected>标准</option>
  422. <option value="14">中</option>
  423. <option value="16">大</option>
  424. <option value="36">特大</option>
  425. <option value="66">超大</option>
  426. </select>
  427. &nbsp;&nbsp;UBB语法帮助&nbsp;
  428. <select name=font  onChange=thelp(this.options[this.selectedIndex].value)>
  429. <option  value="1">帮助</option>
  430. <option  value="2">代写</option>
  431. <option value="0" selected >基本</option>
  432. </select>
  433. </td></tr>
  434. <tr><td>
  435. <img src="GVimgs/editor/b.gif" align="absmiddle" alt="粗体字 [B] [/B]" style="cursor:hand" onClick="javascript:bold();"/>
  436. <img align="absmiddle" src="GVimgs/editor/i.gif" alt="斜体字 [i] [/i]" style="cursor:hand" onClick="javascript:italicize();"/>
  437. <img align="absmiddle" src="GVimgs/editor/u.gif" alt="使文字带有下划线 [u] [/u]" style="cursor:hand" onClick="javascript:underline();" />
  438. <img align="absmiddle" src="GVimgs/editor/center.gif" alt="使文字居中显示 [center][/center]" style="cursor:hand" onClick="javascript:center();" />
  439. <img align="absmiddle" src="GVimgs/editor/right.gif" alt="使文字居右显示 [right] [/right]" style="cursor:hand" onClick="javascript:right();"  />
  440. <img align="absmiddle" src="GVimgs/editor/quote.gif" alt="引用内容 [quote] [/quote]" style="cursor:hand" onClick="javascript:quote();" />
  441. <img align="absmiddle" src="GVimgs/editor/move.gif" alt="移动的文字 [move] [/move]" style="cursor:hand" onClick="javascript:move();" />
  442. <img align="absmiddle" src="GVimgs/editor/url.gif" alt="插入超级链接 [url] [/url]" style="cursor:hand" onClick="javascript:hyperlink();"/>
  443. <img align="absmiddle" src="GVimgs/editor/pic.gif" alt="插入图片 [img] [/img]" style="cursor:hand" onClick="javascript:image();"/>
  444. <img align="absmiddle" src="GVimgs/editor/flash.gif" alt="插入flash动画 [flash] [/flash]" style="cursor:hand" onClick="javascript:flash();"/>
  445. <img align="absmiddle" src="GVimgs/editor/real.gif" alt="播放realOne影音文件 [real] [/real]" style="cursor:hand" onClick="javascript:real();"/>
  446. <img align="absmiddle" src="GVimgs/editor/winplayer.gif" alt="播放windows player影音文件 [video] [/video]" style="cursor:hand" onClick="javascript:win();"/>
  447. <img align="absmiddle" src="GVimgs/editor/email.gif" alt="插入Email链接 [email] [/email]" style="cursor:hand" onClick="javascript:emailurl();"/>
  448. <img align="absmiddle" src="GVimgs/editor/c.gif" alt="插入代码 [code] [/code]" style="cursor:hand" onClick="javascript:codes();"/>
  449. </td></tr></table>
  450. <%
  451. if((topicPro==1 || topicType!=0) && ac.equals("quote")){
  452. content = "";
  453. }
  454. if(act.equals("edit")){
  455. out.print(textArea("content",90,15,content));
  456. }else{
  457. if(ac.equals("quote")){
  458. out.print(textArea("content",90,15,"[quote="+userName+"]" + topic +"n" + content +"[/quote]"));
  459. }else{
  460. out.print(textArea("content",90,15,""));
  461. }
  462. }
  463. %>
  464. </td></tr>
  465. <tr><td  class="tab1"><strong>上传附件</strong>
  466. </td>
  467. <td class="bg2">
  468. <%
  469. if(((ccUpfilePass==1) || (clubUpfileOpen==1 && ccUpfilePass!=2) || gvUserUpfileOpen==1) && gvUserUpfileOpen != 2){
  470. out.print("<iframe name="ad" frameborder=0 width="100%" height="42" scrolling=no src="upLoad/upLoad.jsp?ccID="+ccID+"&ccName="+ccName+""></iframe>");
  471. }else{
  472. if(gvUserUpfileOpen==2){
  473. out.print("<font color="#bb0000">您的上传功能已被管理员关闭!</font>");
  474. }
  475. }
  476. %>
  477. <input name="upfilesname" type="hidden" value="" />
  478. </td></tr>
  479. <tr><td  class="tab1"><strong>辅助</strong></td>
  480. <td class="bg2">
  481. <input name="gvContentUserPen" type="checkbox" value="true" <%if(contentUserPen){out.print("checked="checked"");}%> />显示签名
  482. &nbsp;&nbsp;<input name="gvContentUrl" type="checkbox" value="true" <%if(contentUrl){out.print("checked="checked"");}%>/>Url自动识别
  483. &nbsp;&nbsp;<input name="gvContentImg" type="checkbox" value="true" <%if(contentImg){out.print("checked="checked"");}%>/>图片自动识别
  484. &nbsp;&nbsp;<input name="gvContentEmail" type="checkbox" value="true"  <%if(contentEmail){out.print("checked="checked"");}%>/>Email提醒
  485. </td></tr>
  486. <tr><td height="30" colspan="2"  class="tab1">
  487. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  488. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  489. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  490. <input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="  确定提交  " />
  491. &nbsp;&nbsp;&nbsp;&nbsp;
  492. <input name="gvBack" type="button" class="btn" onClick="javascript:history.back();" value="取消"/>
  493. <input name="ccID1" type="hidden" id="ccID1" value="<%=ccID1%>" />
  494. <input name="ccID2" type="hidden" id="ccID2" value="<%=ccID2%>" />
  495. </td></tr>
  496. <tr><td height="30" colspan="2"  class="tab1">
  497. 版权信息声明(仅代表发贴本人):&nbsp;&nbsp;
  498. <input name="gvContentCopyRight" type="radio" value="0"  <%if(contentCopyRight==0){out.print("checked="checked"");}%> />无版权声明&nbsp;&nbsp;
  499. <input type="radio" name="gvContentCopyRight" value="1"  <%if(contentCopyRight==1){out.print("checked="checked"");}%>/>本站独享&nbsp;&nbsp;
  500. <input type="radio" name="gvContentCopyRight" value="2"  <%if(contentCopyRight==2){out.print("checked="checked"");}%>/>网络共享&nbsp;&nbsp;
  501. <input type="radio" name="gvContentCopyRight" value="3"  <%if(contentCopyRight==3){out.print("checked="checked"");}%>/>非商业性共享
  502. </td></tr></form></table>
  503. <%
  504. if(act.equals("re")){
  505. %>
  506. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  507. <%
  508. /*****************************************
  509. * 如过回复的是回复则提取主题的回复内容
  510. *****************************************/
  511. if(isRe){
  512. ctit = (ClubTopicItem)cti.topicInfo(tID, 0, (byte)0); //取主题表数据
  513. ccItem = cti.getCci();
  514. %>
  515. <tr class="tr">
  516. <td height="25" align="center">
  517. <club:users type="userName" idIs="<%=ctit.getUserID()%>" value="<%=ctit.getUserName()%>" bea="<%=false%>"/>
  518. </td><td>
  519. <club:topic type="img_listMood"  value="<%=String.valueOf(ctit.getTopicMood())%>"/>
  520. <strong><club:topic type="topic"  value="<%=ctit.getTopic()%>"/></strong>
  521. <club:topic type="img_listType" idIs="<%=ctit.getTopicType()%>" value="<%=String.valueOf(ctit.getTopicTypeNum())%>"/>
  522. </td></tr>
  523. <tr valign="top" class="bg2"><td width="109" height="37">
  524. </td><td>
  525. <club:topicPage type="content" value="<%=ccItem.getContent()%>"   idIs="<%=tID%>"
  526. pro="<%=ctit.getTopicPro()%>"  bea="<%=isPass(gvUserGradeTxt,35)%>"   
  527. bea_img="<%=ccItem.getContentImg()%>"  bea_url="<%=ccItem.getContentUrl()%>"  
  528. tpType="<%=ctit.getTopicType()%>" 
  529. tpTypeNum="<%=ctit.getTopicTypeNum()%>"  
  530. tpUserNum="<%=userTypeNum%>"  
  531. />
  532. </td></tr>
  533. <%
  534. /*****************************************
  535. * 如过回复的是回复则提取主题的回复内容
  536. * END
  537. *****************************************/
  538. }%>
  539. <%--提取主题信息开始--%>
  540. <%boolean userIsDel = false;%>
  541. <tr class="tr">
  542. <td width="109" height="25" align="center">
  543. <club:users type="userName" idIs="<%=userID%>" value="<%=userName%>" bea="<%=userIsDel%>"/>
  544. </td><td width="657" valign="top">
  545. <club:topic type="img_listMood"  value="<%=String.valueOf(topicMood)%>"/>
  546. <strong><club:topic type="topic"  value="<%=topic%>"/></strong>
  547. <club:topic type="img_listType" idIs="<%=topicType%>" value="<%=String.valueOf(topicTypeNum)%>"/>
  548. </td>
  549. </tr>
  550. <tr valign="top" class="bg2">
  551. <td  height="37">&nbsp;</td>
  552.   <td>
  553. <club:topicPage type="content" value="<%=content%>"   idIs="<%=tID%>"
  554. pro="<%=ctit.getTopicPro()%>"  bea="<%=isPass(gvUserGradeTxt,35)%>"   
  555. bea_img="<%=contentImg%>"  bea_url="<%=contentUrl%>"  
  556. tpType="<%=topicType%>" 
  557. tpTypeNum="<%=ctit.getTopicTypeNum()%>"  
  558. tpUserNum="<%=userTypeNum%>"  
  559. />
  560. </td></tr>
  561. </table>
  562. <%}%>
  563. <%@ include file="GVinc/gvOnlineArea.jsp" %>
  564. <%=Gfoot()%>
  565. <!-- Powered by www.GamVan.com -->