diff --git a/htdocs/compta/bank/releve.php3 b/htdocs/compta/bank/releve.php3 index 69950f873da..74778950929 100644 --- a/htdocs/compta/bank/releve.php3 +++ b/htdocs/compta/bank/releve.php3 @@ -36,16 +36,19 @@ if (! strlen($num)) * * */ - print "Releves bancaires"; - print ''; - print ""; - print ""; + if ($page == -1) { $page = 0 ; } + + $limit = $conf->liste_limit; + $offset = $limit * $page ; + $pageprev = $page - 1; + $pagenext = $page + 1; + - print "\n"; - $sql = "SELECT distinct(b.num_releve) as numr"; $sql .= " FROM llx_bank as b WHERE fk_account = $account ORDER BY numr DESC"; + $sql .= $db->plimit($limit + 1,$offset); + $result = $db->query($sql); if ($result) @@ -54,15 +57,23 @@ if (! strlen($num)) $numrows = $db->num_rows(); $i = 0; - while ($i < $numrows) + print_barre_liste("Relevés bancaires", $page, $PHP_SELF,"&account=$account",$sortfield,$sortorder,'',$numrows); + + print '
Date
'; + print ""; + print ""; + + + while ($i < min($numrows,$limit)) { $objp = $db->fetch_object( $i); $var=!$var; print "\n"; $i++; } - } print "
Date
numr&account=$account\">$objp->numr
"; + } + } else @@ -200,8 +211,6 @@ else print "Solde :".price($total)." \n"; print ""; - print "Edit Categories"; - print " Categories"; } $db->close();