clubAfficheEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:7k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- errorPage="err.jsp" %>
- <%@ include file="./GVinc/gvImport.jsp" %>
- <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
- <jsp:useBean id="cma" scope="request" class="com.gamvan.club.manage.ClubAffiche"/>
- <%@ include file="./GVinc/gvClassInfo.jsp" %>
- <%
- String act = "add";
- if(request.getParameter("act")!=null){
- act = request.getParameter("act");
- }
- int caID = 0;
- if(request.getParameter("caID") != null){
- caID = Integer.parseInt(request.getParameter("caID"));
- }else{
- caID = 0;
- }
- String caTopic="", caContent="";
- int caDays=0;
- 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(gvUserName);
- cma.setCaByip(request.getRemoteAddr());
- cma.clubAffiche(act);
- //out.print(act);
- out.print(prtCenter(cma.getMessage(),"",2));
- out.close();
- if(true)return;
- }
- if(caID>0){
- ClubAfficheItem cai = (ClubAfficheItem)cma.afficheInfo(caID);
- caTopic = es.htmlEncoder(cai.getCaTopic());
- caContent = cai.getCaContent();
- caDays = cai.getCaDays();
- }
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%=clubTitle%>>><%
- if(ccIDD1>0){
- out.print(ccName2 +">>");
- }
- %>
- <%
- if(ccIDD>0){
- out.print(ccName1 +">>");
- }
- %>
- <%=ccName%>
- </title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="./GVimgs/favicon.ico" rel="Bookmark">
- <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
- <TABLE cellPadding=6 border=0>
- <TBODY><TR><TD align=middle>
- <IMG src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
- <BR>
- <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
- <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
- <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>__公告管理')
- </script>
- <%
- //权限判断开始
- if(ccID<=0){
- out.print(errs(3,"您所请求的版面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- if(!isPass(gvUserGradeTxt,30)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
- out.close();
- if(true) return;
- }
- %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1"><td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
- com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
- )%>版面管理
- </td></tr></table>
- <%@ include file="./GVfilesInc/classManageMenu.jsp" %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <form name="Gforms" id="Gforms" method="post" action="">
- <tr><td height="24" class="tab3"><strong> 公告主题:
- <input name="caTopic" type="text" id="caTopic" value="<%=caTopic%>" size="50" maxlength="100" />
- </strong></td></tr>
- <tr><td class="tab3">
- <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(textArea("content",100,10,caContent));%>
- </td></tr><tr>
- <td class="tab3"><strong>有效日期: <input name="caDays" type="text" id="caDays" value="<%=caDays%>" size="4" maxlength="4" />
- 天 </strong>0表示长期有效 </td>
- </tr>
- <tr><td class="tab3"><input name="gvSubmit" type="submit" id="gvSubmit" value="确定发布" /></td>
- </tr></form></table>
- <%=Gfoot()%>
- </body>
- </html>
- <!-- Powered by www.GamVan.com -->