function changestatusAction() { $this->_helper->layout()->disableLayout(); $type = $this->_request->getParam('status', 1); $id = $this->_request->getParam('id', 0); if ($type > 0) { $type = 1; } else { $type = 0; } $current_time = new Zend_Db_Expr('NOW()'); $ngachcongchucModel = new Front_Model_NgachCongChuc(); $ngachcongchucModel->update(array('ncc_status' => $type, 'ncc_date_modified' => $current_time), 'ncc_id=' . $id); $this->_redirect('hethong/ngachcongchuc/index/page/' . $this->_page); }