From edc79e22d59a44e53fc3618679556973f509d5dd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 25 Oct 2003 09:40:48 +0000 Subject: [PATCH] Modif gestion erreur --- htdocs/compta/bank/account.php | 46 ++++++++-------------------------- 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 7e3ea31dab1..1a81831610a 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -80,10 +80,15 @@ if ($action == 'del' && $account) //bank_delete_line($db, $rowid); } +/* + * + * + * + */ llxHeader(); -if ($account) +if ($account > 0) { if ($vline) { @@ -403,42 +408,11 @@ if ($account) } print ""; - -} else { - - print_titre ("Comptes bancaires"); - - print ""; - print ""; - print ""; - print ""; - print "\n"; - - $sql = "SELECT rowid, label,number,bank FROM llx_bank_account"; - - $result = $db->query($sql); - if ($result) { - $var=True; - $num = $db->num_rows(); - $i = 0; $total = 0; - - $sep = 0; - - while ($i < $num) { - $objp = $db->fetch_object( $i); - - print ""; - - $i++; - } - $db->free(); - } - - //$acc = new Account($db); - - print "
LabelBanqueNuméro
$objp->label$objp->bank$objp->number
"; } - +else +{ + print "Erreur : numéro ce compte inexistant"; +} $db->close();