35 if (empty($object) || !is_object($object))
37 print "Error, template page can't be called as URL";
44 if (empty($forceall)) $forceall = 0;
53 print "<!-- BEGIN PHP TEMPLATE objectline_edit.tpl.php -->\n";
56 print '<tr class="oddeven tredited">';
58 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
59 print '<td class="linecolnum center">'.($i + 1).
'</td>';
66 <div
id=
"line_<?php echo $line->id; ?>"></div>
68 <input
type=
"hidden" name=
"lineid" value=
"<?php echo $line->id; ?>">
69 <input type=
"hidden" id=
"product_type" name=
"type" value=
"<?php echo $line->product_type; ?>">
70 <input type=
"hidden" id=
"product_id" name=
"productid" value=
"<?php echo (!empty($line->fk_product) ? $line->fk_product : 0); ?>" />
71 <input type=
"hidden" id=
"special_code" name=
"special_code" value=
"<?php echo $line->special_code; ?>">
72 <input type=
"hidden" id=
"fk_parent_line" name=
"fk_parent_line" value=
"<?php echo $line->fk_parent_line; ?>">
76 if ($line->fk_product > 0) {
77 $tmpproduct =
new Product($object->db);
78 $tmpproduct->fetch($line->fk_product);
79 print $tmpproduct->getNomUrl(1);
82 if (is_object($hookmanager))
84 $fk_parent_line = (
GETPOST(
'fk_parent_line') ?
GETPOST(
'fk_parent_line') : $line->fk_parent_line);
85 $parameters = array(
'line'=>$line,
'fk_parent_line'=>$fk_parent_line,
'var'=>$var,
'dateSelector'=>$dateSelector,
'seller'=>$seller,
'buyer'=>$buyer);
86 $reshook = $hookmanager->executeHooks(
'formEditProductOptions', $parameters, $this, $action);
101 print '<td class="nobottom linecolqty right">';
102 if (($line->info_bits & 2) != 2) {
107 print '<input size="3" type="text" class="flat right" name="qty" id="qty" value="'.$line->qty.
'">';
111 if (!empty($conf->global->PRODUCT_USE_UNITS))
114 print '<td class="nobottom linecoluseunit left">';
119 print '<td class="nobottom linecolqtyfrozen right"><input type="checkbox" name="qty_frozen" id="qty_frozen" class="flat right" value="1"'.(GETPOSTISSET(
"qty_frozen") ? (
GETPOST(
'qty_frozen',
'int') ?
' checked="checked"' :
'') : ($line->qty_frozen ?
' checked="checked"' :
'')).
'>';
123 print
'<td class="nobottom linecoldisablestockchange right"><input type="checkbox" name="disable_stock_change" id="disable_stock_change" class="flat right" value="1"'.(GETPOSTISSET(
'disablestockchange') ? (
GETPOST(
"disable_stock_change",
'int') ?
' checked="checked"' :
'') : ($line->disable_stock_change ?
' checked="checked"' :
'')).
'">';
127 print
'<td class="nobottom nowrap linecollost right">';
128 print
'<input type="text" size="1" name="efficiency" id="efficiency" class="flat right" value="'.$line->efficiency.
'"></td>';
131 print
'<td class="nobottom nowrap linecolcostprice right">';
134 $coldisplay += $colspan;
135 print
'<td class="nobottom linecoledit center valignmiddle" colspan="'.$colspan.
'">';
136 $coldisplay += $colspan;
137 print
'<input type="submit" class="button buttongen marginbottomonly button-save" id="savelinebutton marginbottomonly" name="save" value="'.$langs->trans(
"Save").
'">';
139 print
'<input type="submit" class="button buttongen marginbottomonly button-cancel" id="cancellinebutton" name="cancel" value="'.$langs->trans(
"Cancel").
'">';
143 if (is_object($objectline)) {
144 print $objectline->showOptionals($extrafields,
'edit', array(
'style'=>$bcnd[$var],
'colspan'=>$coldisplay),
'',
'', 1);
147 print
"<!-- END PHP TEMPLATE objectline_edit.tpl.php -->\n";
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Class to manage products or services.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
print
Draft customers invoices.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type