mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v20 - popup of combo go out of screen
This commit is contained in:
parent
856b23ddcb
commit
10e0f6f2ab
|
|
@ -57,15 +57,16 @@ class FormExpenseReport
|
|||
* @param string $htmlname Name of HTML select
|
||||
* @param int $useempty 1=Add empty line
|
||||
* @param int $useshortlabel Use short labels
|
||||
* @param string $morecss More CSS
|
||||
* @return string HTML select with status
|
||||
*/
|
||||
public function selectExpensereportStatus($selected = 0, $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0)
|
||||
public function selectExpensereportStatus($selected = 0, $htmlname = 'fk_statut', $useempty = 1, $useshortlabel = 0, $morecss = '')
|
||||
{
|
||||
global $langs;
|
||||
|
||||
$tmpep = new ExpenseReport($this->db);
|
||||
|
||||
$html = '<select class="flat" id="'.$htmlname.'" name="'.$htmlname.'">';
|
||||
$html = '<select class="flat'.($morecss ? ' '.$morecss : '').'" id="'.$htmlname.'" name="'.$htmlname.'">';
|
||||
if ($useempty) {
|
||||
$html.='<option value="-1"> </option>';
|
||||
}
|
||||
|
|
@ -82,9 +83,10 @@ class FormExpenseReport
|
|||
$html .= $langs->trans($val);
|
||||
$html .= '</option>';
|
||||
}
|
||||
$html .= '</select>';
|
||||
$html .= ajax_combobox($htmlname);
|
||||
print $html;
|
||||
$html .= '</select>'."\n";
|
||||
|
||||
$html .= ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($useempty < 0 ? (string) $useempty : '-1'), $morecss);
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ if (!empty($arrayfields['d.tms']['checked'])) {
|
|||
// Status
|
||||
if (!empty($arrayfields['d.fk_statut']['checked'])) {
|
||||
print '<td class="liste_titre center parentonrightofpage">';
|
||||
$formexpensereport->selectExpensereportStatus($search_status, 'search_status', 1, 1);
|
||||
print $formexpensereport->selectExpensereportStatus($search_status, 'search_status', 1, 1, 'search_status width100 onrightofpage');
|
||||
print '</td>';
|
||||
}
|
||||
// Action column
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user