Skip to content
Snippets Groups Projects
Commit bbece06b authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4109 from frederic34/patch-3

Navigation to loan list
parents ebe4867a 79263d06
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,12 @@ if ($filtre) {
}
$sql.= " GROUP BY l.rowid, l.label, l.capital, l.datestart, l.dateend";
$sql.= $db->order($sortfield,$sortorder);
$numall = 0;
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
{
$result = $db->query($sql);
$numall = $db->num_rows($result);
}
$sql.= $db->plimit($limit+1, $offset);
//print $sql;
......@@ -93,13 +99,16 @@ if ($resql)
$i = 0;
$var=true;
print load_fiche_titre($langs->trans("Loans"));
$param="";
if ($optioncss != '') $param.='&optioncss='.$optioncss;
if ($search_ref) $param.="&search_ref=".$search_ref;
if ($search_label) $param.="&search_label=".$search_user;
if ($search_amount) $param.="&search_amount=".$search_amount_ht;
if ($optioncss != '') $param.='&optioncss='.$optioncss;
print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">'."\n";
if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
print_barre_liste($langs->trans("Loans"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $numall,'title_generic.png');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"l.rowid","",$param,"",$sortfield,$sortorder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment