22if (empty($conf) || !is_object($conf)) {
23 print
"Error, template page can't be called as URL";
27echo
"<!-- BEGIN PHP TEMPLATE eventorganization/tpl/linkedobjectblock.tpl.php -->\n";
31$langs = $GLOBALS[
'langs'];
32'@phan-var-force Translate $langs';
33$linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
34'@phan-var-force CommonObject[] $linkedObjectBlock';
35$langs->load(
"eventorganization");
38foreach ($linkedObjectBlock as $key =>
$objectlink) {
39 echo
'<tr class="oddeven">';
40 echo
'<td>' . $langs->trans(get_class(
$objectlink)) .
'</td>';
41 echo
'<td>'.$objectlink->getNomUrl(1).
'</td>';
42 echo
'<td class="center">';
43 if (get_class(
$objectlink) ==
'ConferenceOrBooth') {
47 echo
'<td class="center">';
48 if (get_class(
$objectlink) ==
'ConferenceOrBoothAttendee') {
54 echo
'<td class="right">';
55 if (get_class(
$objectlink) ==
'ConferenceOrBoothAttendee') {
59 echo
'<td class="right">'.$objectlink->getLibStatut(3).
'</td>';
60 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>';
64echo
"<!-- END PHP TEMPLATE -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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=null, $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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.