39'@phan-var-force Don[] $linkedObjectBlock';
41print
"<!-- BEGIN PHP TEMPLATE don/tpl/linkedobjectblock.tpl.php -->\n";
43$langs->load(
"donations");
47$lastObjectLink =
null;
48foreach ($linkedObjectBlock as $key => $objectlink) {
49 '@phan-var-force Don $objectlink';
53 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) {
54 $trclass .=
' liste_sub_total';
56 print
'<tr class="'.$trclass.
'">';
57 print
'<td>'.$langs->trans(
"Donation").
'</td>';
58 print
'<td>'.$objectlink->getNomUrl(1).
'</td>';
59 print
'<td class="center linkedcol-ref"></td>';
60 print
'<td class="center">'.dol_print_date($objectlink->date,
'day').
'</td>';
61 print
'<td class="right">';
62 $total += $objectlink->total_ht;
63 echo
price($objectlink->total_ht);
64 $lastObjectLink = $objectlink;
67print
'<td class="right">'.(is_object($lastObjectLink) ? $lastObjectLink->getLibStatut(3) :
'').
'</td>';
70if (count($linkedObjectBlock) > 1) {
72 <tr
class=
"liste_total <?php echo(empty($noMoreLinkedObjectBlockAfter) ? 'liste_sub_total' : ''); ?>">
73 <td><?php echo $langs->trans(
"Total"); ?></td>
75 <td
class=
"center"></td>
76 <td
class=
"center"></td>
77 <td
class=
"right"><?php echo
price($total); ?></td>
78 <td
class=
"right"></td>
79 <td
class=
"right"></td>
84print
"<!-- 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.