-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstr_device.html
More file actions
232 lines (222 loc) · 13 KB
/
str_device.html
File metadata and controls
232 lines (222 loc) · 13 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
<!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 in collapse">
<li ><a href="new_device.html">绑定新设备</a></li>
<li ><a href="my_device.html">我的设备</a></li>
<li class="active"><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">
<li ><a href="account_info.html">我的账户</a></li>
<li ><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="str_device.html">设备组织结构管理</a> <span class="divider">/</span></li>
<li class="active">设备管理</li>
</ul>
<!--page title end and the main content begin-->
<div class="container">
<div class="toolbar">
<div class="row">
<div class="col-xs-6">
<button class="btn btn-danger" data-toggle="modal" data-target="#add-str"><span class="glyphicon glyphicon-new-window"></span> 新增分类 </button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="panel panel-default">
<div class="panel-heading"><h5>设备组织结构</h5></div>
<table class="table">
<thead>
<tr>
<th>分类名</th>
<th>备注</th>
<th>所含设备</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<th>父分级01</th>
<th>无</th>
<th>气象站01 + LED测试01</th>
<th><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-str">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></th>
</tr>
<tr>
<th>父分级02</th>
<th>无</th>
<th>气象站01 + LED测试02</th>
<th><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-str">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></th>
</tr>
<tr>
<th>父分级03</th>
<th>无</th>
<th></th>
</tr>
<tr>
<th> 子分级03</th>
<th>无</th>
<th>气象站01 + LED测试02 + 气象站01 + LED测试02</th>
<th><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-str">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></th>
</tr>
<tr>
<th> 子分级04</th>
<th>无</th>
<th>气象站01 + LED测试02 + 气象站01 + LED测试02</th>
<th><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-str">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></th>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!--the container end -->
<!--edit Modal -->
<div class="modal fade" id="edit-str" 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="edit-category" role="form" method="post">
<div class="form-group">
<label for="category-name" class="control-label col-xs-4">分类名</label>
<div class="col-xs-6">
<input type="text" class="form-control" id="category-name" name="category-name">
</div>
</div>
<div class="form-group">
<label for="parent" class="control-label col-xs-4">父级</label>
<div class="col-xs-6">
<select class="form-control">
<option class="level-0" value="-1">无</option>
<option class="level-0" value="0">父分级01</option>
<option class="level-0" value="1">父分级02</option>
<option class="level-0" value="2">父分级03</option>
<option class="level-1" value="3"> 子分级03</option>
<option class="level-1" value="4"> 子分级04</option>
</select>
</div>
</div>
<div class="form-group">
<label for="remark-category" class="col-xs-4 control-label">备注</label>
<div class="col-xs-6">
<textarea class="form-control" id="remark-category" name="remark-category" rows="3" maxlength="150"></textarea>
</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 -->
<!--add Modal -->
<div class="modal fade" id="add-str" 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="edit-category" role="form" method="post">
<div class="form-group">
<label for="category-name" class="control-label col-xs-4">分类名</label>
<div class="col-xs-6">
<input type="text" class="form-control" id="category-name" name="category-name">
</div>
</div>
<div class="form-group">
<label for="parent" class="control-label col-xs-4">父级</label>
<div class="col-xs-6">
<select class="form-control">
<option class="level-0" value="-1">无</option>
<option class="level-0" value="0">父分级01</option>
<option class="level-0" value="1">父分级02</option>
<option class="level-0" value="2">父分级03</option>
<option class="level-1" value="3"> 子分级03</option>
<option class="level-1" value="4"> 子分级04</option>
</select>
</div>
</div>
<div class="form-group">
<label for="remark-category" class="col-xs-4 control-label">备注</label>
<div class="col-xs-6">
<textarea class="form-control" id="remark-category" name="remark-category" rows="3" maxlength="150"></textarea>
</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>
</body>
</html>