clubAfficheEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:8k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
- <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
- <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
- <jsp:useBean id="cma" scope="request" class="com.gamvan.club.manage.ClubAffiche"/>
- <jsp:useBean id="cca" scope="request" class="com.gamvan.club.ClubAffiche"/>
- <%
- //权限判断共享代码
- int uoID = 0;
- int caID = 0;
- if(request.getParameter("caID") != null){
- caID = TypeChange.stringToInt(request.getParameter("caID"));
- }else{
- caID = 0;
- }
- if(request.getParameter("ccID") != null){
- ccID = TypeChange.stringToInt(request.getParameter("ccID"));
- }else{
- ccID = 0;
- }
- String caTopic="", caContent="";
- int caDays=0;
- String act = "add";
- if(request.getParameter("act") != null){
- act = request.getParameter("act");
- }
- if(request.getMethod().equals("POST")){
- caTopic = request.getParameter("caTopic");
- caContent = request.getParameter("content");
- cma.setCaTopic(caTopic.trim());
- cma.setCaContent(caContent.trim());
- cma.setCcID(ccID);
- cma.setCaID(caID);
- cma.setCaDays(TypeChange.stringToInt(request.getParameter("caDays")));
- cma.setCaByUser(gvcmName);
- cma.setCaByip(request.getRemoteAddr());
- cma.clubAffiche(act);
- out.print(prtCenter2(cma.getMessage(),"clubAfficheList.jsp",1));
- out.close();
- if(true){return;}
- }
- ClubAfficheItem cai = new ClubAfficheItem();
- if(caID>0){
- cai = cma.afficheInfo(caID);
- if(cai!=null){
- caTopic = es.htmlEncoder(cai.getCaTopic());
- caContent = cai.getCaContent();
- caDays = cai.getCaDays();
- }
- cai = null;
- }
- %>
- <html>
- <head>
- <title>今晚在线-社区管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <script language="javascript" type="text/javascript" src="../GVscript/GVtopCode.js"></script>
- <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
- <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">
- <tr>
- <td align="center"><strong>添加或编辑公告</strong></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <tr bgcolor="#f6f6f6">
- <td width="100" bgcolor="#f6f6f6"><strong>请选择管理版面</strong></td>
- <td>
- <select name="ccID">
- <option value="0">首页</option>
- <option value="-1">全部版面</option>
- <c:forEach var="ccc0" items="<%=ccc.classList()%>">
- <club:classinfo type="option" idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
- <c:set value="${ccc0.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
- <c:set value="${ccc1.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
- </c:forEach>
- </c:forEach>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>公告主题</strong></td>
- <td><input name="caTopic" type="text" id="caTopic" value="<%=caTopic%>" size="50" maxlength="100"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td colspan="2" bgcolor="#f6f6f6">
- <table width="100%" border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td><script language="javascript" src="../GVscript/ubbAdd.js"></script>
- 颜色 <select name="color" onChange=showcolor(this.options[this.selectedIndex].value)>
- <option selected style="COLOR: #000000" value="black">■■■■</option>
- <option style="COLOR: #ff0000" value="#ff0000">■■■■</option>
- <option style="COLOR: #ffcc00" value="#ffcc00">■■■■</option>
- <option style="COLOR: #ff6699" value="#ff6699">■■■■</option>
- <option style="COLOR: #008800" value="#008800">■■■■</option>
- <option style="COLOR: orange" value="orange">■■■■</option>
- <option style="COLOR: #aa00cc" value="#aa00cc">■■■■</option>
- <option style="COLOR: #0000ff" value="#0000ff">■■■■</option>
- <option style="COLOR: #ccaa00" value="#ccaa00">■■■■</option>
- <option style="COLOR: #880000" value="#880000">■■■■</option>
- <option style="COLOR: teal" value="teal">■■■■</option>
- <option style="COLOR: #000088" value="#000088">■■■■</option></select>
- 字体大小 <select name=size onChange=showsize(this.options[this.selectedIndex].value)>
- <option value="10">小</option>
- <option value="12" selected>标准</option>
- <option value="14">中</option>
- <option value="16">大</option>
- </select>
- UBB语法帮助 <select name=font onChange=thelp(this.options[this.selectedIndex].value)>
- <option value=1>帮助</option><option value=2>代写</option><option selected value=0>基本</option></select>
- </td>
- </tr>
- <tr>
- <td>
- <img src="../GVimgs/editor/b.gif" align="absmiddle" alt="粗体字" style="cursor:hand" onClick="javascript:bold();"/>
- <img align="absmiddle" src="../GVimgs/editor/i.gif" alt="斜体字" style="cursor:hand" onClick="javascript:italicize();"/>
- <img align="absmiddle" src="../GVimgs/editor/u.gif" alt="使文字带有下划线" style="cursor:hand" onClick="javascript:underline();" />
- <img align="absmiddle" src="../GVimgs/editor/center.gif" alt="使文字居中显示" style="cursor:hand" onClick="javascript:center();" />
- <img align="absmiddle" src="../GVimgs/editor/right.gif" alt="使文字居右显示" style="cursor:hand" onClick="javascript:right();" />
- <img align="absmiddle" src="../GVimgs/editor/quote.gif" alt="引用内容" style="cursor:hand" onClick="javascript:quote();" />
- <img align="absmiddle" src="../GVimgs/editor/move.gif" alt="移动的文字" style="cursor:hand" onClick="javascript:move();" />
- <img align="absmiddle" src="../GVimgs/editor/url.gif" alt="插入超级链接" style="cursor:hand" onClick="javascript:hyperlink();"/>
- <img align="absmiddle" src="../GVimgs/editor/pic.gif" alt="插入图片" style="cursor:hand" onClick="javascript:image();"/>
- <img align="absmiddle" src="../GVimgs/editor/flash.gif" alt="插入flash动画" style="cursor:hand" onClick="javascript:flash();"/>
- <img align="absmiddle" src="../GVimgs/editor/real.gif" alt="播放realOne影音文件" style="cursor:hand" onClick="javascript:real();"/>
- <img align="absmiddle" src="../GVimgs/editor/winplayer.gif" alt="播放windows player影音文件" style="cursor:hand" onClick="javascript:win();"/>
- <img align="absmiddle" src="../GVimgs/editor/email.gif" alt="插入Email链接" style="cursor:hand" onClick="javascript:emailurl();"/></td>
- </tr>
- </table>
- <%
- out.print(textArea2("content",80,10,caContent));
- %><br>
- <strong>有效日期:
- <input name="caDays" type="text" id="caDays" value="<%=caDays%>" size="4" maxlength="4" />
- 天 </strong>0表示长期有效
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="32" bgcolor="#f6f6f6">
- <td><input type="submit" name="Submit" value="提交"></td>
- </tr>
- </table>
- </form>
- </body>
- </html>