You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
5 years ago
|
<%--
|
||
|
Created by IntelliJ IDEA.
|
||
|
User: pan
|
||
|
Date: 2020/6/10 0010
|
||
|
Time: 13:05
|
||
|
To change this template use File | Settings | File Templates.
|
||
|
--%>
|
||
|
<%@ page language="java" pageEncoding="UTF-8"%>
|
||
|
|
||
|
<%@ taglib uri="/struts-tags" prefix="s"%>
|
||
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
||
|
<%
|
||
|
String path = request.getContextPath();
|
||
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||
|
%>
|
||
|
<html>
|
||
|
<head>
|
||
|
<c:import url="../head.jsp"/>
|
||
|
<style>
|
||
|
img:hover{
|
||
|
width: auto;
|
||
|
height: auto;
|
||
|
}
|
||
|
img{
|
||
|
width: 100px;
|
||
|
height: 100px;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="box round first" style="margin:15px;">
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>资料名</th>
|
||
|
<th>内容</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<c:forEach items="${materialList}" var="item">
|
||
|
<tr>
|
||
|
<td class="align-middle">${item.materialName}</td>
|
||
|
<td>
|
||
|
<c:choose>
|
||
|
<c:when test="${item.formType eq 'text'}">${item.formValue}</c:when>
|
||
|
<c:when test="${item.formType eq 'doc'}">
|
||
|
<img src="<%=basePath%>${item.formValue}" />
|
||
|
</c:when>
|
||
|
</c:choose>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</c:forEach>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<button onclick="history.back()" class="btn-block col-1 ml-auto mr-auto">返回</button>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|