MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 3.135.188.55
Web Server : Apache
System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : svymadmin ( 4072)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home4/svymadmin/public_html/site/controllers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/site/controllers/Education.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Education extends CI_Controller { 

	function __construct() 
    {
        parent::__construct();
        $this->load->database();
        $this->load->library('session');
        
        
       /*cache control*/
        $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
        $this->output->set_header('Pragma: no-cache');
        
    }
	
	public function index()
	{	
		$this->db->order_by("priority", "asc");
		$this->db->limit("4");
    	$pagedata['slider'] = $this->db->get_where('health_slider_tb', array('type' => 'education'))->result_array();

        $this->db->order_by("phc_id", "asc");
        //$this->db->limit("6");
        $pagedata['cover_data'] = $this->db->get_where('programs_health_cover_tb',array('type' => 'education'))->result_array();

        

        $this->db->order_by("area_id", "desc");
        $this->db->limit("6");
        $pagedata['areas'] = $this->db->get_where('health_areas_tb', array('type' => 'education'))->result_array();

        $this->db->order_by("lhs_id", "desc");
        $this->db->limit("6");
        $pagedata['happenings'] = $this->db->get_where('health_happenings_tb', array('type' =>'education'))->result_array();

        $this->db->order_by("num_reach_id", "desc");
        $this->db->limit("6");
        $pagedata['reached'] = $this->db->get_where('health_num_reached_tb', array('type' => 'education'))->result_array();

        $this->db->order_by("type", "asc");
        $this->db->limit("4");
        $pagedata['causes'] = $this->db->get_where('health_causes_tb')->result_array();

        $this->db->order_by("hms_id", "desc");
        $this->db->limit("6");
        $pagedata['says'] = $this->db->get_where('health_membersays_tb', array('type' =>'main'))->result_array();
        
        $this->db->order_by("e_id", "asc");
        $this->db->limit("5");
        $pagedata['expand'] = $this->db->get_where('main_expand_tb', array('type' =>'education' ))->result_array();

        $this->db->order_by("i_id", "asc");
        $this->db->limit("7");
        $pagedata['income'] = $this->db->get_where('main_income_tb', array('type' =>'education' ))->result_array();

        $this->db->order_by("moi_id", "desc");
        $this->db->limit("1");
        $pagedata['opinfo'] = $this->db->get_where('main_operation_info_tb', array('type' =>'education' ))->result_array();
        
         $this->db->order_by("id", "desc");
        $this->db->limit("1");
        $pagedata['flash'] = $this->db->get_where('flash_tb', array('type' =>'education' ))->row();

        $pagedata['color']=array( "#55C3B9", "#138BB9", "#619349", "#F89C6E", "#DF406E", "#936CAD", "#55707A");

		$this->load->helper('url');
		$this->load->view('education_v', $pagedata);
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

MMCT - 2023