Skip to content

Commit

Permalink
Navigation to loan list
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 28, 2015
1 parent acbbb70 commit e344336
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions htdocs/loan/index.php
Expand Up @@ -83,6 +83,12 @@
}
$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;
Expand All @@ -93,13 +99,13 @@
$i = 0;
$var=true;

print load_fiche_titre($langs->trans("Loans"));

$param="";
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);
Expand Down

0 comments on commit e344336

Please sign in to comment.