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 pathtemperatureyear.php
56 lines (42 loc) · 3.84 KB
/
temperatureyear.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
<?php include('livedata.php');header('Content-type: text/html; charset=utf-8');date_default_timezone_set($TZ);?>
<body>
<div class="yesterdaymax">
<?php
//weather34 temperture min year
if ($weather["temp_units"]=='C' && $weather["tempymin"]>15){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><yellow>", $weather["tempymin"] ;
echo "</yellow><spanewind2><blue> ".$weatherunitc."</blue><windyeartimemax> ".$weather["tempymintime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymin"]>10){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><ogreen>", $weather["tempymin"] ;
echo "</ogreen><spanewind2><blue> ".$weatherunitc."</blue><windyeartimemax> ".$weather["tempymintime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymin"]>-50){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><oblue>", $weather["tempymin"] ;
echo "</oblue><spanewind2><blue> ".$weatherunitc."</blue><windyeartimemax> ".$weather["tempymintime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
if ($weather["temp_units"]=='F'){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Min</div><oblue>", $weather["tempymin"] ;
echo "</oblue><spanewind2><blue> ".$weatherunitf."</blue><windyeartimemax> ".$weather["tempymintime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
?>
</div></div>
<div class="yesterdaymin">
<?php
//weather34 temperture max year
if ($weather["temp_units"]=='C' && $weather["tempymax"]>30){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><ored>", $weather["tempymax"] ;
echo "</ored><spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymax"]>20){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><oorange>", $weather["tempymax"] ;
echo "</oorange><spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymax"]>15){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><yellow>", $weather["tempymax"] ;
echo "</yellow><spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymax"]>10){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><ogreen>", $weather["tempymax"] ;
echo "</ogreen><spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
else if ($weather["temp_units"]=='C' && $weather["tempymax"]>-50){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><blue>", $weather["tempymax"] ;
echo "<spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
if ($weather["temp_units"]=='F'){
echo "<div class=\"circleyestemperature\"><div class='maxyesterday'>Max</div><ored>", $weather["tempymax"] ;
echo "</oblue><spanewind2><orange> ".$weatherunitc."</orange><windyeartimemax> ".$weather["tempymaxtime2"]."</windyeartimemax></spanewind2> </div><div class='yesterdaytempword'> Temp</div>" ; }
?>
</div>