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

📄 messageoutbox.jsp

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="common/include/taglibs.jsp" %>
<html:html>
<head>
<title><lybbs:web key="forumName"/></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="bookmark" href="favicon.ico" type="image/x-icon">
<%@ include file="common/include/header.jsp" %>
<script language="JavaScript">
function openscript2(url, width, height) {
  var Win = window.open(url,"openwindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
}
</script>
</head>
<bean:define id="pageUtils" name="pageUtils" type="net.lybbs.util.PageUtils"/>
<%
int pages=pageUtils.getPages();
int numPerPage=pageUtils.getNumPerPage();
int count=pageUtils.getCount();
int i=count-(pages-1)*numPerPage;
String sessionToken=StringUtils.getSessionToken(request);
%>
<body topmargin=0 leftmargin=0>
<p>&nbsp;
<br>
<table class=tableCommonStyle cellpadding=3 cellspacing=1 border=0 align=center>
    <tr>
     <td class=catStyle align=center colspan=6>
       <b><bean:message key="jsp.message.outbox.welcome"/>,&nbsp;<bean:write name="userBean" property="userName" scope="session"/></b>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align=center colspan=6>
       <a href="bbs_messageInbox.do"><img src=lybbs/images/msg/inboxpm.gif border=0 alt="<bean:message key="jsp.message.inbox.name"/>" class="gray" width=50 height=40></a>
       <a href="bbs_messageOutbox.do"><img src=lybbs/images/msg/outboxpm2.gif border=0 alt="<bean:message key="jsp.message.outbox.name"/>" class="gray" width=50 height=40></a>
       <a href="bbs_preMessageSend.do"><img src=lybbs/images/msg/newpm.gif border=0 alt="<bean:message key="jsp.message.send.name"/>" class="gray" width=50 height=40></a>
       <a href="javascript:openscript2('bbs_friendList.do',420,320)"><img src=lybbs/images/msg/friendpm.gif border=0 alt="<bean:message key="jsp.friend.name"/>" class="gray" width=50 height=40></a>
     </td>
    </tr>
    <tr>
     <td class=forumColorTwo align=center><b><bean:message key="common.lybbs.serialnumber"/></b></td>
     <td class=forumColorTwo align=center><b><bean:message key="jsp.message.receivename"/></b></td>
     <td class=forumColorTwo align=center width=230><b><bean:message key="common.lybbs.subject"/></b></td>
     <td class=forumColorTwo align=center><b><bean:message key="jsp.announcement.sendat"/></b></td>
     <td class=forumColorTwo align=center><b><bean:message key="jsp.message.isread"/></b></td>
     <td class=forumColorTwo align=center><b><bean:message key="common.lybbs.delete"/></b></td>
    </tr>
    <logic:greaterThan name="statusBean" property="maxMsgNumber" value="0">
      <bean:size id="listLength" name="outboxListBean"/>
      <logic:lessEqual name="statusBean" property="maxMsgNumber" value="<%=listLength.toString()%>">
      <tr>
        <td class=forumColorOne align=center colspan=6>
          <b><bean:message key="error.message.maxsize" arg0="<%=listLength.toString()%>"/></b>
        </td>
      </tr>
      </logic:lessEqual>
    </logic:greaterThan>
    <logic:iterate id="element" name="outboxListBean">
    <tr>
      <td class=forumColorTwo align=center>
        <%=i--%>
      </td>
      <td class=forumColorTwo align=center><a href="bbs_userShow.do?userName=<bean:write name="element" property="msgToEncodeName"/>" target=_blank><bean:write name="element" property="msgToName"/></a></td>
      <td class=forumColorTwo><a href="bbs_messageRead.do?msgID=<bean:write name="element" property="msgID"/>&action=outbox"><bean:write name="element" property="msgTitle"/></a></td>
      <td class=forumColorTwo align=center><bean:write name="element" property="msgSendAt"/></td>
      <td class=forumColorTwo align=center><img src="lybbs/images/<bean:write name="element" property="msgViewedIcon"/>" border=0></td>
      <td class=forumColorTwo align=center>
        <a href="bbs_messageDelete.do?msgID=<bean:write name="element" property="msgID"/>&action=outbox&sessionToken=<%=sessionToken%>"><bean:message key="common.lybbs.delete"/></a>
      </td>
    </tr>
    </logic:iterate>
    <tr>
     <td class=forumColorTwo align=center colspan=6>
       <logic:present name="pageUtils" scope="request"><bean:write name="pageUtils" property="pageInfo" filter="false"/></logic:present>
     </td>
    </tr>
    <tr>
     <td class=forumColorOne align=center colspan=6>
       <a href="bbs_messageDelete.do?action=outbox&sessionToken=<%=sessionToken%>" onclick="if(confirm('<bean:message key="jsp.admincenter.confirm"/>')) {return true;}{return false;}">[<bean:message key="common.lybbs.deleteall"/>]</a>
     </td>
    </tr>
</table>
</body>
</html:html>

⌨️ 快捷键说明

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