https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/kanvakanva.com/public_html/application/controllers/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/kanvakanva.com/public_html/application/controllers/admin/Stat_customers.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Stat_customers extends Admin_Controller {
		
	function __construct() {
		parent::__construct();
		$this->load->model('stat_customers_m');	
	} 
		
	//this is to list all home_slideshow  
	public function index() {
		$date = strtotime("+0 day");
		$start_date = date( 'Y-m-d' , strtotime("-7 day", $date));
		$end_date = date( 'Y-m-d' , strtotime("+0 day", $date));

		$this->get_data($start_date, $end_date);

		//load view
		$this->data['subview'] = 'admin/stat_customers/index';
		$this->load->view('admin/templates/header', $this->data); 
		$this->load->view('admin/_layout_main', $this->data);
		$this->load->view('admin/templates/footer', $this->data);		
    }

    public function filter_date() {
		$data = explode(" - ", $this->input->post('daterange') );
		$start_date = $data[0];
    	$end_date = $data[1];

		$this->get_data($start_date, $end_date);

		//load view
		$this->data['subview'] = 'admin/stat_customers/index';
		$this->load->view('admin/templates/header', $this->data); 
		$this->load->view('admin/_layout_main', $this->data);
		$this->load->view('admin/templates/footer', $this->data);		
    }

    public function get_data($start_date, $end_date) {

		$end_date_filter = date('Y-m-d', strtotime("+1 day", strtotime($end_date)));

		// make aray data statistic
	    $this->data['all_data'] = $this->stat_customers_m->get_customers_spent($start_date, $end_date_filter);
	    $this->data['map_data'] = $this->stat_customers_m->get_spent_per_province($start_date, $end_date_filter);
		
		$this->data['start_date'] = $start_date;
		$this->data['end_date'] = $end_date;

    }


	
}

https://t.me/RX1948 - 2025