diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php index 42f2430a9cf..0024da06942 100644 --- a/htdocs/adherents/liste.php +++ b/htdocs/adherents/liste.php @@ -230,7 +230,7 @@ if ($resql) print ''; $listetype=$membertypestatic->liste_array(); - $form->select_array("type", $listetype, $_REQUEST["type"], 1, 0, 0, 0, '', 0, 12); + $form->selectarray("type", $listetype, $_REQUEST["type"], 1, 0, 0, '', 0, 12); print ''; print ' '; diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index 14434a20ee3..f344d4dd0a8 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -457,13 +457,6 @@ if ($rowid > 0) print ''; print ''; - // Type - /*print ''; - $listetype=$membertypestatic->liste_array(); - $form->select_array("type", $listetype, $_REQUEST["type"], 1, 0, 0, 0, '', 0, 12); - print ''; - */ - print ' '; print ''; diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index b05b5628662..9b21fba3eda 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -2727,21 +2727,13 @@ class Form * \param disabled Html select box is disabled * \return string HTML select string */ - function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $optionType=0, $option='', $translate=0, $maxlen=0, $disabled=0) + function selectarray($htmlname, $array, $id='', $show_empty=0, $key_in_label=0, $value_as_key=0, $option='', $translate=0, $maxlen=0, $disabled=0) { global $langs; $out=''; - // \TODO Simplify optionType and option (only one should be necessary) - if ($optionType == 1 && $option != '') - { - $out.=''; - } + $out.=''; print ''; $expedition->fetch_delivery_methods(); - $html->select_array("expedition_method_id",$expedition->meths,$expedition->expedition_method_id,1,0,0,0,"",1); + $html->selectarray("expedition_method_id",$expedition->meths,$expedition->expedition_method_id,1,0,0,"",1); print ''; print ''; } diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 3018187cf98..7280d17b4ae 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -268,16 +268,8 @@ if ($id > 0 || ! empty($ref)) // Warehouse print ''; - /*if (sizeof($user->entrepots) === 1) deprecated - { - $uentrepot = array(); - $uentrepot[$user->entrepots[0]['id']] = $user->entrepots[0]['label']; - print $html->selectarray("entrepot_".$i, $uentrepot, '', $disabled, 0, 0, 0, '', 0, 0, $disabled); - } - else - {*/ - print $html->selectarray("entrepot_".$i, $entrepot->list_array(), '', $disabled, 0, 0, 0, '', 0, 0, $disabled); - //} + print $html->selectarray("entrepot_".$i, $entrepot->list_array(), '', $disabled, 0, 0, '', 0, 0, $disabled); + print "\n"; print "\n"; }