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

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. </head>
  12. <body>
  13. <table width="100%" border="1" class="myTable">
  14.   <tr class="tableHead">
  15.     <td colspan="3" align="center"><table width="100%" border="1" >
  16.       <tr>
  17.         <td >&nbsp;</td>
  18.         <td align="center">公告信息</td>
  19.         <td >
  20.         <a href="${pageContext.request.contextPath}/affiche.do?method=editlist">返回</a></td>
  21.       </tr>
  22.     </table>
  23.     </td>
  24.   </tr>
  25.   <tr>
  26.     <td  align="right">标题:</td>
  27.     <td  align="center">${affiche.atitle}&nbsp;</td>
  28.     <td  align="right">&nbsp;</td>
  29.   </tr>
  30.   <tr>
  31.     <td align="right">内容:</td>
  32.     <td align="center">${affiche.acontent}&nbsp;</td>
  33.     <td align="right">&nbsp;</td>
  34.   </tr>
  35.   <tr>
  36.     <td align="right">发布时间:</td>
  37.     <td align="center">${affiche.asend_time}&nbsp;</td>
  38.     <td align="right">&nbsp;</td>
  39.   </tr>
  40.   <tr>
  41.     <td align="right">有效时间:</td>
  42.     <td align="center">${affiche.areal_time}&nbsp;</td>
  43.     <td align="right">&nbsp;</td>
  44.   </tr>
  45.   <tr>
  46.     <td align="right">发布者:</td>
  47.     <td align="center">${affiche.fname}&nbsp;</td>
  48.     <td align="right">&nbsp;</td>
  49.   </tr>
  50.   <tr>
  51.     <td align="right">审核人:</td>
  52.     <td align="center">${affiche.uname}&nbsp;</td>
  53.     <td align="right">&nbsp;</td>
  54.   </tr>
  55.   <tr>
  56.     <td align="right">备注:</td>
  57.     <td align="center">${affiche.amemo}&nbsp;</td>
  58.     <td align="right">&nbsp;</td>
  59.   </tr>
  60.   <c:if  test="${affiche.affixpath!=null}">
  61.    <% 
  62.    Map map = (Map)request.getAttribute("affiche");
  63.    String path = (String)map.get("affixpath");
  64.    String name = (String)map.get("affixname");  
  65.    String[] names = name.split(",");
  66.     for(int i=0;i<names.length;i++){
  67.    %>
  68.     <tr>
  69.      <td align="right">附件<%=i+1%></td>
  70.      <td align="center">
  71.      <a href ="${pageContext.request.contextPath}/Jsp_file/affiche/down.jsp?filename=<%=names[i]%>"><%=names[i]%></a>
  72.      &nbsp;
  73.      </td>
  74.      <td align="right">&nbsp;</td>
  75.    </tr>
  76.    <%
  77.    }
  78.    %>
  79.   </c:if>
  80. </table>
  81. </body>
  82. </html>