当前位置: 首页>>代码示例>>PHP>>正文


PHP ApplicationBase类代码示例

本文整理汇总了PHP中ApplicationBase的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationBase类的具体用法?PHP ApplicationBase怎么用?PHP ApplicationBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ApplicationBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 public function index()
 {
     // set template content
     $this->smarty->assign("template_content", "information/document/form.html");
     // get search parameter
     $search = $this->tsession->userdata('search_fa');
     // search parameters
     $published_no = empty($search['published_no']) ? '' : $search['published_no'];
     // assign
     $this->smarty->assign("search", $search);
     // get data
     $result = $this->m_document->get_detail_data_by_id(array($published_no));
     $this->smarty->assign("result", $result);
     // get remark field
     $remark_field = $this->m_document->get_remark_field(array($result['data_type'], $result['data_flight'], $result['services_cd']));
     $this->smarty->assign("remark_field", $remark_field);
     // global variabel web content
     $this->m_lang->get_web_content_by_lang_group(array($this->bahasa['lang_id'], 'document_%'));
     //notification
     $this->tnotification->display_notification();
     //commented due security issue
     $this->tnotification->display_last_field();
     //set CSRF token
     $csrf_token_nm = $this->security->get_csrf_token_name();
     $csrf_token = $this->security->get_csrf_hash();
     $this->tsession->set_userdata("token", $csrf_token);
     $this->smarty->assign("token_nm", $csrf_token_nm);
     $this->smarty->assign("token", $csrf_token);
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:31,代码来源:document.php

示例2: index

 public function index($news_id = "")
 {
     // set template content
     $this->smarty->assign("template_content", "information/news/index.html");
     // data
     $result = $this->m_news->get_detail_news_published_by_id(array($news_id, $this->bahasa['lang_id']));
     if (empty($result)) {
         $result = $this->m_news->get_latest_news($this->bahasa['lang_id']);
     }
     // images
     $filepath = 'resource/doc/news/' . $result['news_id'] . '/' . $result['news_lang_img'];
     if (!is_file($filepath)) {
         $result['news_lang_img'] = '';
     } else {
         $result['news_lang_img'] = base_url() . $filepath;
     }
     $this->smarty->assign("result", $result);
     // news
     $rs_news = $this->m_news->get_list_news_published(array($this->bahasa['lang_id'], $result['news_id'], 0, 20));
     $this->smarty->assign("rs_news", $rs_news);
     // global variabel web content
     $this->m_lang->get_web_content_by_lang_group(array($this->bahasa['lang_id'], 'update_%'));
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:25,代码来源:news.php

示例3: index

 public function index()
 {
     // set template content
     $this->smarty->assign("template_content", "information/help/index.html");
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:7,代码来源:help.php

示例4: index

 public function index()
 {
     // set template content
     $this->smarty->assign("template_content", "information/faq/index.html");
     // load javascript
     $this->smarty->load_javascript("resource/js/jquery/jquery-1.10.2.min.js");
     // get search parameter
     $search = $this->tsession->userdata('faq_search');
     $this->smarty->assign("search", $search);
     // search parameters
     $search_faq = empty($search['search_faq']) ? '%' : '%' . $search['search_faq'] . '%';
     // get list
     $rs_category = $this->m_faq->get_list_faq_information_category(array($search_faq, $search_faq, $search_faq));
     $this->smarty->assign("rs_category", $rs_category);
     // get list
     $rs_faq = $this->m_faq->get_list_faq_information_question(array($search_faq, $search_faq, $search_faq));
     $this->smarty->assign("rs_faq", $rs_faq);
     //set CSRF token
     $csrf_token_nm = $this->security->get_csrf_token_name();
     $csrf_token = $this->security->get_csrf_hash();
     $this->tsession->set_userdata("token", $csrf_token);
     $this->smarty->assign("token_nm", $csrf_token_nm);
     $this->smarty->assign("token", $csrf_token);
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:26,代码来源:faq.php

示例5: detail

 public function detail($kode_izin = "")
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "stakeholder/report_izin/detail.html");
     // parameter
     $search = $this->tsession->userdata('search_report_izin_stakeholder');
     // search parameters
     $airlines_id = empty($search['airlines_id']) ? '%' : $search['airlines_id'];
     $data_flight = empty($search['data_flight']) ? 'domestik' : $search['data_flight'];
     // get list frekuensi
     $params = array($airlines_id, $data_flight, $kode_izin);
     $rs_id = $this->m_report_izin_stakeholder->get_izin_rute_data_by_kode_izin($params);
     if (empty($rs_id)) {
         redirect('stakeholder/report_izin');
     }
     $this->smarty->assign("rs_id", $rs_id);
     $this->smarty->assign("kode_izin", $rs_id[0]['kode_izin']);
     $this->smarty->assign("izin_rute_start", $rs_id[0]['izin_rute_start']);
     $this->smarty->assign("izin_rute_end", $rs_id[0]['izin_rute_end']);
     $this->smarty->assign("izin_expired_date", $rs_id[0]['izin_expired_date']);
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:25,代码来源:report_izin.php

示例6: index

 public function index($status = "")
 {
     // set template content
     $this->smarty->assign("template_content", "login/operator/form.html");
     // role
     $this->load->model('m_settings');
     $this->smarty->assign("rs_role", $this->m_settings->get_all_roles());
     //set CSRF token
     $csrf_token_nm = $this->security->get_csrf_token_name();
     $csrf_token = $this->security->get_csrf_hash();
     $this->tsession->set_userdata("token", $csrf_token);
     $this->smarty->assign("token_nm", $csrf_token_nm);
     $this->smarty->assign("token", $csrf_token);
     //set captcha
     $this->load->helper("captcha");
     $vals = array('img_path' => FCPATH . '/resource/doc/captcha/', 'img_url' => base_url() . '/resource/doc' . '/captcha/', 'img_width' => '150', 'font_path' => FCPATH . '/resource/doc/font/COURIER.TTF', 'font_size' => 60, 'img_height' => 50, 'expiration' => 7200);
     $captcha = create_captcha($vals);
     $data = array('captcha_time' => $captcha['time'], 'ip_address' => $_SERVER["REMOTE_ADDR"], 'word' => $captcha['word']);
     $this->tsession->set_userdata("data", $data);
     $this->smarty->assign("captcha", $captcha);
     // bisnis proses
     if (!empty($this->com_user)) {
         // still login
         redirect('dashboard/welcome');
     } else {
         $this->smarty->assign("login_st", $status);
     }
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:30,代码来源:operatorlogin.php

示例7: index

 public function index($data_id = "")
 {
     // set page rules
     $this->_set_page_rule("U");
     // set template content
     $this->smarty->assign("template_content", "task/fa_aunbdn_staff/detail.html");
     // get detail task
     $task = $this->m_task->get_detail_my_task_by_id(array($data_id, $this->com_user['role_id']));
     if (empty($task)) {
         redirect('task/manager');
     }
     $this->smarty->assign("task", $task);
     // next task
     $next = $this->m_task->get_detail_task_by_id(array($this->next_id));
     $this->smarty->assign("next", $next);
     // get detail data
     $params = array($data_id, $task['flow_id']);
     $this->smarty->assign("result", $this->m_task->get_data_by_id($params));
     // list process
     $this->smarty->assign("rs_process", $this->m_task->get_list_process_by_id(array($data_id)));
     // files
     $files = $this->m_task->get_detail_files_by_id(array($data_id));
     $this->smarty->assign("files", $files);
     // notification
     $this->tnotification->display_notification();
     $this->tnotification->display_last_field();
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:29,代码来源:backup.php

示例8: __construct

 public function __construct()
 {
     // parent constructor
     parent::__construct();
     // load model
     $this->load->model('m_cron');
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:7,代码来源:cron.php

示例9: index

 public function index()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "report/statistik_ir/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");
     $this->smarty->load_javascript('resource/js/fusioncharts/fusioncharts.js');
     // load style ui
     $this->smarty->load_style("select2/select2.css");
     // bulan
     $month = array('1' => 'Januari', '2' => 'Februari', '3' => 'Maret', '4' => 'April', '5' => 'Mei', '6' => 'Juni', '7' => 'Juli', '8' => 'Agustus', '9' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Desember');
     $this->smarty->assign("rs_bulan", $month);
     // tahun
     $default = date('Y');
     $tahun = array();
     for ($i = $default - 4; $i <= $default; $i++) {
         $tahun[] = $i;
     }
     $this->smarty->assign("rs_tahun", $tahun);
     // search parameters
     $search = $this->tsession->userdata('search_report_statistik');
     $bulan = empty($search['bulan']) ? date('m') : $search['bulan'];
     $tahun = empty($search['tahun']) ? date('Y') : $search['tahun'];
     $airlines_id = empty($search['airlines_id']) ? '%' : $search['airlines_id'];
     $search['bulan'] = $bulan;
     $search['tahun'] = $tahun;
     $this->smarty->assign("search", $search);
     // statistik
     $params = array($airlines_id, $tahun, $bulan);
     $rs_id = $this->m_report_statistik->get_data_statistik_pengajuan_ir($params);
     $data = array();
     $total_waiting = 0;
     $total_process = 0;
     $total_terbit = 0;
     $total_reject = 0;
     $total = 0;
     foreach ($rs_id as $key => $value) {
         $data[$value['group']][$value['izin_flight']][$value['izin_approval']][$value['is_process']] = $value['total'];
     }
     $this->smarty->assign("data", $data);
     $this->smarty->assign("total_waiting", $total_waiting);
     $this->smarty->assign("total_process", $total_process);
     $this->smarty->assign("total_terbit", $total_terbit);
     $this->smarty->assign("total_reject", $total_reject);
     $this->smarty->assign("total", $total);
     // SLA Operator
     $rs_id = array();
     $params = array($tahun, $bulan);
     $rs_id = $this->m_sla->get_sla_ir($params);
     $this->smarty->assign("rs_id", $rs_id);
     $this->smarty->assign("periode", strtoupper($month[$bulan]) . " " . strtoupper($tahun));
     // get list airlines
     $this->smarty->assign("rs_airlines", $this->m_report_statistik->get_list_airlines());
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:59,代码来源:statistik_ir.php

示例10: index

 public function index()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "member/published/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/jquery/jquery.ui.timepicker.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.timepicker.css");
     $this->smarty->load_style("jquery.ui/redmond/jquery-ui-1.8.13.custom.css");
     $this->smarty->load_style("select2/select2.css");
     // get tahun
     $this->smarty->assign("rs_tahun", $this->m_member->get_list_tahun_report($this->com_user['airlines_id']));
     // bulan
     $bulan = array('1' => 'Januari', '2' => 'Februari', '3' => 'Maret', '4' => 'April', '5' => 'Mei', '6' => 'Juni', '7' => 'Juli', '8' => 'Agustus', '9' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Desember');
     $this->smarty->assign("rs_bulan", $bulan);
     // get search parameter
     $search = $this->tsession->userdata('search_published');
     // search parameters
     $tanggal_from = empty($search['tanggal_from']) ? date("Y-m-d") : $search['tanggal_from'];
     $tanggal_to = empty($search['tanggal_to']) ? date("Y-m-d") : $search['tanggal_to'];
     $published_no = empty($search['published_no']) ? '%' : '%' . $search['published_no'] . '%';
     $data_type = empty($search['data_type']) ? '%' : '%' . $search['data_type'] . '%';
     $data_flight = empty($search['data_flight']) ? '%' : '%' . $search['data_flight'] . '%';
     $payment_st = empty($search['payment_st']) ? '%' : '%' . $search['payment_st'] . '%';
     $search['tanggal_from'] = $tanggal_from;
     $search['tanggal_to'] = $tanggal_to;
     // assign
     $this->smarty->assign("search", $search);
     /* start of pagination --------------------- */
     // pagination
     $config['base_url'] = site_url("member/published/index/");
     $config['total_rows'] = $this->m_member->get_total_finished_task(array($this->com_user['airlines_id'], $tanggal_from, $tanggal_to, $tanggal_from, $tanggal_to, $published_no, $published_no, $data_type, $data_flight, $payment_st));
     $config['uri_segment'] = 4;
     $config['per_page'] = 50;
     $this->pagination->initialize($config);
     $pagination['data'] = $this->pagination->create_links();
     // pagination attribute
     $start = $this->uri->segment(4, 0) + 1;
     $end = $this->uri->segment(4, 0) + $config['per_page'];
     $end = $end > $config['total_rows'] ? $config['total_rows'] : $end;
     $pagination['start'] = $config['total_rows'] == 0 ? 0 : $start;
     $pagination['end'] = $end;
     $pagination['total'] = $config['total_rows'];
     // pagination assign value
     $this->smarty->assign("pagination", $pagination);
     $this->smarty->assign("no", $start);
     /* end of pagination ---------------------- */
     // get list
     $params = array($this->com_user['airlines_id'], $tanggal_from, $tanggal_to, $tanggal_from, $tanggal_to, $published_no, $published_no, $data_type, $data_flight, $payment_st, $start - 1, $config['per_page']);
     $rs_id = $this->m_member->get_list_finished_task($params);
     $this->smarty->assign("rs_id", $rs_id);
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:58,代码来源:published.php

示例11: kepengurusan

 function kepengurusan()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "group/kepengurusan.html");
     // output
     parent::display();
 }
开发者ID:bimbingan,项目名称:SkripsiAIDS,代码行数:9,代码来源:group.php

示例12: index

 public function index()
 {
     // set template content
     $this->smarty->assign("template_content", "information/organization/index.html");
     // global variabel web content
     $this->m_lang->get_web_content_by_lang_group(array($this->bahasa['lang_id'], 'org_%'));
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:9,代码来源:organization.php

示例13: index

 public function index()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "settings/default/index.html");
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:9,代码来源:adminsettings.php

示例14: index

 function index()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "laporan/psb/list.html");
     // load js
     $this->smarty->load_javascript("resource/js/select2-3.4.5/select2.min.js");
     // load css
     $this->smarty->load_style("select2/select2.css");
     // session
     $search = $this->tsession->userdata('search_lap_psb');
     $this->smarty->assign('search', $search);
     // params
     $sekolah_id = !empty($search['sekolah_id']) ? "%" . $search['sekolah_id'] . "%" : "%";
     $provinsi_id = !empty($search['provinsi_id']) ? "%" . $search['provinsi_id'] . "%" : "%";
     $kab_id = !empty($search['kab_id']) ? "%" . $search['kab_id'] . "%" : "%";
     $psb_tha = !empty($search['psb_tha']) ? "%" . $search['psb_tha'] . "%" : "%";
     $jalurpsb_id = !empty($search['jalurpsb_id']) ? "%" . $search['jalurpsb_id'] . "%" : "%";
     $cs_st = !empty($search['cs_st']) ? $search['cs_st'] : "%";
     $params = array($sekolah_id, $provinsi_id, $kab_id, $psb_tha, $jalurpsb_id, $cs_st);
     $config['base_url'] = site_url("laporan/psb/index/");
     $config['total_rows'] = $this->m_lap_psb->get_total_list($params);
     $config['uri_segment'] = 4;
     $config['per_page'] = 10;
     $this->pagination->initialize($config);
     $pagination['data'] = $this->pagination->create_links();
     // pagination attribute
     $start = $this->uri->segment(4, 0) + 1;
     $end = $this->uri->segment(4, 0) + $config['per_page'];
     $end = $end > $config['total_rows'] ? $config['total_rows'] : $end;
     $pagination['start'] = $config['total_rows'] == 0 ? 0 : $start;
     $pagination['end'] = $end;
     $pagination['total'] = $config['total_rows'];
     // pagination assign value
     $this->smarty->assign("pagination", $pagination);
     $this->smarty->assign("no", $start);
     // /* end of pagination ---------------------- */
     // get list data
     $params = array($sekolah_id, $provinsi_id, $kab_id, $psb_tha, $jalurpsb_id, $cs_st, $start - 1, $config['per_page']);
     $rs_id = $this->m_lap_psb->get_all_list($params);
     $this->tsession->set_userdata('laporan_psb', $rs_id);
     $this->smarty->assign("rs_id", $rs_id);
     $this->smarty->assign("rs_sekolah", $this->m_sekolah->get_all_sekolah());
     $this->smarty->assign("rs_provinsi", $this->m_provinsi->get_all_provinsi());
     $this->smarty->assign("rs_kab", $this->m_kabupaten->get_all_kabupaten());
     $this->smarty->assign("rs_psb_year", $this->m_psb->get_year_psb());
     $this->smarty->assign("rs_jalur", $this->m_jalurpsb->get_all_jalurpsb());
     // notification
     $this->tnotification->display_notification();
     $this->tnotification->display_last_field();
     // output
     parent::display();
 }
开发者ID:bimbingan,项目名称:SkripsiAIDS,代码行数:54,代码来源:psb.php

示例15: index

 public function index()
 {
     // set page rules
     $this->_set_page_rule("R");
     // set template content
     $this->smarty->assign("template_content", "member/slot/index.html");
     // get search parameter
     $search = $this->tsession->userdata('search_slot_time');
     // search parameters
     $rute_from = empty($search['rute_from']) ? '' : trim($search['rute_from']);
     $rute_to = empty($search['rute_to']) ? '' : trim($search['rute_to']);
     $services_code = empty($search['services_code']) ? '' : trim($search['services_code']);
     $season_code = empty($search['season_code']) ? '' : trim($search['season_code']);
     $flight_no = empty($search['flight_no']) ? '' : trim($search['flight_no']);
     // --
     $this->smarty->assign("search", $search);
     // validate input
     if (!empty($rute_from) && !empty($rute_to) && !empty($season_code)) {
         // cek semua bandara harus berada pada IASM
         if ($this->m_airport->is_airport_using_score_by_iata_cd(array($rute_from, $rute_to))) {
             try {
                 // request
                 $params = new getConfirmedSlot($this->com_user['airlines_iata_cd'], $rute_from, $rute_to, $season_code, $services_code, $flight_no);
                 // class object response
                 $response = $this->score_services->__soapCall('getConfirmedSlotSeasonal', array($params));
                 // get data from function
                 $rs_id = $response->confirmedSlots->confirmedScheduleList->confirmedSchedules;
                 // parse
                 if (count($rs_id) == 1) {
                     // object to list
                     $rs_id = array($rs_id);
                 }
                 $this->smarty->assign("rs_id", $rs_id);
                 $this->smarty->assign("total", count($rs_id));
                 // get airport detail
                 $local_time = $this->m_airport->get_local_time_airport_by_code($rute_from);
                 $this->smarty->assign("local_time", $local_time);
             } catch (Exception $error) {
                 /*
                  echo "<pre>";
                  var_dump($error);
                  echo "</pre>";
                  die;
                 * 
                 */
             }
         }
     }
     // notification
     $this->tnotification->display_notification();
     $this->tnotification->display_last_field();
     // output
     parent::display();
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:54,代码来源:slot.php


注:本文中的ApplicationBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。