?
Current Path : /home1/savoy/www/savoyglobal.net/old_site/controllers/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/old_site/controllers/site.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Site extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ function __construct() { parent::__construct(); session_start(); $this->load->model('mastermodel'); $this->load->library('Fpaginate'); } function index($page='') { if($page=='') $page='home'; redirect('site/'.$page); } function home() { $_SESSION['page']='home'; $this->load->view('site/home'); } function about_us() { $_SESSION['page']='about_us'; $this->load->view('site/about-us'); } function team() { $_SESSION['page']='team'; $this->load->view('site/team'); } function training_services() { $_SESSION['page']='training_services'; $output=$this->mastermodel->getdatas('training','order'); $data['training']=$output['results']; $this->load->view('site/training-services',$data); } function eelps() { $_SESSION['page']='training_services'; $output=$this->mastermodel->getdatas('training','order'); $data['training']=$output['results']; $this->load->view('site/eelps',$data); } function consulting() { $_SESSION['page']='consulting'; $this->load->view('site/consulting'); } function ISO_9001_2008() { $_SESSION['page']='consulting'; $this->load->view('site/ISO_9001_2008'); } function ISO_14001_2004() { $_SESSION['page']='consulting'; $this->load->view('site/ISO_14001_2004'); } function ISO_22000_2005() { $_SESSION['page']='consulting'; $this->load->view('site/ISO_22000_2005'); } function OHSAS_18001() { $_SESSION['page']='consulting'; $this->load->view('site/OHSAS_18001'); } function contact_us() { $_SESSION['page']='contact_us'; $this->load->view('site/contact-us'); } function feedback() { $_SESSION['page']='feedback'; $this->load->view('site/feedback'); } function register() { $_SESSION['page']='register'; $this->load->view('site/register'); } function careers() { $_SESSION['page']='careers'; $this->load->view('site/careers'); } function resources() { $_SESSION['page']='resources'; $this->load->view('site/resources'); } function insurance_broking_system() { $_SESSION['page']='software_development'; $this->load->view('site/insurance-broking-system'); } function human_resource_management_solution() { $_SESSION['page']='software_development'; $this->load->view('site/human-resource-management-solution'); } function cheque_management_system() { $_SESSION['page']='software_development'; $this->load->view('site/cheque-management-system'); } function savoy_real_estate() { $_SESSION['page']='software_development'; $this->load->view('site/savoy-real-estate'); } function savoy_logistics() { $_SESSION['page']='software_development'; $this->load->view('site/savoy-logistics'); } function savoy_rent_a_car() { $_SESSION['page']='software_development'; $this->load->view('site/savoy-rent-a-car'); } function edu_plus() { $_SESSION['page']='software_development'; $this->load->view('site/edu-plus'); } function sos() { $_SESSION['page']='sos'; $this->load->view('site/stars-of-success'); } function customized_software_applications() { $_SESSION['page']='software_development'; $this->load->view('site/customized-software-applications'); } function training_registration($training_id) { $data['training']=$this->mastermodel->get_data_srow('training',$training_id,'training_id'); $_SESSION['page']='training_services'; $_SESSION['spage']='training_services'; $this->load->view('site/training-registration',$data); } function insert_contact() { $postdata = $this->mastermodel->get_post_values(); $this->mastermodel->insert_contact($postdata); $data['msg'] = "Thank You! <br/> YOU WILL HEAR FROM US SHORTLY."; $_SESSION['page']='contact_us'; $_SESSION['spage']=''; $this->load->view('site/view-message',$data); } function insert_feedback() { $postdata = $this->mastermodel->get_post_values(); $this->mastermodel->insert_feedback($postdata); $data['msg'] = "Thank You! <br/> WE VALUE YOUR SUGGESTIONS / FEEDBACK"; $_SESSION['page']='contact_us'; $_SESSION['spage']=''; $this->load->view('site/view-message',$data); } function insert_registration() { $postdata = $this->mastermodel->get_post_values(); $this->mastermodel->insert_registration($postdata); $data['msg'] = "Thank You! <br/> YOU WILL HEAR FROM US SHORTLY."; $_SESSION['page']='contact_us'; $_SESSION['spage']=''; $this->load->view('site/view-message',$data); } function insert_training_registration() { $postdata = $this->mastermodel->get_post_values(); $this->mastermodel->insert_training_registration($postdata); $data['msg'] = "Thank You! <br/> YOU WILL HEAR FROM US SHORTLY."; $_SESSION['page']='contact_us'; $_SESSION['spage']=''; $this->load->view('site/view-message',$data); } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */