public function execute()
 {
     parent::execute();
     $request = $this->getContext()->getRequest();
     $member = $request->getAttribute("member");
     $nocList = $request->getAttribute("nocList");
     $mediaList = $request->getAttribute("mediaList");
     $countryList = $request->getAttribute("countryList");
     $stateList = $request->getAttribute("stateList");
     $affListSelected = $request->getAttribute("affListSelected");
     $affList = $request->getAttribute("affList");
     $needToApproveChanges = $request->getAttribute("needToApproveChanges");
     $certifyForAff = $request->getAttribute("certifyForAff");
     if ($member->id != 0) {
         $this->setAttribute("title", $member->getFullName() . " - ACB Database");
     } else {
         $this->setAttribute("title", "Add new member - ACB Database");
     }
     $this->setAttribute("cssFileName", "form");
     $this->setAttribute("telHome", $this->extractPhoneDetails($member->telHome));
     $this->setAttribute("member", $member);
     $this->setAttribute("nocList", $nocList);
     $this->setAttribute("mediaList", $mediaList);
     $this->setAttribute("countryList", $countryList);
     $this->setAttribute("stateList", $stateList);
     $this->setAttribute("canCertify", "false");
     $this->setAttribute("affListSelected", $affListSelected);
     $this->setAttribute("affList", $affList);
     $this->setAttribute("needToApproveChanges", $needToApproveChanges);
     $this->setAttribute("certifyForAff", $certifyForAff);
     $this->setAttribute("certificationMode", $request->getAttribute("certificationMode"));
     $this->setAttribute("userRole", $request->getAttribute("userRole"));
     $this->setAttribute("certificationDates", $request->getAttribute("certificationDates"));
 }
 public function execute()
 {
     parent::execute();
     $request = $this->getContext()->getRequest();
     $member = $request->getAttribute('member');
     $sysMessage = $request->getAttribute('sysMessage');
     $this->setAttribute('title', $member->getFullName() . ' - ACB Database');
     $this->setAttribute('cssFileName', 'view');
     $this->setAttribute('member', $member);
     $this->setAttribute('sysMessage', $sysMessage);
 }
Beispiel #3
0
 public function execute()
 {
     parent::execute();
     $this->setAttribute('title', 'Results on member search - ACB Database');
     $this->setAttribute('cssFileName', 'list');
     $request = $this->getContext()->getRequest();
     $this->setAttribute('entries', $request->getAttribute('entries'));
     $this->setAttribute('count', $request->getAttribute('count') == 0 ? 'no' : $request->getAttribute('count'));
     $this->setAttribute('first', $request->getAttribute('first'));
     $this->setAttribute('end', $request->getAttribute('end'));
     $this->setAttribute('str', $request->getAttribute('str'));
     $this->setAttribute('pageCount', $request->getAttribute('pageCount'));
     $this->setAttribute('currentPage', $request->getAttribute('currentPage'));
     $this->setAttribute("searchRequest", $request->getAttribute("searchRequest"));
     $this->setAttribute("searchUrl", $request->getAttribute("searchUrl"));
     $this->setAttribute("sortUrl", $request->getAttribute("sortUrl"));
     $this->setAttribute("sortBy", $request->getAttribute("sortBy"));
     $this->setAttribute("sortOrder", $request->getAttribute("sortOrder"));
     $this->setAttribute("allDbSearch", $request->getAttribute("allDbSearch"));
     $this->setAttribute("userRole", $request->getAttribute("userRole"));
     if ($request->getAttribute('pages')) {
         $this->setAttribute('pages', $request->getAttribute('pages'));
     }
 }