#include <infocon.style>
#include "account.inc"
-<account_overview>
-
<page func=InfoCon title="Kontoführung">
<blockquote>
<p><ul>
<?
- $accounts = account_names ($dbh, "AND display = 1", "eur");
+ $accounts = new AccountName(false);
+ $account = new Accounting(false);
- foreach ($accounts as $kto => $name) {
+ foreach ($accounts->getAccounts('eur', 1) as $row) {
printf ("<li><a href=\"query.php?blzkto=%s\">%s</a> (Stand: %6.2f EUR)",
- urlencode($kto), $name, stand ($dbh, $kto, "eur"));
+ urlencode($row->blz_kto), $row->name, $account->sum($row->blz_kto));
}
?>
</ul>