<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <?php include "config.php"; include "init.php"; ?> <html> <head> <title><?php print "$html_title $temp $deg_unit";?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="temp.css" type="text/css" rel="stylesheet"> <meta http-equiv="Refresh" content="<?php print $REFRESH ?>; URL=."> <meta http-equiv="Pragma" content="no-cache"> </head> <body> <h1><?php print "$title"; ?></h1> <h2>Current temperature: <?php print "$temp $deg_unit $date \n"; ?></h2> <h3> <?php if ($show_sunrise) { print "Sunrise / Sunset: $sunrise -> $sunset\n"; } ?> </h3> <h3> <?php if ($fahrenheit) { echo "<a href=\"" . $this_document . "?unit=c\">Celsius</a> [Fahrenheit]"; } else { echo "[Celsius] <a href=\"" . $this_document . "?unit=f\">Fahrenheit</a>"; } ?> </h3> <?php include "daily_weekly.php"; ?> <p> </p> <?php if ($show_monthly) { include "monthly.php"; } ?> <p> </p> <?php if ($show_yearly) { include "yearly.php"; } ?> <!-- Footer with links --> <p> Currently <?php echo $max_id ?> temperuture meausurements in the database. </p> <ul> <?php if ($options) { $options = "?" . $options; } if (isset ($lat)) { echo "<li><a href='"; echo "http://maps.google.com/maps?q=$lat,$long&z=14&ll=$lat,$long"; echo "'>Google Maps</a></li>\n"; } ?> <li><a href="<?php echo $plotdir;?>?C=M;O=D">Old graphs</a></li> <li><a href="javascript:void(window.open('temp.php<?php echo "$options"; ?>','temp_popup','resizable,scrollbars=no,width=300,height=200,height=330,left=100,top=100'))">popup</a> </li> <li><a href=temp.php<?php echo "$options"; ?>>Clean page</a></li> <li><a href=temp_txt.php<?php echo "$options"; ?>>Text page</a></li> <li><a href="../hw">About the hardware</a></li> </ul> <hr> <p class="right">© Daniel Vindevåg</p> </BODY> </HTML>