diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index 60b47a54c7e..c2b81860210 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -843,7 +843,7 @@ if (!empty($arrayfields['d.statut']['checked'])) {
Adherent::STATUS_RESILIATED => $langs->trans("MemberStatusResiliatedShort"),
Adherent::STATUS_EXCLUDED =>$langs->trans("MemberStatusExcludedShort")
);
- print $form->selectarray('search_status', $liststatus, $search_status, -3);
+ print $form->selectarray('search_status', $liststatus, $search_status, -3, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
print '';
}
if (!empty($arrayfields['d.import_key']['checked'])) {
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index 01623e81747..cdb7a64a998 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -1432,7 +1432,7 @@ if ($resql) {
// Status
if (!empty($arrayfields['p.fk_statut']['checked'])) {
print '
';
if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER_IN_LIST)) {
diff --git a/htdocs/compta/facture/invoicetemplate_list.php b/htdocs/compta/facture/invoicetemplate_list.php
index 0426aed01f6..ae9e4c2959b 100644
--- a/htdocs/compta/facture/invoicetemplate_list.php
+++ b/htdocs/compta/facture/invoicetemplate_list.php
@@ -620,7 +620,7 @@ if ($resql) {
1=>$langs->trans("Active"),
-1=>$langs->trans("Disabled"),
);
- print $form->selectarray('search_status', $liststatus, $search_status, -2, 0, 0, '', 0, 0, 0, '', 'width100');
+ print $form->selectarray('search_status', $liststatus, $search_status, -2, 0, 0, '', 0, 0, 0, '', 'width100 onrightofpage');
print '';
}
// Action column
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index dc78d7e4b49..987c29bae70 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -1585,7 +1585,7 @@ if ($resql) {
if (!empty($arrayfields['f.fk_statut']['checked'])) {
print '| ';
$liststatus = array('0'=>$langs->trans("BillShortStatusDraft"), '0,1'=>$langs->trans("BillShortStatusDraft").'+'.$langs->trans("BillShortStatusNotPaid"), '1'=>$langs->trans("BillShortStatusNotPaid"), '1,2'=>$langs->trans("BillShortStatusNotPaid").'+'.$langs->trans("BillShortStatusPaid"), '2'=>$langs->trans("BillShortStatusPaid"), '3'=>$langs->trans("BillShortStatusCanceled"));
- print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', '', 1);
+ print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'width100 onrightofpage', 1);
print ' | ';
}
// Action column
diff --git a/htdocs/compta/sociales/list.php b/htdocs/compta/sociales/list.php
index d4ddfa0f31f..f70ed44de0c 100644
--- a/htdocs/compta/sociales/list.php
+++ b/htdocs/compta/sociales/list.php
@@ -503,7 +503,7 @@ if (!empty($arrayfields['cs.amount']['checked'])) {
if (!empty($arrayfields['cs.paye']['checked'])) {
print '';
$liststatus = array('0'=>$langs->trans("Unpaid"), '1'=>$langs->trans("Paid"));
- print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100', 1);
+ print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth100 onrightofpage', 1);
print ' | ';
}
diff --git a/htdocs/compta/tva/list.php b/htdocs/compta/tva/list.php
index 19a7cf06740..1c70cf93c22 100644
--- a/htdocs/compta/tva/list.php
+++ b/htdocs/compta/tva/list.php
@@ -400,7 +400,7 @@ if (!empty($arrayfields['t.amount']['checked'])) {
if (!empty($arrayfields['t.status']['checked'])) {
print '';
$liststatus = array('0' => $langs->trans("Unpaid"), '1' => $langs->trans("Paid"));
- print $form->selectarray('search_status', $liststatus, $search_status, 1);
+ print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
print ' | ';
}
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 4ee0a99121b..550ddfb3ae1 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -8070,7 +8070,7 @@ class Form
if (empty($nohtmlescape)) {
$selectOptionValue = dol_escape_htmltag($maxlen ?dol_trunc($value, $maxlen) : $value);
} else {
- $selectOptionValue = $maxlen ?dol_trunc($value, $maxlen) : $value;
+ $selectOptionValue = $maxlen ? dol_trunc($value, $maxlen) : $value;
}
if ($value == '' || $value == '-') {
$selectOptionValue = ' ';
@@ -9070,7 +9070,7 @@ class Form
$resultyesno .= ''."\n";
if ($addjscombo) {
- $resultyesno .= ajax_combobox($htmlname);
+ $resultyesno .= ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($useempty < 0 ? (string) $useempty : '-1'), $morecss);
}
return $resultyesno;
diff --git a/htdocs/core/class/html.formpropal.class.php b/htdocs/core/class/html.formpropal.class.php
index 87919141727..e23e71a8124 100644
--- a/htdocs/core/class/html.formpropal.class.php
+++ b/htdocs/core/class/html.formpropal.class.php
@@ -134,6 +134,6 @@ class FormPropal
}
print '';
- print ajax_combobox($htmlname);
+ print ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($showempty < 0 ? (string) $showempty : '-1'), $morecss);
}
}
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index c720e05797a..a8062d624f0 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -1183,7 +1183,7 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '', $showuserl
if (!empty($arrayfields['t.'.$key]['checked']) || !empty($arrayfields['sc.'.$key]['checked'])) {
print '';
if (in_array($key, array('statut'))) {
- print $form->selectarray('search_status', array('-1'=>'', '0'=>$contactstatic->LibStatut(0, 1), '1'=>$contactstatic->LibStatut(1, 1)), $search_status);
+ print $form->selectarray('search_status', array('-1'=>'', '0'=>$contactstatic->LibStatut(0, 1), '1'=>$contactstatic->LibStatut(1, 1)), $search_status, 0, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
} elseif (in_array($key, array('role'))) {
print $formcompany->showRoles("search_roles", $contactstatic, 'edit', $search_roles, 'minwidth200 maxwidth300');
} else {
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index ae53242d836..30f195b550b 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -448,7 +448,7 @@ print ' | | ';
print ' | ';
print '';
-print $form->selectarray('search_status', array('0'=>$langs->trans("Disabled"), '1'=>$langs->trans("Scheduled")), $search_status, 1);
+print $form->selectarray('search_status', array('0'=>$langs->trans("Disabled"), '1'=>$langs->trans("Scheduled")), $search_status, 1, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
print ' | ';
$searchpicto = $form->showFilterButtons();
print $searchpicto;
diff --git a/htdocs/don/list.php b/htdocs/don/list.php
index 2de55bbcc44..ac704571daa 100644
--- a/htdocs/don/list.php
+++ b/htdocs/don/list.php
@@ -239,7 +239,7 @@ if ($resql) {
Don::STATUS_PAID=>$langs->trans("DonationStatusPaid"),
Don::STATUS_CANCELED=>$langs->trans("Canceled")
);
- print $form->selectarray('search_status', $liststatus, $search_status, -4, 0, 0, '', 0, 0, 0, '', 'maxwidth100');
+ print $form->selectarray('search_status', $liststatus, $search_status, -4, 0, 0, '', 0, 0, 0, '', 'maxwidth100 onrightofpage');
print ' | ';
print '';
$searchpicto = $form->showFilterAndCheckAddButtons(0);
diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index e1c31e570cd..14544087647 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -787,7 +787,7 @@ if (!empty($arrayfields['e.tms']['checked'])) {
// Status
if (!empty($arrayfields['e.fk_statut']['checked'])) {
print ' | ';
- print $form->selectarray('search_status', array('0'=>$langs->trans('StatusSendingDraftShort'), '1'=>$langs->trans('StatusSendingValidatedShort'), '2'=>$langs->trans('StatusSendingProcessedShort')), $search_status, 1);
+ print $form->selectarray('search_status', array('0'=>$langs->trans('StatusSendingDraftShort'), '1'=>$langs->trans('StatusSendingValidatedShort'), '2'=>$langs->trans('StatusSendingProcessedShort')), $search_status, 1, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
print ' | ';
}
// Status billed
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index 5812cb2ba8f..a3b69d6e26c 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -575,7 +575,7 @@ if (!empty($arrayfields['f.fk_statut']['checked'])) {
if (empty($conf->global->FICHINTER_CLASSIFY_BILLED)) {
unset($liststatus[2]); // Option deprecated. In a future, billed must be managed with a dedicated field to 0 or 1
}
- print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 1);
+ print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 1, 0, 0, '', 'onrightofpage');
print '';
}
// Fields of detail line
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 7f797d7f96b..89df5cac1d2 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -1469,7 +1469,7 @@ if ($resql) {
// Status billed
if (!empty($arrayfields['cf.billed']['checked'])) {
print '';
- print $form->selectyesno('search_billed', $search_billed, 1, 0, 1, 1);
+ print $form->selectyesno('search_billed', $search_billed, 1, false, 1, 1, 'maxwidth100 onrightofpage');
print ' | ';
}
// Date valid
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 79a3862ae52..e69addd34fc 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -1221,7 +1221,7 @@ if (!empty($arrayfields['f.tms']['checked'])) {
if (!empty($arrayfields['f.fk_statut']['checked'])) {
print '';
$liststatus = array('0'=>$langs->trans("Draft"), '1'=>$langs->trans("Unpaid"), '2'=>$langs->trans("Paid"));
- print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', '', 1);
+ print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'onrightofpage', 1);
print ' | ';
}
// Action column
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index 626499e2412..5700909cd91 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -343,7 +343,7 @@ print ' | ';
print ' | ';
print ' | ';
$arraystatus = array('-1'=>' ', '0'=>$langs->trans("Draft"), '1'=>$langs->trans("Opened"), '2'=>$langs->trans("Closed"));
-print ''.$form->selectarray('search_status', $arraystatus, $search_status).' | ';
+print ''.$form->selectarray('search_status', $arraystatus, $search_status, 0, 0, 0, '', 0, 0, 0, '', 'onroghtofpage').' | ';
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_input.tpl.php';
diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php
index b0c33e61484..bd8b5a2932a 100644
--- a/htdocs/product/stock/list.php
+++ b/htdocs/product/stock/list.php
@@ -533,7 +533,7 @@ print $hookmanager->resPrint;
// Status
if (!empty($arrayfields['t.statut']['checked'])) {
print '';
- print $form->selectarray('search_status', $warehouse->statuts, $search_status, 1, 0, 0, '', 1);
+ print $form->selectarray('search_status', $warehouse->statuts, $search_status, 1, 0, 0, '', 1, 0, 0, '', 'onrightofpage');
print ' | ';
}
diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php
index b7e31fb53b6..6469aa9e0f7 100644
--- a/htdocs/projet/list.php
+++ b/htdocs/projet/list.php
@@ -1177,7 +1177,7 @@ if (!empty($arrayfields['p.fk_statut']['checked'])) {
$arrayofstatus[$key] = $langs->trans($val);
}
$arrayofstatus['99'] = $langs->trans("NotClosed").' ('.$langs->trans('Draft').' + '.$langs->trans('Opened').')';
- print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'minwidth75imp maxwidth125 selectarrowonleft');
+ print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'minwidth75imp maxwidth125 selectarrowonleft onrightofpage');
print ajax_combobox('search_status');
print '';
}
diff --git a/htdocs/salaries/list.php b/htdocs/salaries/list.php
index e0efb53915b..361107005a6 100644
--- a/htdocs/salaries/list.php
+++ b/htdocs/salaries/list.php
@@ -448,9 +448,10 @@ if (isModEnabled("banque")) {
// Amount
print ' | ';
+//Status
print '';
$liststatus = array('0' => $langs->trans("Unpaid"), '1' => $langs->trans("Paid"));
-print $form->selectarray('search_status', $liststatus, $search_status, 1);
+print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'onrightofpage');
print ' | ';
// Extra fields
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index 66ea5cf46ee..3439c3ee11d 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -845,7 +845,7 @@ if ($resql) {
// Status
if (!empty($arrayfields['sp.fk_statut']['checked'])) {
print '';
- $formpropal->selectProposalStatus($search_status, 1, 0, 1, 'supplier', 'search_status', 'minwidth75imp');
+ $formpropal->selectProposalStatus($search_status, 1, 0, 1, 'supplier', 'search_status', 'minwidth75imp onrightofpage');
print ' | ';
}
// Action column