From 2ce5abdac38e2970530e117e2864882a30bcea49 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 21 Oct 2003 17:40:49 +0000 Subject: [PATCH] Ajout lien sur la ligne --- htdocs/compta/bank/search.php | 43 ++++++++++++++--------------------- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 6770cb67954..15eef6d5840 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -34,7 +34,7 @@ if ($vline) { print_titre("Recherche compte bancaire"); print ""; -print ""; +print '
'; print ""; print ""; print ""; @@ -63,21 +63,16 @@ print "\n"; query($sql) ) { +if ( $db->query($sql) ) +{ $nbline = $db->result (0, 0); - $db->free(); - - if ($nbline > $viewline ) { - $limit = $nbline - $viewline ; - } else { - $limit = $viewline; - } + $db->free(); } $sql = "SELECT rowid, label FROM llx_bank_categ;"; @@ -94,10 +89,6 @@ if ($result) { $db->free(); } - -if ($viewall) { $nbline=0; } - - $sql = "SELECT b.rowid,".$db->pdate("b.dateo")." as do, b.amount, b.label, b.rappro, b.num_releve, b.num_chq, b.fk_account, b.fk_type"; $sql .= " FROM llx_bank as b "; $sql .= " WHERE fk_type like '" . $type . "'"; @@ -118,11 +109,12 @@ for ($i = 1 ; $i <= $si; $i++) { $sql .= " AND " . $sqlw[$i]; } - $sql .= " ORDER BY b.dateo ASC"; $result = $db->query($sql); -if ($result) { + +if ($result) +{ $var=True; $num = $db->num_rows(); $i = 0; @@ -135,17 +127,16 @@ if ($result) { print ""; print "\n"; - if ($objp->num_chq) { - print ""; - } else { - print ""; - } + print "\n"; - } else { - print "\n"; - } + if ($objp->amount < 0) + { + print "\n"; + } + else + { + print "\n"; + } print "\n";
DateDescriptionDebit
- +
".strftime("%d %b %y",$objp->do)."CHQ $objp->num_chq - $objp->label$objp->labelrowid&account=$objp->fk_account\">$objp->label "; - if ($objp->amount < 0) { - print "".price($objp->amount * -1)."  ".price($objp->amount)."".price($objp->amount * -1)."  ".price($objp->amount)."".$obj->fktype."