42 |
$h++; |
$h++; |
43 |
|
|
44 |
$year = strftime("%Y",time()); |
$year = strftime("%Y",time()); |
45 |
|
$total = 0; |
46 |
dolibarr_fiche_head($head, $hselected, "Distributeurs"); |
dolibarr_fiche_head($head, $hselected, "Distributeurs"); |
47 |
|
|
48 |
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; |
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; |
65 |
$var=!$var; |
$var=!$var; |
66 |
print "<tr $bc[$var]><td>".$row[1].'</td>'; |
print "<tr $bc[$var]><td>".$row[1].'</td>'; |
67 |
print '<td align="right">'.price($row[0]).'</td></tr>'; |
print '<td align="right">'.price($row[0]).'</td></tr>'; |
68 |
|
$total += $row[0]; |
69 |
} |
} |
70 |
$db->free(); |
$db->free(); |
71 |
} |
} |
73 |
{ |
{ |
74 |
print $db->error() . ' ' . $sql; |
print $db->error() . ' ' . $sql; |
75 |
} |
} |
76 |
|
print "<tr $bc[$var]><td>Total</td>"; |
77 |
|
print '<td align="right">'.price($total).'</td></tr>'; |
78 |
print '</table>'; |
print '</table>'; |
79 |
|
|
80 |
print '</td></tr><tr><td valign="top" width="70%">'; |
print '</td></tr><tr><td valign="top" width="70%">'; |