From a6db49af641db93ce654b3689df49dc0bdea8aee Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 25 Aug 2002 16:11:07 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/compta/bank/budget.php3 | 2 +- htdocs/compta/bank/search.php3 | 89 +++++++++++++++++----------------- 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/htdocs/compta/bank/budget.php3 b/htdocs/compta/bank/budget.php3 index 4e996aa46c1..1a5f861f8f2 100644 --- a/htdocs/compta/bank/budget.php3 +++ b/htdocs/compta/bank/budget.php3 @@ -95,7 +95,7 @@ if ($bid == 0) { print "Budget : $budget_name"; print ""; - print ""; + print ""; echo ''; print "\n"; diff --git a/htdocs/compta/bank/search.php3 b/htdocs/compta/bank/search.php3 index da2d525ff8f..aa2ba95d4f0 100644 --- a/htdocs/compta/bank/search.php3 +++ b/htdocs/compta/bank/search.php3 @@ -131,54 +131,53 @@ $db = new Db(); } $sql .= " ORDER BY b.dateo ASC"; - $result = $db->query($sql); - if ($result) { - $var=True; - $num = $db->num_rows(); - $i = 0; $total = 0; +$result = $db->query($sql); +if ($result) { + $var=True; + $num = $db->num_rows(); + $i = 0; $total = 0; + + $sep = 0; - $sep = 0; - - while ($i < $num) { - $objp = $db->fetch_object( $i); - $total = $total + $objp->amount; - $time = time(); - if ($i > ($nbline - $viewline)) { + while ($i < $num) { + $objp = $db->fetch_object( $i); + $total = $total + $objp->amount; + $time = time(); + if ($i > ($nbline - $viewline)) { + + $var=!$var; - $var=!$var; - - - print ""; - print "\n"; - - if ($objp->num_chq) { - print ""; - } else { - print ""; - } - - if ($objp->amount < 0) { - print "\n"; - } else { - print "\n"; - } - - if ($total > 0) { - print "\n"; - } else { - print "\n"; - } - - if ($objp->rappro) { - print ""; - } else { - print ""; - } - - print "\n"; - - print ""; + print ""; + print "\n"; + + if ($objp->num_chq) { + print ""; + } else { + print ""; + } + + if ($objp->amount < 0) { + print "\n"; + } else { + print "\n"; + } + + if ($total > 0) { + print "\n"; + } else { + print "\n"; + } + + if ($objp->rappro) { + print ""; + } else { + print ""; + } + + print "\n"; + + print ""; }
DateDescriptionMontant 
".strftime("%d %b %y",$objp->do)."CHQ $objp->num_chq - $objp->label$objp->label".price($objp->amount * -1)."  ".price($objp->amount)."".price($total)."".price($total)."num_releve&account=$account\">$objp->num_releverowid&account=$account\">[Del]".$objp->fk_account."
".strftime("%d %b %y",$objp->do)."CHQ $objp->num_chq - $objp->label$objp->label".price($objp->amount * -1)."  ".price($objp->amount)."".price($total)."".price($total)."num_releve&account=$objp->fk_account\">$objp->num_releverowid&account=$objp->fk_account\">[Del]".$objp->fk_account."