-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
57 lines (50 loc) · 3.21 KB
/
index.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
57
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="mysli">
<meta name="date" content="2017-07-19">
<meta name="robots" content="noindex,nofollow">
<title>Dateneingabe</title>
</head>
<body>
<?php
require_once ( 'capturing.php' );
$acq = new capturing();
?>
<h1>Zählerstand eintragen</h1>
<form action="<?php $acq->printInput() ?>" method="post">
<div id="epower">
<h4 id="epower">Elektroenergie</h4>
<!--form name="form1" method="post" action="<!--?php printInput() ?>"-->
<p>Erfasst am: <input type="text" name="eablesedatum" id="date" value="<?php print("$acq->today") ?>"/></p>
<p>Zählerstand Elektro: <input type="text" name="epower" id="epower" value="<?php print($acq->getEPowerRecord()->value) ?>"/>kWh</p>
<p>Bemerkung: <input type="text" name="enote" /></p>
</div>
<div>
Δ letzter Eintrag: <?php print($acq->getEPowerRecord()->report->getDelta()) ?> kWh.
vor <?php print($acq->getEPowerRecord()->report->getCaptureInterval().' Tag'.(($acq->getEPowerRecord()->report->getCaptureInterval()==1)? '':'en').' entspricht '.$acq->getEPowerRecord()->report->getConsumptionPerDay()).'kWh pro Tag.' ?>
</div>
<div id="gas">
<h4 id="gas">Gas</h4>
<p>Erfasst am: <input type="text" name="gasablesedatum" id="date" value="<?php print("$acq->today") ?>"/></p>
<p>Zählerstand Gas: <input type="text" name="gas" id="gas" value="<?php print($acq->getGasRecord()->value) ?>"/> m<sup>3</sup></p>
<p>Bemerkung: <input type="text" name="gasnote" /></p>
</div>
Δ letzter Eintrag: <?php print($acq->getGasRecord()->report->getDelta()) ?> m<sup>3</sup>.
vor <?php print($acq->getGasRecord()->report->getCaptureInterval().' Tag'.(($acq->getGasRecord()->report->getCaptureInterval()==1)? '':'en').' entspricht '.$acq->getGasRecord()->report->getConsumptionPerDay()).'m<sup>3</sup> pro Tag.' ?>
<div id="water">
<h4 id="water">Wasser</h4>
<p>Erfasst am: <input type="text" name="waterablesedatum" id="date" value="<?php print("$acq->today") ?>"/></p>
<p>Zählerstand Wasser: <input type="text" name="water" id="water" value="<?php print($acq->getWaterRecord()->value) ?>"/>m<sup>3</sup></p>
<p>Bemerkung: <input type="text" name="waternote" /></p>
</div>
<div>
Δ letzter Eintrag: <?php print($acq->getWaterRecord()->report->getDelta()) ?> m<sup>3</sup>.
vor <?php print($acq->getWaterRecord()->report->getCaptureInterval().' Tag'.(($acq->getWaterRecord()->report->getCaptureInterval()==1)? '':'en').' entspricht '.$acq->getWaterRecord()->report->getConsumptionPerDay()).'m<sup>3</sup> pro Tag.' ?>
</div>
<p><input type="submit" /></p>
</form>
</body>
</html>