public function getAdminPagerTags() { PHPWS_Core::initModClass('hms', 'StudentFactory.php'); PHPWS_Core::initModClass('hms', 'Term.php'); $student = StudentFactory::getStudentByUsername($this->username, Term::getCurrentTerm()); $rlc_list = HMS_Learning_Community::getRlcList(); $tags = array(); $tags['NAME'] = $student->getProfileLink(); $rlcCmd = CommandFactory::getCommand('ShowRlcApplicationReView'); $rlcCmd->setAppId($this->getId()); $tags['1ST_CHOICE'] = $rlcCmd->getLink($rlc_list[$this->getFirstChoice()], '_blank'); if (isset($rlc_list[$this->getSecondChoice()])) { $tags['2ND_CHOICE'] = $rlc_list[$this->getSecondChoice()]; } if (isset($rlc_list[$this->getThirdChoice()])) { $tags['3RD_CHOICE'] = $rlc_list[$this->getThirdChoice()]; } $tags['FINAL_RLC'] = HMS_RLC_Application::generateRLCDropDown($rlc_list, $this->getID()); $tags['CLASS'] = $student->getClass(); // $tags['SPECIAL_POP'] = ; // $tags['MAJOR'] = ; // $tags['HS_GPA'] = ; $tags['GENDER'] = $student->getPrintableGender(); $tags['DATE_SUBMITTED'] = date('d-M-y', $this->getDateSubmitted()); $denyCmd = CommandFactory::getCommand('DenyRlcApplication'); $denyCmd->setApplicationId($this->getID()); $tags['DENY'] = $denyCmd->getLink('Deny'); return $tags; }
/** * Get form for approving application for specific community. */ private function getApprovalForm() { $approveForm = new PHPWS_Form('approve_form'); $approveForm->addSubmit('approve', 'Approve'); $approveForm->addCssClass('approve', 'btn btn-md btn-success'); $approveCmd = CommandFactory::getCommand('AssignRlcApplicants'); $tpl = array(); $tpl['RLC_LIST'] = HMS_RLC_Application::generateRLCDropDown(HMS_Learning_Community::getRlcList(), $this->application->id); $approveForm->mergeTemplate($tpl); $approveCmd->initForm($approveForm); return $approveForm; }