$sum_out = 0.0;
$color = 0;
foreach ($db->fetchAssocList($query) as $row) {
- $descr = explode ("
-", $row['descr']);
+ $descr = explode ("\n", $row['descr']);
$date = explode (" ", $row['datum']);
$date = explode ("-", $date[0]);
$date = sprintf ("%d.%d.%d", $date[2], $date[1], $date[0]);
$out .= sprintf ("<tr class=\"t%d\">", $color);
$out .= sprintf ("<td width=\"10%%\" align=\"right\">%s</td>", $date);
$out .= sprintf ("<td width=\"10%%\" align=\"center\">%s</td>", $row['category']);
- $out .= sprintf ("<td width=\"70%%\"><a href=\"edit.php?id=%d%s\">%s</a></td>",
+ $out .= sprintf ("<td width=\"70%%\"><a href=\"edit.php?id=%d%s\" target=\"_new\">%s</a></td>",
$row['id'], $add, $descr[0]);
$out .= sprintf ("<td width=\"10%%\" align=\"right\" class=\"%s\">%5.2f</td>",
$row[$value]>0?"in":"out", $row[$value]);