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); $section->addInput(new Form_Select( 'sysprivs', 'Assigned privileges', $a_group['priv'], $priv_list, true ))->setHelp('Hold down CTRL (pc)/COMMAND (mac) key to select'); $form->add($section); print $form; include('foot.inc');