public function executePaymentForm() { $this->ng_test_applicant = NgTestApplicantPeer::retrieveByPK($this->getRequestParameter('id')); $this->forward404Unless($this->ng_test_applicant); $this->actions = array(array('name' => 'save', 'type' => 'submit', 'options' => array('class' => 'save_button', 'onclick' => "action_type.value=this.value"))); array_push($this->actions, array('name' => 'cancel', 'url' => 'ng_test_applicant/list', 'color' => 'black')); $this->actions2 = array(array('name' => 'Payment Form', 'url' => 'ng_test_applicant/paymentForm?id=' . $this->ng_test_applicant->getId(), 'color' => 'sun', 'type' => 'direct')); array_unshift($this->actions2, array('name' => 'TestApplicant', 'url' => 'ng_test_applicant/list', 'color' => 'sky')); $this->subtitle = $this->ng_test_applicant->toString(); $this->type = 'edit'; $this->payment_applicant = new PaymentApplicant(); }
public function getNgTestApplicant($con = null) { include_once 'lib/model/om/BaseNgTestApplicantPeer.php'; if ($this->aNgTestApplicant === null && $this->ng_test_applicant_id !== null) { $this->aNgTestApplicant = NgTestApplicantPeer::retrieveByPK($this->ng_test_applicant_id, $con); } return $this->aNgTestApplicant; }
public function executeUpdateScore() { $this->ng_reg_period = NgRegPeriodPeer::retrieveByPK($this->getRequestParameter('ng_reg_period_id')); $this->forward404Unless($this->ng_reg_period); $scores = $this->getRequestParameter('score'); foreach ($scores as $m => $score) { $ids = split('_', $m); $ng_test_applicant = NgTestApplicantPeer::retrieveByPK($ids[1]); $ng_test_applicant->setNgStatusApplicantId(4); $ng_test_applicant->save(); } return $this->redirect('ng_reg_detail/list?id=' . $this->ng_reg_period->getId()); }