Added ability to disable auto-reload.

This commit is contained in:
Andreas Schiermeier 2015-03-24 01:00:00 +01:00
parent ff86390bfe
commit 0090d18556

View File

@ -3,7 +3,9 @@
<head>
<meta charset="utf-8">
<title>Stromverbrauch HQ</title>
<?php $_GET['norefresh']=0; if (! isset($_GET['norefresh']) || $_GET['norefresh'] != 1): ?>
<meta http-equiv="refresh" content="15">
<?php endif; ?>
<style type="text/css">
body {
font-family: arial, sans-serif;
@ -40,7 +42,14 @@
?>
<dl>
<dt>Zeitpunkt:</dt>
<dd><?= $time ?></dd>
<dd>
<?= $time ?>
<?php if ($_GET['norefresh'] == 1): ?>
[Neuladen: <a href="?norefresh=0">aktivieren</a>]
<?php else: ?>
[Neuladen: <a href="?norefresh=1">deaktivieren</a>]
<?php endif; ?>
</dd>
<dt>Leistung:</dt>
<dd><?= $power ?> Watt</dd>