⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postn.jsp

📁 BBS-CS 天乙社区 是采用JSP+JavaBean+Servlet、Struts的MVC框架开发的一套网络虚拟社区系统。文件解压缩后有详细文件说明。
💻 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="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");
BoardsInfo theBoards = (BoardsInfo)request.getAttribute("theBoards");
String boardsname = "";
String eboardsname = "";
boardsname = theBoards.getBoardsName();
eboardsname = theBoards.getBoardsEName();
%>
<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">
<script>
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">
<%=headadv%>
<form name="form1" method="post" action="post_ok.jsp" enctype="multipart/form-data" onreset="return br()">
<INPUT TYPE="hidden" name="board" value="<%=bid%>">
<input TYPE="hidden" NAME="n" VALUE="y">
<input TYPE="hidden" NAME="action" VALUE="add">
  <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="20%" class='T1' height="23">&nbsp;</td>
      <% String htmledit = Sys.getURL() +"postAction.do?sid="+sid+"&bid="+bid+"&action=new&useedit=no"; %>
      <td width="78%" class='T1' height="23"><font color=#ffffff><bean:message key="post.youatboards" arg0="<%=boardsname%>" arg1="<%=eboardsname%>"/> <bean:message key="post.cannotpost1" arg0="<%=htmledit%>" /></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">
      </td>
    </tr>
    <tr>
      <td width="20%" class='T2'><bean:message key="post.face"/></td>
      <td width="78%" class='T2'>
        <input name=bq type=radio value=1 checked>
        <img alt="<bean:message key="post.face1"/>" height=15 src="images/1.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=2>
        <img alt="<bean:message key="post.face2"/>" height=15 src="images/2.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=3>
        <img alt="<bean:message key="post.face3"/>" height=15 src="images/3.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=4>
        <img alt="<bean:message key="post.face4"/>" height=15 src="images/4.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=5>
        <img alt="<bean:message key="post.face5"/>" height=15 src="images/5.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=6>
        <img alt="<bean:message key="post.face6"/>" height=15 src="images/6.gif" width=15><br>
        <input name=bq type=radio value=7>
        <img alt="<bean:message key="post.face7"/>" height=15 src="images/7.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=8>
        <img alt="<bean:message key="post.face8"/>" height=15 src="images/8.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=9>
        <img alt="<bean:message key="post.face9"/>" height=15 src="images/9.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=10>
        <img alt="<bean:message key="post.face10"/>" height=15 src="images/10.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=11>
        <img alt="<bean:message key="post.face11"/>" height=15 src="images/11.gif" width=15>&nbsp;&nbsp;
        <input name=bq type=radio value=12>
        <img alt="<bean:message key="post.face12"/>" height=15 src="images/12.gif" width=15></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"></textarea>
      </td>
    </tr>
    <tr>
      <td width="20%" class='T2'><bean:message key="post.sign"/></td>
      <td width="78%" class='T2'>
      <%=myUserSessionCheck.getUser().getUserInfo().getHtmlSign()%>
      <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">
        <bean:message key="post.emilre"/>
        <input type="checkbox" name="msg_inform" value="1">
        <bean:message key="post.msgre"/></td>
    </tr>
    <%
    if (Sys.SYSINFO.UPIMG.equals("yes")) {
    %>
    <tr>
      <td width="20%" class='T2'><bean:message key="post.upimg"/></td>
      <td width="78%" class='T2'>
      <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="102400">
      <INPUT name="form_data" type=file> <bean:message key="post.upnotice"/>
      </td>
    </tr>
    <%
    }
    %>
    <tr>
      <td width="20%" class='T1' height="22">&nbsp;</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 + -