-
Notifications
You must be signed in to change notification settings - Fork 0
/
china.php
121 lines (85 loc) · 3.95 KB
/
china.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
<?php
$latitude = 39.913818;
$longitude = 116.363625;
require 'php/api.php';
date_default_timezone_set($tz);
$activePage = "china";
?>
<!DOCTYPE html>
<html lang="en">
<!-- HEADER -->
<?php require 'partials/part_header.php' ?>
<body onload="getLocation()">
<div id="emptycontainer">
<div class="empty">
<div class="logo">
<img src="img/wt.png" height="120" width="120"/>
</div>
<div class="logo1">
<p>Nigeria Weather Forecast Portal</p>
</div>
</div>
</div>
<div class="wrapper">
<!-- Sidebar Holder -->
<nav id="sidebar">
<div class="sidebar-header">
<h3><img src="img/flag.png" width="120" height="120"/></h3>
<h3>Nigeria Aviation Weather Portal</h3>
<strong><img src="img/flag.png" width="50" height="50"/></strong>
<strong>NW</strong>
</div>
<ul class="list-unstyled components">
<li <?php if ($activePage == "9ja") {?> class="" <?php } ?>><a href="index.php"><i class="glyphicon glyphicon-globe"></i>Nigeria</a></li>
<li <?php if ($activePage == "gh") {?> class="" <?php } ?>><a href="ghana.php"><i class="glyphicon glyphicon-globe"></i>Ghana</a></li>
<li <?php if ($activePage == "us") {?> class="" <?php } ?>><a href="us.php"><i class="glyphicon glyphicon-globe"></i>United state</a></li>
<li <?php if ($activePage == "uk") {?> class="" <?php } ?>><a href="uk.php"><i class="glyphicon glyphicon-globe"></i>United kingdom</a></li>
<li <?php if ($activePage == "china") {?> class="active" <?php } ?>><a href="china.php"><i class="glyphicon glyphicon-globe"></i>China</a></li>
<li <?php if ($activePage == "can") {?> class="" <?php } ?>><a href="canada.php"><i class="glyphicon glyphicon-globe"></i>Canada</a></li>
</ul>
</nav>
<!-- Page Content Holder -->
<div id="content">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn">
<i class="glyphicon glyphicon-align-left"></i>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><i class="fa fa-clock-o"></i> <?php echo date("g:i a | l, F j", $curTime); ?></a></li> <!-- forecast time -->
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<h3 class="ml-15 text-info">China, CN</small></h3>
<!-- CURRENT CONDITIONS -->
<?php require 'partials/part_current.php' ?>
<!-- TODAY FORECAST -->
<?php require 'partials/part_today.php' ?>
</div> <!-- /row -->
<!-- HOURLY -->
<?php require 'partials/part_hourly.php' ?>
<!-- WEEK FORECAST -->
<?php require 'partials/part_daily.php' ?>
</div> <!-- /container -->
<?php require 'partials/part_footer.php' ?>
</div>
</div>
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
});
</script>
</body>
</html>