email.jsp
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:6k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ 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" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <!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=gbk" />
- <title>无标题文档</title>
- <style>
- <!--
- a{TEXT-DECORATION:none}
- body{ font-size:12px}
- -->
- </style>
- <SCRIPT type="text/javascript">
- function go(address){
- parent.emailmainFrame.location.href=address;
- }
- </SCRIPT>
- <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;
- }
- </script>
- </head>
- <body>
- <html:form action="/email" styleId="form1">
- <html:hidden property="method" value=""/>
- <table width="100%" border="1">
- <tr>
- <td colspan="2">查看:
- <a href="${pageContext.request.contextPath}/email.do?method=receiveBox&emailtype=0&receiveid=${sessionScope.user.uno}" style="margin-left:10px">全部</a>-
- <a href="${pageContext.request.contextPath}/email.do?method=isRead&emailtype=0&receiveid=${sessionScope.user.uno}&isread=0" style="margin-left:10px">未读</a>-
- <a href="${pageContext.request.contextPath}/email.do?method=isRead&emailtype=0&receiveid=${sessionScope.user.uno}&isread=1" style="margin-left:10px">已读</a>
- </td>
- </tr>
- <tr>
- <td colspan="2"><table width="100%" border="1">
- <tr>
- <td width="8%" align="center"><input type="checkbox" name="allcheck" onclick="isAllCheck();" /></td>
- <td width="10%">邮件类型</td>
- <td width="14%">发件人</td>
- <td width="29%">主题</td>
- <td width="25%">日前</td>
- <td width="14%">附件</td>
- </tr>
- <logic:notPresent name="letterpage" property="list" scope="request">
- <tr>
- <td colspan="6"><font color="red">邮箱里没有邮件</font>
- </td>
- </tr>
- </logic:notPresent>
- <logic:present name="letterpage" property="list" scope="request">
- <logic:empty name="letterpage" property="list" scope="request">
- <tr>
- <td colspan="6"><font color="red">邮箱里没有邮件</font>
- </td>
- </tr>
- </logic:empty>
- </logic:present>
- <logic:iterate id="letter" name="letterpage" property="list" scope="request">
- <tr>
- <td width="8%" align="center">
- <html:multibox name="emailForm" 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="1" name="letter" property="isread">
- 已读
- </logic:equal>
- <logic:equal value="0" 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>
- </table></td>
- </tr>
- <tr>
- <td width="40%">选择:<a href="javascript:allCheck();" style="margin-left:10px">全部</a>-
- <a href="javascript:check();" style="margin-left:10px">反选</a>-
- <a href="javascript:nocheck();" style="margin-left:10px">不选</a> </td>
- <td width="60%" align="right"> <bean:write name="letterpage" property="pageBar" filter="false"/> </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="submit" value="删除" onclick="return go('removesToRublish');"/>
- <input type="submit" value="彻底删除" onclick="return go('delsForever');"/>
- </td>
- </tr>
- </table>
- </html:form>
- </body>
- </html>