From 7da3f2f4cedfd49dc4cc946f6f0e63846089e23e Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Fri, 31 May 2013 07:27:48 +0200 Subject: [PATCH] Rozdeleni uctu do radek --- assistants/bank.inc.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/assistants/bank.inc.php b/assistants/bank.inc.php index e1b8054..067e989 100644 --- a/assistants/bank.inc.php +++ b/assistants/bank.inc.php @@ -100,10 +100,15 @@ if(isset($_POST['transaction'])) { //bank_add_account($this, 'material'); echo("Banka - "); -echo("Správa účtů - "); -echo("Účty: "); +echo("Správa účtů - "); +echo("Účty:
"); $accounts = bank_get_accounts($this, $SUBPATH[0]=='admin'); -foreach($accounts as $account) echo("$account, "); +$lastaccount=false; +foreach($accounts as $account) { + if($lastaccount && $lastaccount[0]!=$account[0] && !preg_match('/[a-zA-Z0-9]/', $lastaccount[0])) echo('
'); + echo("$account, "); + $lastaccount=$account; +} switch($SUBPATH[0]) { default: -- 2.30.2