-
Notifications
You must be signed in to change notification settings - Fork 2
/
my_device.html
202 lines (193 loc) · 11.3 KB
/
my_device.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
<!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 class="active"><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">
<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="my_device.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">
<a href="new_device.html" type="button" class="btn btn-danger"><span class="glyphicon glyphicon-new-window"></span> 绑定新设备</a>
</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="device">传感设备</option>
<option value="led">显示设备</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 device 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>
<th>操作</th>
</tr></thead>
<tbody>
<tr>
<td>气象站01</td>
<td><span class="glyphicon glyphicon-transfer"></span> 传感设备</td>
<td><span class="label label-success">正常</span></td>
<td>未知</td>
<td><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-device">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></td>
</tr>
<tr>
<td>气象站02</td>
<td><span class="glyphicon glyphicon-transfer"></span> 传感设备</td>
<td><span class="label label-success">正常</span></td>
<td>未知</td>
<td><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-device">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></td>
</tr>
<tr>
<td>LED测试01</td>
<td><span class="glyphicon glyphicon-hd-video"></span> LED显示器</td>
<td><span class="label label-success">正常</span></td>
<td>未知</td>
<td><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-device">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></td>
</tr>
<tr>
<td>LED测试02</td>
<td><span class="glyphicon glyphicon-hd-video"></span> LED显示器</td>
<td><span class="label label-success">正常</span></td>
<td>未知</td>
<td><button class="btn btn-primary btn-xs" data-toggle="modal" data-target="#edit-device">修改</button> <a class="btn btn-default btn-xs" href="#">删除</a></td>
</tr>
</tbody>
</table>
</div>
</div>
<!--the container end -->
<!-- Modal -->
<div class="modal fade" id="edit-device" 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-device" role="form" method="post">
<div class="form-group">
<label for="device-type" class="col-xs-4 control-label">设备类型</label>
<div class="col-xs-6">
<label class="radio-inline">
<input type="radio" id="device-type" name="device-type" value="device">
<span class="glyphicon glyphicon-transfer"></span> 传感设备
</label>
<label class="radio-inline">
<input type="radio" id="device-type" name="device-type" value="led">
<span class="glyphicon glyphicon-hd-video"></span> LED显示器
</label>
</div>
</div>
<div class="form-group">
<label for="device-name" class="col-xs-4 control-label">设备名称</label>
<div class="col-xs-6">
<input type="text" class="form-control" id="device-name" name="device-name">
</div>
</div>
<div class="form-group">
<label for="device-description" class="col-xs-4 control-label">设备描述</label>
<div class="col-xs-6">
<textarea class="form-control" id="device-description" name="device-description" 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>