-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonalCenter1.xhtml
More file actions
353 lines (338 loc) · 21.9 KB
/
personalCenter1.xhtml
File metadata and controls
353 lines (338 loc) · 21.9 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
<h:head>
<title>Facelet Title</title>
<h:outputStylesheet library="css" name="style.css"/>
<h:outputStylesheet library="css" name="bootstrap.min.css" />
<h:outputScript library="js" name="jquery-3.2.1.min.js" />
<h:outputScript library="js" name="bootstrap.min.js" />
<h:outputScript library="js" name="script.js"/>
<h:outputScript library="js" name="myjquery1.js"/>
</h:head>
<h:body>
<ui:decorate template="template.xhtml">
<ui:define name="centerContent">
<h:form id="editform" class="form-inline">
<div style="width: 15%;margin-left: 150px;margin-top: 100px;">
<ul class="nav nav-pills nav-stacked">
<li id="li1" class="dwe"><a href="#home">查看所有用户</a></li>
<li id="li2" class="dwe"><a href="#aa">查看支教用户</a></li>
<li id="li3" class="dwe"><a href="#bb">查看需求者用户</a></li>
<li id="li4" class="dwe"><a href="#dd">支教审核</a></li>
<li id="li5" class="dwe"><a href="#ee">需求者审核</a></li>
<li id="li6" class="dwe"><a href="#ff">支教贴子审核</a></li>
<li id="li7" class="dwe"><a href="#gg">需求贴子审核</a></li>
<li id="li8" class="dwe"><a href="#hh"><span class="badge pull-right">#{receiveChatBean1.num}</span>收件箱</a></li>
</ul>
</div>
</h:form>
<h:form id="editformdiv" class="form-inline">
<div id="home" class="container ddd1" style="position: relative; width: 60%;margin-left: 460px;margin-top: -340px;margin-bottom: 200px;">
<div class="col-lg-6" style="width: 60%;margin-left: 155px;margin-top: -50px; position: absolute;">
<div class="input-group">
<h:inputText id="input1" class="form-control" pt:placeholder="输入用户账号" pt:autofocus="true" value="#{editBean.userResult}" />
<span class="input-group-btn">
<li style="margin-left: -3px"><h:commandButton class="btn btn-default" value="搜索" action="#{editBean.likeQuery()}" /></li>
</span>
</div>
<h:selectOneMenu value="#{editBean.judegeResult}" class="form-control">
<f:selectItem itemLabel="账号" itemValue="id"/>
<f:selectItem itemLabel="姓名" itemValue="name"/>
<f:selectItem itemLabel="性别" itemValue="gender"/>
<f:selectItem itemLabel="年龄" itemValue="age"/>
</h:selectOneMenu>
</div>
<div>
<c:forEach items="#{editBean.listuser}" var="u">
<div class="liu2">
账号: #{u[0]}<br/>
昵称: #{u[5]}<br/>
电话: #{u[8]}<br/>
邮箱: #{u[3]}<br/>
真实姓名: #{u[7]}<br/>
性别: #{u[4]}<br/>
城市: #{u[2]}<br/>
职业: #{u[6]}<br/>
身份: #{editBean.judgeStatue(u)}<br/>
出生年月: #{u[1]}
<div style="margin-left: 160px;">
<h:commandLink value="私聊" action="#{editBean.chat(u[0])}" class="text-success"/>
<f:ajax render="editformdiv">
<h:commandLink value="删除" action="#{editBean.deleteUser(u)}" style="margin-left: 10px;"/>
</f:ajax>
</div>
</div>
</c:forEach>
</div>
</div>
<div id="cc" class="container ddd2" style="position: relative; width: 60%;margin-left: 420px;margin-top: -350px;margin-bottom: 300px;">
<div class="col-lg-6" style=" position: absolute;width: 60%;margin-left: 155px;margin-top: 10px;">
<div class="input-group">
<h:inputText id="input2" class="form-control" pt:placeholder="输入用户账号" pt:autofocus="true" value="#{editBean.userResult}" />
<span class="input-group-btn">
<li style="margin-left: -3px"><h:commandButton class="btn btn-default" value="搜索" action="#{editBean.likeQuery()}" /></li>
</span>
</div>
<h:selectOneMenu value="#{editBean.judegeResult}" class="form-control">
<f:selectItem itemLabel="账号" itemValue="id"/>
<f:selectItem itemLabel="姓名" itemValue="name"/>
<f:selectItem itemLabel="性别" itemValue="gender"/>
<f:selectItem itemLabel="年龄" itemValue="age"/>
</h:selectOneMenu>
</div>
<c:forEach items="#{editBean.listuser3}" var="u">
<div class="liu2">
账号: #{u[0]}<br/>
昵称: #{u[5]}<br/>
电话: #{u[8]}<br/>
邮箱: #{u[3]}<br/>
真实姓名: #{u[7]}<br/>
性别: #{u[4]}<br/>
城市: #{u[2]}<br/>
职业: #{u[6]}<br/>
身份: #{editBean.judgeStatue(u)}<br/>
出生年月: #{u[1]}
<div style="margin-left: 160px;">
<h:commandLink value="私聊" action="#{editBean.chat(u[0])}" class="text-success"/>
<f:ajax render="editformdiv">
<h:commandLink value="删除" action="#{editBean.deleteUser(u)}" style="margin-left: 10px;"/>
</f:ajax>
</div>
</div>
</c:forEach>
</div>
</h:form>
<h:form id="editformdiv1" class="form-inline">
<div id="aa" class="container ddd" style="position: relative; width: 60%;margin-left: 460px;margin-top: -340px;margin-bottom: 200px;">
<div class="col-lg-6" style="width: 60%;margin-left: 155px;margin-top: -50px; position: absolute;">
<div class="input-group">
<h:inputText id="input3" class="form-control" pt:placeholder="输入用户账号" pt:autofocus="true" value="#{editBean.userResult}" />
<span class="input-group-btn">
<li style="margin-left: -3px"><h:commandButton class="btn btn-default" value="搜索" action="#{editBean.likeQuery()}" /></li>
</span>
</div>
<h:selectOneMenu value="#{editBean.judegeResult}" class="form-control">
<f:selectItem itemLabel="账号" itemValue="id"/>
<f:selectItem itemLabel="姓名" itemValue="name"/>
<f:selectItem itemLabel="性别" itemValue="gender"/>
<f:selectItem itemLabel="年龄" itemValue="age"/>
</h:selectOneMenu>
</div>
<c:forEach items="#{editBean.listuser1}" var="u">
<div class="liu2">
账号: #{u[0]}<br/>
昵称: #{u[5]}<br/>
电话: #{u[8]}<br/>
邮箱: #{u[3]}<br/>
真实姓名: #{u[7]}<br/>
性别: #{u[4]}<br/>
城市: #{u[2]}<br/>
职业: #{u[6]}<br/>
身份: #{editBean.judgeStatue(u)}<br/>
出生年月: #{u[1]}
<div style="margin-left: 160px;">
<h:commandLink value="私聊" action="#{editBean.chat(u[0])}" class="text-success"/>
<f:ajax render="editformdiv">
<h:commandLink value="删除" action="#{editBean.deleteUser(u)}" style="margin-left: 10px;"/>
</f:ajax>
</div>
</div>
</c:forEach>
</div>
</h:form>
<h:form id="editformdiv2" class="form-inline">
<div id="bb" class="container ddd" style="position: relative; width: 60%;margin-left: 460px;margin-top: -340px;margin-bottom: 200px;">
<div class="col-lg-6" style="width: 60%;margin-left: 155px;margin-top: -50px; position: absolute;">
<div class="input-group">
<h:inputText id="input4" class="form-control" pt:placeholder="输入用户账号" pt:autofocus="true" value="#{editBean.userResult}" />
<span class="input-group-btn">
<li style="margin-left: -3px"><h:commandButton class="btn btn-default" value="搜索" action="#{editBean.likeQuery()}" /></li>
</span>
</div>
<h:selectOneMenu value="#{editBean.judegeResult}" class="form-control">
<f:selectItem itemLabel="账号" itemValue="id"/>
<f:selectItem itemLabel="姓名" itemValue="name"/>
<f:selectItem itemLabel="性别" itemValue="gender"/>
<f:selectItem itemLabel="年龄" itemValue="age"/>
</h:selectOneMenu>
</div>
<c:forEach items="#{editBean.listuser2}" var="u">
<div class="liu2">
账号: #{u[0]}<br/>
昵称: #{u[5]}<br/>
电话: #{u[8]}<br/>
邮箱: #{u[3]}<br/>
真实姓名: #{u[7]}<br/>
性别: #{u[4]}<br/>
城市: #{u[2]}<br/>
职业: #{u[6]}<br/>
身份: #{editBean.judgeStatue(u)}<br/>
出生年月: #{u[1]}
<div style="margin-left: 160px;">
<h:commandLink value="私聊" action="#{editBean.chat(u[0])}" class="text-success"/>
<f:ajax render="editformdiv">
<h:commandLink value="删除" action="#{editBean.deleteUser(u)}" style="margin-left: 10px;"/>
</f:ajax>
</div>
</div>
</c:forEach>
</div>
</h:form>
<h:form id="editformdiv3" class="form-inline">
<div id="dd" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -180px;margin-bottom: 280px;">
<div style="margin-top: -160px;margin-left: -40px;">
<table class="table">
<tr>
<th>用户账号</th>
<th>用户姓名</th>
<th>支教结束时间</th>
<th>个人简介</th>
<th>查看详情</th>
<th>操作</th>
</tr>
<c:forEach items="#{editBean1.list}" var="u">
<tr>
<td>#{u[0]}</td>
<td>#{u[8]}</td>
<td>#{u[14]}</td>
<td>#{editBean1.perIntroduce(u)}</td>
<td><h:commandLink value="查看" action="#{editBean1.details(u)}"/></td>
<td>
<f:ajax render="editformdiv3">
<h:commandLink value="同意" action="#{editBean1.handleOkspe(u[0])}"/>
<h:commandLink value="拒绝" action="#{editBean1.handleNo(u[0])}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv4" class="form-inline">
<div id="ee" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -180px;margin-bottom: 280px;">
<div style="margin-top: -160px;margin-left: -40px;">
<table class="table">
<tr>
<th>用户账号</th>
<th>用户姓名</th>
<th>个人简介</th>
<th>查看详情</th>
<th>操作</th>
</tr>
<c:forEach items="#{editBean2.list}" var="u">
<tr>
<td>#{u[0]}</td>
<td>#{u[8]}</td>
<td>#{editBean2.perIntroduce(u)}</td>
<td><h:commandLink value="查看" action="#{editBean2.details(u)}"/></td>
<td>
<f:ajax render="editformdiv4">
<h:commandLink value="同意" action="#{editBean2.handleOkneed(u[0])}"/>
<h:commandLink value="拒绝" action="#{editBean2.handleNo(u[0])}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv5" class="form-inline">
<div id="ff" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -220px;margin-bottom: 300px;">
<div style="margin-top: -160px;margin-left: -40px;">
<h1>支教帖历史记录</h1>
<table class="table">
<tr>
<th>贴子标题</th>
<th>发帖时间</th>
<th>需要人数</th>
<th>状态</th>
<th>操作</th>
</tr>
<c:forEach items="#{adminCheckPostBean.listspe}" var="u">
<tr>
<td>#{u.speTitle}</td>
<td>#{u.id.speTime}</td>
<td>#{u.speQuantity}</td>
<td>#{u.demandStatus}</td>
<td><h:commandLink value="查看" action="#{adminCheckPostBean.spedetail(u)}"/>
<f:ajax render="editformdiv5">
<h:commandLink value="同意" action="#{adminCheckPostBean.checkPostOk(u)}"/>
<h:commandLink value="拒绝" action="#{adminCheckPostBean.checkPostNo(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv6" class="form-inline">
<div id="gg" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -220px;margin-bottom: 300px;">
<div style="margin-top: -160px;margin-left: -40px;">
<h1>需求贴历史记录</h1>
<table class="table">
<tr>
<th>贴子标题</th>
<th>发帖时间</th>
<th>需要物质</th>
<th>状态</th>
<th>操作</th>
</tr>
<c:forEach items="#{adminCheckPostBean.listgoodsdemand}" var="u">
<tr>
<td>#{u.demandTitle}</td>
<td>#{u.id.demandTime}</td>
<td>#{u.demandGoods}</td>
<td>#{u.demandStatus}</td>
<td><h:commandLink value="查看" action="#{adminCheckPostBean.spedetail1(u)}"/>
<f:ajax render="editformdiv6">
<h:commandLink value="同意" action="#{adminCheckPostBean.checkPostOk1(u)}"/>
<h:commandLink value="拒绝" action="#{adminCheckPostBean.checkPostNo1(u)}"/>
</f:ajax></td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv7" class="form-inline">
<div id="hh" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -220px;margin-bottom: 300px; ">
<div style="margin-top: -160px;margin-left: -40px;">
<h1>收件箱</h1>
<table class="table">
<tr>
<th>发件人</th>
<th>发件时间</th>
<th>内容</th>
<th>操作</th>
</tr>
<c:forEach items="#{receiveChatBean1.meslist}" var="u">
<tr>
<td>#{u.id.moutId}</td>
<td>#{u.id.mtime}</td>
<td>#{u.mcontent.substring(0,2)}.......</td>
<td><h:commandLink value="查看" action="#{receiveChatBean1.lookdetailedMessage(u)}"/>
<f:ajax render="editformdiv7">
<h:commandLink value="删除" action="#{receiveChatBean1.deleteMessage(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
</ui:define>
</ui:decorate>
</h:body>
</html>