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

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK" import="java.util.*"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
  4. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
  5. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
  6. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html>
  9. <head>
  10. <link href="<%=request.getContextPath()%>/Css_file/oa.css" rel="stylesheet" type="text/css" />
  11. <style type="text/css">
  12. <!--
  13. .STYLE2 {font-size: 24px}
  14. .STYLE3 {font-size: 12px}
  15. .STYLE4 {font-size: 14px}
  16. .STYLE5 {font-size: 16px}
  17. -->
  18.     </style>
  19. </head>
  20. <body>
  21. <table width="100%" border="1" class="myTable">
  22. <input type="hidden" name="task" value="look"/>
  23. <tr>
  24. <td align="center" colspan="3">
  25. <span class="STYLE2">${affiche.atitle}     </span></td>
  26. </tr>
  27. <tr>
  28. <td align="center" colspan="3">
  29. <span class="STYLE3">公告有效期:&nbsp;[${affiche.asend_time}]&nbsp;&nbsp;至&nbsp;&nbsp;[${affiche.areal_time}] </span></td>
  30. </tr>
  31. <tr>
  32. <td align="center">
  33. <span class="STYLE5">&nbsp;&nbsp;${affiche.acontent}     </span></td>
  34. </tr>
  35. <tr>
  36. <td align="right">
  37. <span class="STYLE4">发布者:${affiche.fname}&nbsp;&nbsp;&nbsp;&nbsp;</span> </td>
  38. </tr>
  39. <tr>
  40. <td align="right"><span class="STYLE4" style="margin-right: 20">${affiche.asend_time}&nbsp;&nbsp;</span> </td>
  41. </tr>
  42. <tr>
  43.   <td align="center">
  44.    &nbsp;
  45.   <c:if test="${affiche.affixpath!=null}">
  46.   <span class="STYLE4">
  47.   <%
  48. Map map = (Map) request.getAttribute("affiche");
  49. String path = (String) map.get("affixpath");
  50. String name = (String) map.get("affixname");
  51. String[] names = name.split(",");
  52. for (int i = 0; i < names.length; i++) {
  53. %>
  54.     附件<%=i + 1%>:<a href ="${pageContext.request.contextPath}/Jsp_file/affiche/down.jsp?filename=<%=names[i]%>"><%=names[i]%></a><br />
  55.         <%
  56. }
  57. %>
  58.       </span></c:if>
  59.       
  60. </td>
  61. </tr>
  62. </table>
  63. </body>
  64. </html>