git.cweiske.de
/
usb-wde1-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
844780d
)
realign template file
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 31 Oct 2011 20:04:45 +0000
(21:04 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 31 Oct 2011 20:04:45 +0000
(21:04 +0100)
htmlreport/templates/plain.txt.php
patch
|
blob
|
history
diff --git
a/htmlreport/templates/plain.txt.php
b/htmlreport/templates/plain.txt.php
index 5e15595a6661cb7ef3f2aeafae6e8086207fc994..fbf7a9dd2ef354df4cc9f5df6f8876700bfb2cc7 100644
(file)
--- a/
htmlreport/templates/plain.txt.php
+++ b/
htmlreport/templates/plain.txt.php
@@
-1,6
+1,6
@@
<?php echo pack("CCC", 0xef, 0xbb, 0xbf); ?>
<?php echo pack("CCC", 0xef, 0xbb, 0xbf); ?>
-Zimmer
Temperatur
Luftfeuchte
----------------------------------------
----
+Zimmer
Temperatur
Luftfeuchte
+---------------------------------------
<?php
plain_line($data[3]);
echo "\n";
<?php
plain_line($data[3]);
echo "\n";
@@
-17,8
+17,8
@@
echo date('c') . "\n";
function plain_line($datum) {
echo str_pad($datum['name'], 18, ' ');
function plain_line($datum) {
echo str_pad($datum['name'], 18, ' ');
- echo ' ' . str_pad($datum['temperature'] . '°C',
13, ' '
);
- echo ' ' .
$datum['humidity'] . '%'
;
+ echo ' ' . str_pad($datum['temperature'] . '°C',
9, ' ', STR_PAD_LEFT
);
+ echo ' ' .
str_pad($datum['humidity'] . '%', 11, ' ', STR_PAD_LEFT)
;
echo "\n";
}
?>
echo "\n";
}
?>