-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonalCenter5.xhtml
More file actions
419 lines (388 loc) · 26.6 KB
/
personalCenter5.xhtml
File metadata and controls
419 lines (388 loc) · 26.6 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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<?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="myjquery.js"/>
<style>
.black{
color:black;
}
</style>
</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: 10px;margin-top: 100px; margin-left: 150px;">
<ul class="nav nav-pills nav-stacked">
<li id="li1" class="active 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="#cc">发物质需求贴</a></li>
<li id="li5" class="dwe"><a href="#dd">查看历史</a></li>
<li id="li6" class="dwe"><a href="#ee">写日志</a></li>
<li id="li7" class="dwe"><a href="#ff">查看历史日志</a></li>
<li id="li8" class="dwe"><a href="#gg"><span class="badge pull-right">#{receiveChatBean.num}</span>收件箱</a></li>
</ul>
</div>
</h:form>
<h:form id="editformdiv1" class="form-inline">
<div id="home" class="container ddd1" style="width: 25%;margin-left: 550px;margin-top: -350px;margin-bottom: 60px; ">
<h:outputLabel value="姓名:" for="qqt" style="margin-left: 42px"/>
<h:inputText id="qqt" class="form-control" readonly="true"
required="true" value="#{loginBean.user.userRealName}">
</h:inputText>
<br/><br/>
<h:outputLabel value="性别:" for="qqt1" style="margin-left: 42px"/>
<h:inputText id="qqt1" class="form-control" readonly="true"
required="true" value="#{loginBean.user.userGender}">
</h:inputText>
<br/><br/>
<h:outputLabel value="身份证号码:" for="qqt5"/>
<h:inputText id="qqt5" class="form-control" readonly="true"
required="true" value="#{loginBean.user.userCard}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="昵称:" for="qqt2" style="margin-left: 42px"/>
<h:inputText id="qqt2" class="form-control" pt:placeholder="昵称" requiredMessage="不能为空"
required="true" value="#{loginBean.user.userName}" readonly="#{loginBean.show}">
</h:inputText>
<br/><br/>
<h:outputLabel value="联系电话:" for="qqt3" style="margin-left: 14px"/>
<h:inputText id="qqt3" class="form-control" pt:placeholder="联系电话" requiredMessage="不能为空"
required="true" value="#{loginBean.user.userTel}" readonly="#{loginBean.show}">
</h:inputText>
<br/><br/>
<h:outputLabel value="邮箱:" for="qqt4" style="margin-left: 42px"/>
<h:inputText id="qqt4" class="form-control" pt:placeholder="邮箱" requiredMessage="不能为空"
required="true" value="#{loginBean.user.userEmail}" readonly="#{loginBean.show}">
</h:inputText>
<br/><br/>
<h:outputLabel value="所在城市:" for="qqt6" style="margin-left: 14px"/>
<h:inputText id="qqt6" class="form-control" pt:placeholder="所在城市" requiredMessage="不能为空"
required="true" value="#{loginBean.user.userCity}" readonly="#{loginBean.show}">
</h:inputText>
<br/><br/>
<h:outputLabel value="职业:" for="qqt7" style="margin-left: 42px"/>
<h:inputText id="qqt7" class="form-control" pt:placeholder="职业" requiredMessage="不能为空"
required="true" value="#{loginBean.user.userOccupation}" readonly="#{loginBean.show}">
</h:inputText>
<br/><br/>
<h:outputLabel value="出生年月:" for="qqt8" style="margin-left: 14px"/>
<h:inputText id="qqt8" class="form-control" pt:placeholder="出生年月" requiredMessage="不能为空"
readonly="true" value="#{loginBean.user.userBirtnday}">
</h:inputText>
<br/><br/> <br/><br/>
<div style="margin-left: 225px;">
<f:ajax render="editformdiv1">
<h:commandButton class="btn btn-primary btn-danger" value="编辑" action="#{loginBean.edit}" rendered="#{loginBean.show}"/>
</f:ajax>
<f:ajax execute="editformdiv1" render="editformdiv1">
<h:commandButton class="btn btn-primary btn-success" action="#{loginBean.save()}" value="保存" rendered="#{!loginBean.show}"/>
</f:ajax>
</div>
</div>
</h:form>
<h:form id="editformdiv2" class="form-inline" enctype="multipart/form-data">
<div id="aa" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -250px;margin-bottom: 500px; ">
<div style="margin-top: -120px;margin-left: -40px;">
<h1>帖子</h1>
<table class="table">
<tr>
<th>贴子标题</th>
<th>接帖时间</th>
<th>操作</th>
</tr>
<c:forEach items="#{signUpBean.listspesignup}" var="u">
<tr>
<td>#{u.speTitle}</td>
<td>#{u.id.sstime}</td>
<td>
<f:ajax render="editformdiv2">
<h:commandLink value="退帖" action="#{signUpBean.DeleteSignUp(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv3" class="form-inline" enctype="multipart/form-data">
<div id="bb" class="container ddd" style="width: 25%;margin-left: 550px;margin-top: -350px;margin-bottom: 60px; ">
<h:outputLabel value="需求贴标题:" for="qa1" style="margin-left: 42px"/>
<h:inputText id="qa1" class="form-control" pt:placeholder="需求贴标题"
required="true" value="#{demandPostBean.spe.speTitle}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求学校:" for="qa2" style="margin-left: 56px"/>
<h:inputText id="qa2" class="form-control" pt:placeholder="需求学校"
required="true" value="#{demandPostBean.spe.speSchool}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求城市:" for="qa3" style="margin-left: 56px"/>
<h:inputText id="qa3" class="form-control" pt:placeholder="需求城市"
required="true" value="#{demandPostBean.spe.speCity}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求地址:" for="qa4" style="margin-left: 56px"/>
<h:inputText id="qa4" class="form-control" pt:placeholder="需求地址"
required="true" value="#{demandPostBean.spe.speAddress}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求人:" for="qa5" style="margin-left: 69px"/>
<h:inputText id="qa5" class="form-control" pt:placeholder="需求人姓名"
required="true" value="#{demandPostBean.spe.spePerson}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="联系方式:" for="qa6" style="margin-left: 56px"/>
<h:inputText id="qa6" class="form-control" pt:placeholder="手机或电话"
required="true" value="#{demandPostBean.spe.speTel}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求人数:" for="qa7" style="margin-left: 56px"/>
<h:inputText id="qa7" class="form-control" pt:placeholder="需求人数"
required="true" value="#{demandPostBean.spe.speQuantity}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="开始时间:" for="qa8" style="margin-left: 56px"/>
<h:inputText id="qt8" class="form-control dateDialog" pt:type="date"
value="#{demandPostBean.spe.speStartTime}">
<f:convertDateTime type="date"/>
</h:inputText>
<br/><br/>
<h:outputLabel value="结束时间:" for="qa9" style="margin-left: 56px"/>
<h:inputText id="qt9" class="form-control dateDialog" pt:type="date"
value="#{demandPostBean.spe.speEndTime}">
<f:convertDateTime type="date"/>
</h:inputText>
<br/><br/>
<h:outputLabel value="贴子内容:" for="qa3" style="margin-left: 55px"/>
<br/><br/>
<h:inputTextarea id="qa10" class="form-control" pt:placeholder="内容(字数不超过1000)" requiredMessage="不能为空"
required="true" cols="60" rows="10" value="#{demandPostBean.spe.speContent}" >
</h:inputTextarea>
<br/> <br/>
<h:outputLabel value="上传照片:" for="qa6" style="margin-left: -30px"/>
<h:inputFile id="qa11" style="margin-left: 88px;margin-top: -25px;"
value="#{demandPostBean.spe.spePicture}"/>
<br/> <br/>
<h:outputLabel value="上传视频(可选):" for="qa6" style="margin-left: -30px"/>
<h:inputFile id="qa12" style="margin-left: 88px;margin-top: -25px;"
value="#{demandPostBean.spe.speVideo}"/>
<br/><br/> <br/><br/>
<div style="margin-left: 150px;">
<f:ajax execute="editformdiv3">
<h:commandButton class="btn btn-primary btn-lg" action="#{demandPostBean.saveDemandPost()}" value="发布"/>
</f:ajax>
</div>
</div>
</h:form>
<h:form id="editformdiv4" class="form-inline" enctype="multipart/form-data">
<div id="cc" class="container ddd" style="width: 25%;margin-left: 550px;margin-top: -350px;margin-bottom: 60px; ">
<h:outputLabel value="需求贴标题:" for="qa11" style="margin-left: 42px"/>
<h:inputText id="qa11" class="form-control" pt:placeholder="需求贴标题"
required="true" value="#{demandPost1Bean.goodsdemand.demandTitle}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求物质:" for="qa22" style="margin-left: 56px"/>
<h:inputText id="qa22" class="form-control" pt:placeholder="需求物质"
required="true" value="#{demandPost1Bean.goodsdemand.demandSide}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求城市:" for="qa33" style="margin-left: 56px"/>
<h:inputText id="qa33" class="form-control" pt:placeholder="需求城市"
required="true" value="#{demandPost1Bean.goodsdemand.demandCity}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求地址:" for="qa44" style="margin-left: 56px"/>
<h:inputText id="qa44" class="form-control" pt:placeholder="需求地址"
required="true" value="#{demandPost1Bean.goodsdemand.demandAddress}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求人:" for="qa55" style="margin-left: 70px"/>
<h:inputText id="qa55" class="form-control" pt:placeholder="需求人姓名"
required="true" value="#{demandPost1Bean.goodsdemand.demandPerson}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="联系方式:" for="qa66" style="margin-left: 56px"/>
<h:inputText id="qa66" class="form-control" pt:placeholder="手机或电话"
required="true" value="#{demandPost1Bean.goodsdemand.demandTel}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求物质数量:" for="qa77" style="margin-left: 28px"/>
<h:inputText id="qa77" class="form-control" pt:placeholder="需求物质数量"
required="true" value="#{demandPost1Bean.goodsdemand.demandGoods}" >
</h:inputText>
<br/><br/>
<h:outputLabel value="需求有效期:" for="qa88" style="margin-left: 41px"/>
<h:inputText id="qt88" class="form-control dateDialog" pt:type="date"
value="#{demandPost1Bean.goodsdemand.demandValidity}">
<f:convertDateTime type="date"/>
</h:inputText>
<br/><br/>
<h:outputLabel value="贴子内容:" style="margin-left: 54px"/>
<br/><br/>
<h:inputTextarea id="qa100" class="form-control" pt:placeholder="内容(字数不超过1000)" requiredMessage="不能为空"
required="true" cols="60" rows="10" value="#{demandPost1Bean.goodsdemand.demandContent}" >
</h:inputTextarea>
<br/> <br/>
<h:outputLabel value="上传照片:" style="margin-left: -30px"/>
<h:inputFile id="qa111" style="margin-left: 88px;margin-top: -25px;"
value="#{demandPost1Bean.goodsdemand.demandPicture}"/>
<br/> <br/>
<h:outputLabel value="上传视频(可选):" style="margin-left: -30px"/>
<h:inputFile id="qa122" style="margin-left: 88px;margin-top: -25px;"
value="#{demandPost1Bean.goodsdemand.demandVideo}"/>
<br/><br/> <br/><br/>
<div style="margin-left: 150px;">
<f:ajax execute="editformdiv4">
<h:commandButton class="btn btn-primary btn-lg" action="#{demandPost1Bean.saveDemandPost1()}" value="发布"/>
</f:ajax>
</div>
</div>
</h:form>
<h:form id="editformdiv5" class="form-inline">
<div id="dd" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -220px;margin-bottom: 200px;">
<div style="margin-top: -160px;margin-left: -40px;">
<h1>支教帖历史记录</h1>
<table class="table">
<tr>
<th>贴子标题</th>
<th>发帖时间</th>
<th>需要人数</th>
<th>状态</th>
<th>接帖人数</th>
<th>操作</th>
</tr>
<c:forEach items="#{lookHistoryBean.listspe}" var="u">
<tr>
<td>#{u.speTitle}</td>
<td>#{u.id.speTime}</td>
<td>#{u.speQuantity}</td>
<td>#{u.demandStatus}</td>
<td>#{lookHistoryBean.calculateQuantity(u.id.speTime,u.id.userId)}</td>
<td><h:commandLink value="查看" action="#{lookHistoryBean.dtpost(u)}"/>
<f:ajax render="editformdiv5">
<h:commandLink value="删帖" action="#{lookHistoryBean.deletepost(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
<h1>需求贴历史记录</h1>
<table class="table">
<tr>
<th>贴子标题</th>
<th>发帖时间</th>
<th>需要物质</th>
<th>状态</th>
<th>接帖人数</th>
<th>操作</th>
</tr>
<c:forEach items="#{lookHistoryBean.listgoodsdemand}" var="u">
<tr>
<td>#{u.demandTitle}</td>
<td>#{u.id.demandTime}</td>
<td>#{u.demandGoods}</td>
<td>#{u.demandStatus}</td>
<td>#{lookHistoryBean.calculateQuantity1(u.id.demandTime,u.id.userId)}</td>
<td><h:commandLink value="查看" action="#{lookHistoryBean.dtpost1(u)}"/>
<f:ajax render="editformdiv5"> <h:commandLink value="删帖" action="#{lookHistoryBean.deletepost1(u)}"/>
</f:ajax></td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv6" class="form-inline" enctype="multipart/form-data">
<div id="ee" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -365px;margin-bottom: 200px;">
<h:outputLabel value="日志标题:" for="qqtt" style="margin-left: 42px"/>
<h:inputText id="qqtt" class="form-control"
required="true" value="#{journalBean.jou.speTitle}">
</h:inputText>
<br/><br/>
<h:outputLabel value="日志相关:" for="qqtt1" style="margin-left: 42px"/>
<h:inputFile id="qqtt1" style="margin-left: 130px;margin-top: -25px;"
value="#{journalBean.jou.jourAbout}">
</h:inputFile>
<br/><br/>
<h:outputLabel value="日志内容:" for="qat3" style="margin-left: 42px"/>
<br/><br/>
<h:inputTextarea id="qat3" class="form-control" pt:placeholder="请在此处填写" requiredMessage="不能为空"
required="true" cols="150" rows="30" value="#{journalBean.jou.jourContent}">
</h:inputTextarea>
<br/><br/><br/>
<f:ajax execute="editformdiv6">
<h:commandButton value="提交" class="btn btn-primary btn-lg" action="#{journalBean.saveJournal()}" style="margin-left: 980px;"/>
</f:ajax>
</div>
</h:form>
<h:form id="editformdiv7" class="form-inline">
<div id="ff" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -220px;margin-bottom: 500px;">
<div style="margin-top: -160px;margin-left: -40px;">
<h1>日志历史记录</h1>
<table class="table">
<tr>
<th>日志标题</th>
<th>日志发表时间</th>
<th>操作</th>
</tr>
<c:forEach items="#{lookHistoryJournalBean.listjournal}" var="u">
<tr>
<td>#{u.speTitle}</td>
<td>#{u.id.jourTime}</td>
<td><h:commandLink value="查看" action="#{lookHistoryJournalBean.detailedJournal(u)}"/>
<f:ajax render="editformdiv7">
<h:commandLink value="删除" action="#{lookHistoryJournalBean.deleteJournal(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
<h:form id="editformdiv8" class="form-inline">
<div id="gg" class="container ddd" style="width: 60%;margin-left: 470px;margin-top: -240px;margin-bottom: 500px; ">
<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="#{receiveChatBean.meslist}" var="u">
<tr>
<td>#{u.id.moutId}</td>
<td>#{u.id.mtime}</td>
<td>#{u.mcontent.substring(0,1)}.......</td>
<td><h:commandLink value="查看" action="#{receiveChatBean.lookdetailedMessage(u)}"/>
<f:ajax render="editformdiv8">
<h:commandLink value="删除" action="#{receiveChatBean.deleteMessage(u)}"/>
</f:ajax>
</td>
</tr>
</c:forEach>
</table>
</div>
</div>
</h:form>
</ui:define>
</ui:decorate>
</h:body>
</html>