MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/allyindian_com/sbltt/application/controllers/Search_customer.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("Secure_Controller.php");
class Search_customer extends Secure_Controller{
	public function __construct(){
		parent::__construct('search_customer');
		$this->load->model('Search_customer_model');
	}
	
	public function index(){
		if(!$this->Appconfig->isAppvalid()){
			redirect('config');
		}
		$this->load->view('search_customer/manage');
	}
	
	public function suggest_customer(){
		$search = $this->input->get('term');
		$suggestions = $this->xss_clean($this->Search_customer_model->get_customer_suggestions($search));
		echo json_encode($suggestions);
	}
	
	public function get_search_info(){
		$cust_id = $this->input->post('cust_id');
		$customer_info       = $this->Search_customer_model->customer_info($cust_id);
		$enquiry_info        = $this->Search_customer_model->enquiry_info($cust_id);
		$booking_info        = $this->Search_customer_model->booking_info($cust_id);
		$operation_info      = $this->Search_customer_model->operation_info($cust_id);
		$package_info        = $this->Search_customer_model->package_info($cust_id);
		$temple_info         = $this->Search_customer_model->temple_info($cust_id);
		$enquiry_summary     = $this->Search_customer_model->enquiry_summary($cust_id);	
		$booking_summary     = $this->Search_customer_model->booking_summary($cust_id);
		$package_summary     = $this->Search_customer_model->package_summary($cust_id);
		$line_summary        = $this->Search_customer_model->line_summary($cust_id);
		$vehicle_summary     = $this->Search_customer_model->vehicle_summary($cust_id);
		echo json_encode(array('success' => TRUE, 'customer_info' => $customer_info, 'enquiry_info' => $enquiry_info, 'booking_info' => $booking_info, 'operation_info' => $operation_info, 'package_info' => $package_info, 'temple_info' => $temple_info, 'enquiry_summary' => $enquiry_summary, 'booking_summary' => $booking_summary, 'package_summary' => $package_summary, 'line_summary' => $line_summary, 'vehicle_summary' => $vehicle_summary));
	}
}
?>