コード例 #1
0
ファイル: CapitalController.php プロジェクト: samlanh/lnms
 public function indexAction()
 {
     try {
         $db = new Capital_Model_DbTable_DbCapital();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('search' => '', 'status' => -1);
         }
         $rs_rows = $db->getAllCapital($search);
         $glClass = new Application_Model_GlobalClass();
         //status
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("សាខា", "ថ្ងៃ", "សម្គាល់", "ចំនួនប្រាក់ដុល្លា", "ចំនួនប្រាក់រៀល", "ចំនួនប្រាក់បាត", "ស្ថានភាព");
         $link = array('module' => 'capital', 'controller' => 'capital', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('branch_namekh' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
     $fm = new Capital_Form_FrmCapitale();
     $frm = $fm->frmSearch();
     Application_Model_Decorator::removeAllDecorator($frm);
     $this->view->frm = $frm;
 }
コード例 #2
0
 public function indexAction()
 {
     try {
         $db = new Capital_Model_DbTable_DbCapital();
         $rs_rows = $db->getAllCapital();
         //	print_r($rs_rows);exit();
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("ឈ្មោះបុគ្គលិក", "លេខសំគាល់ខ្លួន ", "កាល​បរិច្ឆេទ", "ប្រភេទប្រាក់", "ចំនួនប្រាក់", "សំគាល់", "Status");
         $link = array('module' => 'capital', 'controller' => 'index', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('first_name' => $link, 'date' => $link, 'amount_dolla' => $link));
     } catch (Exception $e) {
         Application_Form_FrmMessage::message("Application Error");
         echo $e->getMessage();
         Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());
     }
 }