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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="../GVinc/gvInclude.jsp" %>
  3. <%@ include file="clubMasterPass.jsp" %>
  4. <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
  6. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
  7. <jsp:useBean id="cma" scope="request" class="com.gamvan.club.manage.ClubAffiche"/>
  8. <jsp:useBean id="cca" scope="request" class="com.gamvan.club.ClubAffiche"/>
  9. <% 
  10. //权限判断共享代码
  11. int uoID = 0;
  12. int caID = 0;
  13. if(request.getParameter("caID") != null){
  14. caID = TypeChange.stringToInt(request.getParameter("caID"));
  15. }else{
  16. caID = 0;
  17. }
  18. if(request.getParameter("ccID") != null){
  19. ccID = TypeChange.stringToInt(request.getParameter("ccID"));
  20. }else{
  21. ccID = 0;
  22. }
  23. String caTopic="", caContent="";
  24. int caDays=0;
  25. String act = "add";
  26. if(request.getParameter("act") != null){
  27. act = request.getParameter("act");
  28. }
  29. if(request.getMethod().equals("POST")){
  30. caTopic = request.getParameter("caTopic");
  31. caContent = request.getParameter("content");
  32. cma.setCaTopic(caTopic.trim());
  33. cma.setCaContent(caContent.trim());
  34. cma.setCcID(ccID);
  35. cma.setCaID(caID);
  36. cma.setCaDays(TypeChange.stringToInt(request.getParameter("caDays")));
  37. cma.setCaByUser(gvcmName);
  38. cma.setCaByip(request.getRemoteAddr());
  39. cma.clubAffiche(act);
  40. out.print(prtCenter2(cma.getMessage(),"clubAfficheList.jsp",1));
  41. out.close();
  42. if(true){return;}
  43. }
  44. ClubAfficheItem cai = new ClubAfficheItem();
  45. if(caID>0){
  46. cai = cma.afficheInfo(caID);
  47. if(cai!=null){
  48. caTopic = es.htmlEncoder(cai.getCaTopic());
  49. caContent = cai.getCaContent();
  50. caDays = cai.getCaDays();
  51. }
  52. cai = null;
  53. }
  54. %>
  55. <html>
  56. <head>
  57. <title>今晚在线-社区管理</title>
  58. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  59. <link href="css.css" rel="stylesheet" type="text/css">
  60. </head>
  61. <body>
  62. <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
  63. <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
  64. <form name="Gforms" method="post" action="clubAfficheEdit.jsp?caID=<%=caID%>&act=<%=act%>"><table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
  65.   <tr>
  66.     <td align="center"><strong>添加或编辑公告</strong></td>
  67.   </tr>
  68. </table>
  69. <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
  70.     <tr bgcolor="#f6f6f6">
  71.       <td width="100" bgcolor="#f6f6f6"><strong>请选择管理版面</strong></td>
  72.       <td>
  73. <select name="ccID">
  74. <option value="0">首页</option>
  75. <option value="-1">全部版面</option>
  76. <c:forEach var="ccc0" items="<%=ccc.classList()%>">
  77. <club:classinfo type="option"  idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
  78. <c:set value="${ccc0.ccID}"  target="${ccc}" property="reId" />
  79. <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
  80. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
  81. <c:set value="${ccc1.ccID}"  target="${ccc}" property="reId" />
  82. <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
  83. <club:classinfo property="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" type="option"  idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
  84. </c:forEach>
  85. </c:forEach>
  86. </c:forEach>
  87. </select>
  88.   </td>
  89.     </tr>
  90.     <tr bgcolor="#f6f6f6">
  91.       <td bgcolor="#f6f6f6"><strong>公告主题</strong></td>
  92.       <td><input name="caTopic" type="text" id="caTopic" value="<%=caTopic%>" size="50" maxlength="100"></td>
  93.     </tr>
  94.     <tr bgcolor="#f6f6f6">
  95.       <td colspan="2" bgcolor="#f6f6f6">
  96.   <table width="100%" border="0" cellpadding="2" cellspacing="1">
  97.     <tr>
  98.       <td><script language="javascript" src="../GVscript/ubbAdd.js"></script>
  99.   颜色&nbsp;<select name="color" onChange=showcolor(this.options[this.selectedIndex].value)>
  100.     <option selected style="COLOR: #000000" value="black">■■■■</option>
  101.     <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
  102.     <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
  103.     <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
  104.     <option style="COLOR: #008800" value="#008800">■■■■</option>
  105.     <option style="COLOR: orange" value="orange">■■■■</option>
  106.     <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
  107.     <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
  108.     <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
  109.     <option style="COLOR: #880000" value="#880000">■■■■</option>
  110.     <option style="COLOR: teal" value="teal">■■■■</option>
  111.     <option style="COLOR: #000088" value="#000088">■■■■</option></select>
  112. &nbsp;&nbsp;&nbsp;字体大小&nbsp;<select name=size onChange=showsize(this.options[this.selectedIndex].value)>
  113.   
  114. <option value="10">小</option>
  115.   <option value="12" selected>标准</option>
  116.   <option value="14">中</option>
  117.   <option value="16">大</option>
  118.   </select>
  119. &nbsp;&nbsp;UBB语法帮助&nbsp;<select name=font  onChange=thelp(this.options[this.selectedIndex].value)>
  120.   <option  value=1>帮助</option><option value=2>代写</option><option selected value=0>基本</option></select>
  121.   
  122. </td>
  123.       </tr>
  124.     <tr>
  125.       <td>
  126.   <img src="../GVimgs/editor/b.gif" align="absmiddle" alt="粗体字" style="cursor:hand" onClick="javascript:bold();"/>
  127.   <img align="absmiddle" src="../GVimgs/editor/i.gif" alt="斜体字" style="cursor:hand" onClick="javascript:italicize();"/>
  128.   <img align="absmiddle" src="../GVimgs/editor/u.gif" alt="使文字带有下划线" style="cursor:hand" onClick="javascript:underline();" />
  129.   <img align="absmiddle" src="../GVimgs/editor/center.gif" alt="使文字居中显示" style="cursor:hand" onClick="javascript:center();" />
  130.   <img align="absmiddle" src="../GVimgs/editor/right.gif" alt="使文字居右显示" style="cursor:hand" onClick="javascript:right();"  />
  131.   <img align="absmiddle" src="../GVimgs/editor/quote.gif" alt="引用内容" style="cursor:hand" onClick="javascript:quote();" />
  132.   <img align="absmiddle" src="../GVimgs/editor/move.gif" alt="移动的文字" style="cursor:hand" onClick="javascript:move();" />
  133.   <img align="absmiddle" src="../GVimgs/editor/url.gif" alt="插入超级链接" style="cursor:hand" onClick="javascript:hyperlink();"/>
  134.   <img align="absmiddle" src="../GVimgs/editor/pic.gif" alt="插入图片" style="cursor:hand" onClick="javascript:image();"/>
  135.   <img align="absmiddle" src="../GVimgs/editor/flash.gif" alt="插入flash动画" style="cursor:hand" onClick="javascript:flash();"/>
  136.   <img align="absmiddle" src="../GVimgs/editor/real.gif" alt="播放realOne影音文件" style="cursor:hand" onClick="javascript:real();"/>
  137.   <img align="absmiddle" src="../GVimgs/editor/winplayer.gif" alt="播放windows player影音文件" style="cursor:hand" onClick="javascript:win();"/>
  138.   <img align="absmiddle" src="../GVimgs/editor/email.gif" alt="插入Email链接" style="cursor:hand" onClick="javascript:emailurl();"/></td>
  139.     </tr>
  140.       </table>
  141. <%
  142. out.print(textArea2("content",80,10,caContent));
  143. %><br>
  144. <strong>有效日期:
  145.       <input name="caDays" type="text" id="caDays" value="<%=caDays%>" size="4" maxlength="4" /> 
  146.       天 </strong>0表示长期有效
  147. </td>
  148. </tr>
  149.     <tr bgcolor="#f6f6f6">
  150.       <td height="32" bgcolor="#f6f6f6">    
  151.       <td><input type="submit" name="Submit" value="提交"></td>
  152.     </tr>
  153. </table>
  154. </form>
  155. </body>
  156. </html>