aboutsummaryrefslogtreecommitdiff
path: root/htmlreport/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-10-31 20:33:05 +0100
committerChristian Weiske <cweiske@cweiske.de>2011-10-31 20:33:05 +0100
commit133a6dff495236e2d3a4eb70081ddb1448765625 (patch)
treecabc0df642f5432b10129448a727c4fbd4193f4d /htmlreport/templates
parentdfdadfc0ee73f552273966135963be036c5d4223 (diff)
downloadusb-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.php21
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";
+}
+?>