26 print
"Error, template page can't be called as URL";
34$statutarray = array(
'1' => $langs->trans(
"OnSell"),
'0' => $langs->trans(
"NotOnSell"));
37<!-- BEGIN PHP TEMPLATE product/canvas/product/tpl/card_edit.tpl.php-->
41$titre = $langs->trans(
"CardProduct".
$object->type);
47<form action=
"<?php echo $_SERVER["PHP_SELF
"]; ?>" method=
"post">
48<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
49<input
type=
"hidden" name=
"action" value=
"update">
50<input
type=
"hidden" name=
"id" value=
"<?php echo $object->id; ?>">
51<input
type=
"hidden" name=
"canvas" value=
"<?php echo $object->canvas; ?>">
52<?php
if (!isModEnabled(
'stock')) { ?>
53<input
name=
"seuil_stock_alerte" type=
"hidden" value=
"0">
57<
table class=
"border allwidth">
60<td
class=
"fieldrequired" width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
61<td><input
name=
"ref" size=
"40" maxlength=
"32" value=
"<?php echo $object->ref; ?>">
65<td
class=
"fieldrequired"><?php echo $langs->trans(
"Label"); ?></td>
66<td><input
name=
"label" size=
"40" value=
"<?php echo $object->label; ?>"></td>
70<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Sell").
')'; ?></td>
71<td><?php echo $form->selectarray(
'statut', $statutarray,
$object->status); ?></td>
75<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Buy").
')'; ?></td>
76<td><?php echo $form->selectarray(
'statut_buy', $statutarray,
$object->status_buy); ?></td>
79<?php
if (isModEnabled(
'stock')) { ?>
80<tr><td><?php echo $langs->trans(
"StockLimit"); ?></td><td>
81<input
name=
"seuil_stock_alerte" size=
"4" value=
"<?php echo $object->seuil_stock_alerte; ?>">
85<tr><td><?php echo $langs->trans(
"Nature"); ?></td><td>
89<tr><td><?php echo $langs->trans(
"Weight"); ?></td><td>
90<input
name=
"weight" size=
"4" value=
"<?php echo $object->weight; ?>">
91<?php echo
$object->weight_units; ?>
94<tr><td><?php echo $langs->trans(
"Length"); ?></td><td>
95<input
name=
"size" size=
"4" value=
"<?php echo $object->length; ?>">
96<?php echo
$object->length_units; ?>
99<tr><td><?php echo $langs->trans(
"Surface"); ?></td><td>
100<input
name=
"surface" size=
"4" value=
"<?php echo $object->surface; ?>">
101<?php echo
$object->surface_units; ?>
104<tr><td><?php echo $langs->trans(
"Volume"); ?></td><td>
105<input
name=
"volume" size=
"4" value=
"<?php echo $object->volume; ?>">
106<?php echo
$object->volume_units; ?>
109<tr><td
class=
"tdtop"><?php echo $langs->trans(
"NoteNotVisibleOnBill"); ?></td><td>
110<?php echo
$object->textarea_note; ?>
116<div align=
"center"><input
type=
"submit" class=
"button button-save" value=
"<?php echo $langs->trans("Save
"); ?>">
117<input
type=
"submit" class=
"button button-cancel" name=
"cancel" value=
"<?php echo $langs->trans("Cancel
"); ?>"></div>
121<!-- END PHP TEMPLATE -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formatted error messages to output (Used to show messages on html output).
treeview li table
No Email.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
product_prepare_head($object)
Prepare array with list of tabs.
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.