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

📄 unpostconf.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="ReOutputBean" scope="page" class="com.laoer.bbscs.txthtml.ReOutput" />

<jsp:useBean id="ManagerUserBean" scope="page" class="com.laoer.bbscs.user.ManagerUser" />
<%
SessionCheckBean.getSession(request);
if (SessionCheckBean.isHaveSession()) {
String bid = request.getParameter("bid");
boolean isGuestUser = SessionCheckBean.isGuestUser();
String strUserID = SessionCheckBean.getUserID();
String strUserName = SessionCheckBean.getUserName();

String tabledarkcolor = BBSConfBean.getConfTableDarkColor();
String tablemaincolor = BBSConfBean.getConfTableMainColor();

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

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>高级管理</title>
<%
  out.print(BBSConfBean.getRightCSS1());
%>
</head>
<body <%=BBSConfBean.getRightBGTextColor1()%> leftmargin="20" topmargin="20" marginwidth="20" marginheight="20">
<%
if (bid != null && bid.length()>0) {

  if (isSuper || isUserAdmin) {
%>
<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr align="center" bgcolor="<%=tablemaincolor%>">
    <td height="30"><font color="#FFFFFF">用户管理(禁止/允许用户发言) </font></td>
  </tr>
</table>

<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr align="center">
    <td colspan=4><br><span class=bt>目前被封的用户:</span>
<hr align="left" noshade size="1" width="600">
    </td>
  </tr>
  <tr align="center">
    <td colspan=4>
    <font color="#FF0000"></font>
    </td>
  </tr>
  <tr align="center" class=bt>
	<td><b>用户名</b></td>
	<td><b>被封理由</b></td>
	<td><b>解封时间</b></td>
	<td><b>执罚者</b></td>
  </tr>
  <tr align="center">
    <td colspan=4>
      <hr align="left" noshade size="1" width="600">
    </td>
  </tr>
  <%
   out.print(BoradsBean.getListUnPost(bid));
  %>
</table>

<hr align="left" noshade size="1" width="600">
<br>
<form action="unpost_ok.jsp" method="post">
  <table width="600" border="0" cellspacing="0" cellpadding="5">
    <tr bgcolor="<%=tabledarkcolor%>">
      <td width="130" align="right" class=p9>要封权的用户名:</td>
      <td width="470">
        <div align="left">
          <input type=text name="Uname">
        </div>
      </td>
    </tr>
    <tr bgcolor="<%=tabledarkcolor%>">
      <td width="130" align="right" bgcolor="<%=tabledarkcolor%>">封权直到:</td>
      <td width="470">
        <input type=text name=year size=4 value="20">
        <input type=text name=month size=2>
        <input type=text name=day size=2>
        日 </td>
    </tr>
    <tr bgcolor="<%=tabledarkcolor%>">
      <td width="130" align="right" class=p9 bgcolor="<%=tabledarkcolor%>" valign="top">封权的因由:</td>
      <td width="470">
        <textarea name="unpostreason" cols=60 rows=5></textarea>
      </td>
    </tr>
  </table>
  <hr align="left" noshade size="1" width="600">
  <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr align="center" bgcolor="<%=tablemaincolor%>">
      <td height="30">
        <input type=hidden name="bid" value="<%=bid%>">
        <input type=hidden name="action" value="unpostok">
        <input type=submit value="just do it " name="submit">
      </td>
    </tr>
  </table>
  <br>
</form>
<form action="unpost_ok.jsp" method="post">
  <table width="600" border="0" cellspacing="0" cellpadding="2">
    <tr bgcolor="<%=tabledarkcolor%>">
      <td width="130" align="right" class=p9>要解封的用户名: </td>
      <td width="470">
        <div align="left">
          <input type="text" name="Uname">
        </div>
      </td>
    </tr>
  </table>
  <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr align="center" bgcolor="<%=tablemaincolor%>">
      <td height="30">
        <input type=hidden name="bid" value="<%=bid%>">
        <input type=hidden name="action" value="postok">
        <input type=submit value="just do it " name="submit2">
      </td>
    </tr>
  </table>
  <br>
</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();
ManagerUserBean.close();
%>

⌨️ 快捷键说明

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