mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Debug v20
This commit is contained in:
@@ -168,17 +168,17 @@ print '</tr>';
|
||||
// Menu top
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("DefaultMenuManager").'</td>';
|
||||
print '<td>';
|
||||
$formadmin->select_menu(!getDolGlobalString('MAIN_MENU_STANDARD_FORCED') ? $conf->global->MAIN_MENU_STANDARD : $conf->global->MAIN_MENU_STANDARD_FORCED, 'MAIN_MENU_STANDARD', $dirstandard, !getDolGlobalString('MAIN_MENU_STANDARD_FORCED') ? '' : ' disabled');
|
||||
$formadmin->select_menu(getDolGlobalString('MAIN_MENU_STANDARD_FORCED', getDolGlobalString('MAIN_MENU_STANDARD')), 'MAIN_MENU_STANDARD', $dirstandard, !getDolGlobalString('MAIN_MENU_STANDARD_FORCED') ? '' : ' disabled');
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
$formadmin->select_menu(!getDolGlobalString('MAIN_MENUFRONT_STANDARD_FORCED') ? $conf->global->MAIN_MENUFRONT_STANDARD : $conf->global->MAIN_MENUFRONT_STANDARD_FORCED, 'MAIN_MENUFRONT_STANDARD', $dirstandard, !getDolGlobalString('MAIN_MENUFRONT_STANDARD_FORCED') ? '' : ' disabled');
|
||||
$formadmin->select_menu(getDolGlobalString('MAIN_MENUFRONT_STANDARD_FORCED', getDolGlobalString('MAIN_MENUFRONT_STANDARD')), 'MAIN_MENUFRONT_STANDARD', $dirstandard, !getDolGlobalString('MAIN_MENUFRONT_STANDARD_FORCED') ? '' : ' disabled');
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Menu smartphone
|
||||
print '<tr class="oddeven"><td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>';
|
||||
print '<td>';
|
||||
$formadmin->select_menu(!getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') ? $conf->global->MAIN_MENU_SMARTPHONE : $conf->global->MAIN_MENU_SMARTPHONE_FORCED, 'MAIN_MENU_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), !getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') ? '' : ' disabled');
|
||||
$formadmin->select_menu(getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED', getDolGlobalString('MAIN_MENU_SMARTPHONE')), 'MAIN_MENU_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), !getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') ? '' : ' disabled');
|
||||
|
||||
if (getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') && preg_match('/smartphone/', $conf->global->MAIN_MENU_SMARTPHONE_FORCED)
|
||||
|| (!getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') && getDolGlobalString('MAIN_MENU_SMARTPHONE') && preg_match('/smartphone/', $conf->global->MAIN_MENU_SMARTPHONE))) {
|
||||
@@ -187,7 +187,7 @@ if (getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') && preg_match('/smartphone
|
||||
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
$formadmin->select_menu(!getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE_FORCED') ? $conf->global->MAIN_MENUFRONT_SMARTPHONE : $conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED, 'MAIN_MENUFRONT_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), !getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE_FORCED') ? '' : ' disabled');
|
||||
$formadmin->select_menu(getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE_FORCED', getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE')), 'MAIN_MENUFRONT_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), !getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE_FORCED') ? '' : ' disabled');
|
||||
|
||||
if (getDolGlobalString('MAIN_MENU_SMARTPHONE_FORCED') && preg_match('/smartphone/', $conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED)
|
||||
|| (!getDolGlobalString('MAIN_MENUFRONT_SMARTPHONE_FORCED') && getDolGlobalString('MAIN_MENU_SMARTPHONE') && preg_match('/smartphone/', $conf->global->MAIN_MENUFRONT_SMARTPHONE))) {
|
||||
|
||||
@@ -234,10 +234,16 @@ class FormAdmin
|
||||
$prefix = '3';
|
||||
}
|
||||
|
||||
$morelabel = '';
|
||||
if (preg_match('/^auguria/i', $file)) {
|
||||
$morelabel .= ' <span class="opacitymedium">('.$langs->trans("Unstable").')</span>';
|
||||
}
|
||||
if ($file == $selected) {
|
||||
$menuarray[$prefix.'_'.$file] = '<option value="'.$file.'" selected>'.$filelib.'</option>';
|
||||
$menuarray[$prefix.'_'.$file] = '<option value="'.$file.'" selected data-html="'.dol_escape_htmltag($filelib.$morelabel).'">'.$filelib.$morelabel;
|
||||
$menuarray[$prefix.'_'.$file] .= '</option>';
|
||||
} else {
|
||||
$menuarray[$prefix.'_'.$file] = '<option value="'.$file.'">'.$filelib.'</option>';
|
||||
$menuarray[$prefix.'_'.$file] = '<option value="'.$file.'" data-html="'.dol_escape_htmltag($filelib.$morelabel).'">'.$filelib.$morelabel;
|
||||
$menuarray[$prefix.'_'.$file] .= '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -254,6 +260,7 @@ class FormAdmin
|
||||
foreach ($menuarray as $key => $val) {
|
||||
$tab = explode('_', $key);
|
||||
$newprefix = $tab[0];
|
||||
|
||||
if ($newprefix == '1' && (getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1)) {
|
||||
continue;
|
||||
}
|
||||
@@ -262,7 +269,7 @@ class FormAdmin
|
||||
}
|
||||
if ($newprefix != $oldprefix) { // Add separators
|
||||
// Affiche titre
|
||||
print '<option value="-1" disabled>';
|
||||
print '<option value="-2" disabled>';
|
||||
if ($newprefix == '0') {
|
||||
print '-- '.$langs->trans("VersionRecommanded").' --';
|
||||
}
|
||||
@@ -278,10 +285,13 @@ class FormAdmin
|
||||
print '</option>';
|
||||
$oldprefix = $newprefix;
|
||||
}
|
||||
print $val."\n"; // Show menu entry
|
||||
|
||||
print $val."\n"; // Show menu entry ($val contains the <option> tags
|
||||
}
|
||||
print '</select>';
|
||||
|
||||
print ajax_combobox($htmlname);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -6165,7 +6165,8 @@ function print_barre_liste($title, $page, $file, $options = '', $sortfield = '',
|
||||
}
|
||||
|
||||
print '<td class="nobordernopadding valignmiddle col-title">';
|
||||
print '<div class="titre inline-block">'.dol_escape_htmltag($title);
|
||||
print '<div class="titre inline-block">';
|
||||
print $title; // $title may contains HTML
|
||||
if (!empty($title) && $savtotalnboflines >= 0 && (string) $savtotalnboflines != '') {
|
||||
print '<span class="opacitymedium colorblack paddingleft">('.$totalnboflines.')</span>';
|
||||
}
|
||||
|
||||
@@ -2278,6 +2278,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
||||
$userstatic->firstname = $task_time->firstname;
|
||||
$userstatic->photo = $task_time->photo;
|
||||
$userstatic->status = $task_time->user_status;
|
||||
|
||||
print $userstatic->getNomUrl(-1);
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
Reference in New Issue
Block a user