diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2011-10-31 20:33:05 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2011-10-31 20:33:05 +0100 |
| commit | 133a6dff495236e2d3a4eb70081ddb1448765625 (patch) | |
| tree | cabc0df642f5432b10129448a727c4fbd4193f4d /htmlreport/templates | |
| parent | dfdadfc0ee73f552273966135963be036c5d4223 (diff) | |
| download | usb-wde1-tools-133a6dff495236e2d3a4eb70081ddb1448765625.tar.gz usb-wde1-tools-133a6dff495236e2d3a4eb70081ddb1448765625.zip | |
(html) file generator
Diffstat (limited to 'htmlreport/templates')
| -rw-r--r-- | htmlreport/templates/plain.txt.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/htmlreport/templates/plain.txt.php b/htmlreport/templates/plain.txt.php new file mode 100644 index 0000000..0881184 --- /dev/null +++ b/htmlreport/templates/plain.txt.php @@ -0,0 +1,21 @@ +Zimmer Temperatur Luftfeuchte +------------------------------------------- +<?php +plain_line($data[3]); +echo "\n"; +plain_line($data[1]); +plain_line($data[5]); +plain_line($data[2]); +echo "\n"; +plain_line($data[6]); +plain_line($data[0]); +plain_line($data[4]); + + +function plain_line($datum) { + echo str_pad($datum['name'], 18, ' '); + echo ' ' . str_pad($datum['temperature'] . '°C', 13, ' '); + echo ' ' . $datum['humidity'] . '%'; + echo "\n"; +} +?> |
