20if (empty($conf) || !is_object($conf)) {
21 print
"Error, template page can't be called as URL";
28$statutarray = array(
'1' => $langs->trans(
"OnSell"),
'0' => $langs->trans(
"NotOnSell"));
31<!-- BEGIN PHP TEMPLATE CREATE.TPL -->
42<form action=
"<?php echo $_SERVER["PHP_SELF
"]; ?>" method=
"post">
43<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
44<input
type=
"hidden" name=
"action" value=
"add">
45<input
type=
"hidden" name=
"type" value=
"1">
46<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas; ?>">
48<
table class=
"border allwidth">
51<td
class=
"fieldrequired" width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
52<td><input
name=
"ref" size=
"40" maxlength=
"32" value=
"<?php echo $object->ref; ?>">
53<?php
if ($refalreadyexists == 1) {
54 echo $langs->trans(
"RefAlreadyExists");
59<td
class=
"fieldrequired"><?php echo $langs->trans(
"Label"); ?></td>
60<td><input
name=
"label" size=
"40" value=
"<?php echo $object->label; ?>"></td>
64<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Sell").
')'; ?></td>
65<td><?php echo $form->selectarray(
'statut', $statutarray,
$object->status); ?></td>
69<td
class=
"fieldrequired"><?php echo $langs->trans(
"Status").
' ('.$langs->trans(
"Buy").
')'; ?></td>
70<td><?php echo $form->selectarray(
'statut_buy', $statutarray,
$object->status_buy); ?></td>
73<tr><td><?php echo $langs->trans(
"Duration"); ?></td>
74<td><input
name=
"duration_value" size=
"6" maxlength=
"5" value=
"<?php echo $object->duration_value; ?>">
75<?php echo
$object->duration_unit; ?>
78<tr><td
class=
"tdtop"><?php echo $langs->trans(
"NoteNotVisibleOnBill"); ?></td><td>
79<?php echo
$object->textarea_note; ?>
85<?php
if (!$conf->global->PRODUIT_MULTIPRICES) { ?>
86<
table class=
"border allwidth">
88<tr><td><?php echo $langs->trans(
"SellingPrice"); ?></td>
89<td><input
name=
"price" size=
"10" value=
"<?php echo $object->price; ?>">
90 <?php echo
$object->price_base_type; ?>
93<tr><td><?php echo $langs->trans(
"MinPrice"); ?></td>
94<td><input
name=
"price_min" size=
"10" value=
"<?php echo $object->price_min; ?>">
97<tr><td width=
"20%"><?php echo $langs->trans(
"VATRate"); ?></td><td>
106<div align=
"center"><input
type=
"submit" class=
"button" value=
"<?php echo $langs->trans("Create
"); ?>"></div>
110<!-- END PHP TEMPLATE -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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.
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.