addColumn('no', 'no') ->addColumn('text', 'firstName', array('orderBy' => 'firstName', 'attribs' => array('width' => 120))) ->addColumn('text', 'lastName', array('orderBy' => 'lastName', 'attribs' => array('width' => 200))) ->addColumn('text', 'login', array('orderBy' => 'login', 'attribs' => array('width' => 100))) ->addColumn('email', 'email', array('orderBy' => 'email', 'attribs' => array('width' => 200))) ->addColumn('options', 'options'); return $this; } protected function _getNewForm() { $form = parent::_getNewForm(); $form->password->setRequired(); $form->confirmPassword->setRequired(); return $form; } protected function _bindFormFields(Qs_Form $form) { parent::_bindFormFields($form); $form->addElement( 'multiCheckbox', 'permission', array( 'label' => 'Select User Permissions', 'multiOptions' => $this->dataObj->getDPermission4Select('*', null, null, 'id') ) ); $form->addElement( 'multiCheckbox', 'departmentId', array( 'label' => 'Select Departments', 'multiOptions' => $this->dataObj->getDepartment4Select() ) ); return $this; } }