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