public function executeProcess(sfWebRequest $request) { slot('nav_menu', array('members', 'pending-application')); $this->application_temp = ApplicationTempPeer::retrieveByPk($request->getParameter('id')); $this->forward404Unless($this->application_temp); $this->processFilter($request); $this->pager = PersonPeer::getNotInMemberPager($this->max, $this->page, $this->application_temp->getFirstName(), $this->application_temp->getLastName(), $this->application_temp->getGender(), null, null, null, null, null, null, null, $this->application_temp->getZipcode()); $this->people = $this->pager->getResults(); }
/** * Searches for person to add member record to * CODE: person_index, member_create */ public function executeFind(sfWebRequest $request) { #Security if (!$this->getUser()->hasCredential(array('Administrator', 'Staff', 'Member'), false)) { $this->getUser()->setFlash("warning", 'You don\'t have permission to access this url ' . $request->getReferer()); $this->redirect('dashboard/index'); } # filter Person Find $this->processFilter2($request); $this->pager = PersonPeer::getNotInMemberPager($this->max, $this->page, $this->firstname, $this->lastname, $this->gender, $this->city, $this->state, $this->country, $this->county, $this->deceased, $this->deceased_until, $this->deceased_after); $this->persons = $this->pager->getResults(); $this->date_widget = new widgetFormDate(array('format_date' => array('js' => 'mm/dd/yy', 'php' => 'm/d/Y')), array('class' => 'text')); }