37if (empty($object) || !is_object($object)) {
38 print
"Error, template page can't be called as URL";
43if (empty($filtertype)) {
47print
"<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
53print
'<tr class="liste_titre nodrag nodrop">';
57 print
'<td class="linecolnum center"> </td>';
61print
'<td class="linecoldescription">'.$langs->trans(
'Description');
63 print
' <a id="show_all" href="#">'.img_picto(
'',
'folder-open',
'class="paddingright"').$langs->trans(
"ExpandAll").
'</a> ';
64 print
'<a id="hide_all" href="#">'.img_picto(
'',
'folder',
'class="paddingright"').$langs->trans(
"UndoExpandAll").
'</a> ';
69print
'<td class="linecolqty right">'.$form->textwithpicto($langs->trans(
'Qty'), ($filtertype != 1) ? $langs->trans(
"QtyRequiredIfNoLoss") :
'').
'</td>';
71if ($filtertype != 1) {
73 print
'<td class="linecoluseunit left">' . $langs->trans(
'Unit') .
'</td>';
77 print
'<td class="linecolqtyfrozen right">' . $form->textwithpicto($langs->trans(
'QtyFrozen'), $langs->trans(
"QuantityConsumedInvariable")) .
'</td>';
80 print
'<td class="linecoldisablestockchange right">' . $form->textwithpicto($langs->trans(
'DisableStockChange'), $langs->trans(
'DisableStockChangeHelp')) .
'</td>';
83 print
'<td class="linecolefficiency right">' . $form->textwithpicto($langs->trans(
'ManufacturingEfficiency'), $langs->trans(
'ValueOfMeansLoss')) .
'</td>';
86 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCost")).
'</td>';
88 print
'<td class="linecolunit right">' . $form->textwithpicto($langs->trans(
'Unit'),
'').
'</td>';
90 if (isModEnabled(
'workstation')) {
91 print
'<td class="linecolworkstation right">' . $form->textwithpicto($langs->trans(
'DefaultWorkstation'),
'') .
'</td>';
95 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCostService")).
'</td>';
101print
'<td class="linecoledit"></td>';
103print
'<td class="linecoldelete" style="width: 10px"></td>';
105print
'<td class="linecolmove" style="width: 10px"></td>';
107if ($action ==
'selectlines') {
108 print
'<td class="linecolcheckall center">';
109 print
'<input type="checkbox" class="linecheckboxtoggle" />';
110 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
117print
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.