diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 26c2321dd1d..85b9635f627 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -735,7 +735,7 @@ if ($action == 'edit') $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Morale"); print ''.$langs->trans("Person").''; - $html->select_array("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy); + $html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy); print ""; // Societe @@ -777,7 +777,7 @@ if ($action == 'edit') print ''.$langs->trans("Type").''; if ($user->rights->adherent->creer) { - $html->select_array("typeid", $adht->liste_array(), (isset($_POST["typeid"])?$_POST["typeid"]:$adh->typeid)); + $html->selectarray("typeid", $adht->liste_array(), (isset($_POST["typeid"])?$_POST["typeid"]:$adh->typeid)); } else { @@ -921,7 +921,7 @@ if ($action == 'create') $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Moral"); print ''.$langs->trans("Person")."\n"; - $html->select_array("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy, 1); + $html->selectarray("morphy", $morphys, isset($_POST["morphy"])?$_POST["morphy"]:$adh->morphy, 1); print "\n"; // Company @@ -963,7 +963,7 @@ if ($action == 'create') $listetype=$adht->liste_array(); if (sizeof($listetype)) { - $html->select_array("typeid", $listetype, isset($_POST["typeid"])?$_POST["typeid"]:$typeid, 1); + $html->selectarray("typeid", $listetype, isset($_POST["typeid"])?$_POST["typeid"]:$typeid, 1); } else { print ''.$langs->trans("NoTypeDefinedGoToSetup").''; } diff --git a/htdocs/adherents/options.php b/htdocs/adherents/options.php index 33a41e9715b..6b56038bbae 100644 --- a/htdocs/adherents/options.php +++ b/htdocs/adherents/options.php @@ -175,7 +175,7 @@ if ($_GET["action"] == 'create') print ''.$langs->trans("Label").''; print ''.$langs->trans("AttributeCode").' ('.$langs->trans("AlphaNumOnlyCharsAndNoSpace").')'; print ''.$langs->trans("Type").''; - $form->select_array('type',array('varchar'=>$langs->trans('String'), + $form->selectarray('type',array('varchar'=>$langs->trans('String'), 'text'=>$langs->trans('Text'), 'int'=>$langs->trans('Int'), 'date'=>$langs->trans('Date'), @@ -226,7 +226,7 @@ if ($_GET["attrname"] && $_GET["action"] == 'edit') 'int'=>$langs->trans('Int'), 'date'=>$langs->trans('Date'), 'datetime'=>$langs->trans('DateAndTime')); - //$form->select_array('type',$type2label,$type); + //$form->selectarray('type',$type2label,$type); print $type2label[$type]; print ''; print ''; diff --git a/htdocs/admin/boxes.php b/htdocs/admin/boxes.php index ec6ef3b465e..9a66b481768 100644 --- a/htdocs/admin/boxes.php +++ b/htdocs/admin/boxes.php @@ -317,7 +317,7 @@ if ($resql) // Pour chaque position possible, on affiche un lien // d'activation si boite non deja active pour cette position print ''; - print $html->select_array("pos",$pos_name); + print $html->selectarray("pos",$pos_name); print ''; print ''; print ' '; diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 353ff5d3cb5..a8121f178f8 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -840,7 +840,7 @@ function fieldList($fieldlist,$obj='') "facture"=>$langs->trans("Bill"), "facture_fourn"=>$langs->trans("SupplierBill"), "fichinter"=>$langs->trans("InterventionCard")); - $html->select_array('element', $elementList,$obj->$fieldlist[$field]); + $html->selectarray('element', $elementList,$obj->$fieldlist[$field]); print ''; } // La source de l'element (pour les type de contact).' @@ -849,7 +849,7 @@ function fieldList($fieldlist,$obj='') print ''; $elementList = array("internal"=>$langs->trans("Internal"), "external"=>$langs->trans("External")); - $html->select_array('source', $elementList,$obj->$fieldlist[$field]); + $html->selectarray('source', $elementList,$obj->$fieldlist[$field]); print ''; } elseif ($fieldlist[$field] == 'type' && $tabname[$_GET["id"]] == MAIN_DB_PREFIX."c_actioncomm") @@ -874,7 +874,7 @@ function fieldList($fieldlist,$obj='') } elseif ($fieldlist[$field]=='unit') { print ''; - $html->select_array('unit',array('mm','cm','point','inch'),$obj->$fieldlist[$field],0,0,1); + $html->selectarray('unit',array('mm','cm','point','inch'),$obj->$fieldlist[$field],0,0,1); print ''; } else diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 0e2cdf83a48..5e8267a0391 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -179,7 +179,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') // Edit //'eldy'=>$langs->trans("Yes").' (style eldy)', //'andre'=>$langs->trans("Yes").' (style andre)' ); - $html->select_array('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR); + $html->selectarray('main_popup_calendar',$liste_popup_calendar,$conf->global->MAIN_POPUP_CALENDAR); print ' ('.$langs->trans("AvailableOnlyIfJavascriptNotDisabled").')'; print ''; print ' '; diff --git a/htdocs/admin/ldap.php b/htdocs/admin/ldap.php index 1f11dab6f52..2d1a6d5d3b8 100644 --- a/htdocs/admin/ldap.php +++ b/htdocs/admin/ldap.php @@ -110,7 +110,7 @@ $arraylist=array(); $arraylist['0']=$langs->trans("No"); $arraylist['ldap2dolibarr']=$langs->trans("LDAPToDolibarr"); $arraylist['dolibarr2ldap']=$langs->trans("DolibarrToLDAP"); -$html->select_array('activesynchro',$arraylist,$conf->global->LDAP_SYNCHRO_ACTIVE); +$html->selectarray('activesynchro',$arraylist,$conf->global->LDAP_SYNCHRO_ACTIVE); print ''.$langs->trans("LDAPDnSynchroActiveExample"); if ($conf->global->LDAP_SYNCHRO_ACTIVE && ! $conf->global->LDAP_USER_DN) { @@ -126,7 +126,7 @@ if ($conf->societe->enabled) $arraylist=array(); $arraylist['0']=$langs->trans("No"); $arraylist['1']=$langs->trans("DolibarrToLDAP"); - $html->select_array('activecontact',$arraylist,$conf->global->LDAP_CONTACT_ACTIVE); + $html->selectarray('activecontact',$arraylist,$conf->global->LDAP_CONTACT_ACTIVE); print ''.$langs->trans("LDAPDnContactActiveExample").''; } @@ -138,7 +138,7 @@ if ($conf->adherent->enabled) $arraylist=array(); $arraylist['0']=$langs->trans("No"); $arraylist['1']=$langs->trans("DolibarrToLDAP"); - $html->select_array('activemembers',$arraylist,$conf->global->LDAP_MEMBER_ACTIVE); + $html->selectarray('activemembers',$arraylist,$conf->global->LDAP_MEMBER_ACTIVE); print ''.$langs->trans("LDAPDnMemberActiveExample").''; } @@ -155,7 +155,7 @@ $arraylist=array(); $arraylist['activedirectory']='Active Directory'; $arraylist['openldap']='OpenLdap'; $arraylist['egroupware']='Egroupware'; -$html->select_array('type',$arraylist,$conf->global->LDAP_SERVER_TYPE); +$html->selectarray('type',$arraylist,$conf->global->LDAP_SERVER_TYPE); print ' '; // Version @@ -164,7 +164,7 @@ print ''.$langs->trans("Version").''; $arraylist=array(); $arraylist['3']='Version 3'; $arraylist['2']='Version 2'; -$html->select_array('version',$arraylist,$conf->global->LDAP_SERVER_PROTOCOLVERSION); +$html->selectarray('version',$arraylist,$conf->global->LDAP_SERVER_PROTOCOLVERSION); print ''.$langs->trans("LDAPServerProtocolVersion").''; // Serveur primaire @@ -206,7 +206,7 @@ print ''.$langs->trans("LDAPServerUseTLS").''; $arraylist=array(); $arraylist['0']=$langs->trans("No"); $arraylist['1']=$langs->trans("Yes"); -$html->select_array('usetls',$arraylist,$conf->global->LDAP_SERVER_USE_TLS); +$html->selectarray('usetls',$arraylist,$conf->global->LDAP_SERVER_USE_TLS); print ''.$langs->trans("LDAPServerUseTLSExample").''; print ''; diff --git a/htdocs/admin/mails.php b/htdocs/admin/mails.php index 660575df4a2..cd477be5995 100644 --- a/htdocs/admin/mails.php +++ b/htdocs/admin/mails.php @@ -287,7 +287,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') // SuperAdministrator access only if ((empty($conf->global->MAIN_MODULE_MULTICOMPANY)) || ($user->admin && !$user->entity)) { - print $html->select_array('MAIN_MAIL_SENDMODE',$listofmethods,$conf->global->MAIN_MAIL_SENDMODE); + print $html->selectarray('MAIN_MAIL_SENDMODE',$listofmethods,$conf->global->MAIN_MAIL_SENDMODE); } else { diff --git a/htdocs/bookmarks/fiche.php b/htdocs/bookmarks/fiche.php index 8c0f5a9dd74..9ade71b2103 100644 --- a/htdocs/bookmarks/fiche.php +++ b/htdocs/bookmarks/fiche.php @@ -151,7 +151,7 @@ if ($action == 'create') print ''.$langs->trans("BehaviourOnClick").''; $liste=array(0=>$langs->trans("ReplaceWindow"),1=>$langs->trans("OpenANewWindow")); - $html->select_array('target',$liste,1); + $html->selectarray('target',$liste,1); print ''.$langs->trans("ChooseIfANewWindowMustBeOpenedOnClickOnBookmark").''; print ''.$langs->trans("Owner").''; @@ -212,7 +212,7 @@ if ($_GET["id"] > 0 && ! preg_match('/^add/i',$_GET["action"])) if ($_GET["action"] == 'edit') { $liste=array(1=>$langs->trans("OpenANewWindow"),0=>$langs->trans("ReplaceWindow")); - $html->select_array('target',$liste,isset($_POST["target"])?$_POST["target"]:$bookmark->target); + $html->selectarray('target',$liste,isset($_POST["target"])?$_POST["target"]:$bookmark->target); } else { diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 286c4b60f59..5dc25cfb301 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -679,7 +679,7 @@ if ($_GET["id"]) // Contact print ''.$langs->trans("Contact").''; - $html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1); + $html->selectarray("contactid", $act->societe->contact_array(), $act->contact->id, 1); print ''; // Project diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php index dd5a6c49452..96d739c5929 100644 --- a/htdocs/comm/addpropal.php +++ b/htdocs/comm/addpropal.php @@ -198,7 +198,7 @@ if ($_GET["action"] == 'create') print ''; $model=new ModelePDFPropales(); $liste=$model->liste_modeles($db); - $html->select_array('model',$liste,$conf->global->PROPALE_ADDON_PDF); + $html->selectarray('model',$liste,$conf->global->PROPALE_ADDON_PDF); print ""; // Project @@ -261,7 +261,7 @@ if ($_GET["action"] == 'create') $liste_propal[$row[0]]=$propalRefAndSocName; $i++; } - $html->select_array("copie_propal",$liste_propal, 0); + $html->selectarray("copie_propal",$liste_propal, 0); } else { diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index c23f2471e8b..8477eb637f8 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -1141,7 +1141,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer) include_once(DOL_DOCUMENT_ROOT.'/includes/modules/commande/modules_commande.php'); $model=new ModelePDFCommandes(); $liste=$model->liste_modeles($db); - $html->select_array('model',$liste,$conf->global->COMMANDE_ADDON_PDF); + $html->selectarray('model',$liste,$conf->global->COMMANDE_ADDON_PDF); print ""; // Note publique diff --git a/htdocs/compta/bank/fiche.php b/htdocs/compta/bank/fiche.php index 6e1b4f29b1e..e6786366a4a 100644 --- a/htdocs/compta/bank/fiche.php +++ b/htdocs/compta/bank/fiche.php @@ -226,7 +226,7 @@ if ($_REQUEST["action"] == 'create') // Status print ''.$langs->trans("Status").''; print ''; - $form->select_array("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos)); + $form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos)); print ''; // Country @@ -484,7 +484,7 @@ else // Status print ''.$langs->trans("Status").''; print ''; - $form->select_array("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos)); + $form->selectarray("clos",array(0=>$account->status[0],1=>$account->status[1]),(isset($_POST["clos"])?$_POST["clos"]:$account->clos)); print ''; // Country diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index f1785716734..5f211cace66 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1630,7 +1630,7 @@ if ($_GET['action'] == 'create') include_once(DOL_DOCUMENT_ROOT.'/includes/modules/facture/modules_facture.php'); $model=new ModelePDFFactures(); $liste=$model->liste_modeles($db); - $html->select_array('model',$liste,$conf->global->FACTURE_ADDON_PDF); + $html->selectarray('model',$liste,$conf->global->FACTURE_ADDON_PDF); print ""; // Note publique diff --git a/htdocs/compta/prelevement/fiche.php b/htdocs/compta/prelevement/fiche.php index a18dcb0342f..78144cbab66 100644 --- a/htdocs/compta/prelevement/fiche.php +++ b/htdocs/compta/prelevement/fiche.php @@ -207,7 +207,7 @@ if ($_GET["id"]) print $html->select_date('','','','','',"userfile"); print ''; print ''.$langs->trans("TransMetod").''; - print $html->select_array("methode",$bon->methodes_trans); + print $html->selectarray("methode",$bon->methodes_trans); print ''; print ''.$langs->trans("File").''; print ''; diff --git a/htdocs/compta/ventilation/fiche.php b/htdocs/compta/ventilation/fiche.php index 719950e68f8..4e574b9c30e 100644 --- a/htdocs/compta/ventilation/fiche.php +++ b/htdocs/compta/ventilation/fiche.php @@ -132,7 +132,7 @@ if($_GET["id"]) if($objp->fk_code_ventilation == 0) { - print $form->select_array("codeventil",$cgs, $objp->fk_code_ventilation); + print $form->selectarray("codeventil",$cgs, $objp->fk_code_ventilation); } else { diff --git a/htdocs/compta/ventilation/fournisseur/fiche.php b/htdocs/compta/ventilation/fournisseur/fiche.php index 302746bf3f2..c2cd075dea6 100644 --- a/htdocs/compta/ventilation/fournisseur/fiche.php +++ b/htdocs/compta/ventilation/fournisseur/fiche.php @@ -116,7 +116,7 @@ if($_GET["id"]) if($objp->fk_code_ventilation == 0) { - print $form->select_array("codeventil",$cgs, $objp->fk_code_ventilation); + print $form->selectarray("codeventil",$cgs, $objp->fk_code_ventilation); } else { diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 6ca3933f5b1..ee8724e1302 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -381,7 +381,7 @@ if ($user->rights->societe->contact->creer) // Visibility print ''.$langs->trans("ContactVisibility").''; $selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate")); - $form->select_array('priv',$selectarray,(isset($_POST["priv"])?$_POST["priv"]:$contact->priv),0); + $form->selectarray('priv',$selectarray,(isset($_POST["priv"])?$_POST["priv"]:$contact->priv),0); print ''; // Note @@ -495,7 +495,7 @@ if ($user->rights->societe->contact->creer) // Visibility print ''.$langs->trans("ContactVisibility").''; $selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate")); - $form->select_array('priv',$selectarray,$contact->priv,0); + $form->selectarray('priv',$selectarray,$contact->priv,0); print ''; print ''.$langs->trans("Note").''; diff --git a/htdocs/contact/index.php b/htdocs/contact/index.php index 3d8b064dd7f..3d1a64e5abe 100644 --- a/htdocs/contact/index.php +++ b/htdocs/contact/index.php @@ -273,7 +273,7 @@ if ($result) print ' '; print ''; $selectarray=array('0'=>$langs->trans("ContactPublic"),'1'=>$langs->trans("ContactPrivate")); - $form->select_array('search_priv',$selectarray,$search_priv,1); + $form->selectarray('search_priv',$selectarray,$search_priv,1); print ''; print ''; print ''; diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php index b135bc4751d..4ca1c059c7d 100644 --- a/htdocs/contrat/services.php +++ b/htdocs/contrat/services.php @@ -163,14 +163,14 @@ if ($resql) print ''; print ''; $arrayofoperators=array('<'=>'<','>'=>'>'); - print $form->select_array('filter_op1',$arrayofoperators,$_REQUEST['filter_op1'],1); + print $form->selectarray('filter_op1',$arrayofoperators,$_REQUEST['filter_op1'],1); print ' '; $filter_date1=dol_mktime(0,0,0,$_REQUEST['op1month'],$_REQUEST['op1day'],$_REQUEST['"op1year']); print $form->select_date($filter_date1,'op1',0,0,1); print ''; print ''; $arrayofoperators=array('<'=>'<','>'=>'>'); - print $form->select_array('filter_op2',$arrayofoperators,$_REQUEST['filter_op2'],1); + print $form->selectarray('filter_op2',$arrayofoperators,$_REQUEST['filter_op2'],1); print ' '; $filter_date2=dol_mktime(0,0,0,$_REQUEST['op2month'],$_REQUEST['op2day'],$_REQUEST['op2year']); print $form->select_date($filter_date2,'op2',0,0,1); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9b21fba3eda..e3e2a5f808d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2720,7 +2720,6 @@ class Form * \param show_empty 1 si il faut ajouter une valeur vide dans la liste, 0 sinon * \param key_in_label 1 pour afficher la key dans la valeur "[key] value" * \param value_as_key 1 to use value as key - * \param optionType Type de l'option: 1 pour des fonctions javascript * \param option Valeur de l'option en fonction du type choisi * \param translate Traduire la valeur * \param maxlen Length maximum for labels @@ -2782,7 +2781,6 @@ class Form * \param show_empty 1 si il faut ajouter une valeur vide dans la liste, 0 sinon * \param key_in_label 1 pour afficher la key dans la valeur "[key] value" * \param value_as_key 1 to use value as key - * \param optionType Type de l'option: 1 pour des fonctions javascript * \param option Valeur de l'option en fonction du type choisi * \param translate Traduire la valeur * \param maxlen Length maximum for labels diff --git a/htdocs/core/class/html.formactions.class.php b/htdocs/core/class/html.formactions.class.php index e4d3605ef97..fa08d07b5b8 100644 --- a/htdocs/core/class/html.formactions.class.php +++ b/htdocs/core/class/html.formactions.class.php @@ -174,7 +174,7 @@ class FormActions $arraylist[0]=' '; asort($arraylist); - $form->select_array($htmlname, $arraylist, $selected); + $form->selectarray($htmlname, $arraylist, $selected); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); } diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index 19c97138c72..a4fcda143d9 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -354,7 +354,7 @@ class FormMail $liste[$key]=$value; } print " ".$langs->trans("or")." "; - $form->select_array("receivercc", $liste, isset($_REQUEST["receivercc"])?$_REQUEST["receivercc"]:0); + $form->selectarray("receivercc", $liste, isset($_REQUEST["receivercc"])?$_REQUEST["receivercc"]:0); } } print "\n"; @@ -384,7 +384,7 @@ class FormMail $liste[$key]=$value; } print " ".$langs->trans("or")." "; - $form->select_array("receiverccc", $liste, isset($_REQUEST["receiverccc"])?$_REQUEST["receiverccc"]:0); + $form->selectarray("receiverccc", $liste, isset($_REQUEST["receiverccc"])?$_REQUEST["receiverccc"]:0); } } print "\n"; diff --git a/htdocs/core/class/html.formorder.class.php b/htdocs/core/class/html.formorder.class.php index ce818810813..9a6d2db0e61 100644 --- a/htdocs/core/class/html.formorder.class.php +++ b/htdocs/core/class/html.formorder.class.php @@ -108,7 +108,7 @@ class FormOrder return -1; } - print $form->select_array($htmlname,$listemethodes,$selected,$addempty); + print $form->selectarray($htmlname,$listemethodes,$selected,$addempty); return 1; } diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index f8fe080ade6..f70de61d484 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -509,7 +509,7 @@ if ($_GET["action"] == 'create') print ''; $model=new ModelePDFFicheinter(); $liste=$model->liste_modeles($db); - $html->select_array('model',$liste,$conf->global->FICHEINTER_ADDON_PDF); + $html->selectarray('model',$liste,$conf->global->FICHEINTER_ADDON_PDF); print ""; // Description (must be a textarea and not html must be allowed (used in list view) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index ad9acd1fada..8b697baa38c 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1385,7 +1385,7 @@ if ($id > 0 || ! empty($ref)) $liv['nev'] = $langs->trans("NeverReceived"); $liv['can'] = $langs->trans("Canceled"); - print $html->select_array("type",$liv); + print $html->selectarray("type",$liv); print ''; print ''.$langs->trans("Comment").''; diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 20b1f340ec4..0625b4b0211 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -670,13 +670,13 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ // On sell print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')'.''; $statutarray=array('1' => $langs->trans("OnSell"), '0' => $langs->trans("NotOnSell")); - $html->select_array('statut',$statutarray,$_POST["statut"]); + $html->selectarray('statut',$statutarray,$_POST["statut"]); print ''; // To buy print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'.''; $statutarray=array('1' => $langs->trans("ProductStatusOnBuy"), '0' => $langs->trans("ProductStatusNotOnBuy")); - $html->select_array('statut_buy',$statutarray,$_POST["statut_buy"]); + $html->selectarray('statut_buy',$statutarray,$_POST["statut_buy"]); print ''; // Stock min level @@ -714,7 +714,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ { print ''.$langs->trans("Nature").''; $statutarray=array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - $html->select_array('finished',$statutarray,$_POST["finished"]); + $html->selectarray('finished',$statutarray,$_POST["finished"]); print ''; } @@ -944,7 +944,7 @@ if ($_GET["id"] || $_GET["ref"]) { print ''.$langs->trans("Nature").''; $statutarray=array('-1'=>' ', '1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - $html->select_array('finished',$statutarray,$product->finished); + $html->selectarray('finished',$statutarray,$product->finished); print ''; } @@ -1378,7 +1378,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) print ''; print ''; print $langs->trans("OtherPropals").''; - $html->select_array("propalid", $otherprop); + $html->selectarray("propalid", $otherprop); print ''; print ''.$langs->trans("Qty"); print ''.$langs->trans("ReductionShort"); @@ -1496,7 +1496,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) print ''; print ''; print $langs->trans("OtherOrders").''; - $html->select_array("commandeid", $othercom); + $html->selectarray("commandeid", $othercom); print ''; print ''.$langs->trans("Qty"); print ''.$langs->trans("ReductionShort"); diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 05aea54648a..ebded3fd57b 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -285,7 +285,7 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) // Public print ''.$langs->trans("Visibility").''; $array=array(0 => $langs->trans("PrivateProject"),1 => $langs->trans("SharedProject")); - $html->select_array('public',$array,$project->public); + $html->selectarray('public',$array,$project->public); print ''; // Date start @@ -380,7 +380,7 @@ else // Visibility print ''.$langs->trans("Visibility").''; $array=array(0 => $langs->trans("PrivateProject"),1 => $langs->trans("SharedProject")); - $html->select_array('public',$array,$project->public); + $html->selectarray('public',$array,$project->public); print ''; // Statut diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index 847b8040b25..c0617c25d7c 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -249,14 +249,14 @@ print ''; print ''."\n"; print '\n"; print ''."\n"; $morphys["phy"] = $langs->trans("Physical"); $morphys["mor"] = $langs->trans("Moral"); print '\n"; print ''; diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index cf513e0d1bd..1bc5a238f96 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -187,10 +187,10 @@ if ( $soc->fetch($soc->id) ) print ''; print ''; print ''; print ''; print ''; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 243685c2ded..9a57c4b9b3f 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -540,7 +540,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') { print ''; print ''; } } @@ -648,11 +648,11 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; print ''; print ''; @@ -943,7 +943,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') { print ''; print ''; } } @@ -1092,11 +1092,11 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') print ''; print ''; print ''; diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 62da7c7355e..c7bb812bc49 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -550,7 +550,7 @@ if (($action == 'create') || ($action == 'adduserldap')) print ''; print '
'.$langs->trans("Type").''; -$html->select_array("type", $adht->liste_array()); +$html->selectarray("type", $adht->liste_array()); print "
'.$langs->trans("MorPhy")."\n"; -$html->select_array("morphy", $morphys); +$html->selectarray("morphy", $morphys); print "
'; - $html->select_array("contactid",$soc->contact_email_array()); + $html->selectarray("contactid",$soc->contact_email_array()); print ''; - $html->select_array("actionid",$actions); + $html->selectarray("actionid",$actions); print '
'.$langs->trans('SupplierCategory').''; - $form->select_array("fournisseur_categorie",$soc->SupplierCategories,$_POST["fournisseur_categorie"],1); + $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,$_POST["fournisseur_categorie"],1); print '
'.$langs->trans("Type").''."\n"; - $form->select_array("typent_id",$formcompany->typent_array(0), $soc->typent_id); + $form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''.$langs->trans("Staff").''; - $form->select_array("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id); + $form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print '
'.$langs->trans('SupplierCategory').''; - $form->select_array("fournisseur_categorie",$soc->SupplierCategories,'',1); + $form->selectarray("fournisseur_categorie",$soc->SupplierCategories,'',1); print '
'.$langs->trans("Type").''; - $form->select_array("typent_id",$formcompany->typent_array(0), $soc->typent_id); + $form->selectarray("typent_id",$formcompany->typent_array(0), $soc->typent_id); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print ''.$langs->trans("Staff").''; - $form->select_array("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id); + $form->selectarray("effectif_id",$formcompany->effectif_array(0), $soc->effectif_id); if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionnarySetup"),1); print '
'; print ''; - print $html->select_array('users', $liste, '', 1); + print $html->selectarray('users', $liste, '', 1); print ''; print ''; print '
'; @@ -1265,7 +1265,7 @@ else print ''."\n"; print ''."\n"; print ''."\n"; diff --git a/htdocs/user/group/fiche.php b/htdocs/user/group/fiche.php index c13c465ef1b..45e59890e5b 100644 --- a/htdocs/user/group/fiche.php +++ b/htdocs/user/group/fiche.php @@ -431,7 +431,7 @@ else print ''."\n"; //print ''."\n"; print ''."\n";
'.$langs->trans("GroupsToAdd").''; - print $form->select_array("group",$uss); + print $form->selectarray("group",$uss); print '   '; print ''; print '
'.$langs->trans("NonAffectedUsers").'
'.$langs->trans("UsersToAdd").''; - print $form->select_array("user",$uss,'',1); + print $form->selectarray("user",$uss,'',1); print '   '; print ''; print '