load->model('Lists_model'); } function list_enquiries() { if($this->session->userdata('id')==""){redirect('admin/login');} $data['enq']=$this->Lists_model->list_enquiry(); $this->load->view('admin/list/enquire_list',$data); } function get_enquire() { $id=$_POST['id']; $tblname="contact"; $where=array('id'=>$id);$show=('message'); $results=$this->commonsql_model->selectTable($tblname,$where,$show); $data['res']=$results; $this->load->view('admin/list/enquire_more',$data); } function list_reviews() { if($this->session->userdata('id')==""){redirect('admin/login');} $data['rev']=$this->Lists_model->list_review(); $this->load->view('admin/list/review_list',$data); } } ?>