print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td width="35%">'.$langs->trans("Menu").'</td>'; print '<td>'; print $html->textwithpicto($langs->trans("InternalUsers"),$langs->trans("InternalExternalDesc")); print '</td>'; print '<td>'; print $html->textwithpicto($langs->trans("ExternalUsers"),$langs->trans("InternalExternalDesc")); print '</td>'; print '</tr>'; // Menu top $var=!$var; print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMenuManager").'</td>'; print '<td>'; print $htmladmin->select_menu(empty($conf->global->MAIN_MENU_STANDARD_FORCED)?$conf->global->MAIN_MENU_STANDARD:$conf->global->MAIN_MENU_STANDARD_FORCED, 'MAIN_MENU_STANDARD', $dirtop, empty($conf->global->MAIN_MENU_STANDARD_FORCED)?'':' disabled="disabled"'); print '</td>'; print '<td>'; print $htmladmin->select_menu(empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED)?$conf->global->MAIN_MENUFRONT_STANDARD:$conf->global->MAIN_MENUFRONT_STANDARD_FORCED, 'MAIN_MENUFRONT_STANDARD', $dirtop, empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED)?'':' disabled="disabled"'); print '</td>'; print '</tr>'; // Menu smartphone $var=!$var; print '<tr '.$bc[$var].'><td>'.$langs->trans("DefaultMenuSmartphoneManager").'</td>'; print '<td>'; print $htmladmin->select_menu(empty($conf->global->MAIN_MENU_SMARTPHONE_FORCED)?$conf->global->MAIN_MENU_SMARTPHONE:$conf->global->MAIN_MENU_SMARTPHONE_FORCED, 'MAIN_MENU_SMARTPHONE', array($dirtop,$dirsmartphone), empty($conf->global->MAIN_MENU_SMARTPHONE_FORCED)?'':' disabled="disabled"'); print '</td>'; print '<td>'; print $htmladmin->select_menu(empty($conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED)?$conf->global->MAIN_MENUFRONT_SMARTPHONE:$conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED, 'MAIN_MENUFRONT_SMARTPHONE', array($dirtop,$dirsmartphone), empty($conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED)?'':' disabled="disabled"'); print '</td>';
// Gestionnaires de menu $var = true; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre"><td width="35%">' . $langs->trans("Menu") . '</td>'; print '<td>'; print $form->textwithpicto($langs->trans("InternalUsers"), $langs->trans("InternalExternalDesc")); print '</td>'; print '<td>'; print $form->textwithpicto($langs->trans("ExternalUsers"), $langs->trans("InternalExternalDesc")); print '</td>'; print '</tr>'; // Menu top $var = !$var; print '<tr ' . $bc[$var] . '><td>' . $langs->trans("DefaultMenuManager") . '</td>'; print '<td>'; $formadmin->select_menu(empty($conf->global->MAIN_MENU_STANDARD_FORCED) ? $conf->global->MAIN_MENU_STANDARD : $conf->global->MAIN_MENU_STANDARD_FORCED, 'MAIN_MENU_STANDARD', $dirstandard, empty($conf->global->MAIN_MENU_STANDARD_FORCED) ? '' : ' disabled'); print '</td>'; print '<td>'; $formadmin->select_menu(empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED) ? $conf->global->MAIN_MENUFRONT_STANDARD : $conf->global->MAIN_MENUFRONT_STANDARD_FORCED, 'MAIN_MENUFRONT_STANDARD', $dirstandard, empty($conf->global->MAIN_MENUFRONT_STANDARD_FORCED) ? '' : ' disabled'); print '</td>'; print '</tr>'; // Menu smartphone $var = !$var; print '<tr ' . $bc[$var] . '><td>' . $langs->trans("DefaultMenuSmartphoneManager") . '</td>'; print '<td>'; $formadmin->select_menu(empty($conf->global->MAIN_MENU_SMARTPHONE_FORCED) ? $conf->global->MAIN_MENU_SMARTPHONE : $conf->global->MAIN_MENU_SMARTPHONE_FORCED, 'MAIN_MENU_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), empty($conf->global->MAIN_MENU_SMARTPHONE_FORCED) ? '' : ' disabled'); print '</td>'; print '<td>'; $formadmin->select_menu(empty($conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED) ? $conf->global->MAIN_MENUFRONT_SMARTPHONE : $conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED, 'MAIN_MENUFRONT_SMARTPHONE', array_merge($dirstandard, $dirsmartphone), empty($conf->global->MAIN_MENUFRONT_SMARTPHONE_FORCED) ? '' : ' disabled'); print '</td>'; print '</tr>';