projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0007f28
)
Add colors
author
Joey Schulze
<joey@infodrom.org>
Sun, 24 Aug 2014 18:20:00 +0000
(18:20 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 24 Aug 2014 18:20:00 +0000
(18:20 +0000)
src/InfoCon/buch/index.wml
patch
|
blob
|
history
diff --git
a/src/InfoCon/buch/index.wml
b/src/InfoCon/buch/index.wml
index
1345467
..
a0685e2
100644
(file)
--- a/
src/InfoCon/buch/index.wml
+++ b/
src/InfoCon/buch/index.wml
@@
-2,6
+2,12
@@
<page func=InfoCon title="Buchhaltung">
<page func=InfoCon title="Buchhaltung">
+<style type="text/css">
+span.in { color: green; }
+span.out { color: red; }
+span.in:hover, span.out:hover { background: yellow; border: 1px solid #ccc; }
+</style>
+
<h3>Nicht bezahlte Rechnungen</h3>
<?
<h3>Nicht bezahlte Rechnungen</h3>
<?
@@
-73,7
+79,9
@@
$row = pg_fetch_array ($sth, $nr);
$date = substr ($row['date'],6,2) . "." . substr ($row['date'],4,2) . "." . substr ($row['date'],0,4);
printf (" <input type=\"checkbox\" name=\"pay_%d\" value=\"1\">", $row['nr']);
$row = pg_fetch_array ($sth, $nr);
$date = substr ($row['date'],6,2) . "." . substr ($row['date'],4,2) . "." . substr ($row['date'],0,4);
printf (" <input type=\"checkbox\" name=\"pay_%d\" value=\"1\">", $row['nr']);
- printf ("%d. %s %s (%.2f €)<br>", $row['nr'], $date, $row['description'], $row['price']);
+ printf ('<span class="%s">%d. %s %s (%.2f €)</span><br>',
+ $row['price'] < 0 ? 'out' : 'in',
+ $row['nr'], $date, $row['description'], $row['price']);
}
if ($form > 0) {
}
if ($form > 0) {