📄 wastebox.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="com.laoer.bbscs.db.*"%>
<%@ page import="com.laoer.bbscs.util.*"%>
<%@ page import="java.util.*"%>
<%
long starttime = Util.getaLongTime();
String sid = (String)request.getAttribute("sid");
UserSessionCheck myUserSessionCheck = (UserSessionCheck)request.getAttribute("myUserSessionCheck");
String bid = (String)request.getAttribute("bid");
String pages = (String)request.getAttribute("pages");
BoardsInfo theBoards = (BoardsInfo)request.getAttribute("theBoards");
List myList = (List)request.getAttribute("plistlist");
Pages myPages = (Pages)request.getAttribute("myPages");
String pagebreakstr = (String)request.getAttribute("pagebreakstr");
String boardID = "";
String boardsname = "";
String eboardsname = "";
String bsmaster = "";
String boardgg = "";
boardID = bid;
boardsname = theBoards.getBoardsName();
eboardsname = theBoards.getBoardsEName();
boardgg = theBoards.getBulletin();
bsmaster = theBoards.getHTMLMaster(sid);
%>
<html:html locale="true">
<head>
<title><bean:message key="right.title"/></title>
<link rel=stylesheet type="text/css" href="css/<%=myUserSessionCheck.getUser().getUserInfo().getStyle()%>/css2.css">
<%//=Sys.getCSS(myUserSessionCheck.getUser().getUserInfo().getStyle(),2)%>
<script language="JavaScript">
<!--
function CheckAll(form)
{
for(var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if(e.name != 'chkall')
e.checked = form.chkall.checked;
}
function ExamItem()
{
adm.action="/cgi/exam";
adm.admtodo.name="do";
adm.admtodo.value="examitem";
adm.submit();
}
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<!-- 版面信息、查询输入 -->
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" class="bt" height="11"></td>
</tr>
</table>
<!-- 版面信息、查询输入结束 -->
<!-- 珍藏、精华、订阅、调转信息 -->
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="50%"><%=boardsname%>(<%=eboardsname%>)</font>
<td width="48%" class="bt"></td>
</tr>
</form>
</table>
<!-- 珍藏、精华、订阅、调转信息结束 -->
<!-- 斑竹、发表、翻页标志 -->
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="50%" ><bean:message key="right.boardmaster"/><%out.print(bsmaster);%></td>
<td width="48%" ></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="50%" ><%=(Integer.parseInt(pages)-1)*myPages.getPerPageNum()+1%>-<%=(Integer.parseInt(pages)-1)*myPages.getPerPageNum()+myPages.getPerPageNum()%>,<bean:message key="right.totaltopic" arg0="<%=String.valueOf(myPages.getTotals())%>"/> <font color='#ff0000'>[<a href='manageAction.do?sid=<%=sid%>&bid=<%=bid%>&action=h'><font color='#ff0000'><bean:message key="manager.highm"/></font></a>] [<a href='rightAction.do?sid=<%=sid%>&bid=<%=bid%>'><font color='#ff0000'><bean:message key="manager.backright"/></font></a>]</font></td>
<td width="48%" >
<div align="right"><font color="#FF0000">
<%=pagebreakstr%></font> <%
if (myUserSessionCheck.isSuperAdmin() || myUserSessionCheck.isBMaster() || myUserSessionCheck.isMainMaster()) {
%>
<img src='images/recycle.gif' align='absmiddle'><font color='#ff0000'>[<a href='<%=Sys.getURL()%>postDelsAction.do?sid=<%=sid%>&bid=<%=bid%>&pages=<%=pages%>&action=delall'><font color='#ff0000'><bean:message key="wastebox.delall"/></font></a>]</font></div>
<%
}
%></div>
</td>
</tr>
</table>
<form action="<%=Sys.getURL()%>postDelsAction.do" method=post id=adm>
<INPUT TYPE="hidden" name="bid" value="<%=bid%>">
<INPUT TYPE="hidden" name="pages" value="<%=pages%>">
<INPUT TYPE="hidden" name="action" value="delwastes">
<INPUT TYPE="hidden" name="sid" value="<%=sid%>">
<%
ForumInfo myForumInfo = null;
int flist = myList.size();
int n = 2;
String tclass = "";
%>
<table width=98% border=0 align=center cellpadding=1 cellspacing=1 style="table-layout:fixed;word-break:break-all">
<tr class='T1'>
<td width=5%><div align=center><font color=#FFFFFF><bean:message key="right.re"/></font></div></td>
<td width=7%><div align=center><font color=#FFFFFF><bean:message key="bbscs.del"/></font></div></td>
<td width=55%><div align=center><font color=#FFFFFF><bean:message key="right.topic"/></font></div></td>
<td width=12%><div align=center><font color=#FFFFFF><bean:message key="right.author"/></font></div></td>
<td width=12%><div align=center><font color=#FFFFFF><bean:message key="wastebox.delname"/></font></div></td>
<td width=12%><div align=center><font color=#FFFFFF><bean:message key="right.time"/></font></div></td>
</tr>
<%
for (int i = 0;i < flist;i++) {
myForumInfo = (ForumInfo)myList.get(i);
if ((i%n)==1) {
tclass = "T3";
}
else {
tclass = "T2";
}
String artSize = "";
if (myForumInfo.getArtSize()<1024) {
artSize = String.valueOf(myForumInfo.getArtSize());
}
else {
artSize = (int)(myForumInfo.getArtSize()/1024) +"K";
}
%>
<tr class='<%=tclass%>'>
<td width=5%><CENTER>
<%
out.println(artSize);
/*
if (myForumInfo.getReNum() == 0) {
out.println(artSize);
}
else {
out.println("<font color=#ff0000>[+"+ myForumInfo.getReNum() +"]<font>");
}*/
%>
</CENTER></td>
<td width=7%> <INPUT TYPE='checkbox' NAME='delforum' value='<%=myForumInfo.getID()%>'>
<%
if (myForumInfo.getCanNotDel()==1) {
out.print("<font color=#8f0000> M</font>");
}
%>
</td>
<td width=55%><span class=bt><a href='readWasteAction.do?sid=<%=sid%>&bid=<%=bid%>&recid=<%=myForumInfo.getID2()%>&pages=<%=pages%>' ><%=Util.stripslashes(myForumInfo.getTitle())%></a></span>
<%
if (myForumInfo.getIsTop() == 1) {
%>
<img src='images/top.gif'title='<bean:message key="right.totop"/>' align=absbottom>
<%
}
if (myForumInfo.getHavePic() != 0) {
%>
<font color=#FF0000><bean:message key="right.havepic"/></font>
<%
}
if (myForumInfo.getElite() != 0) {
%>
<font color=#FF0000><bean:message key="right.isgood"/></font>
<%
}
%>
</td>
<td ALIGN=left nowrap><a href='<%=Sys.getURL()%>userInfoAction.do?sid=<%=sid%>&showtype=userID&uid=<%=myForumInfo.getUserID()%>'><%=myForumInfo.getNickName()%> <font color=#666666>[<%=myForumInfo.getUserName()%>]</font></a></td>
<td ALIGN=left nowrap><div align=center><a href='<%=Sys.getURL()%>userInfoAction.do?sid=<%=sid%>&showtype=userID&uid=<%=myForumInfo.getDelUserID()%>'><%=myForumInfo.getDelUserName()%></a></div></td>
<td width=11%><CENTER><%=Util.fotmatDate6(new Date(myForumInfo.getPostTime()))%></CENTER></td></tr>
<%
}
%>
</table>
<!-- 发表、翻页标志 -->
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="50%"> </td>
<td width="48%" >
<div align="right"><font color="#FF0000"><%=pagebreakstr%></font></div>
</td>
</tr>
</table>
<!-- 发表、翻页标志结束 -->
<center>
<input type="checkbox" name="chkall" value="on" onclick="CheckAll(this.form)">
<span class='bt'><bean:message key="manager.selectall"/></span> <input type="submit" name="" value="<bean:message key="bbscs.del"/>">
</center>
</form>
<center>
<font color='#FF0000'><bean:message key="wastebox.delnotice"/></font>
</center>
<%
long endtime = Util.getaLongTime();
%>
<CENTER><font color='#ff0000'><bean:message key="bbscs.pageruntime" arg0="<%=String.valueOf(endtime-starttime)%>"/></font></CENTER>
<%
theBoards = null;
myList = null;
myPages = null;
%>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -