Esempio n. 1
0
 public function executeStep5(sfWebRequest $request)
 {
     $application_temp = ApplicationTempPeer::retrieveByPK($request->getParameter('id'));
     $this->forward404Unless($application_temp);
     $this->exp = $request->getParameter('exp');
     $is_pilot = $application_temp->getApplicantPilot();
     //Farazi Get Member Class information
     $member = MemberPeer::retrieveByPK($application_temp->getMemberId());
     $this->memberclass = MemberClassPeer::retrieveByPK($member->getMemberClassId());
     $this->total_amount = $this->memberclass->getRenewalFee();
     $this->donation_amount = $request->getParameter('donation_amount');
     //print_r($memberclass);
     $this->form1 = new ApplicationTempStep1Form($application_temp);
     $this->form2 = new ApplicationTempStep2Form($application_temp, array('pilot' => $is_pilot));
     if ($is_pilot) {
         $this->form3 = new ApplicationTempStep3Form($application_temp);
     }
     $this->form4_widget = $this->getAgreeWidget($this->form2);
     $this->form5 = new ApplicationTempStep5Form($application_temp);
     $this->setTemplate('steps');
 }
Esempio n. 2
0
 public function executeStep5(sfWebRequest $request)
 {
     $application_temp = ApplicationTempPeer::retrieveByPK($request->getParameter('id'));
     $this->forward404Unless($application_temp);
     $is_pilot = $application_temp->getApplicantPilot();
     $this->form1 = new ApplicationTempStep1Form($application_temp);
     $this->form2 = new ApplicationTempStep2Form($application_temp, array('pilot' => $is_pilot));
     if ($is_pilot) {
         $this->form3 = new ApplicationTempStep3Form($application_temp);
     }
     $this->form4_widget = $this->getAgreeWidget($this->form2);
     $this->form5 = new ApplicationTempStep5Form($application_temp);
     if ($this->getUser()->hasFlash('pendingMemberTaintedvalue')) {
         $this->form5->bind($this->getUser()->getFlash('pendingMemberTaintedvalue'));
     }
     $this->setTemplate('steps');
 }