public function DataAction($type = '')
 {
     if ($this->request->isPost()) {
         // Delete
         if ($type == 'delete') {
             $id = $this->request->getPost('id');
             $arr = json_decode($id);
             foreach ($arr as $val) {
                 $data = LogAdminLogin::findFirst('id=' . $val);
                 if ($data->delete() == FALSE) {
                     $this->response->redirect('Result/err');
                 }
             }
             $this->response->redirect('Result/suc/LogAdminLogin');
         }
     } else {
         return FALSE;
     }
 }