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/crm_cafsindia_com/application/controllers/Dropped_leads.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("Secure_Controller.php");
class Dropped_leads extends Secure_Controller{

    public function __construct(){
        parent::__construct('dropped_leads');
        $this->load->model('Dropped_leads_model');
        $this->load->model('Customer');
    }

    public function index(){
        if(!$this->Appconfig->isAppvalid()){
                redirect('config');
        }
        $data['table_headers'] = $this->xss_clean(get_dropped_leads_table_headers());
        $this->load->view('dropped_leads/manage',$data);
    }

    public function search(){
        $search = $this->input->get('search');
        $limit = $this->input->get('limit');
        $offset = $this->input->get('offset');
        $sort = $this->input->get('sort');
        $order = $this->input->get('order');
        $filters = array('start_date' => $this->input->get('start_date'), 'end_date' => $this->input->get('end_date'));
        $all_leads = $this->Dropped_leads_model->search($search, $filters, $limit, $offset, $sort, $order);
        $total_rows = $this->Dropped_leads_model->get_found_rows($search, $filters);
        $data_rows = array();
        foreach($all_leads->result() as $leads){
            $data_rows[] = $this->xss_clean(get_all_leads_data_row($leads, $this));
            //$data_rows[] = get_all_leads_data_row($leads, $this);
        }
        echo json_encode(array('total' => $total_rows, 'rows' => $data_rows));
    }
}
?>