Use convenient JS/JSON filter when javascript is enabled
[infodrom.org/service.infodrom.org] / src / InfoCon / account / index.wml
1 #include <infocon.style>
2 #include "account.inc"
3
4 <page func=InfoCon title="Kontoführung">
5
6 <blockquote>
7
8 Die folgenden Konten stehen zur Verfügung:
9
10 <p><ul>
11 <?
12   $accounts = new AccountName(false);
13   $account = new Accounting(false);
14
15   foreach ($accounts->getAccounts('eur', 1) as $row) {
16     printf ("<li><a href=\"query.php?blzkto=%s\">%s</a> (Stand: %6.2f EUR)",
17       urlencode($row->blz_kto), $row->name, $account->sum($row->blz_kto));
18   }
19 ?>
20 </ul>
21
22 </blockquote>
23
24 <protect><script type="text/javascript">
25 $(function(){
26     $('blockquote ul li a').each(function(i,e){
27         $(this).attr('href', $(this).attr('href').replace('query.php','list.php'));
28     });
29 });
30 </script></protect>
31 </page>
32
33 # Local variables:
34 # mode: text
35 # mode: auto-fill
36 # end: