22 print
"Error, template page can't be called as URL";
27print
"<!-- BEGIN PHP TEMPLATE expedition/tpl/linkedobjectblock.tpl.php -->\n";
32$langs = $GLOBALS[
'langs'];
33'@phan-var-force Translate $langs';
34$linkedObjectBlock = $GLOBALS[
'linkedObjectBlock'];
35'@phan-var-force CommonObject[] $linkedObjectBlock';
38$langs->load(
"sendings");
42foreach ($linkedObjectBlock as $key =>
$objectlink) {
46 if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) {
47 $trclass .=
' liste_sub_total';
49 <tr
class=
"<?php echo $trclass; ?>">
50 <td><?php echo $langs->trans(
"Shipment"); ?></td>
54 <td
class=
"right"><?php
55 if ($user->hasRight(
'expedition',
'lire')) {
59 <td
class=
"right"><?php echo
$objectlink->getLibStatut(3); ?></td>
63 if (
$object->element !=
'commande') {
65 <a
class=
"reposition" href=
"<?php echo $_SERVER["PHP_SELF
"].'?id='.$object->id.'&token='.newToken().'&action=dellink&dellinkid='.$key; ?>"><?php echo
img_picto($langs->transnoentitiesnoconv(
"RemoveLink"),
'unlink'); ?></a></td> <?php
70if (count($linkedObjectBlock) > 1) {
72 <tr
class=
"liste_total <?php echo(empty($noMoreLinkedObjectBlockAfter) ? 'liste_sub_total' : ''); ?>">
73 <td><?php echo $langs->trans(
"Total"); ?></td>
75 <td
class=
"center"></td>
76 <td
class=
"center"></td>
77 <td
class=
"right"><?php echo
price($total); ?></td>
78 <td
class=
"right"></td>
79 <td
class=
"right"></td>
84print
"<!-- 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).
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...