37if (empty($object) || !is_object($object)) {
38 print
"Error, template page can't be called as URL";
43if (empty($filtertype)) $filtertype = 0;
45print
"<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
51print
'<tr class="liste_titre nodrag nodrop">';
54if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
55 print
'<td class="linecolnum center"> </td>';
59print
'<td class="linecoldescription">'.$langs->trans(
'Description');
60if (!empty($conf->global->BOM_SUB_BOM) && $filtertype != 1) {
61 print
' <a id="show_all" href="#">'.img_picto(
'',
'folder-open',
'class="paddingright"').$langs->trans(
"ExpandAll").
'</a> ';
62 print
'<a id="hide_all" href="#">'.img_picto(
'',
'folder',
'class="paddingright"').$langs->trans(
"UndoExpandAll").
'</a> ';
67print
'<td class="linecolqty right">'.$form->textwithpicto($langs->trans(
'Qty'), ($filtertype != 1) ? $langs->trans(
"QtyRequiredIfNoLoss") :
'').
'</td>';
69if ($filtertype != 1) {
71 print
'<td class="linecoluseunit left">' . $langs->trans(
'Unit') .
'</td>';
75 print
'<td class="linecolqtyfrozen right">' . $form->textwithpicto($langs->trans(
'QtyFrozen'), $langs->trans(
"QuantityConsumedInvariable")) .
'</td>';
78 print
'<td class="linecoldisablestockchange right">' . $form->textwithpicto($langs->trans(
'DisableStockChange'), $langs->trans(
'DisableStockChangeHelp')) .
'</td>';
81 print
'<td class="linecolefficiency right">' . $form->textwithpicto($langs->trans(
'ManufacturingEfficiency'), $langs->trans(
'ValueOfMeansLoss')) .
'</td>';
84 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCost")).
'</td>';
86 print
'<td class="linecolunit right">' . $form->textwithpicto($langs->trans(
'Unit'),
'').
'</td>';
88 if (isModEnabled(
'workstation')) print
'<td class="linecolworkstation right">' . $form->textwithpicto($langs->trans(
'DefaultWorkstation'),
'') .
'</td>';
91 print
'<td class="linecolcost right">'.$form->textwithpicto($langs->trans(
"TotalCost"), $langs->trans(
"BOMTotalCostService")).
'</td>';
97print
'<td class="linecoledit"></td>';
99print
'<td class="linecoldelete" style="width: 10px"></td>';
101print
'<td class="linecolmove" style="width: 10px"></td>';
103if ($action ==
'selectlines') {
104 print
'<td class="linecolcheckall center">';
105 print
'<input type="checkbox" class="linecheckboxtoggle" />';
106 print
'<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
113print
"<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.