This commit is contained in:
Laurent Destailleur 2022-12-20 23:50:20 +01:00
parent 41f1c20d4c
commit 4dc9583607

View File

@ -1187,14 +1187,13 @@ if (!empty($arrayfields['p.import_key']['checked'])) {
print '</td>';
}
if (!empty($arrayfields['p.fk_statut']['checked'])) {
print '<td class="liste_titre nowrap right">';
print '<td class="liste_titre nowrap center">';
$arrayofstatus = array();
foreach ($object->statuts_short as $key => $val) {
$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 onrightofpage');
print ajax_combobox('search_status');
print $form->selectarray('search_status', $arrayofstatus, $search_status, 1, 0, 0, '', 0, 0, 0, '', 'maxwidth125 onrightofpage', 1);
print '</td>';
}
// Action column
@ -1298,7 +1297,7 @@ if (!empty($arrayfields['p.import_key']['checked'])) {
print_liste_field_titre($arrayfields['p.import_key']['label'], $_SERVER["PHP_SELF"], "p.import_key", "", $param, '', $sortfield, $sortorder, '');
}
if (!empty($arrayfields['p.fk_statut']['checked'])) {
print_liste_field_titre($arrayfields['p.fk_statut']['label'], $_SERVER["PHP_SELF"], "p.fk_statut", "", $param, '', $sortfield, $sortorder, 'right ');
print_liste_field_titre($arrayfields['p.fk_statut']['label'], $_SERVER["PHP_SELF"], "p.fk_statut", "", $param, '', $sortfield, $sortorder, 'center ');
}
if (empty($conf->global->MAIN_CHECKBOX_LEFT_COLUMN)) {
print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
@ -1771,7 +1770,7 @@ while ($i < $imaxinloop) {
}
// Status
if (!empty($arrayfields['p.fk_statut']['checked'])) {
print '<td class="right">'.$object->getLibStatut(5).'</td>';
print '<td class="center">'.$object->getLibStatut(5).'</td>';
if (!$i) {
$totalarray['nbfield']++;
}