forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserSearch.jsp
More file actions
117 lines (116 loc) · 3.17 KB
/
userSearch.jsp
File metadata and controls
117 lines (116 loc) · 3.17 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<%@ page contentType="text/html; charset=gb2312" language="java"
pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<c:if test="${sessionScope.loginUser==null}">
<script language="javascript">
alert("您未登录或连线超时,请登录系统");
window.location.href="Content.jsp";
</script>
</c:if>
<html>
<head>
<title>网上图书超市</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<c:if test="${sessionScope.loginUser!=null&&sessionScope.loginUser.username=='mr' }">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="tableBorder_LTR">
<tr>
<td height="40" align="center">
<div align="center">
<p>
<span class="word_grey"></span>
</p>
</div>
</td>
</tr>
</table>
<table width="95%" height="72" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td align="center">
${message }
</td>
</tr>
<tr>
<td width="100%" height="72" align="center">
<form name="form1" method="post" action="searchUserController.htm">
请输入查询条件:
<select name="condition" id="condition" tabindex="2">
<option value="username"
<c:if test="${condition=='username' }"> selected="yes"</c:if>>
登录用户名
</option>
<option value="name"
<c:if test="${condition=='name' }"> selected="yes"</c:if>>
用户昵称
</option>
</select>
<input name="conditionContent" type="text"
value="${conditionContent }">
<input type="submit" name="Submit" value="提交">
</form>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="100%" height="84" valign="top">
<table width="80%" border="1" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td>
<div align="center">
登录用户名
</div>
</td>
<td>
<div align="center">
用户昵称
</div>
</td>
<td>
<div align="center">
维护
</div>
</td>
</tr>
<c:forEach var="user" items="${list}">
<tr>
<td>
<div align="center">
${user.username }
</div>
</td>
<td>
<div align="center">
${user.name }
</div>
</td>
<td class="button_03" align="middle">
<div align="center">
<a href="searchUserController.htm?id=${user.id }"
target="mainFrame">删除</a>
</div>
</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</c:if>
<c:if test="${sessionScope.loginUser==null||sessionScope.loginUser.username!='mr' }">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center">
您未登录或权限不够,请登录系统。
</p>
</c:if>
</body>
</html>