public function addAction()
 {
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         $_model = new Registrar_Model_DbTable_DbwuRegister();
         //print_r($_data);exit();
         $_model->AddNewStudent($_data);
     }
     $frm = new Registrar_Form_FrmRegister();
     $frm_register = $frm->FrmRegistarWU();
     Application_Model_Decorator::removeAllDecorator($frm_register);
     $this->view->frm_register = $frm_register;
     //        $_marjor =array();
     //        $this->view->marjorlist = $_marjor;
     //        $model = new Application_Model_DbTable_DbGlobal();
     //        $_marjorlist = $model->getMarjorById();
     //        $this->view->marjorlist = $_marjorlist;
     $key = new Application_Model_DbTable_DbKeycode();
     $this->view->keycode = $key->getKeyCodeMiniInv(TRUE);
     $model = new Application_Form_FrmGlobal();
     $this->view->footer = $model->getReceiptFooter();
     $this->view->invoice_no = Application_Model_GlobalClass::getInvoiceNo();
     // echo Application_Model_GlobalClass::getInvoiceNo();
     $__student_card = array();
     $this->view->student_card = $__student_card;
     $db = new Registrar_Model_DbTable_DbwuRegister();
     $this->view->invoice_num = $db->getGaneratInvoiceWU();
     // echo $db->getGaneratInvoiceWU();
 }
 public function addAction()
 {
     $frm = new Registrar_Form_FrmRegister();
     $frm_request = $frm->FrmStudentRequest();
     Application_Model_Decorator::removeAllDecorator($frm_request);
     $this->view->frm_request = $frm_request;
     $key = new Application_Model_DbTable_DbKeycode();
     $this->view->keycode = $key->getKeyCodeMiniInv(TRUE);
 }
Example #3
0
 public function wuRegisterAction()
 {
     $frm = new Registrar_Form_FrmRegister();
     $frm_register = $frm->FrmRegistarWU();
     Application_Model_Decorator::removeAllDecorator($frm_register);
     $this->view->frm_register = $frm_register;
     //        $_marjor = array();
     //        array_unshift($_marjor, array ( 'id' => -1, 'name' => 'បន្ថែម​អ្នក​ទទួល​ថ្មី') );
     //        $this->view->marjorlist = $_marjor;
     $key = new Application_Model_DbTable_DbKeycode();
     $this->view->keycode = $key->getKeyCodeMiniInv(TRUE);
     $model = new Application_Form_FrmGlobal();
     $this->view->footer = $model->getReceiptFooter();
 }