23print
"<!-- BEGIN PHP TEMPLATE don/tpl/linkedobjectblock.tpl.php -->\n";
26global $noMoreLinkedObjectBlockAfter;
28$langs = $GLOBALS[
'langs'];
29$linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
31$langs->load(
"donations");
35foreach ($linkedObjectBlock as $key =>
$objectlink) {
39 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) {
40 $trclass .=
' liste_sub_total';
42 print
'<tr class="'.$trclass.
'">';
43 print
'<td>'.$langs->trans(
"Donation").
'</td>';
44 print
'<td>'.$objectlink->getNomUrl(1).
'</td>';
45 print
'<td class="center">'.$objectlink->ref_client.
'</td>';
46 print
'<td class="center">'.dol_print_date(
$objectlink->date,
'day').
'</td>';
47 print
'<td class="right">';
52print
'<td class="right">'.$objectlink->getLibStatut(3).
'</td>';
55if (count($linkedObjectBlock) > 1) {
57 <tr
class=
"liste_total <?php echo(empty($noMoreLinkedObjectBlockAfter) ? 'liste_sub_total' : ''); ?>">
58 <td><?php echo $langs->trans(
"Total"); ?></td>
60 <td
class=
"center"></td>
61 <td
class=
"center"></td>
62 <td
class=
"right"><?php echo
price($total); ?></td>
63 <td
class=
"right"></td>
64 <td
class=
"right"></td>
69print
"<!-- 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.