Example #1
0
 public function index($registrasi_id = "")
 {
     // set page rules
     $this->_set_page_rule("C");
     // set template content
     $this->smarty->assign("template_content", "izin_internasional/migrasi/index.html");
     // load javascript
     $this->smarty->load_javascript("resource/js/jquery/jquery-ui-1.9.2.custom.min.js");
     $this->smarty->load_javascript("resource/js/select2-3.4.5/select2.min.js");
     // load style ui
     $this->smarty->load_style("jquery.ui/redmond/jquery-ui-1.8.13.custom.css");
     $this->smarty->load_style("select2/select2.css");
     // get detail data
     $params = array($registrasi_id, $this->com_user['airlines_id'], $this->group_id);
     $result = $this->m_migrasi->get_registrasi_waiting_by_id($params);
     if (empty($result)) {
         redirect('member/registration_internasional');
     }
     // seasonal code
     $result['izin_season'] = $this->season_cd;
     // assign
     $this->smarty->assign("result", $result);
     $this->smarty->assign("detail", $result);
     // SOAP izin usaha
     try {
         // load library
         $this->load->library("siuau");
         // client
         $client = new SIUAU_WSIService();
         // request
         $params = new showRutePerusahaanByKodeIataPerusahaan($this->com_user['airlines_iata_cd']);
         $request = $client->showRutePerusahaanByKodeIataPerusahaan($params);
         $response = $request->showRutePerusahaanByKodeIataPerusahaanResult;
         $list_rute_airlines = $response->RutePerusahaan->Rute;
         $this->smarty->assign("rs_rute", $list_rute_airlines);
     } catch (Exception $error) {
         $this->smarty->assign("rs_rute", array());
     }
     // notification
     $this->tnotification->display_notification();
     $this->tnotification->display_last_field();
     // output
     parent::display();
 }
Example #2
0
 function CI_Siuau()
 {
     // simponi constructor
     parent::__construct();
 }