54@phan-var-force expeditionligne $line
55@phan-var-force int $num
57@phan-var-force CommonObject $this
58@phan-var-force CommonObject $object
63 print
"Error, template page can't be called as URL";
68if (empty($filtertype)) {
73global $forceall, $senderissupplier, $inputalsopricewithtax, $outputalsopricetotalwithtax, $langs;
75if (empty($dateSelector)) {
78if (empty($forceall)) {
84$domData =
' data-element="'.$line->element.
'"';
85$domData .=
' data-id="'.$line->id.
'"';
86$domData .=
' data-qty="'.$line->qty.
'"';
87$domData .=
' data-product_type="'.$line->product_type.
'"';
93print
"<!-- BEGIN PHP TEMPLATE expedition/tpl/objectline_view.tpl.php -->\n";
94print
'<tr id="row-'.$line->id.
'" class="drag drop oddeven" '.$domData.
' >';
98 print
'<td class="linecolnum center">'.($i + 1).
'</td>';
103print
'<td class="linecoldescription line minwidth300imp tdoverflowmax300">';
104print
'<div id="line_'.$line->id.
'"></div>';
107$tmpproduct->fetch($line->fk_product);
109if ($line->fk_product > 0) {
111 $text = $tmpproduct->getNomUrl(1);
112 $text .=
' - '.$tmpproduct->label;
114 print $form->textwithtooltip($text, $description, 3, 0,
'', (
string) $i);
116 print (!empty($line->desc) && $line->desc != $tmpproduct->label) ?
'<br>'.dol_htmlentitiesbr($line->desc) :
'';
119 print
' - '.dol_htmlentitiesbr($line->desc);
123if (!empty($extrafields)) {
124 $temps = $line->showOptionals($extrafields,
'view', array(),
'',
'',
'1',
'line');
125 if (!empty($temps)) {
126 print
'<div style="padding-top: 10px" id="extrafield_lines_area_'.$line->id.
'" name="extrafield_lines_area_'.$line->id.
'">';
134print
'<td class="linecolqty nowrap right">';
136echo
price($line->qty, 0,
'', 0, 0);
141 print
'<td class="linecoluseunit nowrap">';
145 print $langs->trans($label);
150if ($this->
status == 0 && $user->hasRight(
'expedition',
'write') && $action !=
'selectlines') {
151 print
'<td class="linecoledit center">';
153 if (((
int) $line->info_bits & 2) == 2 || !empty($disableedit)) {
155 print
'<a class="editfielda reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=editline&token='.
newToken().
'&lineid='.$line->id.
'">'.img_edit().
'</a>';
159 print
'<td class="linecoldelete center">';
162 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=deleteline&token='.
newToken().
'&lineid='.$line->id.
'">';
168 if ($num > 1 &&
$conf->browser->layout !=
'phone' && empty($disablemove)) {
169 print
'<td class="linecolmove tdlineupdown center">';
172 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=up&token='.
newToken().
'&rowid='.$line->id.
'">';
173 echo
img_up(
'default', 0,
'imgupforline');
177 print
'<a class="lineupdown" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=down&token='.
newToken().
'&rowid='.$line->id.
'">';
178 echo
img_down(
'default', 0,
'imgdownforline');
183 print
'<td '.(($conf->browser->layout !=
'phone' && empty($disablemove)) ?
' class="linecolmove tdlineupdown center"' :
' class="linecolmove center"').
'></td>';
187 print
'<td colspan="3"></td>';
191if ($action ==
'selectlines') {
192 print
'<td class="linecolcheck center">';
193 print
'<input type="checkbox" class="linecheckbox" name="line_checkbox['.($i + 1).
']" value="'.$line->id.
'" >';
199print
"<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
if(! $sortfield) if(! $sortorder) $object
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
Class to manage lines of shipment.
Class to manage products or services.
print $langs trans("Ref").' m titre as m m statut as status
Or an array listing all the potential status of the object: array: int of the status => translated la...
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.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dol_htmlentitiesbr($stringtoencode, $nl2brmode=0, $pagecodefrom='UTF-8', $removelasteolbr=1)
This function is called to encode a string into a HTML string but differs from htmlentities because a...
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
img_down($titlealt='default', $selected=0, $moreclass='')
Show down arrow logo.
img_up($titlealt='default', $selected=0, $moreclass='')
Show top arrow logo.
measuringUnitString($unitid, $measuring_style='', $unitscale=null, $use_short_label=0, $outputlangs=null)
Return translation label of a unit key.