public function sortAction()
 {
     if ($this->_request->isPost()) {
         $tableGroup = new Default_Model_UserGroup();
         $tableGroup->sortItem($this->_arrParams, array('task' => 'admin-sort'));
         $this->_redirect($this->_mainAction);
     }
     $this->_helper->viewRenderer->setNoRender();
 }
 public function editAction()
 {
     $this->view->Title = 'Thanh viên :: Quản lý thành viên :: Sửa';
     $this->view->headTitle($this->view->Title, true);
     $tableGroup = new Default_Model_UserGroup();
     $this->view->slbGroup = $tableGroup->itemInSelectbox();
     $tblUser = new Default_Model_Users();
     $this->view->item = $tblUser->getItem($this->_arrParams, array('task' => 'admin-info'));
     if ($this->_request->isPost()) {
         $validator = new Default_Form_ValidateUser($this->_arrParams);
         if ($validator->isError() == true) {
             $this->view->messageError = $validator->getMessageError();
             $this->view->dataRight = $validator->getData();
         } else {
             $arrParam = $validator->getData(array('upload' => true));
             $tblUser = new Default_Model_Users();
             $tblUser->saveItem($arrParam, array('task' => 'admin-edit'));
             $this->_redirect($this->_mainAction);
         }
     }
 }