예제 #1
0
 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');
 }
예제 #2
0
 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');
 }
예제 #3
0
 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');
 }
예제 #4
0
 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');
     }
 }
예제 #5
0
 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();
 }
예제 #6
0
 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');
 }