function Home() { parent::Controller(); $this->load->model('home_model'); $this->load->model('user_model'); $this->load->model('admin_model'); $this->load->helper('check_login'); $this->load->helper('breadcrumb'); //$this->load->library('Adodbx'); }
function Approve_garage_motor() { parent::Controller(); if ($this->session->userdata('user_logged') != "yes:takafuluser" || !in_array('claims_level_1_approval', $this->session->userdata('access'))) { redirect(base_url() . 'index.php/home'); exit; } $this->load->model('claims/claims_motor_private_model'); $this->load->model('claims/common_model'); }
public function __construct() { parent::Controller(); $this->load->helper('html'); $this->load->helper('url'); $this->load->library('pagination'); $this->load->library('html'); $this->load->library('form_validation'); $this->load->model('almacen/marca_model'); $this->somevar['compania'] = $this->session->userdata('compania'); }
function Grader() { parent::Controller(); $this->load->model('home_model'); $this->load->model('user_model'); $this->load->model('admin_model'); $this->load->helper('check_login'); $this->load->helper('breadcrumb'); if (!user_login()) { redirect('main/home/user_login'); } }
function notifica() { parent::Controller(); $this->load->library('rapyd'); $this->config->load('notifica'); $this->error = ''; $this->adjuntos = null; $this->embededimage = array(); $this->msj = ''; $this->tipo = 'txt'; $this->nmonit = true; //Colocar en false para obmitir el mensaje de cuenta no monitoreada $this->instalar(); }
function Claim_documentation() { ob_start(); parent::Controller(); if ($this->session->userdata('user_logged') != "yes:takafuluser" || !in_array('claims_access', $this->session->userdata('access'))) { redirect(base_url() . 'index.php/home'); exit; } if (isset($_GET['bl'])) { $enc_business_line = $this->input->get('bl'); $dc_business_line = base64_decode($enc_business_line); switch ($dc_business_line) { case 1: $this->load->model('claims/claims_motor_private_model', 'claim_model'); break; case 2: $this->load->model('claims/claims_fire_model', 'claim_model'); break; case 3: $this->load->model('claims/claims_theft_model', 'claim_model'); break; case 4: $this->load->model('claims/claims_general_model', 'claim_model'); break; case 5: $this->load->model('claims/claims_liability_model', 'claim_model'); break; case 6: $this->load->model('claims/claims_engg_model', 'claim_model'); break; case 7: $this->load->model('claims/claims_misc_model', 'claim_model'); break; case 8: $this->load->model('claims/claims_marine_model', 'claim_model'); break; } } $this->load->model('claims/common_model'); $this->load->model('claims/claim_documentation_model'); $this->load->helper(array('form', 'url')); }
function View_policy_cliam_details() { parent::Controller(); if ($this->session->userdata('user_logged') != "yes:takafuluser") { redirect(base_url() . 'index.php/home'); exit; } if (isset($_GET['bl'])) { $enc_business_line = $this->input->get('bl'); $dc_business_line = base64_decode($enc_business_line); switch ($dc_business_line) { case 1: $this->load->model('claims/claims_motor_private_model', 'claim_model'); break; case 2: $this->load->model('claims/claims_fire_model', 'claim_model'); break; case 3: $this->load->model('claims/claims_theft_model', 'claim_model'); break; case 4: $this->load->model('claims/claims_general_model', 'claim_model'); break; case 5: $this->load->model('claims/claims_liability_model', 'claim_model'); break; case 6: $this->load->model('claims/claims_engg_model', 'claim_model'); break; case 7: $this->load->model('claims/claims_misc_model', 'claim_model'); break; case 8: $this->load->model('claims/claims_marine_model', 'claim_model'); break; } } $this->load->model('claims/common_model'); }