readcaogao.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
  3. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
  4. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
  5. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
  6. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  11. <title>无标题文档</title>
  12. <style>
  13. <!--
  14. a{TEXT-DECORATION:none}
  15. body{ font-size:12px}
  16. -->
  17. </style> 
  18. <script>
  19. function go(method){
  20. document.getElementById("method").value=method;
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <html:form action="/email" method="post">
  26. <html:hidden property="method" value="" />
  27. <table width="100%" border="1">
  28.   <tr>
  29.     <td colspan="2">操作:    
  30.      <a href="" style="margin-left:10px">编辑</a>-
  31.             <a href="${pageContext.request.contextPath}/email.do?method=delToRublish&emailid=<bean:write name='emailForm' property='emailid'/>" style="margin-left:10px">删除</a>-
  32.             <a href="${pageContext.request.contextPath}/email.do?method=delForever&emailid=<bean:write name='emailForm' property='emailid'/>" style="margin-left:10px">彻底删除</a>     
  33.     </td>
  34.  
  35.  
  36.  
  37.   </tr>
  38.   <tr>
  39.     <td colspan="2">
  40.         <table width="100%" border="1">
  41.         <html:hidden name="emailForm" property="emailid"/>
  42.         <html:hidden name="emailForm" property="receiveid"/>
  43.         <html:hidden name="emailForm" property="receivename"/>
  44.         <html:hidden name="emailForm" property="title"/>
  45.          <html:hidden name="emailForm" property="content"/>
  46.           <tr>
  47.             <td width="14%">日期</td>
  48.             <td width="86%">
  49.              <bean:write name="emailForm" property="sendtime"/>
  50.             </td>
  51.           </tr>
  52.           <tr>
  53.             <td >发件人</td>
  54.             <td>
  55.              <bean:write name="emailForm" property="sendname"/>
  56. </td>
  57.           </tr>
  58.           <tr>
  59.             <td>收件人</td>
  60.             <td>
  61.              <bean:write name="emailForm" property="receivename"/>
  62.             </td>
  63.           </tr>
  64.           <tr>
  65.             <td>主题</td>
  66.             <td>
  67.              <bean:write name="emailForm" property="title"/>
  68.             </td>
  69.           </tr>
  70.           <tr>
  71.             <td>附件</td>
  72.             <td>
  73.              <logic:notPresent  name="emailForm" property="fujian">
  74.              无附件
  75.              </logic:notPresent>
  76.              <logic:present  name="emailForm" property="fujian">
  77.              <logic:empty  name="emailForm" property="fujian">
  78.              无附件
  79.              </logic:empty>
  80.              <logic:notEmpty  name="emailForm" property="fujian">
  81.              <logic:iterate id="temp" name="emailForm" property="fujian">
  82.              <a href="${pageContext.request.contextPath}/Jsp_file/email/down.jsp?filepath=${temp.filepath}&filename=${temp.filename}" style="margin-left: 20px">
  83.              <bean:write name="temp" property="filename" />
  84.              </a>
  85.              </logic:iterate>
  86.              </logic:notEmpty>
  87.              </logic:present>
  88.             
  89. </td>
  90.           </tr>
  91.           <tr>
  92.             <td colspan="2">
  93. <textarea cols="135" rows="15" readonly="readonly">
  94. <bean:write name="emailForm" property="content"/>
  95. </textarea>
  96.             </td>
  97.             
  98.           </tr>
  99.     </table></td>
  100.     
  101.   </tr>
  102.    <tr>
  103.     <td colspan="2">
  104.     
  105.         <input type="submit" value="编辑" onclick="return go('Edit');"/>
  106.         <input type="button" value="返回" onclick="history.back();"/>
  107.     </td>
  108.     
  109.   </tr>
  110. </table>
  111. </html:form>
  112. </body>
  113. </html>