-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersonalCenter.xhtml
More file actions
196 lines (188 loc) · 13.2 KB
/
personalCenter.xhtml
File metadata and controls
196 lines (188 loc) · 13.2 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
<?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"><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: -190px;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: 25%;margin-left: 550px;margin-top: -230px;margin-bottom: 60px; ">
<br/><br/>
<h:outputLabel value="支教最大日期:" for="q1" style="margin-left: -16px;"/>
<h:inputText style="width: 196px" id="q1" class="form-control" requiredMessage="不能为空" pt:type="date"
required="true" value="#{applyBean.dateString}">
</h:inputText>
<br/><br/>
<h:outputLabel value="普通话:" for="q2" style="margin-left: 27px"/>
<h:selectOneMenu id="q2" value="#{applyBean.speapply.saputonghua}" class="form-control" style="width: 196px;" >
<f:selectItem itemLabel="请选择"/>
<f:selectItem itemLabel="标准" itemValue="标准"/>
<f:selectItem itemLabel="一般" itemValue="一般"/>
<f:selectItem itemLabel="不标准" itemValue="不标准"/>
</h:selectOneMenu>
<br/><br/>
<h:outputLabel value="学历:" for="q4" style="margin-left: 42px"/>
<h:selectOneMenu id="q4" value="#{applyBean.speapply.saeducationBackground}" class="form-control" style="width: 196px;" >
<f:selectItem itemLabel="请选择学历"/>
<f:selectItem itemLabel="小学" itemValue="小学"/>
<f:selectItem itemLabel="初中" itemValue="初中"/>
<f:selectItem itemLabel="高中" itemValue="高中"/>
<f:selectItem itemLabel="大学" itemValue="大学"/>
<f:selectItem itemLabel="研究生" itemValue="研究生"/>
<f:selectItem itemLabel="博士" itemValue="博士"/>
</h:selectOneMenu>
<br/><br/>
<h:outputLabel value="亲属支持情况:" for="q5" style="margin-left: -14px"/>
<h:selectOneMenu id="q5" value="#{applyBean.speapply.sasupportLevel}" class="form-control" style="width:196px;">
<f:selectItem itemLabel="请选择亲属支持情况"/>
<f:selectItem itemLabel="支持" itemValue="支持"/>
<f:selectItem itemLabel="不支持" itemValue="不支持"/>
<f:selectItem itemLabel="不知情" itemValue="不知情"/>
</h:selectOneMenu>
<br/> <br/>
<h:outputLabel value="上传身份证照片:" for="q6" style="margin-left: -30px"/>
<h:inputFile id="q6" value="#{applyBean.speapply.saidcardPhoto}" style="margin-left: 88px;margin-top: -25px;"/>
<br/> <br/>
<h:outputLabel value="个人简述:" for="q3" style="margin-left: 12px"/>
<br/><br/>
<h:inputTextarea id="q3" class="form-control" pt:placeholder="个人简述(字数不超过100)" requiredMessage="不能为空"
required="true" cols="60" rows="10" value="#{applyBean.speapply.sapersonDescribe}" >
</h:inputTextarea>
<br/><br/> <br/><br/>
<div style="margin-left: 150px;">
<h:commandButton class="btn btn-primary btn-lg" action="#{applyBean.submitAplSpe()}" value="提交"/>
</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: -200px;margin-bottom: 60px; ">
<h:outputLabel value="上传身份证照片:" for="qa6" style="margin-left: -30px"/>
<h:inputFile id="qa6" value="#{applyBean.demandapply.daidcardPhoto}" style="margin-left: 88px;margin-top: -25px;"/>
<br/> <br/>
<h:outputLabel value="个人简述:" for="qa3" style="margin-left: 12px"/>
<br/><br/>
<h:inputTextarea id="qa3" class="form-control" pt:placeholder="个人简述(字数不超过100)" requiredMessage="不能为空"
required="true" cols="60" rows="10" value="#{applyBean.demandapply.dapersonDescribe}" >
</h:inputTextarea>
<br/><br/> <br/><br/>
<div style="margin-left: 150px;">
<h:commandButton class="btn btn-primary btn-lg" action="#{applyBean.submitAplDemander()}" value="提交"/>
</div>
</div>
</h:form>
<h:form id="editformdiv4" class="form-inline">
<div id="cc" class="container ddd" style="width: 60%;margin-left: 460px;margin-top: -87px;margin-bottom: 250px; ">
<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,3)}.......</td>
<td><h:commandLink value="查看" action="#{receiveChatBean.lookdetailedMessage(u)}"/>
<f:ajax render="editformdiv4">
<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>