-
Notifications
You must be signed in to change notification settings - Fork 0
/
_backend_tables_personal.html
291 lines (275 loc) · 13.8 KB
/
_backend_tables_personal.html
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>大恒光伏鹰眼后台管理</title>
<!-- Bootstrap -->
<link href="lib/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!-- hack -->
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="./css/flat-ui.min.css">
<!-- 导入 自己的css -->
<link rel="stylesheet" type="text/css" href="css/base.css">
<!-- 导入 index.css -->
<link rel="stylesheet" type="text/css" href="./css/backend-common.css">
<link rel="stylesheet" tyoe="text/css" href="./css/backend-personal.css">
<style>
.display-none {
display: none;
}
</style>
<!-- <body > -->
</head>
<body>
<!-- backend -->
<div id="dh-backend-person">
<!-- backend-person-form1 start -->
<div id="backend-person-form1">
<div class="container">
<div class="panel panel-default">
<div class="panel-tit clearfix">
<em class="panel1-tit-btn fl">
<div class="personal-image2" style="vertical-align:middle;padding-top:35px">
</div>
</em>
<span class="fl panel-tit_txt">基本信息</span>
<span class="fl panel-tit_txt" style="float:right;cursor:pointer" onclick="form1Modify();" id="updateThe">修改 </span>
</div>
<div class="panel-content" id="form1-content">
<table class="panel-content-table">
<tbody>
<tr>
<td class="td1" style="width:15%;">姓名:</td>
<td class="td2" style="width:35%;">王明阳</td>
<td class="td1" style="width:15%;">用户名称:</td>
<td class="td2" style="width:35%;">admin</td>
</tr>
<tr>
<td class="td1" style="width:15%;">英文名称:</td>
<td class="td2" style="width:35%;">
<input type="text" name="englishName" id="englishName" readonly="readonly">
<br>
</td>
<td class="td1" style="width:15%;">用户级别:</td>
<td class="td2" style="width:35%;">
大恒能源管理员
</td>
</tr>
<tr>
<td class="td1" style="width:15%;">联系方式:</td>
<td class="td2" style="width:35%;">
<input type="text" name="telNumber" id="telNumber" readonly="readonly">
<br>
</td>
<td class="td1" style="width:15%;">邮箱地址:</td>
<td class="td2" style="width:35%;">
<input type="text" name="email" id="emailLocation" readonly="readonly">
<br>
</td>
</tr>
<tr class="form1-table-btn" style="display:none;">
<td align="center" colspan="8">
<a href="#" class="personal-btn" style="display: inline-block;">保 存</a>
<a href="#" class="personal-btn" style="display: inline-block;">取 消</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- backend-person-form1 end -->
<!-- backend-person-form2 start -->
<div id="backend-person-form2">
<div class="container">
<div class="panel panel-default">
<div class="panel-tit clearfix">
<em class="panel2-tit-btn fl">
<div class="personal-image1" style="vertical-align:middle;padding-top:35px">
</div>
</em>
<span class="fl panel-tit-txt">联系方式</span>
<span class="fl panel-tit-txt" style="float:right;cursor:pointer;" onclick="form2Modify()">修改 </span>
</div>
<div class="panel-content" style="display:none;" id="form2-content">
<table class="content-table">
<tbody>
<tr>
<td class="td1" style="width:15%;">手机号码:</td>
<td>
<input type="text" name="telNumber" id="oldTel" readonly="readonly">
<br>
</td>
</tr>
<tr>
<td class="td1" style="width:15%;">新手机号码:</td>
<td>
<input type="text" name="telNumber" id="newTel" readonly="readonly">
<br>
</td>
</tr>
<tr>
<td class="td1" style="width:15%;">验证码:</td>
<td>
<input type="text" name="telNumber" id="confirmTel" readonly="readonly">
<br>
</td>
</tr>
<tr class="form2-table-btn" style="display:none;">
<td align="center" colspan="8">
<a href="#" class="personal-btn" style="display: inline-block;">保 存</a>
<a href="#" class="personal-btn" style="display: inline-block;">取 消</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- backend-person-form2 end -->
<!-- backend-person-form3 start -->
<div id="backend-person-form3">
<div class="container">
<div class="panel panel-default">
<div class="panel-tit clearfix">
<em class="panel3-tit-btn fl">
<div class="personal-image1" style="vertical-align:middle;padding-top:35px">
</div>
</em>
<span class="fl panel-tit-txt">密码设置</span>
<span class="fl panel-tit-txt" style="float:right;cursor:pointer;" onclick="form3Modify()">修改 </span>
</div>
<div class="panel-content" style="display:none;" id="form3-content">
<table class="content-table">
<tbody>
<tr>
<td class="td1" style="width:15%;">原密码:</td>
<td>
<input type="password" name="password" id="oldPw" readonly="readonly">
<br>
</td>
</tr>
<tr>
<td class="td1" style="width:15%;">新密码:</td>
<td>
<input type="password" name="password" id="newPW" readonly="readonly">
<br>
</td>
</tr>
<tr>
<td class="td1" style="width:15%;">确认密码:</td>
<td>
<input type="password" name="password" id="confirmPw" readonly="readonly">
<br>
</td>
</tr>
<tr class="form3-table-btn" style="display:none;">
<td align="center" colspan="8">
<a href="#" class="personal-btn" style="display: inline-block;">保 存</a>
<a href="#" class="personal-btn" style="display: inline-block;">取 消</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- backend-person-form3 end -->
</div>
</body>
</html>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="./lib/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="./lib/js/bootstrap.min.js"></script>
<script>
// table1 start
function form1Modify() {
$("#englishName").removeAttr("readOnly");
$("#telNumber").removeAttr("readOnly");
$("#emailLocation").removeAttr("readOnly");
$("#form1-content").show();
$(".form1-table-btn").show();
$(".panel1-tit-btn").children("div").removeClass("personal-image1");
$(".panel1-tit-btn").children("div").addClass("personal-image2");
}
$(".panel1-tit-btn").click(function () {
$("#englishName").attr("readOnly", 'true');
$("#telNumber").attr("readOnly", 'true');
$("#emailLocation").attr("readOnly", 'true');
var spread = $(this).parent().siblings().is(":hidden");
if (spread) {
$(this).children("div").removeClass("personal-image1");
$(this).children("div").addClass("personal-image2");
$(this).parent().parent().find("#form1-content").show();
$(".form1-table-btn").hide();
} else {
$(this).children("div").removeClass("personal-image2");
$(this).children("div").addClass("personal-image1");
$(this).parent().parent().find("#form1-content").hide();
}
});
// table2 start
function form2Modify() {
$("#oldTel").removeAttr("readOnly");
$("#newTel").removeAttr("readOnly");
$("#confirmTel").removeAttr("readOnly");
$("#form2-content").show();
$(".form2-table-btn").show();
$(".panel2-tit-btn").children("div").removeClass("personal-image1");
$(".panel2-tit-btn").children("div").addClass("personal-image2");
}
$(".panel2-tit-btn").click(function () {
$("#oldTel").attr("readOnly", 'true');
$("#newTel").attr("readOnly", 'true');
$("#confirmTel").attr("readOnly", 'true');
var spread = $(this).parent().siblings().is(":hidden");
if (spread) {
$(this).children("div").removeClass("personal-image1");
$(this).children("div").addClass("personal-image2");
$(this).parent().parent().find("#form2-content").show();
$(".form2-table-btn").hide();
} else {
$(this).children("div").removeClass("personal-image2");
$(this).children("div").addClass("personal-image1");
$(this).parent().parent().find("#form2-content").hide();
}
});
// table3 start
function form3Modify() {
$("#oldPw").removeAttr("readOnly");
$("#newPW").removeAttr("readOnly");
$("#confirmPw").removeAttr("readOnly");
$("#form3-content").show();
$(".form3-table-btn").show();
$(".panel3-tit-btn").children("div").removeClass("personal-image1");
$(".panel3-tit-btn").children("div").addClass("personal-image2");
}
$(".panel3-tit-btn").click(function () {
$("#oldPw").attr("readOnly", 'true');
$("#newPW").attr("readOnly", 'true');
$("#confirmPw").attr("readOnly", 'true');
var spread = $(this).parent().siblings().is(":hidden");
if (spread) {
$(this).children("div").removeClass("personal-image1");
$(this).children("div").addClass("personal-image2");
$(this).parent().parent().find("#form3-content").show();
$(".form3-table-btn").hide();
} else {
$(this).children("div").removeClass("personal-image2");
$(this).children("div").addClass("personal-image1");
$(this).parent().parent().find("#form3-content").hide();
}
});
</script>