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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8"
  2.  errorPage="err.jsp" %>
  3. <%@ include file="./GVinc/gvImport.jsp" %>
  4. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="cma" scope="request" class="com.gamvan.club.manage.ClubAffiche"/> 
  6. <%@ include file="./GVinc/gvClassInfo.jsp" %> 
  7. <%
  8. String act = "add";
  9. if(request.getParameter("act")!=null){
  10. act = request.getParameter("act");
  11. }
  12. int caID = 0;
  13. if(request.getParameter("caID") != null){
  14. caID = Integer.parseInt(request.getParameter("caID"));
  15. }else{
  16. caID = 0;
  17. }
  18. String caTopic="", caContent="";
  19. int caDays=0;
  20. if(request.getMethod().equals("POST")){
  21. caTopic = request.getParameter("caTopic");
  22. caContent = request.getParameter("content");
  23. cma.setCaTopic(caTopic.trim());
  24. cma.setCaContent(caContent.trim());
  25. cma.setCcID(ccID);
  26. cma.setCaID(caID);
  27. cma.setCaDays(TypeChange.stringToInt(request.getParameter("caDays")));
  28. cma.setCaByUser(gvUserName);
  29. cma.setCaByip(request.getRemoteAddr());
  30. cma.clubAffiche(act);
  31. //out.print(act);
  32. out.print(prtCenter(cma.getMessage(),"",2));
  33. out.close();
  34. if(true)return;
  35. }
  36. if(caID>0){
  37. ClubAfficheItem cai = (ClubAfficheItem)cma.afficheInfo(caID);
  38. caTopic = es.htmlEncoder(cai.getCaTopic());
  39. caContent = cai.getCaContent();
  40. caDays = cai.getCaDays();
  41. }
  42. %>
  43. <html xmlns="http://www.w3.org/1999/xhtml">
  44. <head>
  45. <title><%=clubTitle%>&gt;&gt;<%
  46. if(ccIDD1>0){
  47. out.print(ccName2 +"&gt;&gt;");
  48. }
  49. %>
  50. <%
  51. if(ccIDD>0){
  52. out.print(ccName1 +"&gt;&gt;");
  53. }
  54. %>
  55. <%=ccName%>
  56. </title>
  57. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  58. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  59. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  60. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  61. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  62. </head>
  63. <body>
  64. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
  65. <TABLE cellPadding=6 border=0>
  66. <TBODY><TR><TD align=middle>
  67. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  68. <BR>
  69. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  70. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  71. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  72. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  73. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  74. <script language="javascript" type="text/javascript">
  75. prtie2('<%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>__公告管理')
  76. </script>
  77. <%
  78. //权限判断开始
  79. if(ccID<=0){
  80. out.print(errs(3,"您所请求的版面不存在或已被删除!"));
  81. out.close();
  82. if(true) return;
  83. }
  84. if(!isPass(gvUserGradeTxt,30)){
  85. out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
  86. out.close();
  87. if(true) return;
  88. }
  89. %>
  90. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  91. <tr class="tab1"><td>
  92. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
  93. com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
  94. )%>版面管理
  95. </td></tr></table>
  96. <%@ include file="./GVfilesInc/classManageMenu.jsp" %>
  97. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  98. <form name="Gforms" id="Gforms" method="post" action="">
  99. <tr><td height="24" class="tab3"><strong> 公告主题:
  100. <input name="caTopic" type="text" id="caTopic" value="<%=caTopic%>" size="50" maxlength="100" />
  101. </strong></td></tr> 
  102. <tr><td class="tab3">
  103. <table width="100%" border="0" cellpadding="2" cellspacing="1">
  104. <tr><td><script language="javascript" src="GVscript/ubbAdd.js"></script>
  105. 颜色&nbsp;<select name="color" onChange=showcolor(this.options[this.selectedIndex].value)>
  106.   <option selected style="COLOR: #000000" value="black">■■■■</option>
  107.   <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
  108.   <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
  109.   <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
  110.   <option style="COLOR: #008800" value="#008800">■■■■</option>
  111.   <option style="COLOR: orange" value="orange">■■■■</option>
  112.   <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
  113.   <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
  114.   <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
  115.   <option style="COLOR: #880000" value="#880000">■■■■</option>
  116.   <option style="COLOR: teal" value="teal">■■■■</option>
  117.   <option style="COLOR: #000088" value="#000088">■■■■</option></select>
  118. &nbsp;&nbsp;&nbsp;字体大小&nbsp;<select name=size onChange=showsize(this.options[this.selectedIndex].value)>
  119. <option value="10">小</option>
  120. <option value="12" selected>标准</option>
  121. <option value="14">中</option>
  122. <option value="16">大</option>
  123. </select>
  124. &nbsp;&nbsp;UBB语法帮助&nbsp;<select name=font  onChange=thelp(this.options[this.selectedIndex].value)>
  125. <option  value=1>帮助</option><option value=2>代写</option><option selected value=0>基本</option></select>
  126. </td></tr><tr><td>
  127. <img src="GVimgs/editor/b.gif" align="absmiddle" alt="粗体字" style="cursor:hand" onClick="javascript:bold();"/>
  128. <img align="absmiddle" src="GVimgs/editor/i.gif" alt="斜体字" style="cursor:hand" onClick="javascript:italicize();"/>
  129. <img align="absmiddle" src="GVimgs/editor/u.gif" alt="使文字带有下划线" style="cursor:hand" onClick="javascript:underline();" />
  130. <img align="absmiddle" src="GVimgs/editor/center.gif" alt="使文字居中显示" style="cursor:hand" onClick="javascript:center();" />
  131. <img align="absmiddle" src="GVimgs/editor/right.gif" alt="使文字居右显示" style="cursor:hand" onClick="javascript:right();"  />
  132. <img align="absmiddle" src="GVimgs/editor/quote.gif" alt="引用内容" style="cursor:hand" onClick="javascript:quote();" />
  133. <img align="absmiddle" src="GVimgs/editor/move.gif" alt="移动的文字" style="cursor:hand" onClick="javascript:move();" />
  134. <img align="absmiddle" src="GVimgs/editor/url.gif" alt="插入超级链接" style="cursor:hand" onClick="javascript:hyperlink();"/>
  135. <img align="absmiddle" src="GVimgs/editor/pic.gif" alt="插入图片" style="cursor:hand" onClick="javascript:image();"/>
  136. <img align="absmiddle" src="GVimgs/editor/flash.gif" alt="插入flash动画" style="cursor:hand" onClick="javascript:flash();"/>
  137. <img align="absmiddle" src="GVimgs/editor/real.gif" alt="播放realOne影音文件" style="cursor:hand" onClick="javascript:real();"/>
  138. <img align="absmiddle" src="GVimgs/editor/winplayer.gif" alt="播放windows player影音文件" style="cursor:hand" onClick="javascript:win();"/>
  139. <img align="absmiddle" src="GVimgs/editor/email.gif" alt="插入Email链接" style="cursor:hand" onClick="javascript:emailurl();"/></td>
  140. </tr></table>
  141. <%out.print(textArea("content",100,10,caContent));%>
  142. </td></tr><tr>
  143. <td class="tab3"><strong>有效日期:  <input name="caDays" type="text" id="caDays" value="<%=caDays%>" size="4" maxlength="4" /> 
  144. 天 </strong>0表示长期有效 </td>
  145. </tr>
  146. <tr><td class="tab3"><input name="gvSubmit" type="submit" id="gvSubmit" value="确定发布" /></td>
  147. </tr></form></table>
  148. <%=Gfoot()%>
  149. </body>
  150. </html>
  151. <!-- Powered by www.GamVan.com -->