diff --git a/htdocs/admin/holiday.php b/htdocs/admin/holiday.php index c02c9bd480d..81becbaa37c 100644 --- a/htdocs/admin/holiday.php +++ b/htdocs/admin/holiday.php @@ -513,7 +513,6 @@ print ''; print ''; print ''; - } diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index d02e5c28858..026e7ac2c3f 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -2319,17 +2319,17 @@ if ($action == 'create' && $user->rights->commande->creer) if (!empty($conf->multicurrency->enabled) && ($object->multicurrency_code != $conf->currency)) { // Multicurrency Amount HT - print '
| '; $tmpcode=$object->code_client; if (empty($tmpcode) && ! empty($modCodeClient->code_auto)) $tmpcode=$modCodeClient->getNextValue($object,0); @@ -1202,7 +1202,7 @@ else { // Supplier print ' | |||||
| '.fieldLabel('Supplier','fournisseur',1).' | '; + print ' | '.$form->editfieldkey('Supplier', 'fournisseur', '', $object, 0, 'string', '', 1).' | '; $default = -1; if (! empty($conf->global->THIRDPARTY_SUPPLIER_BY_DEFAULT)) $default=1; print $form->selectyesno("fournisseur", (GETPOST('fournisseur','int')!=''?GETPOST('fournisseur','int'):(GETPOST("type",'alpha') == '' ? $default : $object->fournisseur)), 1, 0, (GETPOST("type",'alpha') == '' ? 1 : 0)); @@ -1210,7 +1210,7 @@ else print ' | '; if (! empty($conf->fournisseur->enabled) && ! empty($user->rights->fournisseur->lire)) { - print fieldLabel('SupplierCode','supplier_code'); + print $form->editfieldkey('SupplierCode', 'supplier_code', '', $object, 0); } print ' | '; if (! empty($conf->fournisseur->enabled) && ! empty($user->rights->fournisseur->lire)) @@ -1228,33 +1228,33 @@ else } // Status - print ' |
| '.fieldLabel('Status','status').' | '; + print ' | ||||
| '.$form->editfieldkey('Status', 'status', '', $object, 0).' | '; print $form->selectarray('status', array('0'=>$langs->trans('ActivityCeased'),'1'=>$langs->trans('InActivity')),1); print ' | ||||
| '.fieldLabel('Gencod','barcode').' | '; + print '|||||
| '.$form->editfieldkey('Gencod', 'barcode', '', $object, 0).' | '; print ''; print ' | ||||
| '.fieldLabel('Address','address').' | '; + print '|||||
| '.$form->editfieldkey('Address', 'address', '', $object, 0).' | '; print '|||||
| '.fieldLabel('Zip','zipcode').' | '; + print ' | ||||
| '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | '; print $formcompany->select_ziptown($object->zip,'zipcode',array('town','selectcountry_id','state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent'); - print ' | '.fieldLabel('Town','town').' | '; + print ' | '.$form->editfieldkey('Town', 'town', '', $object, 0).' | '; print $formcompany->select_ziptown($object->town,'town',array('zipcode','selectcountry_id','state_id'), 0, 0, '', 'maxwidth100 quatrevingtpercent'); print ' |
| '.fieldLabel('Country','selectcountry_id').' | '; + print ' | ||||
| '.$form->editfieldkey('Country', 'selectcountry_id', '', $object, 0).' | '; print $form->select_country((GETPOST('country_id')!=''?GETPOST('country_id'):$object->country_id)); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1); print ' | ||||
| '.fieldLabel('Region-State','state_id').' | '; + print ' | ||||
| '.$form->editfieldkey('Region-State', 'state_id', '', $object, 0).' | '; } else { - print ' | ||||
| '.fieldLabel('State','state_id').' | '; + print ' | ||||
| '.$form->editfieldkey('State', 'state_id', '', $object, 0).' | '; } if ($object->country_id) print $formcompany->select_state($object->state_id,$object->country_code); @@ -1277,9 +1277,9 @@ else } // Email / Web - print ' | ||||
| '.fieldLabel('EMail','email',$conf->global->SOCIETE_EMAIL_MANDATORY).' | '; + print '|||||
| '.$form->editfieldkey('EMail', 'email', '', $object, 0, 'string', '', $conf->global->SOCIETE_EMAIL_MANDATORY).' | '; print '|||||
| '.fieldLabel('Web','url').' | '; + print '|||||
| '.$form->editfieldkey('Web', 'url', '', $object, 0).' | '; print '|||||
| '.fieldLabel('Skype','skype').' | '; - print 'skype).'"> | ||||
| '.$form->editfieldkey('Skype', 'skype', '', $object, 0).' | '; + print ''; + print 'skype).'">'; + print ' | ||||
| '.fieldLabel('Twitter','twitter').' | '; - print 'twitter).'"> | ||||
| '.$form->editfieldkey('Twitter', 'twitter', '', $object, 0).' | '; + print ''; + print 'twitter).'">'; + print ' | ||||
| '.fieldLabel('Facebook','facebook').' | '; - print 'facebook).'"> | ||||
| '.$form->editfieldkey('Facebook', 'facebook', '', $object, 0).' | '; + print ''; + print 'facebook).'">'; + print ' | ||||
| '.fieldLabel('Phone','phone').' | '; + print '|||||
| '.$form->editfieldkey('Phone', 'phone', '', $object, 0).' | '; print ''; - print ' | '.fieldLabel('Fax','fax').' | '; + print ''.$form->editfieldkey('Fax', 'fax', '', $object, 0).' | '; print '||
| '.fieldLabel($idprof,$key, (empty($conf->global->$idprof_mandatory)?0:1)).' | '; + print ' | '.$form->editfieldkey($idprof, $key, '', $object, 0, 'string', '', (empty($conf->global->$idprof_mandatory)?0:1)).' | '; print $formcompany->get_input_id_prof($i, $key, $object->$key, $object->country_code); print ' | '; @@ -1334,11 +1340,11 @@ else if ($j % 2 == 1) print '||
| '.fieldLabel('VATIsUsed','assujtva_value').' | '; + print '|||||
| '.$form->editfieldkey('VATIsUsed', 'assujtva_value', '', $object, 0).' | '; print ''; print $form->selectyesno('assujtva_value', GETPOSTISSET('assujtva_value')?GETPOST('assujtva_value','int'):1, 1); // Assujeti par defaut en creation print ' | '; - print ''.fieldLabel('VATIntra','intra_vat').' | '; + print ''.$form->editfieldkey('VATIntra', 'intra_vat', '', $object, 0).' | '; print ''; $s = ''; @@ -1391,18 +1397,18 @@ else } // Type - Size - print ' | |
| '.fieldLabel('ThirdPartyType','typent_id').' | '."\n"; + print ' | ||||
| '.$form->editfieldkey('ThirdPartyType', 'typent_id', '', $object, 0).' | '."\n"; $sortparam=(empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT); // NONE means we keep sort of original array, so we sort on position. ASC, means next function will sort on label. print $form->selectarray("typent_id", $formcompany->typent_array(0), $object->typent_id, 0, 0, 0, '', 0, 0, 0, $sortparam); if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1); print ' | '; - print ''.fieldLabel('Staff','effectif_id').' | '; + print ' | '.$form->editfieldkey('Staff', 'effectif_id', '', $object, 0).' | '; print $form->selectarray("effectif_id", $formcompany->effectif_array(0), $object->effectif_id); if ($user->admin) print ' '.info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"),1); print ' |
| '.fieldLabel('JuridicalStatus','forme_juridique_code').' | '; + print '|||||
| '.$form->editfieldkey('JuridicalStatus', 'forme_juridique_code', '', $object, 0).' | '; print ''; if ($object->country_id) { @@ -1415,13 +1421,13 @@ else print ' | ||||
| '.fieldLabel('Capital','capital').' | '; + print '|||||
| '.$form->editfieldkey('Capital', 'capital', '', $object, 0).' | '; print ''; print ''.$langs->trans("Currency".$conf->currency).' | ||||
| '.fieldLabel('DefaultLang','default_lang').' | '."\n"; + print ' | ||||
| '.$form->editfieldkey('DefaultLang', 'default_lang', '', $object, 0).' | '."\n"; print $formadmin->select_language(($object->default_lang?$object->default_lang:$conf->global->MAIN_LANG_DEFAULT),'default_lang',0,0,1,0,0,'maxwidth200onsmartphone'); print ' | '; print '||||
| '.fieldLabel('AllocateCommercial','commercial_id').' | '; + print ''.$form->editfieldkey('AllocateCommercial', 'commercial_id', '', $object, 0).' | '; print ''; $userlist = $form->select_dolusers('', '', 0, null, 0, '', '', 0, 0, 0, '', 0, '', '', 0, 1); // Note: If user has no right to "see all thirdparties", we for selection of sale representative to him, so after creation he can see the record. @@ -1440,7 +1446,7 @@ else if (!empty($conf->incoterm->enabled)) { print ' | |||
| '.fieldLabel('IncotermLabel','incoterm_id').' | '; + print ''.$form->editfieldkey('IncotermLabel', 'incoterm_id', '', $object, 0).' | '; print ''; print $form->select_incoterms((!empty($object->fk_incoterms) ? $object->fk_incoterms : ''), (!empty($object->location_incoterms)?$object->location_incoterms:'')); print ' | |||
| ' . fieldLabel('CustomersCategoriesShort', 'custcats') . ' | '; + print ' | ||||
| ' . $form->editfieldkey('CustomersCategoriesShort', 'custcats', '', $object, 0) . ' | '; $cate_arbo = $form->select_all_categories(Categorie::TYPE_CUSTOMER, null, 'parent', null, null, 1); print $form->multiselectarray('custcats', $cate_arbo, GETPOST('custcats', 'array'), null, null, null, null, "90%"); print " | ||||
| ' . fieldLabel('SuppliersCategoriesShort', 'suppcats') . ' | '; + print ' | ||||
| ' . $form->editfieldkey('SuppliersCategoriesShort', 'suppcats', '', $object, 0) . ' | '; $cate_arbo = $form->select_all_categories(Categorie::TYPE_SUPPLIER, null, 'parent', null, null, 1); print $form->multiselectarray('suppcats', $cate_arbo, GETPOST('suppcats', 'array'), null, null, null, null, "90%"); print " | ||||
| '.fieldLabel('Currency','multicurrency_code').' | '; + print ''.$form->editfieldkey('Currency', 'multicurrency_code', '', $object, 0).' | '; print ''; print $form->selectMultiCurrency(($object->multicurrency_code ? $object->multicurrency_code : $conf->currency), 'multicurrency_code', 1); print ' | |||
| '.fieldLabel('Logo','photoinput').' | '; + print ''.$form->editfieldkey('Logo', 'photoinput', '', $object, 0).' | '; print ''; print ''; print ' | ';|||