36 lines
900 B
PHP
36 lines
900 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class lists extends CI_Controller {
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->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);
|
|
}
|
|
|
|
}
|
|
?>
|