forked from andrew867/timeclock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweather.php
60 lines (58 loc) · 3.43 KB
/
weather.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
<?php
echo '<div class="row"><div class="col-lg-4 hidden-print col-md-offset-4">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fa fa-bell fa-fw"></i> Weather Conditions
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<div class="list-group">
<a href="#" class="list-group-item">
<i class="glyphicon glyphicon-map-marker fa-fw"></i> City:
<span class="pull-right text-muted small"><em>'. $city .'</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="fa fa-sun-o fa-fw"></i> Currently:
<span class="pull-right text-muted small"><em>'.$temp.'°</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="fa fa-umbrella fa-fw"></i> Feels Like:
<span class="pull-right text-muted small"><em>'.$feelslike.'°</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="glyphicon glyphicon-cloud fa-fw"></i> Skies:
<span class="pull-right text-muted small"><em>'.$cloud_cover.'</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="fa fa-refresh fa-fw"></i> Wind:
<span class="pull-right text-muted small"><em>'.$wind_dir .$wind .$mph.'</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="fa fa-bolt fa-fw"></i> Humidity:
<span class="pull-right text-muted small"><em>'?>
<?php if ($humidity == 'None') {echo "<em>$humidity</em>";} else {echo "<em>$humidity%</em>";}?><?php echo'</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="fa fa-eye fa-fw"></i> Visibility:
<span class="pull-right text-muted small"><em>'.$visibility.'</em>
</span>
</a>
<a href="#" class="list-group-item">
<i class="glyphicon glyphicon-time"></i> Last Updated:
<span class="pull-right text-muted small"><em>'.$time.'</em>
</span>
</a>
</div>
<!-- /.list-group -->
</div>
<!-- /.panel-body -->
</div>
</div></div>
<!-- /.col-lg-4 -->'
?>