-
Notifications
You must be signed in to change notification settings - Fork 10
/
windgustyear.php
58 lines (50 loc) · 5.09 KB
/
windgustyear.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 include('livedata.php');header('Content-type: text/html; charset=utf-8');date_default_timezone_set($TZ);?>
<div class="topmin">
<?php //wind max month
if ($weather["wind_units"]=='km/h' && $weather["windmmax"]>60){echo "<topred1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windmmax"]>40){echo "<toporange1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windmmax"]>30){echo "<topyellow1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windmmax"]>10){ echo "<topgreen1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windmmax"]>0){ echo "<topblue1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
//wind mph
if ($weather["wind_units"]=='mph' && $weather["windmmax"]>40){echo "<topred1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windmmax"]>24){echo "<toporange1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windmmax"]>18){echo "<topyellow1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windmmax"]>6){ echo "<topgreen1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windmmax"]>-50){ echo "<topblue1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
//wind ms
if ($weather["wind_units"]=='m/s' && $weather["windmmax"]>16.6){echo "<topred1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windmmax"]>11){echo "<toporange1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windmmax"]>8.3){echo "<topyellow1>",$weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windmmax"]>2.7){ echo "<topgreen1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windmmax"]>-50){ echo "<topblue1>", $weather["windmmax"]."<smallwindunit>".$weather["wind_units"] ; }
?>
</div></smalluvunit>
<div class="minword"><?php echo date('M')?></div></div>
<div class="mintimedate"><?php echo $weather["windmmaxtime2"]?>
</div>
<div class="yearwordbig"><?php echo date('Y')?></div>
<div class="topmax">
<?php //wind max year
if ($weather["wind_units"]=='km/h' && $weather["windymax"]>60){echo "<topred1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windymax"]>40){echo "<toporange1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windymax"]>30){echo "<topyellow1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windymax"]>10){ echo "<topgreen1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='km/h' && $weather["windymax"]>0){ echo "<topblue1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
//wind mph
if ($weather["wind_units"]=='mph' && $weather["windymax"]>40){echo "<topred1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windymax"]>24){echo "<toporange1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windymax"]>18){echo "<topyellow1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windymax"]>6){ echo "<topgreen1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='mph' && $weather["windymax"]>-50){ echo "<topblue1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
//wind ms
if ($weather["wind_units"]=='m/s' && $weather["windymax"]>16.6){echo "<topred1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windymax"]>11){echo "<toporange1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windymax"]>8.3){echo "<topyellow1>",$weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windymax"]>2.7){ echo "<topgreen1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
else if ($weather["wind_units"]=='m/s' && $weather["windymax"]>-50){ echo "<topblue1>", $weather["windymax"]."<smallwindunit>".$weather["wind_units"] ; }
?>
</div></smalluvunit>
<div class="maxword"><?php echo date('Y')?></div></div>
<div class="maxtimedate"><?php echo $weather["windymaxtime2"]?>
</div>