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

📄 change.jsp

📁 BBS-CS_3b_Tomcat4 java BBS
💻 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" />
<jsp:useBean id="ForumBean" scope="page" class="com.laoer.bbscs.bbs.Forum" />
<jsp:useBean id="BoardsMasterBean" scope="page" class="com.laoer.bbscs.user.BoardsMaster" />
<jsp:useBean id="ManagerUserBean" scope="page" class="com.laoer.bbscs.user.ManagerUser" />
<jsp:useBean id="ShowDocBean" scope="page" class="com.laoer.bbscs.bbs.ShowDoc" />
<%
SessionCheckBean.getSession(request);
if (SessionCheckBean.isHaveSession()) {
String bid = request.getParameter("bid");
String mainid = request.getParameter("mainid");
String recid = request.getParameter("recid");
String pages = request.getParameter("pages");
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();

ManagerUserBean.getManagerUser(strUserID);
boolean isSuper = ManagerUserBean.getIsSuper();

//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 && recid != null && recid.length()>0 && mainid != null && mainid.length()>0 && pages != null && pages.length()>0 && BoradsBean.isBoards(bid) && (strPost.equals("0")) && (!isGuestUser) && ShowDocBean.artIsExist(recid)) {
boolean isBoardMaster = BoardsMasterBean.getBoardMaster(strUserName,bid);
boolean isBoardsMaster = BoardsMasterBean.getBoardsMaster(strUserName,bid);
boolean isBoardsMaster1 = BoardsMasterBean.getBoardsMaster1(strUserName,bid);
boolean isBoardsMaster2 = BoardsMasterBean.getBoardsMaster2(strUserName,bid);
  String strAuthorName = "";
  String title = "";
  String detail = "";
  String bq = "";
  ForumBean.setForum(recid);
  strAuthorName = DoTextBean.iso2gb(ForumBean.getUserName());
  title = DoTextBean.iso2gb(ForumBean.getTitle());
  detail = DoTextBean.iso2gb(ForumBean.getDetail());
  detail = DoTextBean.delBr(detail);
  bq = ForumBean.getBQ();
  if (strAuthorName.equals(strUserName) || isBoardMaster || isBoardsMaster || isBoardsMaster1 || isBoardsMaster2) {
%>

<form name="form1" method="post" action="change_ok.jsp">
<INPUT TYPE="hidden" name="board" value="<%=bid%>">
<input TYPE="hidden" NAME="mainid" VALUE="<%=mainid%>">
<input TYPE="hidden" NAME="recid" VALUE="<%=recid%>">
<input TYPE="hidden" NAME="pages" VALUE="<%=pages%>">
  <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="20%" bgcolor="<%=tablemaincolor%>" height="23">&nbsp;</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" value="<%
        if (title != null) {
            out.print(title);
        }
        %>">
      </td>
    </tr>
    <tr>
      <td width="20%" bgcolor="<%=tabletintcolor%>">文章状态:</td>
      <td width="78%" bgcolor="<%=tabletintcolor%>">
        <input name=bq type=radio value=1 <% if (bq.equals("1")) { out.print("checked"); }%>>
        <img alt='我得意的笑^_^' height=15 src="images/1.gif" width=15> 
        <input name=bq type=radio value=2 <% if (bq.equals("2")) { out.print("checked"); }%>>
        <img alt=没劲! height=15 src="images/2.gif" width=15> 
        <input name=bq type=radio value=3 <% if (bq.equals("3")) { out.print("checked"); }%>>
        <img alt='气死我啦!' height=15 src="images/3.gif" width=15> 
        <input name=bq type=radio value=4 <% if (bq.equals("4")) { out.print("checked"); }%>>
        <img alt='随便说说啦' height=15 src="images/4.gif" width=15> 
        <input name=bq type=radio value=5 <% if (bq.equals("5")) { out.print("checked"); }%>>
        <img alt='好奇怪哟!' height=15 src="images/5.gif" width=15> 
        <input name=bq type=radio value=6 <% if (bq.equals("6")) { out.print("checked"); }%>>
        <img alt='大家小心!' height=15 src="images/6.gif" width=15><br>
        <input name=bq type=radio value=7 <% if (bq.equals("7")) { out.print("checked"); }%>>
        <img alt='我来回答你。' height=15 src="images/7.gif" width=15> 
        <input name=bq type=radio value=8 <% if (bq.equals("8")) { out.print("checked"); }%>>
        <img alt='有个好主意!' height=15 src="images/8.gif" width=15> 
        <input name=bq type=radio value=9 <% if (bq.equals("9")) { out.print("checked"); }%>>
        <img alt='大家过来..' height=15 src="images/9.gif" width=15> 
        <input name=bq type=radio value=10 <% if (bq.equals("10")) { out.print("checked"); }%>>
        <img alt='号外!号外!' height=15 src="images/10.gif" width=15> 
        <input name=bq type=radio value=11 <% if (bq.equals("11")) { out.print("checked"); }%>>
        <img alt='坚决同意!' height=15 src="images/11.gif" width=15> 
        <input name=bq type=radio value=12 <% if (bq.equals("12")) { out.print("checked"); }%>>
        <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"><%
        if (detail != null) {
          out.print("\n"+DoTextBean.unHtmlEncode(detail));
        }
        %>
      </textarea>
      </td>
    </tr>
    <tr>
      <td width="20%" bgcolor="<%=tabletintcolor%>">签名档:</td>
      <td width="78%" bgcolor="<%=tabletintcolor%>">
      <%
      //out.print(DoTextBean.gb2iso(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" disabled>
        有回复贴子时用邮件通知我
        <input type="checkbox" name="msg_inform" value="1" disabled>
        有回复贴子时用短信通知我 </td>
    </tr>
    <tr>
      <td width="20%" bgcolor="<%=tablemaincolor%>" height="22">&nbsp;</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);"));
 }
}
else {
  out.print(ReOutputBean.ReOutput(false,"参数错误,版面不存在或是你没有发贴权限!","javascript:history.go(-1);"));
}
%>
</BODY>
</HTML>
<%
}
else {
  out.println("错误!");
}
BBSConfBean.close();
BoradsBean.close();
UserSignBean.close();
ShowDocBean.close();
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -