-
Notifications
You must be signed in to change notification settings - Fork 2
/
account_permission.html
327 lines (317 loc) · 18.1 KB
/
account_permission.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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>账户权限 — 管理中心</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<!--the top nav begin-->
<div class="navbar navbar-default" role="navigation">
<div class="navbar-inner">
<div class="navbar-header">
<a class="navbar-brand" href="index.html">智慧农业物联网</a>
</div>
<ul class="nav navbar-nav pull-right" >
<li id= "fat-menu" class="dropdown">
<a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-user"></span> 用户名
<span class="glyphicon glyphicon-chevron-down"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="account_info.html">我的账户</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">登出</a></li>
</ul>
</li>
</ul>
</div>
</div>
<!--the top nav end-->
<!--the sidebar nav begin -->
<div class="sidebar-nav">
<a href="index.html" class="nav-header" ><span class="glyphicon glyphicon-home"></span> 管理中心 首页</a>
<a href="#dashboard-menu" class="nav-header collapsed" data-toggle="collapse"><span class="glyphicon glyphicon-dashboard"></span> 设备管理<span class="glyphicon glyphicon-chevron-up"></span></a>
<ul id="dashboard-menu" class="nav nav-list collapse">
<li ><a href="new_device.html">绑定新设备</a></li>
<li ><a href="my_device.html">我的设备</a></li>
<li ><a href="str_device.html">设备组织结构</a></li>
</ul>
<a href="led_manage.html" class="nav-header"><span class="glyphicon glyphicon-hd-video"></span> LED管理</a>
<a href="real_time_data.html" class="nav-header"><span class="glyphicon glyphicon-eye-open"></span> 实时数据</a>
<a href="history_data.html" class="nav-header" ><span class="glyphicon glyphicon-cloud"></span> 历史数据查询</a>
<a href="error.html" class="nav-header"><span class="glyphicon glyphicon-bell"></span> 异常警报<span class="label label-danger">4</span></a>
<a href="#account-menu" class="nav-header collapsed" data-toggle="collapse"><span class="glyphicon glyphicon-user"></span> 账户管理 <span class="glyphicon glyphicon-chevron-up"></span></a>
<ul id="account-menu" class="nav nav-list collapse in">
<li ><a href="account_info.html">我的账户</a></li>
<li class="active"><a href="account_permission.html">账户权限</a></li>
<li ><a href="change_password.html">修改密码</a></li>
</ul>
<a href="logout.html" class="nav-header" ><span class="glyphicon glyphicon-log-out"></span> 登出</a>
</div>
<!--the siderbar nav en-->
<div class="content">
<div class="header">
<!--page title begin-->
<h1 class="page-title">账户权限</h1>
</div>
<ul class="breadcrumb">
<li><a href="account_permission.html">账户权限</a> <span class="divider">/</span></li>
<li class="active">账户管理</li>
</ul>
<!--page title end and the main content begin-->
<div class="container">
<!--the toolbar begin -->
<div class="toolbar">
<div class="row">
<div class="col-xs-6">
<div class="quick-add-btn">
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#new-user"><span class="glyphicon glyphicon-new-window"></span> 创建新用户</button>
</div>
</div>
<div class="col-xs-6">
<form class="form-inline pull-right" id="device-search" role="form">
<div class="form-group">
<select class="form-control">
<option value="all">全部用户</option>
<option value="admin-user">管理员用户</option>
<option value="normal-user">普通用户</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control" placeholder="用户名……">
</div>
<button type="submit" class="btn btn-default">筛选</button>
</form>
</div>
</div>
</div>
<!--all user detail begin -->
<div class="panel panel-default" id="all-device-detail">
<div class="panel-heading">
<h5>所有用户信息</h5>
</div>
<table class="table">
<thead><tr>
<th>用户名</th>
<th>用户类型</th>
<th>联系邮箱</th>
<th>操作</th>
</tr></thead>
<tbody>
<tr>
<td>张三</td>
<td>普通用户</td>
<td>example01@example.com</td>
<td>
<button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#permission—manage">权限管理</button>
<a class="btn btn-default btn-xs" href="#">删除</a>
</td>
</tr>
<tr>
<td>李四</td>
<td>管理员用户</td>
<td>example02@example.com</td>
<td>
<button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#permission—manage">权限管理</button>
<a class="btn btn-default btn-xs" href="#">删除</a>
</td>
</tr>
<tr>
<td>王五</td>
<td>管理员用户</td>
<td>example03@example.com</td>
<td>
<button class="btn btn-primary btn-xs " data-toggle="modal" data-target="#permission—manage">权限管理</button>
<a class="btn btn-default btn-xs " href="#">删除</a>
</td>
</tr>
<tr>
<td>赵六</td>
<td>普通用户</td>
<td>example04@example.com</td>
<td>
<button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#permission—manage">权限管理</button>
<a class="btn btn-default btn-xs" href="#">删除</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!--the container end -->
<!-- new-user Modal -->
<div class="modal fade" id="new-user" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">创建新用户</h4>
</div>
<div class="modal-body row">
<form action="#" class="form-horizontal" id="add-user" role="form" method="post">
<div class="form-group">
<label for="user-name" class="col-xs-4 control-label">用户名</label>
<div class="col-xs-6">
<input type="text" class="form-control" id="user-name" name="user-name">
</div>
</div>
<div class="form-group">
<label for="user-password" class="col-xs-4 control-label">初始密码</label>
<div class="col-xs-6">
<input type="password" class="form-control" id="user-password" name="user-password">
</div>
</div>
<div class="form-group">
<label for="re-user-password" class="col-xs-4 control-label">确认密码</label>
<div class="col-xs-6">
<input type="password" class="form-control" id="re-user-password" name="re-user-password">
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="submit" class="btn btn-primary">确定</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- permission—manage Modal -->
<div class="modal fade" id="permission—manage" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body row">
<form action="#" class="form-horizontal" id="add-user" role="form" method="post">
<div class="modal-header">
<label class="checkbox-inline pull-right">
<input type="checkbox" id="all">
全选
</label>
<h4 class="modal-title">设备权限管理
</h4>
</div>
<div class="form-group">
<label for="if-new-device" class="col-xs-4 control-label">可绑定新设备</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-type" name="device-permission" value="true">
是
</label>
</div>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">气象站01</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="edit">
可修改
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="delete">
可删除
</label>
</div>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">气象站02</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="edit">
可修改
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="delete">
可删除
</label>
</div>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">led测试01</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="edit">
可修改
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="delete">
可删除
</label>
</div>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">led测试02</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="edit">
可修改
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="delete">
可删除
</label>
</div>
</div>
<div class="modal-header">
<h4 class="modal-title">LED显示权限管理</h4>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">led测试01</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="true">
可开关
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="false">
可绑定传感设备
</label>
</div>
</div>
<div class="form-group">
<label for="device-permission" class="col-xs-4 control-label">led测试02</label>
<div class="col-xs-6">
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="true">
可开关
</label>
<label class="checkbox-inline">
<input type="checkbox" id="device-permission" name="device-permission" value="false">
可绑定传感设备
</label>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="submit" class="btn btn-primary">确定</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<footer>
<hr>
<p class="pull-right">© 2013 智慧农业物联网</p>
</footer>
</div>
<!--the content end -->
<script src="lib/bootstrap/js/bootstrap.js"></script>
<!--全选按钮实现-->
<script>
$(function () {
$("#all").click(function () {
var checked_status = this.checked;
$("input[name=device-permission]").each(function () {
this.checked = checked_status;
});
});
});
</script>
</body>
</html>