📄 post.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" %>
<jsp:useBean id="SessionCheckBean" scope="page" class="com.laoer.bbscs.user.SessionCheck" />
<jsp:useBean id="BBSConfBean" scope="page" class="com.laoer.bbscs.admin.BBSConf" />
<jsp:useBean id="BoradsBean" scope="page" class="com.laoer.bbscs.board.Boards" />
<jsp:useBean id="DoTextBean" scope="page" class="com.laoer.bbscs.txthtml.DoText" />
<jsp:useBean id="HeaderAdvBean" scope="page" class="com.laoer.bbscs.bbs.HeaderAdv" />
<jsp:useBean id="ReOutputBean" scope="page" class="com.laoer.bbscs.txthtml.ReOutput" />
<jsp:useBean id="UserSignBean" scope="page" class="com.laoer.bbscs.user.UserSign" />
<%
SessionCheckBean.getSession(request);
if (SessionCheckBean.isHaveSession()) {
String bid = request.getParameter("bid");
boolean isGuestUser = SessionCheckBean.isGuestUser();
String strUserID = SessionCheckBean.getUserID();
//String strUserName = SessionCheckBean.getUserName();
String strPost = SessionCheckBean.getPost();
String tabledarkcolor = BBSConfBean.gettabledarkcolor();
String tablemaincolor = BBSConfBean.gettablemaincolor();
String tabletintcolor = BBSConfBean.gettabletintcolor();
int confStyle = BBSConfBean.getConfStyle();
//String boardID = "";
String boardsname = "";
String eboardsname = "";
BoradsBean.getBoards(bid);
//boardID = BoradsBean.getBoardID();
boardsname = DoTextBean.iso2gb(BoradsBean.getBoardsName());
eboardsname = DoTextBean.iso2gb(BoradsBean.getEBoardName());
%>
<HTML><HEAD><TITLE>发表</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<%
out.print(BBSConfBean.getRightCSS1());
%>
</HEAD>
<BODY <%=BBSConfBean.getRightBGTextColor()%> topMargin=0 ; marginheight="0">
<%
out.print(HeaderAdvBean.getHeaderAdv(isGuestUser));
%>
<%
if (bid != null && bid.length()>0 && BoradsBean.isBoards(bid) && (strPost.equals("0")) && (!isGuestUser)) {
%>
<form name="form1" method="post" action="post_ok.jsp">
<INPUT TYPE="hidden" name="board" value="<%=bid%>">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="20%" bgcolor="<%=tablemaincolor%>" height="23"> </td>
<td width="78%" bgcolor="<%=tablemaincolor%>" height="23"><font color=#ffffff>您目前在<font color="#FFFF00"><b><%=boardsname%>(<%=eboardsname%>)</b></font>区发表信息</font></td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tabletintcolor%>">文章主题:</td>
<td width="78%" bgcolor="<%=tabletintcolor%>">
<input type="text" name="title" size="50" maxlength="60">
</td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tabletintcolor%>">文章状态:</td>
<td width="78%" bgcolor="<%=tabletintcolor%>">
<input name=bq type=radio value=1 checked>
<img alt=我得意的笑^_^ height=15
src="images/1.gif" width=15>
<input name=bq type=radio
value=2>
<img alt=没劲! height=15 src="images/2.gif" width=15>
<input name=bq type=radio value=3>
<img alt=气死我啦! height=15
src="images/3.gif" width=15>
<input name=bq type=radio
value=4>
<img alt=随便说说啦 height=15 src="images/4.gif"
width=15>
<input name=bq type=radio value=5>
<img alt=好奇怪哟! height=15
src="images/5.gif" width=15>
<input name=bq type=radio
value=6>
<img alt=大家小心! height=15 src="images/6.gif"
width=15><br>
<input name=bq type=radio value=7>
<img alt=我来回答你。
height=15 src="images/7.gif" width=15>
<input name=bq
type=radio value=8>
<img alt=有个好主意! height=15
src="images/8.gif" width=15>
<input name=bq type=radio
value=9>
<img alt=大家过来.. height=15 src="images/9.gif"
width=15>
<input name=bq type=radio value=10>
<img alt=号外!号外! height=15
src="images/10.gif" width=15>
<input name=bq type=radio
value=11>
<img alt=坚决同意! height=15 src="images/11.gif"
width=15>
<input name=bq type=radio value=12>
<img alt=反对反对! height=15
src="images/12.gif" width=15></td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tabletintcolor%>">正文:</td>
<td width="78%" bgcolor="<%=tabletintcolor%>">
<textarea name="detail" cols="70" rows="15"></textarea>
</td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tabletintcolor%>">签名档:</td>
<td width="78%" bgcolor="<%=tabletintcolor%>">
<%
out.print(UserSignBean.getShowSign(strUserID));
%>
<input type="radio" name="sign" value="0" checked>
没有</td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tabletintcolor%>">回复通知:</td>
<td width="78%" bgcolor="<%=tabletintcolor%>">
<input type="checkbox" name="email_inform" value="1">
有回复贴子时用邮件通知我
<input type="checkbox" name="msg_inform" value="1">
有回复贴子时用短信通知我 </td>
</tr>
<tr>
<td width="20%" bgcolor="<%=tablemaincolor%>" height="22"> </td>
<td width="78%" bgcolor="<%=tablemaincolor%>" height="22"><font class=p9 color=#ffffff>*
请您对您的言行负责,遵守中华人民共和国有关法律、法规,尊重网上道德.</font></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="image" border="0" name="imageField" src="images/post.gif" width="50" height="21">
<A
href="javascript:history.back()"><img src="images/return.gif" width="50" height="21" border="0"></a></div>
</td>
</tr>
</table>
</form>
<%
}
else {
out.print(ReOutputBean.ReOutput(false,"参数错误,版面不存在或是你没有发贴权限!","javascript:history.go(-1);"));
}
%>
</BODY>
</HTML>
<%
}
else {
out.println("错误!");
}
BBSConfBean.close();
BoradsBean.close();
UserSignBean.close();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -