bugfix navigation

This commit is contained in:
Rodolphe Quiedeville 2004-12-17 14:47:35 +00:00
parent 9b4cc91f6a
commit 1fe56c7fc0

View File

@ -1471,13 +1471,16 @@ else
/* Facture non trouvée */ /* Facture non trouvée */
print "Facture inexistante"; print "Facture inexistante";
} }
} else { }
else
{
/*************************************************************************** /***************************************************************************
* * * *
* Mode Liste * * Mode Liste *
* * * *
***************************************************************************/ ***************************************************************************/
$page=$_GET["page"]; $page = $_GET["page"];
$sortorder=$_GET["sortorder"]; $sortorder=$_GET["sortorder"];
$sortfield=$_GET["sortfield"]; $sortfield=$_GET["sortfield"];
$month=$_GET["month"]; $month=$_GET["month"];
@ -1535,18 +1538,22 @@ else
} }
$sql .= " f.rowid DESC "; $sql .= " f.rowid DESC ";
$sql .= $db->plimit($limit,$offset); $sql .= $db->plimit($limit+1,$offset);
$result = $db->query($sql); $result = $db->query($sql);
} }
if ($result) if ($result)
{ {
$num = $db->num_rows(); $num = $db->num_rows();
if ($socidp) {
$soc = new Societe($db); if ($socidp)
$soc->fetch($socidp); {
} $soc = new Societe($db);
print_barre_liste("Factures client".($socidp?" $soc->nom":""),$page,$_SERVER["PHP_SELF"],"&socidp=$socidp",$sortfield,$sortorder,'',$num); $soc->fetch($socidp);
}
print_barre_liste("Factures client".($socidp?" $soc->nom":""),$page,"facture.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0; $i = 0;
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';
@ -1560,6 +1567,24 @@ else
print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","","&amp;socidp=$socidp",'align="right"',$sortfield); print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye","","&amp;socidp=$socidp",'align="right"',$sortfield);
print "</tr>\n"; print "</tr>\n";
// Lignes des champs de filtre
print '<form method="post" action="societe.php">';
print '<tr class="liste_titre">';
print '<td valign="right">';
print '<input class="fat" size="10" type="text" name="search_ref" value="'.$search_ref.'">';
print '</td><td>&nbsp;</td>';
print '<td valign="right">';
print '<input class="fat" type="text" name="search_societe" value="'.$search_societe.'">';
print '</td><td>';
print '<input class="fat" type="text" name="search_societe" value="'.$search_societe.'">';
print '</td><td>&nbsp;</td><td colspan="2" align="center">';
print '<input type="submit" class="button" name="button_search" value="'.$langs->trans("Search").'">';
print '&nbsp; <input type="submit" class="button" name="button_removefilter" value="'.$langs->trans("RemoveFilter").'">';
print '</td>';
print "</tr>\n";
print '</form>';
if ($num > 0) if ($num > 0)
{ {
$var=True; $var=True;