19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
25$object = $GLOBALS[
'object'];
27$statutarray = array(
'1' => $langs->trans(
"OnSell"),
'0' => $langs->trans(
"NotOnSell"));
30<!-- BEGIN PHP TEMPLATE EDIT.TPL -->
34$titre = $langs->trans(
"CardProduct".$object->type);
40<form action=
"<?php echo $_SERVER["PHP_SELF
"]; ?>" method=
"post">
41<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
42<input
type=
"hidden" name=
"action" value=
"update">
43<input
type=
"hidden" name=
"id" value=
"<?php echo $object->id; ?>">
44<input
type=
"hidden" name=
"canvas" value=
"<?php echo $object->canvas; ?>">
47<table
class=
"border allwidth">
50<td
class=
"fieldrequired" width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
51<td><input
name=
"ref" size=
"40" maxlength=
"32" value=
"<?php echo $object->ref; ?>">
55<td
class=
"fieldrequired"><?php echo $langs->trans(
"Label"); ?></td>
56<td><input
name=
"label" size=
"40" value=
"<?php echo $object->label; ?>"></td>
60<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Sell").
')'; ?></td>
61<td><?php echo $form->selectarray(
'statut', $statutarray, $object->status); ?></td>
65<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Buy").
')'; ?></td>
66<td><?php echo $form->selectarray(
'statut_buy', $statutarray, $object->status_buy); ?></td>
69<tr><td><?php echo $langs->trans(
"Duration"); ?></td>
70<td><input
name=
"duration_value" size=
"6" maxlength=
"5" value=
"<?php echo $object->duration_value; ?>">
71<?php echo $object->duration_unit; ?>
74<tr><td
class=
"tdtop"><?php echo $langs->trans(
"NoteNotVisibleOnBill"); ?></td><td>
75<?php echo $object->textarea_note; ?>
81<div align=
"center"><input
type=
"submit" class=
"button button-save" value=
"<?php echo $langs->trans("Save
"); ?>">
82<input
type=
"submit" class=
"button button-cancel" name=
"cancel" value=
"<?php echo $langs->trans("Cancel
"); ?>"></div>
86<!-- END PHP TEMPLATE -->
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 formated error messages to output (Used to show messages on html output).
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.