$pdata) { if (in_array($pname, $a_group['priv'])) { continue; } $list[$pname] = $pdata; } return($list); } include("head.inc"); if ($input_errors) { print_input_errors($input_errors); } if ($savemsg) { print_info_box($savemsg, 'success'); } $tab_array = array(); $tab_array[] = array(gettext("Users"), false, "system_usermanager.php"); $tab_array[] = array(gettext("Groups"), true, "system_groupmanager.php"); $tab_array[] = array(gettext("Settings"), false, "system_usermanager_settings.php"); $tab_array[] = array(gettext("Servers"), false, "system_authservers.php"); display_top_tabs($tab_array); $form = new Form; if (isset($groupid)) { $form->addGlobal(new Form_Input( 'groupid', null, 'hidden', $groupid )); } $section = new Form_Section('Add privileges for '. $a_group['name']); $priv_list = array_map(function($p){ return $p['name']; }, $priv_list); asort($priv_list, SORT_STRING|SORT_FLAG_CASE); $section->addInput(new Form_Select( 'sysprivs', 'Assigned privileges', $a_group['priv'], build_priv_list(), true ))->addClass('multiselect')->setHelp('Hold down CTRL (PC)/COMMAND (Mac) key to select multiple items.')->setAttribute('style', 'height:400px;'); $form->add($section); print $form; ?>