📄 change.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page import="com.laoer.bbscs.sysinfo.*"%>
<%@ page import="com.laoer.bbscs.bbs.business.*"%>
<%@ page import="com.laoer.bbscs.servlet.*"%>
<%@ page import="com.laoer.bbscs.db.*"%>
<%@ page import="com.laoer.bbscs.util.*"%>
<%@ page import="java.util.*"%>
<%
String sid = (String)request.getAttribute("sid");
UserSessionCheck myUserSessionCheck = (UserSessionCheck)request.getAttribute("myUserSessionCheck");
String headadv = (String)request.getAttribute("headadv");
String bid = (String)request.getAttribute("bid");
String pages = (String)request.getAttribute("pages");
String inpages = (String)request.getAttribute("inpages");
String recid = (String)request.getAttribute("recid");
String mainid = (String)request.getAttribute("mainid");
BoardsInfo theBoards = (BoardsInfo)request.getAttribute("theBoards");
ForumInfo aForumInfo = (ForumInfo)request.getAttribute("postinfo");
String boardsname = "";
String eboardsname = "";
boardsname = theBoards.getBoardsName();
eboardsname = theBoards.getBoardsEName();
String title = aForumInfo.getTitle();
String detail = aForumInfo.getDetailText();
String bq = String.valueOf(aForumInfo.getFace());
%>
<html:html locale="true">
<HEAD><TITLE><bean:message key="post.title"/></TITLE>
<link rel=stylesheet type="text/css" href="css/<%=myUserSessionCheck.getUser().getUserInfo().getStyle()%>/css2.css">
<%//=Sys.getCSS(myUserSessionCheck.getUser().getUserInfo().getStyle(),2)%>
<script>
function pageonloadM() {
var f=document.form1
f.HTML.value=f.detail.value;
}
function bs(){
var f=document.form1
f.detail.value=f.HTML.value;
if(f.title.value.length==0){alert("<bean:message key="error.post.notitle"/>");f.title.focus();return false}
if(f.detail.value.length==0){alert("<bean:message key="error.post.nodetail"/>");f.HTML.focus();return false}
document.form1.submit();
}
function br(){
if(!confirm("<bean:message key="post.doyoureset"/>")){return false;}
document.form1.title.select()
}
</script>
</HEAD>
<BODY topMargin=0 marginheight="0" onload="pageonloadM()">
<%=headadv%>
<form name="form1" method="post" action="<%=Sys.getURL()%>postAction.do" onreset="return br()">
<INPUT TYPE="hidden" name="bid" value="<%=bid%>">
<input TYPE="hidden" NAME="mainid" VALUE="<%=mainid%>">
<input TYPE="hidden" NAME="recid" VALUE="<%=recid%>">
<input TYPE="hidden" NAME="pages" VALUE="<%=pages%>">
<input TYPE="hidden" NAME="inpages" VALUE="<%=inpages%>">
<input TYPE="hidden" NAME="useedit" VALUE="yes">
<input TYPE="hidden" NAME="action" VALUE="change">
<INPUT name="sid" type=hidden value="<%=sid%>">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="20%" class='T1' height="23"> </td>
<td width="78%" class='T1' height="23"><font color=#ffffff><bean:message key="post.youatboards" arg0="<%=boardsname%>" arg1="<%=eboardsname%>"/></font></td>
</tr>
<tr>
<td width="20%" class='T2'><bean:message key="post.topic"/></td>
<td width="78%" class='T2'>
<input type="text" name="title" size="50" maxlength="60" value="<%
if (title != null) {
out.print(title);
}
%>">
</td>
</tr>
<tr>
<td width="20%" class='T2'><bean:message key="post.face"/></td>
<td width="78%" class='T2'>
<TABLE cellSpacing=2 cellPadding=2 border=0>
<TBODY>
<TR>
<TD><INPUT type=radio value=1 name=bq <% if (bq.equals("1")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/1.gif"></TD>
<TD><INPUT type=radio value=2 name=bq <% if (bq.equals("2")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/2.gif"></TD>
<TD><INPUT type=radio value=3 name=bq <% if (bq.equals("3")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/3.gif"></TD>
<TD><INPUT type=radio value=4 name=bq <% if (bq.equals("4")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/4.gif"></TD>
<TD><INPUT type=radio value=5 name=bq <% if (bq.equals("5")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/5.gif"></TD>
<TD><INPUT type=radio value=6 name=bq <% if (bq.equals("6")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/6.gif"></TD>
<TD><INPUT type=radio value=13 name=bq <% if (bq.equals("13")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/13.gif"></TD>
<TD><INPUT type=radio value=14 name=bq <% if (bq.equals("14")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/14.gif"></TD>
<TD><INPUT type=radio value=15 name=bq <% if (bq.equals("15")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/15.gif"></TD>
<TD><INPUT type=radio value=16 name=bq <% if (bq.equals("16")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/16.gif"></TD></TR>
<TR>
<TD><INPUT type=radio value=7 name=bq <% if (bq.equals("7")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/7.gif"></TD>
<TD><INPUT type=radio value=8 name=bq <% if (bq.equals("8")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/8.gif"></TD>
<TD><INPUT type=radio value=9 name=bq <% if (bq.equals("9")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/9.gif"></TD>
<TD><INPUT type=radio value=10 name=bq <% if (bq.equals("10")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/10.gif"></TD>
<TD><INPUT type=radio value=11 name=bq <% if (bq.equals("11")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/11.gif"></TD>
<TD><INPUT type=radio value=12 name=bq <% if (bq.equals("12")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/12.gif"></TD>
<TD><INPUT type=radio value=17 name=bq <% if (bq.equals("17")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/17.gif"></TD>
<TD><INPUT type=radio value=18 name=bq <% if (bq.equals("18")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/18.gif"></TD>
<TD><INPUT type=radio value=19 name=bq <% if (bq.equals("19")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/19.gif"></TD>
<TD><INPUT type=radio value=20 name=bq <% if (bq.equals("20")) { out.print("checked"); }%>></TD>
<TD><IMG src="images/20.gif"></TD></TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="20%" class='T2'><bean:message key="post.detail"/></td>
<td width="78%" class='T2'>
<OBJECT id=HTML data="edit/editor.html" width="100%" height=360 type=text/x-scriptlet></object><textarea style="DISPLAY:none" name="detail">
<%
if (detail != null) {
out.print(detail);
}
%>
</textarea>
</td>
</tr>
<tr>
<td width="20%" class='T2'><bean:message key="post.sign"/></td>
<td width="78%" class='T2'>
<input type="radio" name="sign" value="0" checked>
<bean:message key="post.nosign"/></td>
</tr>
<tr>
<td width="20%" class='T2'><bean:message key="post.renotice"/></td>
<td width="78%" class='T2'>
<input type="checkbox" name="email_inform" value="1" disabled>
<bean:message key="post.emilre"/>
<input type="checkbox" name="msg_inform" value="1" disabled>
<bean:message key="post.msgre"/></td>
</tr>
<tr>
<td width="20%" class='T1' height="22"> </td>
<td width="78%" class='T1' height="22"><font class=p9 color=#ffffff><bean:message key="post.postnotice"/></font></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="button" name="ok" value="<bean:message key="bbscs.botton.submit"/>" onclick="bs();">
<input type="reset" name="Submit2" value="<bean:message key="bbscs.botton.reset"/>">
<input type="button" name="back" value="<bean:message key="bbscs.goback"/>" onclick="javascript:history.back()">
</div>
</td>
</tr>
</table>
</form>
</BODY>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -