-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathshowstudentgrade.jsp
140 lines (134 loc) · 3.37 KB
/
showstudentgrade.jsp
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>查询结果页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<c:if test="${not empty studentgrade }">
<table class="table table-hover table-condensed">
<tr>
<td align="center">
<strong>学号</strong>
</td>
<td align="center">
<strong>姓名</strong>
</td>
<td align="center">
<strong>作业1</strong>
</td>
<td align="center" >
<strong>作业2</strong>
</td>
<td align="center">
<strong>作业3</strong>
</td>
<td align="center" >
<strong>作业4</strong>
</td>
<td align="center">
<strong>作业5</strong>
</td>
<td align="center" >
<strong>作业6</strong>
</td>
<td align="center">
<strong>作业7</strong>
</td>
<td align="center" >
<strong>作业7</strong>
</td>
<td align="center">
<strong>作业8</strong>
</td>
<td align="center" >
<strong>作业10</strong>
</td>
<td align="center">
<strong>作业11</strong>
</td>
<td align="center" >
<strong>作业12</strong>
</td>
<td align="center">
<strong>作业13</strong>
</td>
<td align="center" >
<strong>作业14</strong>
</td>
</tr>
<tr>
<td>
<c:out value="${studentgrade.st_id}" />
</td>
<td>
<c:out value="${studentgrade.st_name}" />
</td>
<td>
<c:out value="${studentgrade.grade_01}" />
</td>
<td>
<c:out value="${studentgrade.grade_02}" />
</td>
<td>
<c:out value="${studentgrade.grade_03}" />
</td>
<td>
<c:out value="${studentgrade.grade_04}" />
</td>
<td>
<c:out value="${studentgrade.grade_05}" />
</td>
<td>
<c:out value="${studentgrade.grade_06}" />
</td>
<td>
<c:out value="${studentgrade.grade_07}" />
</td>
<td>
<c:out value="${studentgrade.grade_08}" />
</td>
<td>
<c:out value="${studentgrade.grade_09}" />
</td>
<td>
<c:out value="${studentgrade.grade_10}" />
</td>
<td>
<c:out value="${studentgrade.grade_11}" />
</td>
<td>
<c:out value="${studentgrade.grade_12}" />
</td>
<td>
<c:out value="${studentgrade.grade_13}" />
</td>
<td>
<c:out value="${studentgrade.grade_14}" />
</td>
<td>
<a href="sgdelete?id=${studentgrade.st_id}" class="btn btn-danger">删除</a>
<a href="pre?method=updateStudentGrade&id=${studentgrade.st_id}" class="btn btn-primary">更新</a>
</td>
</tr>
</table>
</c:if >
<c:if test="${empty studentgrade }">
<center><font color="red" size="+1">对不起!没有该学号对应的学生....</font></center>
</c:if>
<hr>
<a href="main.jsp" class="btn btn-success">返回主菜单</a>
<hr>
</body>
</html>