📄 outbox.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"
contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd html 4.0 transitional//EN">
<html>
<head>
<title>发信箱</title>
<link href="<c:url value='/css/style.css' />" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<c:url value='/js/common.js' />" ></script>
<script type="text/javascript">
function subPage(){
var page=document.getElementById("page").value;
document.location='<c:url value='outboxMessage.action' />?currentPage='+page;
}
function delMessage(){
cCount = getCheckedCount("ID");
if (cCount == 0){
alert("请至少一条信息!");
return;
}
if (confirm("确定删除吗?")==false){
return false;
}
document.forms.outboxForm.action="<c:url value='delSendMessage.action' />";
document.all("outboxForm").submit();
}
</script>
</head>
<body>
<form method="post" name="outboxForm">
<table width="760" border="0" style="margin:20px 0;" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td colspan="3">
<table cellpadding="0" cellspacing="0" width="100%" height="62">
<tr>
<td background="<c:url value='/images/tab01.gif' />" width="309" valign="top">
<div class="tabhead">
系统讯息 - 发件箱
</div>
</td>
<td valign="bottom">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td background="<c:url value='/images/topcenter.gif' />" width="100%"
valign="top" align="right" style='padding:6px 0 0 0px;'>
<span
onclick="javascript:delMessage();"
onmouseout="this.className='Delout';"
onmouseover="this.className='Delover';" class="Delout">
<img src="<c:url value='/images/delete.gif' />" height="14"/> 删除</span>
</td>
<td><img src="<c:url value='/images/topright.gif' />"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td background="<c:url value='/images/centerleft.gif' />"></td>
<td width="100%">
<table width="100%" border="0" cellspacing="1" cellpadding="3"
align="center">
<tr>
<td width="10%" align="center">
<b>选择</b>
</td>
<td width="25%" align="center" >
<b>收件人</b>
</td>
<td width="35%" align="center">
<b>主题</b>
</td>
<td width="30%" align="center" >
<b>发送时间</b>
</td>
</tr>
<tr>
<td bgcolor="#cccccc" colspan="4" height="3"></td>
</tr>
<c:forEach items="${requestScope.sendMessageList}" var="msg" >
<tr bgcolor="#e6ffd6">
<td width="10%" align="center">
<input type="checkbox" name="ID" value="${msg.id}" />
</td>
<td width="25%" align="center">
${msg.receiver}
</td>
<td width="35%" align="center">
${msg.title}
</td>
<td width="30%" align="center">
<fmt:formatDate value="${msg.sendDate}" pattern="yyyy/MM/dd HH:mm:ss" />
</td>
</tr>
<tr>
<td bgcolor="#cccccc" colspan="4" height="3"></td>
</tr>
</c:forEach>
<tr>
<td align="left" width="35%" colspan="2">
选择:<a href="#" onclick="javascript:selAllCheckbox('ID');">全部</a>-
<a href="#" onclick="javascript:unselAllCheckbox('ID');">不选</a>-
<a href="#" onclick="javascript:reAllCheckbox('ID');">反选</a>
</td>
<td colspan="2" align="right" width="65%">
共
<span class="fontred">${requestScope.outbox_TotalNum}</span> 条信息 当前第
<span class="fontred">${requestScope.currentPage}</span> 页 共有
<span class="fontred">${requestScope.outbox_TotalPage}</span> 页
<c:choose>
<c:when test="${requestScope.currentPage==1}">
<c:choose>
<c:when test="${requestScope.outbox_TotalPage==1}" >
上一页/下一页
</c:when>
<c:otherwise>
上一页/<a href="#" onclick="self.location='<c:url value='outboxMessage.action' />?currentPage=${requestScope.currentPage+1}'">下一页</a>
</c:otherwise>
</c:choose>
</c:when>
<c:when test="${requestScope.currentPage==requestScope.outbox_TotalPage}">
<a href="#" onclick="self.location='<c:url value='outboxMessage.action' />?currentPage=${requestScope.currentPage-1}'">上一页</a>/下一页
</c:when>
<c:otherwise>
<a href="#" onclick="self.location='<c:url value='outboxMessage.action' />?currentPage=${requestScope.currentPage-1}'">上一页</a>/<a href="#" onclick="self.location='<c:url value='outboxMessage.action' />?currentPage=${requestScope.currentPage+1}'">下一页</a>
</c:otherwise>
</c:choose>
转到
<select name="select" id="page" onchange="subPage();" style="width: 50;height: 25">
<c:forEach begin="1" end="${requestScope.outbox_TotalPage}" var="num">
<c:choose>
<c:when test="${requestScope.currentPage==num}">
<option value="${num}" selected>${num}</option>
</c:when>
<c:otherwise>
<option value="${num}" >${num}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</td>
</tr>
</table>
</td>
<td background="<c:url value='/images/centeright.gif' />"></td>
</tr>
<tr>
<td>
<img src="<c:url value='/images/bottomleft.gif' />">
</td>
<td background="<c:url value='/images/bottomcenter.gif' />"></td>
<td>
<img src="<c:url value='/images/bottomright.gif' />">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -