Add category color/font support for web view
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright 2010 Grégory Soutadé
|
||||
|
||||
@@ -17,7 +18,6 @@
|
||||
along with KissCount. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
<?php
|
||||
include "kisscount.php" ;
|
||||
|
||||
session_start();
|
||||
@@ -209,7 +209,7 @@ while($operation = $operations->fetchArray())
|
||||
else
|
||||
$tr_class = "";
|
||||
}
|
||||
echo "<tr $tr_class bgcolor='" . $category["color"] ."'><td>" . $operation["description"] . "</td>";
|
||||
echo "<tr $tr_class style='" . $category["style"] . "'><td>" . $operation["description"] . "</td>";
|
||||
echo "<td>" . date("d/m/Y", mktime(0, 0, 0, $operation["month"]+1, $operation["day"]+1, $operation["year"])) . "</td>";
|
||||
if ($operation["amount"] < 0)
|
||||
echo "<td align='right'>" . number_format(-$operation["amount"], 2) . "</td><td />";
|
||||
|
Reference in New Issue
Block a user