forked from khanhkid/moitruongtphcm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-user.php
308 lines (255 loc) · 9.73 KB
/
index-user.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
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
<?php
if(isset($_GET["page"]))
$page = $_GET["page"];
else
$page = "";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Project 2017</title>
<!-- CSS -->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="Public/css/home.css">
<link rel="stylesheet" type="text/css" href="Public/css/menu.css">
<link rel="stylesheet" type="text/css" href="Public/css/trangchu.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="Public/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="Public/bootstrap/css/bootstrap-theme.min.css" >
<script type="text/javascript" src ="Public/bootstrap/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src ="Public/bootstrap/js/bootstrap.min.js"></script>
<!-- mapboox -->
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.37.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.37.0/mapbox-gl.css' rel='stylesheet' />
<!-- fullscreen -->
<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.0/mapbox-gl-geocoder.min.js'></script>
<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v2.1.0/mapbox-gl-geocoder.css' type='text/css' />
<!-- show location -->
<!-- Highchart -->
<script type="text/javascript" src="Public/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<!-- trang chu -->
<link rel="stylesheet" type="text/css" href="test.css">
<link rel="stylesheet" type="text/css" href="slide/pgwslider.css">
<script src="slide/pgwslider.js"></script>
<style type="text/css">
body{
font-family: 'Segoe UI',Arial,sans-serif;
}
/*trangchu*/
#content-nuoc{
margin-top: 20px;
}
figure img{
-webkit-transition: all 0.5s linear;
transition: all 0.5s linear;
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
figure:hover img{
-webkit-transform: scale(1.1, 1.1, 1);
transform: scale3d(1.1, 1.1, 1);
}
figure .tieude{
-webkit-transition: all 0.3s linear;
transition: all 0.3s linear;
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
figure:hover .tieude{
-webkit-transform: scale(1, 1);
transform: scale(1, 1.1);
font-weight: bold;
letter-spacing: 0.5px;
}
.footer{
margin-top: 10px
}
.footer ul{
list-style: none;
}
.footer ul li {
padding: 5px 0;
}
#social:hover {
-webkit-transform:scale(1.0);
}
#social {
-webkit-transform:scale(0.8);
/* Browser Variations: */
-webkit-transition-duration: 0.5s;
}
/*
Only Needed in Multi-Coloured Variation
*/
.social-fb:hover {
color: #3B5998;}
.social-tw:hover {
color: #4099FF;}
.social-gp:hover {
color: #d34836;}
.social-em:hover {
color: #f39c12;
}
</style>
</head>
<body>
<?php
$tentaikhoan = '';
if(isset($_GET['username'])){
$tentaikhoan = $_GET['username'];
}
?>
<div class="container" id="skhcn" style="background-color: white"> <!-- begin content -->
<div id="header">
<header><!-- begin header -->
<div class="">
<div class="row">
<div class="col-sm-12">
<div class="col-md-3 col-md-offset-9" >
<h4 style="padding-top: 10px"><span class="glyphicon glyphicon-user" aria-hidden="true">
<?php echo $tentaikhoan ; ?> <a href="index.php" class="btn btn-default" style="margin-bottom: 5px">Thoát</a> </span></h4>
</div>
</div>
</div>
</div>
</header> <!-- End .header -->
</div>
<div class="slide"> <!-- begin slide -->
<div class="row">
<div class="col-sm-12" style="padding-left: 0px;padding-right: 0px">
<img id="bia" src="img/banner.jpg" style=" width:100%;height:140px">
</div>
</div>
</div> <!-- End .slide -->
<!--start menu -->
<div class="row" style="position: relative">
<div id="menu">
<nav>
<div class="nav-fostrap col-sm-12" style="color: #fff" >
<ul style="margin-left: 230px">
<li><a href=""><span class="glyphicon glyphicon-home" aria-hidden="true"></span> Trang Chủ</a></li>
<li><a href="javascript:void(0)">Chất Lượng Nước<span class="arrow-down"></span></a>
<ul class="dropdown">
<li><a href="index-user.php?username=<?php echo $tentaikhoan ?>&page=clnuoc-begin">Giám sát chất lượng nước</a></li>
<li><a href="chatluongnuoc/wqi/dashboard.php?username=<?php echo $tentaikhoan ?>">Tính Toán Chỉ số WQI</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" >Chất Lượng Không Khí<span class="arrow-down"></span></a>
<ul class="dropdown">
<li><a href="index-user.php?username=<?php echo $tentaikhoan ?>&page=clkhongkhi-begin">Giám sát chất lượng không khí</a></li>
<li><a href="chatluongkhongkhi/aqi/dashboard-aqi.php?username=<?php echo $tentaikhoan ?>">Tính Toán Chỉ số AQI</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" >Hỗ Trợ<span class="arrow-down"></span></a>
<ul class="dropdown">
<li><a href="">Tạo file csv</a></li>
<li><a href="">Lấy dữ liệu không khí bằng phần mềm IDV</a></li>
</ul>
</li>
<li><a href="javascript:void(0)" >Liên Hệ<span class="arrow-down"></span></a>
<ul class="dropdown">
<li><a href="">Địa Chỉ :</a></li>
<li><a href="">Mail:</a></li>
<li><a href="">SĐT:</a></li>
</ul>
</li>
</ul>
</div>
</nav>
</div><!-- end menu -->
</div>
<div class="row" style="margin-top: 75px">
<?php
switch ($page) {
case 'clnuoc-begin': require"chatluongnuoc/nuoc.php";
break;
case 'clkhongkhi-begin': require"chatluongkhongkhi/khongkhi.php";
break;
case 'clnuoc': require"chatluongnuoc/mapnuoc.php";
break;
case 'clkhongkhi': require"chatluongkhongkhi/mapkhongkhi.php";
break;
default: require("dulieutrangchu/trangchu.php");;
}
?>
</div> <!-- end content -->
<div class="footer" >
<div class="row" style="background: #004d4d">
<div class="col-sm-3" style="color: #fff">
<ul>
<li style="margin-top: 18px;margin-left: 50px;" >Liên hệ</li>
<li><a href="https://www.facebook.com/vientinhtoan/"><i class="fa fa-facebook-square fa-3x social-fb" id="social"></i></a>
<a href="" style="color: #4099FF"><i class="fa fa-twitter-square fa-3x social-tw" id="social"></i></a>
<a href="" style="color: #d34836;"><i class="fa fa-google-plus-square fa-3x social-gp" id="social"></i></a>
<a href="" style="color: #f39c12"><i class="fa fa-envelope-square fa-3x social-em" id="social"></i></a>
</li>
</ul>
</div>
<div class="col-sm-4 col-sm-offset-1 diachi" style="color: #fff">
<ul>
<li style="margin-top: 18px;padding-left: 30px; font-size: 14px"><span class="glyphicon glyphicon glyphicon-road"></span> Viện khoa học công nghệ và tính toán </li>
<li style="margin-top: 5px;font-style: italic ">Khu công nghệ phần mềm Quang Trung - Q12-TP.HCM</li>
<li style="margin-left: 100px; margin-top: 5px; font-size: 14px"><span class="glyphicon glyphicon-home"> </span> <a href="#skhcn" style="color:#fff; font-weight: bold" id="trangchu">Trang chủ</a></li>
</ul>
</div>
<div class="col-sm-3 col-sm-offset-1" style="color: #fff">
<ul style="">
<li style=" margin-top: 18px;font-size: 15px; padding-left: 25px">© Bản Quyền 2017</li>
<li style="font-style: italic ">Mang đến hỗ trợ tốt nhất cho bạn</li>
</ul>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$("#tinhtoanwqi").click(function(){
alert("Bạn chưa đăng nhập !");
});
$("#tinhtoanaqi").click(function(){
alert("Bạn chưa đăng nhập !");
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$(".go-text").mouseenter(function() {
$(this).next().css("display","block");
$(this).css("display","none");
});
$(".go-click").mouseleave(function() {
$(this).prev().css("display","block");
$(this).css("display","none");
});
});
</script>
<script>
$(document).ready(function(){
// Add scrollspy to <body>
$('body').scrollspy({target: "#skhcn", offset: 50});
// Add smooth scrolling on all links inside the navbar
$(".diachi a").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
});
</script>
</body>
</html>