This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmax-mintemp.php
41 lines (36 loc) · 4.06 KB
/
max-mintemp.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
<?php include('livedata.php');include('common.php');header('Content-type: text/html; charset=utf-8');?>
<div class="topmin">
<?php //temperture min year
if ($weather["temp_units"]=='C' && $weather["temp_today_high"]>30){echo "<topred1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_high"]>=24){echo "<toporange1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_high"]>=18){echo "<topyellow1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_high"]>=6){ echo "<topgreen1>", $weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_high"]>-50){ echo "<topblue1>", $weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
if ($weather["temp_units"]=='F' && $weather["temp_today_high"]>86){echo "<topred1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_high"]>=75){echo "<toporange1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_high"]>=64){echo "<topyellow1>",$weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_high"]>=42.8){ echo "<topgreen1>", $weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_high"]>-50){ echo "<topblue1>", $weather["temp_today_high"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
?>
</smalluvunit></div>
<div class="minword"><?php echo $lang['Today'];?></div>
</div>
<div class="mintimedate"><?php echo $lang['Max'];?></div>
<div class="yearwordbig" style="margin-top: 20px !important;"><img src="css/icons/temp34.svg" alt="temperature icon" width="26" height="60"/></div>
<div class="topmax">
<?php //temperture max year celsius
if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>30){echo "<topred1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=24){echo "<toporange1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=18){echo "<topyellow1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>=6){ echo "<topgreen1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='C' && $weather["temp_today_low"]>-50){ echo "<topblue1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
if ($weather["temp_units"]=='F' && $weather["temp_today_low"]>86){echo "<topred1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_low"]>=75){echo "<toporange1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_low"]>=64){echo "<topyellow1>",$weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_low"]>=42.8){ echo "<topgreen1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
else if ($weather["temp_units"]=='F' && $weather["temp_today_low"]>-50){ echo "<topblue1>", $weather["temp_today_low"] ;echo "°<smalluvunit>".$weather["temp_units"] ; }
?>
</smalluvunit></div>
<div class="maxword"><?php echo $lang['Today'];?></div>
</div>
<div class="maxtimedate"><?php echo $lang['Min'];?></oorange></div>