22 print "<!-- BEGIN PHP TEMPLATE -->\n";
25 global $noMoreLinkedObjectBlockAfter;
27 $langs = $GLOBALS[
'langs'];
28 $linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
30 $langs->load(
"donations");
34 foreach ($linkedObjectBlock as $key => $objectlink) {
38 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass .=
' liste_sub_total';
39 print '<tr class="'.$trclass.
'">';
40 print '<td>'.$langs->trans(
"Donation").
'</td>';
41 print '<td>'.$objectlink->getNomUrl(1).
'</td>';
42 print '<td class="center">'.$objectlink->ref_client.
'</td>';
43 print '<td class="center">'.dol_print_date($objectlink->date,
'day').
'</td>';
44 print '<td class="right">';
45 $total = $total + $objectlink->total_ht;
46 echo
price($objectlink->total_ht);
49 print '<td class="right">'.$objectlink->getLibStatut(3).
'</td>';
52 if (count($linkedObjectBlock) > 1)
55 <tr
class=
"liste_total <?php echo (empty($noMoreLinkedObjectBlockAfter) ? 'liste_sub_total' : ''); ?>">
56 <td><?php echo $langs->trans(
"Total"); ?></td>
58 <td
class=
"center"></td>
59 <td
class=
"center"></td>
60 <td
class=
"right"><?php echo
price($total); ?></td>
61 <td
class=
"right"></td>
62 <td
class=
"right"></td>
67 print "<!-- END PHP TEMPLATE -->\n";
price($amount, $form=0, $outlangs= '', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code= '')
Function to format a value into an amount for visual output Function used into PDF and HTML pages...
print
Draft customers invoices.