21 if (empty($conf) || !is_object($conf)) {
22 print "Error, template page can't be called as URL";
26 echo
"<!-- BEGIN PHP TEMPLATE -->\n";
30 $langs = $GLOBALS[
'langs'];
31 $linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
32 $langs->load(
"members");
35 foreach ($linkedObjectBlock as $key => $objectlink) {
36 echo
'<tr class="oddeven">';
37 echo
'<td>'.$langs->trans(
"Subscription").
'</td>';
38 echo
'<td>'.$objectlink->getNomUrl(1).
'</td>';
39 echo
'<td class="center"></td>';
40 echo
'<td class="center">'.dol_print_date($objectlink->dateh,
'day').
'</td>';
41 echo
'<td class="right">';
42 if ($user->rights->adherent->lire) {
43 $total = $total + $objectlink->amount;
44 echo
price($objectlink->amount);
47 echo
'<td class="right"></td>';
48 echo
'<td class="right"><a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=dellink&dellinkid='.$key.
'">'.
img_picto($langs->transnoentitiesnoconv(
"RemoveLink"),
'unlink').
'</a></td>';
52 echo
"<!-- 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...
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
print
Draft customers invoices.