-
Notifications
You must be signed in to change notification settings - Fork 0
/
room.php
173 lines (173 loc) · 7.65 KB
/
room.php
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
<?php
include('includes/roominfo.php');
require('includes/header.php');
require('includes/sidebar.php');
?>
<title>Trang chủ</title>
<!-- ============================================================== -->
<!-- Page wrapper scss in scafholding.scss -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Title and breadcrumb -->
<!-- ============================================================== -->
<div class="page-titles">
<div class="d-flex align-items-center">
<h5 class="font-medium m-b-0">Trang chủ</h5>
<div class="custom-breadcrumb ml-auto">
<a href="#!" class="breadcrumb">Trang chủ</a>
<a href="#!" class="breadcrumb">Tình trạng phòng</a>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- Container fluid scss in scafholding.scss -->
<!-- ============================================================== -->
<div class="container-fluid">
<div class="row">
<div class="col s12">
<h5 class="card-title m-t-40">Thông tin trực tiếp trong phòng</h5>
</div>
</div>
<!-- Row -->
<div class="row">
<!-- Column -->
<div class="col l3 m6">
<div class="card">
<div class="d-flex flex-row">
<div class="p-5 blue">
<h3 class="white-text p-10 m-b-0"><i class="ti-themify-favicon-alt"></i></h3></div>
<div class="p-10">
<div id="OutOfRange"></div>
<span class="text-muted">Trong tầm kiểm soát</span>
</div>
</div>
</div>
</div>
<!-- Column -->
<!-- Column -->
<div class="col l3 m6">
<div class="card">
<div class="d-flex flex-row">
<div class="p-5 green darken-1">
<h3 class="white-text p-10 m-b-0"><i class="ti-signal"></i></h3></div>
<div class="p-10">
<div id="Door"></div>
<span class="text-muted">Tình trạng cửa</span>
</div>
</div>
</div>
</div>
<!-- Column -->
<!-- Column -->
<div class="col l3 m6">
<div class="card ">
<div class="d-flex flex-row">
<div class="p-5 blue-grey darken-4">
<h3 class="white-text p-10 m-b-0"><i class="ti-timer"></i></h3></div>
<div class="p-10">
<div id="Temp"></div>
<span class="text-muted">Nhiệt độ</span>
</div>
</div>
</div>
</div>
<!-- Column -->
<!-- Column -->
<div class="col l3 m6">
<div class="card">
<div class="d-flex flex-row">
<div class="p-5 blue darken-3">
<h3 class="white-text p-10 m-b-0"><i class="ti-server"></i></h3></div>
<div class="p-10">
<div id="DoorPass"></div>
<span class="text-muted">Ra khỏi cửa</span>
</div>
</div>
</div>
</div>
<!-- Column -->
<!-- Column -->
</div>
<div class="col l3 m6">
<div class="card">
<div class="card-content">
<div class="d-flex no-block align-items-center">
<div>
<span class="green-text display-6"><i class="ti-layout-media-left-alt"></i></span>
</div>
<div class="ml-auto">
<div id="TVLight"> <h3 class="TVState">Đang kiểm tra</h3></div>
<h6 class="cyan-text font-medium m-b-0">Tình trạng TV</h6>
</div>
</div>
</div>
</div>
</div>
<div class="col l3 m6">
<div class="card">
<div class="card-content">
<div class="d-flex no-block align-items-center">
<div>
<span class="green-text display-6"><i class="ti-layout-media-left-alt"></i></span>
</div>
<div class="ml-auto">
<div id="TVState"> <h3 class="TVState">Đang kiểm tra</h3></div>
<h6 class="cyan-text font-medium m-b-0">Cho phép đóng mở TV</h6>
</div>
</div>
</div>
</div>
</div>
<div class="col l3 m6">
<div class="card">
<div class="card-content">
<div class="d-flex no-block align-items-center">
<div>
<span class="green-text display-6"><i class="ti-layout-media-left-alt"></i></span>
</div>
<div class="ml-auto">
<a onclick="myFunctionx()" class="waves-effect waves-light btn btn-round red">Tắt TV</a>
<a onclick="myFunctiony()" class="waves-effect waves-light btn btn-round blue">Bật TV</a>
<p id="demo"></p>
<h6 class="cyan-text font-medium m-b-0">Điều khiển TV từ xa</h6>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="center-align m-b-30">All Rights Reserved by Hoang Le. Designed and Developed by <a href="https://hzv.io">HZV.io</a>.</footer>
<!-- ============================================================== -->
<!-- Right Sidebar -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- All Required js -->
<!-- ============================================================== -->
<script src="assets/libs/jquery/dist/jquery.min.js"></script>
<script src="dist/js/materialize.min.js"></script>
<script src="assets/libs/perfect-scrollbar/dist/js/perfect-scrollbar.jquery.min.js"></script>
<!-- ============================================================== -->
<!-- Apps -->
<!-- ============================================================== -->
<script src="dist/js/app.js"></script>
<script src="dist/js/app.init.light-sidebar.js"></script>
<script src="dist/js/app-style-switcher.js"></script>
<!-- ============================================================== -->
<!-- Custom js -->
<!-- ============================================================== -->
<script src="dist/js/custom.min.js"></script>
<!-- ============================================================== -->
<!-- This page plugin js -->
<!-- ============================================================== -->
<script src="dist/js/room.js"></script>
<script type="text/javascript">
function myFunctiony() {
$('#demo').load('/backend/switch.php?value=on');
}
function myFunctionx() {
$('#demo').load('/backend/switch.php?value=off');
}
</script>