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

📄 forumwaste.jsp

📁 一个jsp写的bbs
💻 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" %>
<%@taglib uri="/WEB-INF/bbscs.tld" prefix="bbscs"%>
<bean:define id="boardid" name="board" scope="request" property="id"/>
<bean:define id="pagesObj" name="pl" property="pages" scope="request" type="com.laoer.bbscs.service.web.Pages"/>
<bean:define id="forumList" name="pl" property="objectList" scope="request" type="java.util.List"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>垃圾桶</title>
<link href="css/css1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript" src="js/jsMsg.jsp"></script>
<script type="text/javascript" src="js/xmlHttpRequest.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
function checkAll() {
  var ca = document.getElementById("checkall");
  var ids = document.getElementsByName("ids");
  for (var i = 0; i < ids.length; i++) {
      ids[i].checked = ca.checked;
  }
}

function delw() {
  var ids = document.getElementsByName("ids");
  var num = 0;
  for (var i = 0; i < ids.length; i++) {
    if (ids[i].checked) {
      num++;
    }
  }
  if (num == 0) {
    alert("请选择要删除的帖子!");
    return false;
  }
  var del = confirm(confirm_del);
  if (del) {
    forumManageForm.action.value = "delw";
    forumManageForm.submit();
  }
  else {
    false;
  }
}

function resume() {
  var ids = document.getElementsByName("ids");
  var num = 0;
  for (var i = 0; i < ids.length; i++) {
    if (ids[i].checked) {
      num++;
    }
  }
  if (num == 0) {
    alert("请选择要恢复的帖子!");
    return false;
  }
  forumManageForm.action.value = "resume";
  forumManageForm.submit();
}

function delallw(bid) {
  var del = confirm(confirm_del);
  if (!del) {
    return false;
  }
}
//-->
</script>
</head>

<body>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td valign="top" class="bgColor3">版面名称:<strong><bean:write name="board" property="boardName"/></strong></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0" class="table9">
  <tr>
    <td width="38%">版主:<bbscs:boardmaster name="board" property="boardMaster" scope="request"/></td>
    <td width="62%">
      <div align="right">
        [<html:link action="/manageAdvance?action=index" paramId="bid" paramName="board" paramProperty="id">高级管理</html:link>]
        [<img src='images/recycle.gif' align='absmiddle' alt=""><html:link action="/forumManage?action=delallw" paramId="bid" paramName="board" paramProperty="id" onclick="return delallw();">清除全部垃圾</html:link>]
        [分页:<bbscs:pages name="pagesObj"/>]
        [<html:link action="/forumManage?action=m" paramId="bid" paramName="board" paramProperty="id">返回管理</html:link>]
        [<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id">返回论坛</html:link>]
      </div>
    </td>
  </tr>
</table>
<html:form action="/forumManage">
<html:hidden property="action"/>
<html:hidden property="bid"/>
<html:hidden property="page"/>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="bgColor3"><table width="100%" border="0" cellpadding="5" cellspacing="1">
      <tr>
        <td width="7%"><div align="center">选择</div></td>
        <td width="8%"><div align="center">字数</div></td>
        <td width="50%"><div align="center">标题</div></td>
        <td width="13%"><div align="center">发表人</div></td>
        <td width="10%"><div align="center">删除人</div></td>
        <td width="12%"><div align="center">时间</div></td>
      </tr>
      <logic:iterate id="f" name="forumList" type="com.laoer.bbscs.bean.Forum">
      <tr>
        <td class="bgColor2">
          <input type="checkbox" name="ids" value="<%=f.getId()%>" />
          <logic:equal value="1" name="f" property="canNotDel">M</logic:equal>
        </td>
        <td class="bgColor4"><div align="center"><bean:write name="f" property="artSize"/></div></td>
        <td class="bgColor2">
          <span class="font1"><bbscs:forum name="f" type="titlewaste"/></span>
          <bbscs:forum name="f" type="titleitemmanage"/>
        </td>
        <td class="bgColor4"><bean:write name="f" property="nickName"/>[<em><bean:write name="f" property="userName"/></em>]</td>
        <td class="bgColor2"><bean:write name="f" property="delUserName"/></td>
        <td class="bgColor4"><div align="center"><bbscs:forum name="f" type="deltime"/></div></td>
      </tr>
      </logic:iterate>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td>
      <div align="right">
        [分页:<bbscs:pages name="pagesObj"/>]
        [<html:link action="/forumManage?action=m" paramId="bid" paramName="board" paramProperty="id">返回管理</html:link>]
        [<html:link action="/forum?action=index" paramId="bid" paramName="board" paramProperty="id">返回论坛</html:link>]
      </div>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td class="font1">
      <div align="center">
        <input id="checkall" type="checkbox" name="checkall" value="checkall" onclick="checkAll();"/>
        选中所有显示的主题
        <html:button property="DelsButton" onclick="delw();" styleClass="button1">删除</html:button>
        <html:button property="ResumeButton" onclick="resume();" styleClass="button1">恢复</html:button>
      </div>
    </td>
  </tr>
  <tr>
    <td class="font2">
      <div align="center">
      注意:清空垃圾箱和删除都只能删除一周以前的帖子!
      </div>
    </td>
  </tr>
</table>
</html:form>
</body>
</html>

⌨️ 快捷键说明

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