37 print
"Error, template page can't be called as URL";
41'@phan-var-force CommonObject $this
42 @phan-var-force CommonObject $object
43 @phan-var-force int $num';
46$domData =
' data-element="'.$line->element.
'"';
47$domData .=
' data-id="'.$line->id.
'"';
51<!-- BEGIN PHP TEMPLATE productattributevalueline_view.tpl.php -->
52<tr
id=
"row-<?php print $line->id?>" class=
"drag drop oddeven" <?php print $domData; ?> >
54 <td
class=
"linecolnum center"><span
class=
"opacitymedium"><?php $coldisplay++; ?><?php print($i + 1); ?></span></td>
56 <td
class=
"linecolref nowrap"><?php $coldisplay++; ?><div
id=
"line_<?php print $line->id; ?>"></div>
57 <?php print $line->ref ?>
60 <td
class=
"linecolvalue nowrap"><?php $coldisplay++;
61 print $line->value ?></td>
63if ($user->hasRight(
'variants',
'write') && $action !=
'selectlines') {
64 print
'<td class="linecoledit center width25">';
66 if (empty($disableedit)) { ?>
67 <a
class=
"editfielda reposition" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id.'#line_'.$line->id; ?>">
72 print
'<td class="linecoldelete center width25">';
74 if (empty($disableremove)) {
75 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=ask_deleteline&token='.
newToken().
'&lineid='.$line->id.
'">';
81 if ($num > 1 && $conf->browser->layout !=
'phone' && empty($disablemove)) {
82 print
'<td class="linecolmove tdlineupdown center width25">';
85 <a
class=
"lineupdown reposition" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=up&token='.newToken().'&rowid='.$line->id; ?>">
86 <?php print
img_up(
'default', 0,
'imgupforline'); ?>
89 if ($i < $num - 1) { ?>
90 <a
class=
"lineupdown reposition" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=down&token='.newToken().'&rowid='.$line->id; ?>">
91 <?php print
img_down(
'default', 0,
'imgdownforline'); ?>
96 print
'<td '.(($conf->browser->layout !=
'phone' && empty($disablemove)) ?
' class="linecolmove tdlineupdown center"' :
' class="linecolmove center"').
'></td>';
100 print
'<td colspan="3"></td>';
104if ($action ==
'selectlines') { ?>
105 <td
class=
"linecolcheck center"><input
type=
"checkbox" class=
"linecheckbox" name=
"line_checkbox[<?php print $i + 1; ?>]" value=
"<?php print $line->id; ?>" ></td>
110print
"<!-- END PHP TEMPLATE productattributevalueline_view.tpl.php -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
img_delete($titlealt='default', $other='class="pictodelete"', $morecss='')
Show delete logo.
img_down($titlealt='default', $selected=0, $moreclass='')
Show down arrow logo.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
img_edit($titlealt='default', $float=0, $other='')
Show logo edit/modify fiche.
img_up($titlealt='default', $selected=0, $moreclass='')
Show top arrow logo.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
$conf db name
Only used if Module[ID]Name translation string is not found.