-
Notifications
You must be signed in to change notification settings - Fork 2
/
new_device.html
151 lines (141 loc) · 8.38 KB
/
new_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
<!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 class="active"><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">
<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="new_device.html">绑定新设备</a> <span class="divider">/</span></li>
<li class="active">设备管理</li>
</ul>
<!--page title end and the main content begin-->
<div class="container">
<!--new device from begin-->
<div class="row">
<div class="col-xs-12">
<div class="display">
<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-4">
<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="product-uuid" class="col-xs-4 control-label">设备ID</label>
<div class="col-xs-4">
<input type="text" class="form-control" id="product-uuid" name="product-uuid">
</div>
</div>
<div class="form-group">
<label for="product-key" class="col-xs-4 control-label">设备密钥</label>
<div class="col-xs-4">
<input type="text" class="form-control" id="product-key" name="product-key">
</div>
</div>
<div class="form-group">
<label for="device-name" class="col-xs-4 control-label">设备名称</label>
<div class="col-xs-4">
<input type="text" class="form-control" id="product-key" name="product-key">
</div>
</div>
<div class="form-group">
<label for="category-name" class="col-xs-4 control-label">分类目录</label>
<div class="col-xs-4">
<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="device-description" class="col-xs-4 control-label">设备描述</label>
<div class="col-xs-4">
<textarea class="form-control" id="device-description" name="device-description" rows="3" maxlength="150"></textarea>
</div>
</div>
<div class="form-actions col-xs-8 pull-right">
<button type="submit" class="btn btn-primary">立即绑定</button>
<button type="reset" class="btn btn-default">取消</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!--the content end -->
<footer>
<hr>
<p class="pull-right">© 2013 智慧农业物联网</p>
</footer>
</div>
<script src="lib/bootstrap/js/bootstrap.js"></script>
</body>
</html>