Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
load->library('session'); $this->load->model('Login_model'); if($this->session->userdata('type')){ if($this->session->userdata('type') == 'officer'){ $this->session->set_flashdata('flash_data', 'You don\'t have access!'); redirect('Officer'); } }else{ redirect('login'); } } /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/ * @see https://codeigniter.com/userguide3/general/urls.html */ public function index(){ $this->load->view('includes/header'); $this->load->view('pages/dashboard'); $this->load->view('includes/footer'); } public function getDistricts(){ $id = $this->input->post('id'); ?> db->where('region',$id)->get("district")->result() as $d){ ?> $this->input->post('name'), 'price'=>$this->input->post('price'), 'location'=>$this->input->post('location'), 'descriptions'=>$this->input->post('descriptions'), 'date'=>date('Y-m-d'), ); $this->db->insert('appartments',$data); redirect($_SERVER['HTTP_REFERER']); } public function editAppartment(){ $id = $this->input->post('id'); $data = array( 'name'=>$this->input->post('name'), 'price'=>$this->input->post('price'), 'location'=>$this->input->post('location'), 'descriptions'=>$this->input->post('descriptions'), ); $this->db->where('id',$id); $this->db->update('appartments',$data); redirect($_SERVER['HTTP_REFERER']); } public function addTenant(){ $data = array( 'name'=>$this->input->post('name'), 'gender'=>$this->input->post('gender'), 'phone'=>$this->input->post('phone'), 'other'=>$this->input->post('other'), 'date'=>date('Y-m-d'), ); $this->db->insert('tenant',$data); redirect($_SERVER['HTTP_REFERER']); } public function createContract(){ $data = array( 'appartmentId'=>$this->input->post('appartmentId'), 'tenantId'=>$this->input->post('tenantId'), 'duration'=>$this->input->post('duration'), 'price'=>$this->input->post('price'), 'from'=>$this->input->post('from'), 'end'=>$this->input->post('end'), 'other'=>$this->input->post('other'), 'date'=>date('Y-m-d'), ); $this->db->insert('contracts',$data); redirect($_SERVER['HTTP_REFERER']); } public function editRankType(){ $id = $this->input->post('id'); $data = array( 'name'=>$this->input->post('name'), 'level'=>$this->input->post('level'), 'course'=>$this->input->post('course'), 'exam'=>$this->input->post('exam'), 'duration'=>$this->input->post('duration'), ); $this->db->where('id',$id); $this->db->update('ranksType',$data); redirect('admin/editRankType?id='.base64_encode($id).'&sent=1'); } public function deleteEmploymentDetails(){ $this->db->where('id',base64_decode($_REQUEST['id']))->delete('employmentDetails'); redirect($_SERVER['HTTP_REFERER']); } public function deleteCourseDetails(){ $this->db->where('id',base64_decode($_REQUEST['id']))->delete('coursesAttended'); redirect($_SERVER['HTTP_REFERER']); } }