Modif gestion des pages
This commit is contained in:
parent
806336e8b4
commit
274845f6a2
@ -161,7 +161,7 @@ if ($action == '') {
|
|||||||
|
|
||||||
$sql = "SELECT ".$db->pdate("p.datep")." as dp, p.amount, f.amount as fa_amount, f.facnumber, s.nom";
|
$sql = "SELECT ".$db->pdate("p.datep")." as dp, p.amount, f.amount as fa_amount, f.facnumber, s.nom";
|
||||||
$sql .=", f.rowid as facid, c.libelle as paiement_type, p.num_paiement";
|
$sql .=", f.rowid as facid, c.libelle as paiement_type, p.num_paiement";
|
||||||
$sql .= " FROM llx_paiementfourn as p, llx_facture_fourn as f, c_paiement as c, societe as s";
|
$sql .= " FROM llx_paiementfourn as p, llx_facture_fourn as f, c_paiement as c, llx_societe as s";
|
||||||
$sql .= " WHERE p.fk_facture_fourn = f.rowid AND p.fk_paiement = c.id AND s.idp = f.fk_soc";
|
$sql .= " WHERE p.fk_facture_fourn = f.rowid AND p.fk_paiement = c.id AND s.idp = f.fk_soc";
|
||||||
|
|
||||||
if ($socidp)
|
if ($socidp)
|
||||||
@ -170,7 +170,7 @@ if ($action == '') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sql .= " ORDER BY datep DESC";
|
$sql .= " ORDER BY datep DESC";
|
||||||
$sql .= $db->plimit( $limit ,$offset);
|
$sql .= $db->plimit($limit + 1 ,$offset);
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
|
||||||
if ($result)
|
if ($result)
|
||||||
@ -179,7 +179,7 @@ if ($action == '') {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
$var=True;
|
$var=True;
|
||||||
|
|
||||||
print_barre_liste("Paiements", $page, $PHP_SELF);
|
print_barre_liste("Paiements", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
@ -190,7 +190,7 @@ if ($action == '') {
|
|||||||
print '<td align="right">Montant</TD>';
|
print '<td align="right">Montant</TD>';
|
||||||
print "<td> </td></tr>";
|
print "<td> </td></tr>";
|
||||||
|
|
||||||
while ($i < $num)
|
while ($i < min($num,$limit))
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object( $i);
|
$objp = $db->fetch_object( $i);
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user