Merge pull request #1052 from PaulPoulain/943

T943: Put the total of the price at the bottom of the propal list
This commit is contained in:
Laurent Destailleur 2013-06-19 09:29:29 -07:00
commit bcc9b81bab

View File

@ -211,7 +211,6 @@ if ($result)
{
$objectstatic=new Propal($db);
$userstatic=new User($db);
$num = $db->num_rows($result);
if ($socid)
@ -394,6 +393,25 @@ if ($result)
$i++;
}
if ($total>0)
{
if($num<$limit){
$var=!$var;
print '<tr class="liste_total"><td align="left">'.$langs->trans("Total HT").'</td>';
print '<td colspan="5" align="right"">'.price($total).'<td colspan="3"</td>';
print '</tr>';
}
else
{
$var=!$var;
print '<tr class="liste_total"><td align="left">'.$langs->trans("Total HT for this page").'</td>';
print '<td colspan="5" align="right"">'.price($total).'<td colspan="3"</td>';
print '</tr>';
}
}
print '</table>';
print '</form>';