forked from FengMengZhao/StudentsManagerWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplaystudent.jsp
72 lines (67 loc) · 2.23 KB
/
displaystudent.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
<%@ page language="java" import="java.util.*,org.fmz.model.Student"
pageEncoding="utf-8"%>
<%@ page import="org.fmz.dao.impl.*"%>
<%@ 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>
<style type="text/css">
input[type="text"]{
height: auto;
margin-bottom: 15px;
padding: 3px 9px;
}
</style>
</head>
<body>
<form action="searchById" method="post">
学号:<input type="text" name="searchId" placeholder="学生学号...">
<i class="icon-search"></i> <button type="submit" class="btn btn-inverse"> 查找</button>
</form>
<table class="table table-hover table-condensed">
<tr>
<td align="center">
<strong>学号</strong>
</td>
<td align="center">
<strong>姓名</strong>
</td>
<td align="center">
<strong>系别</strong>
</td>
<td align="center" >
<strong>执行操作</strong>
</td>
</tr>
<c:forEach items="${list}" var="student">
<tr>
<td>
<c:out value="${student.stId}" />
</td>
<td>
<c:out value="${student.stName}" />
</td>
<td>
<c:out value="${student.stDept}" />
</td>
<td>
<a href="stdelete?id=${student.stId}" class="btn btn-danger">删除</a>
<a href="pre?method=updateStudent&id=${student.stId}" class="btn btn-primary">更新</a>
</td>
</tr>
</c:forEach>
</table>
<hr>
<a href="main.jsp" class="btn btn-success">返回主菜单</a>
<hr>
</body>
</html>