📄 rublishbox.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>无标题文档</title>
<style>
<!--
a{TEXT-DECORATION:none}
body{ font-size:12px}
-->
</style>
<script>
function isAllCheck(){
var check = document.getElementById("allcheck");
if(check.checked==true){
//选中了,下面的要全部选上
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
child[i].checked=true;
}
}else{
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
child[i].checked=false;
}
}
}
//全选
function allCheck(){
var check = document.getElementById("allcheck");
check.checked=true;
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
child[i].checked=true;
}
}
//反选
function check(){
var check = document.getElementById("allcheck");
if(check.checked==true){
check.checked=false;
}else if(check.checked==false){
check.checked=true;
}
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
if(child[i].checked==true){
child[i].checked=false;
}else if(child[i].checked==false){
child[i].checked=true;
}
}
}
//不选
function nocheck(){
var check = document.getElementById("allcheck");
check.checked=false;
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
child[i].checked=false;
}
}
function go(method){
var child = document.getElementsByName("check");
var flag = false;
for(var i=0; i<child.length; i++){
if(child[i].checked==true){
flag = true;
}
}
if(flag ==false){
alert("请选择删除对象");
return false;
}
document.getElementById("method").value=method;
}
//移动到哪里
function moveoto(method){
var select = document.getElementById("select").value;
if(select == '移动到---'){
return false;
}
var flag = false;
var child = document.getElementsByName("check");
for(var i=0; i<child.length; i++){
if(child[i].checked==true){
flag = true;
}
}
if(flag ==false){
alert("请选择移动的对象");
return false;
}
document.getElementById("method").value=method;
var form = document.getElementById("emailForm");
form.submit();
}
</script>
</head>
<body>
<html:form action="/email" method="post" >
<html:hidden property="method" value=""/>
<table width="100%" border="1" >
<tr>
<td align="center"><input type="checkbox" name="allcheck" onclick="isAllCheck();"/></td>
<td>邮件状态</td>
<td>发件人</td>
<td>主题</td>
<td>日期</td>
<td>附件</td>
</tr>
<logic:notPresent name="rublishList" property="list">
<tr>
<td colspan="6" align="center">暂时没有数据</td>
</tr>
</logic:notPresent>
<logic:present name="rublishList" property="list">
<logic:empty name="rublishList" property="list" >
<tr>
<td colspan="6" align="center">暂时没有数据</td>
</tr>
</logic:empty>
<logic:notEmpty name="rublishList" property="list" >
<logic:iterate id="letter" name="rublishList" property="list">
<tr>
<td align="center">
<html:multibox property="check" value="${letter.emailid}"></html:multibox>
</td>
<td>
<html:link action="/email.do?method=readEmail&isread=${letter.isread}&emailid=${letter.emailid}">
<logic:equal value="0" name="letter" property="isread"><font color="red">未读</font></logic:equal>
<logic:equal value="1" name="letter" property="isread">已读</logic:equal>
</html:link>
</td>
<td>
<bean:write name="letter" property="sendname"/>
</td>
<td>
<bean:write name="letter" property="title"/>
</td>
<td>
<bean:write name="letter" property="sendtime"/>
</td>
<td>
<logic:equal value="1" name="letter" property="isfujian"><font color="red">有附件</font></logic:equal>
<logic:equal value="0" name="letter" property="isfujian">无附件</logic:equal>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</logic:present>
<tr>
<td colspan="6">
<bean:write name="rublishList" property="pageBar" filter="false" />
</td>
</tr>
<tr>
<td colspan="6">
<input type="submit" value="彻底删除" onclick="return go('delsForever');"/>
<select name="select" onchange="moveoto('moveToReceiverBox');">
<option>移动到---</option>
<option>
收件箱
</option>
</select>
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -