21if (empty($conf) || !is_object($conf)) {
22 print
"Error, template page can't be called as URL";
26echo
"<!-- BEGIN PHP TEMPLATE eventorganization/tpl/linkedobjectblock.tpl.php -->\n";
30$langs = $GLOBALS[
'langs'];
31$linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
32$langs->load(
"eventorganization");
35foreach ($linkedObjectBlock as $key => $objectlink) {
36 echo
'<tr class="oddeven">';
37 echo
'<td>' . $langs->trans(get_class($objectlink)) .
'</td>';
38 echo
'<td>'.$objectlink->getNomUrl(1).
'</td>';
39 echo
'<td class="center">';
40 if (get_class($objectlink)==
'ConferenceOrBooth') {
44 echo
'<td class="center">';
45 if (get_class($objectlink)==
'ConferenceOrBoothAttendee') {
51 echo
'<td class="right">';
52 if (get_class($objectlink)==
'ConferenceOrBoothAttendee') {
53 print
price($objectlink->amount);
56 echo
'<td class="right">'.$objectlink->getLibStatut(3).
'</td>';
57 echo
'<td class="right"><a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$object->id.
'&action=dellink&token='.newToken().
'&dellinkid='.$key.
'">'.
img_picto($langs->transnoentitiesnoconv(
"RemoveLink"),
'unlink').
'</a></td>';
61echo
"<!-- 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.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_trunc($string, $size=40, $trunc='right', $stringencoding='UTF-8', $nodot=0, $display=0)
Truncate a string to a particular length adding '…' if string larger than length.