';
+ print '';
+ print '| '.$langs->trans("Ref").' | ';
+ if ($_error == 1)
+ {
+ print $langs->trans("RefAlreadyExists");
+ }
+ print ' |
';
+ // Label
+ print '| '.$langs->trans("Label").' | |
';
+
+ // Status
+ print '| '.$langs->trans("Status").' | ';
+ $statutarray=array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell"));
+ $html->select_array('statut',$statutarray,$_POST["statut"]);
+ print ' |
';
+
+ // Stock min level
+ if ($_GET["type"] != 1 && $conf->stock->enabled)
+ {
+ print '| '.$langs->trans("StockLimit").' | ';
+ print '';
+ print ' |
';
+ }
+ else
+ {
+ print '';
+ }
+
+ // Description (used in invoice, propal...)
+ print '| '.$langs->trans("Description").' | ';
+
+ if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
+ {
+ require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
+ $doleditor=new DolEditor('desc',$_POST["desc"],160,'dolibarr_notes','',false);
+ $doleditor->Create();
+ }
+ else
+ {
+ print '';
+ }
+
+ print " |
";
+
+ // Nature
+ if ($_GET["type"] != 1)
+ {
+ print '| '.$langs->trans("Nature").' | ';
+ $statutarray=array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial"));
+ $html->select_array('finished',$statutarray,$_POST["finished"]);
+ print ' |
';
+ }
+
+ //Duration
+ if ($_GET["type"] == 1)
+ {
+ print '| '.$langs->trans("Duration").' | ';
+ print ''.$langs->trans("Hour").' ';
+ print ''.$langs->trans("Day").' ';
+ print ''.$langs->trans("Week").' ';
+ print ''.$langs->trans("Month").' ';
+ print ''.$langs->trans("Year").' ';
+ print ' |
';
+ }
+
+ if ($_GET["type"] != 1) // Le poids et le volume ne concerne que les produits et pas les services
+ {
+ // Weight
+ print '| '.$langs->trans("Weight").' | ';
+ print '';
+ print $formproduct->select_measuring_units("weight_units","weight");
+ print ' |
';
+ // Length
+ print '| '.$langs->trans("Length").' | ';
+ print '';
+ print $formproduct->select_measuring_units("size_units","size");
+ print ' |
';
+ // Surface
+ print '| '.$langs->trans("Surface").' | ';
+ print '';
+ print $formproduct->select_measuring_units("surface_units","surface");
+ print ' |
';
+ // Volume
+ print '| '.$langs->trans("Volume").' | ';
+ print '';
+ print $formproduct->select_measuring_units("volume_units","volume");
+ print ' |
';
+ }
+
+ // Hidden
+ if (($_GET["type"] != 1 && $user->rights->produit->hidden)
+ || ($_GET["type"] == 1 && $user->rights->service->hidden))
+ {
+ print '| '.$langs->trans("Hidden").' | ';
+ print $html->selectyesno('hidden',$product->hidden);
+ print ' |
';
+ }
+ else
+ {
+ print '| '.$langs->trans("Hidden").' | ';
+ print yn("No");
+ print ' |
';
+ }
+
+ // Note (invisible sur facture, propales...)
+ print '| '.$langs->trans("NoteNotVisibleOnBill").' | ';
+ if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
+ {
+ require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
+ $doleditor=new DolEditor('note',$_POST["note"],180,'dolibarr_notes','',false);
+ $doleditor->Create();
+ }
+ else
+ {
+ print '';
+ }
+ print " |
";
+ print '
';
+
+ print '