forked from mikemelon/java-exam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamList.jsp
More file actions
94 lines (83 loc) · 2.5 KB
/
Copy pathexamList.jsp
File metadata and controls
94 lines (83 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Java考试系统--考试列表</title>
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="css/materialize.min.css">
<link type="text/css" rel="stylesheet" href="css/material_icons.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
font-family: Roboto, "Microsoft YaHei";
}
.mytable {
border-collapse: collapse;
border-bottom: 2px solid #ddd;
}
.mytable td {
padding: 5px 10px;
}
.namelink a {
text-decoration: none;
}
.namelink a:LINK {
color: #12f;
}
.namelink a:VISITED {
color: #a2e;
}
.namelink a:HOVER {
color: #17f;
}
</style>
</head>
<body>
<%@ include file="include/header.jsp" %>
<div id="main">
<div class="container" style="height: 350px;">
<table class="mytable">
<thead>
<tr>
<th>序号</th>
<th>考试名称</th>
<th>说明</th>
</tr>
</thead>
<s:iterator value="examList" status="st" var="item">
<tr
style="background-color:<s:if test="#st.odd">#efefef</s:if><s:else>#ffffff</s:else>">
<td><s:property value="#st.index+1" /></td>
<td><a class="namelink"
href="<s:url action="examdetail2"><s:param name="exam_id" value="%{id}"></s:param></s:url>"><s:property
value="name" /></a></td>
<td><s:property value="detail" /></td>
</tr>
</s:iterator>
</table>
</div>
</div>
<%@ include file="include/footer.jsp" %>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
<script>
$(document).ready(function () {
$('.modal-trigger').leanModal({
dismissible: true, //是否点模态对话框外面就可以关闭
opacity: 0.6, //接近1,不透明
});//使用模态对话框,必须有这句
$(".button-collapse").sideNav({
menuWidth: 200, // Default is 240
edge: 'left', // Choose the horizontal origin
closeOnClick: true // Closes side-nav on <a> clicks, useful for Angular/Meteor
});
$(".collapsible").collapsible({
accordion: true
});
})
</script>
</body>
</html>