22print
"<!-- BEGIN PHP TEMPLATE don/tpl/linkedobjectblock.tpl.php -->\n";
25global $noMoreLinkedObjectBlockAfter;
27$langs = $GLOBALS[
'langs'];
28$linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
30$langs->load(
"donations");
34foreach ($linkedObjectBlock as $key => $objectlink) {
38 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) {
39 $trclass .=
' liste_sub_total';
41 print
'<tr class="'.$trclass.
'">';
42 print
'<td>'.$langs->trans(
"Donation").
'</td>';
43 print
'<td>'.$objectlink->getNomUrl(1).
'</td>';
44 print
'<td class="center">'.$objectlink->ref_client.
'</td>';
45 print
'<td class="center">'.dol_print_date($objectlink->date,
'day').
'</td>';
46 print
'<td class="right">';
47 $total = $total + $objectlink->total_ht;
48 echo
price($objectlink->total_ht);
51print
'<td class="right">'.$objectlink->getLibStatut(3).
'</td>';
54if (count($linkedObjectBlock) > 1) {
56 <tr
class=
"liste_total <?php echo(empty($noMoreLinkedObjectBlockAfter) ? 'liste_sub_total' : ''); ?>">
57 <td><?php echo $langs->trans(
"Total"); ?></td>
59 <td
class=
"center"></td>
60 <td
class=
"center"></td>
61 <td
class=
"right"><?php echo
price($total); ?></td>
62 <td
class=
"right"></td>
63 <td
class=
"right"></td>
68print
"<!-- 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.