run() 공개 정적인 메소드

Run a module controller method Output from module is buffered and returned.
public static run ( $module )
예제 #1
0
 function _manage()
 {
     // paging
     $this->load->library('pagination');
     $config['base_url'] = base_url() . 'konsumen/index';
     $config['total_rows'] = $this->pelanggan->count('konsumen');
     // false
     $config['per_page'] = 3;
     $data['view'] = 'pelanggan_view';
     $data['module'] = 'pelanggan';
     $data['welcome'] = "Welcome back " . ucfirst($this->session->userdata('email'));
     $data['title'] = "Module Pelanggan";
     $this->pagination->initialize($config);
     $data['hasil'] = $this->pelanggan->get_all($config['per_page'], $this->uri->segment(3));
     /*
      * Run Template Module
      * 
      * @param boolean
      * @array admin || manajer || direktur
      */
     if ($this->ion_auth->is_admin()) {
         echo Modules::run('template/admin', $data);
     } elseif ($this->ion_auth->in_group('direktur')) {
         echo Modules::run('template/direktur', $data);
     } else {
         echo Modules::run('template/manajer', $data);
     }
 }
예제 #2
0
 function create()
 {
     // Modules::run('secure_tings/ni_met');
     $update_id = $this->uri->segment(3);
     $data = array();
     $this->load->model('mdl_jobcard');
     $this->load->model('spareparts/mdl_spareparts');
     if (!isset($update_id)) {
         $update_id = $this->input->post('update_id', $id);
         $data['maequipment'] = $this->mdl_spareparts->getequip();
     }
     if (is_numeric($update_id)) {
         $data = $this->get_data_from_db($update_id);
         $data['update_id'] = $update_id;
         $data['maequipment'] = $this->mdl_spareparts->getequip();
         $this->session->set_flashdata('Umsg', '<div id="alert-message" class="alert alert-warning text-center">Please Check the Reason for Failure and Tests Administered Sections before Updating !</div>');
     } else {
         $data = $this->get_data_from_post();
         $data['maequipment'] = $this->mdl_spareparts->getequip();
     }
     $data['section'] = "Maintenance";
     $data['subtitle'] = "Job Card";
     $data['page_title'] = "Cold Chain Maintenance Job Card";
     $data['module'] = "jobcard";
     $data['view_file'] = "create_jobcard_form";
     $data['user_object'] = $this->get_user_object();
     $data['main_title'] = $this->get_title();
     echo Modules::run('template/' . $this->redirect($this->session->userdata['logged_in']['user_group']), $data);
 }
예제 #3
0
 function getkanalrubrik()
 {
     $id_kanal = $_POST['id_kanal'];
     $batas = $_POST['batas'];
     $dt = $this->m_kanal->hitung_kanalrubrik($id_kanal);
     if ($_POST['hal'] == "end") {
         $hal = ceil($dt['count'] / $batas);
     } else {
         $hal = $_POST['hal'];
     }
     $mulai = ($hal - 1) * $batas;
     $data['mulai'] = $mulai + 1;
     if ($dt['count'] != 0) {
         $data['hslquery'] = $this->m_kanal->getkanalrubrik($mulai, $batas, $id_kanal);
         foreach ($data['hslquery'] as $it => $val) {
             $iniKat = $this->m_kanal->inikanalrubrik($data['hslquery'][$it]->id_kategori);
             @($data['hslquery'][$it]->nama_kategori = @$iniKat[0]->nama_kategori);
             if ($mulai + $it == 0) {
                 $data['hslquery'][$it]->naik = "tidak";
             } else {
                 $data['hslquery'][$it]->naik = "ya";
             }
             if ($mulai + $it + 1 == $dt['count']) {
                 $data['hslquery'][$it]->turun = "tidak";
             } else {
                 $data['hslquery'][$it]->turun = "ya";
             }
         }
     }
     $de = Modules::run("cmsuser/pagerB", $dt['count'], $batas, $hal);
     $data['pager'] = $de;
     echo json_encode($data);
 }
 function ditch($update_id)
 {
     Modules::run('site_security/check_is_admin');
     $item_id = $this->uri->segment(4);
     $this->_delete($update_id);
     redirect('Store_item_colours/update/' . $item_id);
 }
예제 #5
0
파일: dashboard.php 프로젝트: emil09/bilis
 public function index()
 {
     $data['module'] = 'cashier';
     $data['view_file'] = 'dashboard_view';
     $data['sidebar'] = 'cashier/cashier_sidebar';
     echo Modules::run('templates/bilis_noside', $data);
 }
예제 #6
0
 public static function fire($event, &$arg = null)
 {
     if (self::is_initializing()) {
         // PC::EventManager("Queuing event $event");
         $queued_event['event'] = $event;
         $queued_event['arg'] =& $arg;
         array_push(self::$queue, $queued_event);
         return false;
     }
     if (!array_key_exists($event, self::$events)) {
         //PC::EventManager("Event $event not found");
         return;
     }
     //PC::EventManager("Yey firing");
     foreach (self::$events[$event] as $callback) {
         PC::EventManager("Firing event {$event} -> {$callback}");
         if (function_exists($callback)) {
             if ($arg != null) {
                 call_user_func($callback, $arg);
             } else {
                 call_user_func($callback);
             }
         } else {
             if ($arg != null) {
                 $output = Modules::run($callback, $arg);
             } else {
                 $output = Modules::run($callback);
             }
         }
         if (isset($output) && $output != "__NO_MODULE__" && $output != "__404__") {
             echo $output;
         }
     }
     return self::$events[$event] > 0;
 }
예제 #7
0
 private function __update_module()
 {
     $bypass = '';
     $query = $this->db->select('password')->from($this->cms_user_table_name())->where('user_id', 1)->get();
     if ($query->num_rows() > 0) {
         $row = $query->row();
         $bypass = $row->password;
     }
     if ($bypass != '') {
         $module_list = $this->cms_get_module_list();
         foreach ($module_list as $module) {
             $module_path = $module['module_path'];
             $module_name = $module['module_name'];
             $old_version = $module['old_version'];
             $current_version = $module['current_version'];
             $active = $module['active'];
             $upgrade_link = $module['upgrade_link'];
             if ($active && $old_version != $current_version) {
                 $url = str_replace(site_url(), '', $upgrade_link);
                 $url = trim($url, '/');
                 $response = Modules::run($url, $bypass);
             }
         }
     }
 }
예제 #8
0
 function create()
 {
     $update_id = $this->uri->segment(3);
     if (!isset($update_id)) {
         $update_id = $this->input->post('update_id', $id);
     }
     if (is_numeric($update_id)) {
         $data = $this->get_data_from_db($update_id);
         $data['update_id'] = $update_id;
     } else {
         $data = $this->get_data_from_post();
     }
     $data['module'] = "region";
     $data['view_file'] = "create_region_form";
     $data['section'] = "Configuration";
     $data['subtitle'] = "Add Region";
     $data['page_title'] = "Regions";
     $data['user_object'] = $this->get_user_object();
     $data['main_title'] = $this->get_title();
     $this->load->library('make_bread');
     $this->make_bread->add('Configurations', '', 0);
     $this->make_bread->add('List Regions', 'region/', 1);
     $this->make_bread->add('Edit Region', '', 0);
     $data['breadcrumb'] = $this->make_bread->output();
     echo Modules::run('template/' . $this->redirect($this->session->userdata['logged_in']['user_group']), $data);
 }
 /**
  * Launch dialog that contains a specific Ion auth page content
  *
  * This function is only be used for a quick example
  * about displaying page content (without master page) inside a dialog.
  * It also helps to keep the Ion auth's controller structure unchanged
  * so you can freely modify it yourself.
  */
 function ion_auth_dialog($page)
 {
     if (in_array($page, array('login', 'change_password', 'forgot_password'))) {
         $this->response->dialog(array('body' => Modules::run('auth/' . $page)));
     }
     $this->response->send();
 }
예제 #10
0
파일: cart.php 프로젝트: nvmanh/ci_shop
 function _display_add_to_cart_box($item_id, $item_price)
 {
     $data['item_id'] = $item_id;
     $data['item_price'] = $item_price;
     $data['currency'] = Modules::run('site_settings/get_currency');
     $this->load->view('add_to_cart_box', $data);
 }
 function _dialog($page)
 {
     if (in_array($page, array('edit'))) {
         $this->response->dialog(array('body' => Modules::run('certification_type/' . $page)));
     }
     $this->response->send();
 }
 function _dialog($page)
 {
     if (in_array($page, array('edit'))) {
         $this->response->dialog(array('body' => Modules::run('organization_class/' . $page)));
     }
     $this->response->send();
 }
예제 #13
0
 public function fillIn($id_konten)
 {
     Modules::run("weblog/writeLog");
     $config = array(array('field' => 'cName', 'label' => 'Nama', 'rules' => 'trim|required|xss_clean'), array('field' => 'cEmail', 'label' => 'Email', 'rules' => 'trim|required|email'), array('field' => 'captchaImg', 'label' => 'Kode Pengaman', 'rules' => 'trim|required|xss_clean'), array('field' => 'cComment', 'label' => 'Komentar', 'rules' => 'trim|xss_clean'));
     $this->form_validation->set_rules($config);
     if ($this->form_validation->run() == FALSE) {
         $res['err'] = 1;
         $res['msg'] = validation_errors();
     } else {
         //captcha checking
         if ($this->input->post('captchaImg') == $this->session->userdata('myskpdtscaptcha')) {
             $posted = array('name' => $this->input->post('cName'), 'email' => $this->input->post('cEmail'), 'comment' => $this->input->post('cComment'), 'id_konten' => $this->input->post('idKonten'));
             $doAppend = $this->m_comment->appendNewComment($posted);
             echo json_encode($doAppend);
             die;
             $res['err'] = $doAppend['err'];
             $res['msg'] = $doAppend['msg'];
         } else {
             $res['err'] = 1;
             $res['msg'][] = "Kode pengaman tidak sesuai.<br>";
             $res['msg'][] = $this->input->post('captchaImg') . "<br>";
             $res['msg'][] = $this->session->userdata('myskpdtscaptcha');
         }
     }
     echo json_encode($res);
 }
예제 #14
0
 /**
  * Example page
  */
 public function index()
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('/auth/login', 'refresh');
     }
     $this->load->library('template');
     // Use custom layout (application/views/layout/pagelet.php)
     $this->template->set_layout('pagelet');
     $this->template->set_title('New Task Item');
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
     $this->load->model('cosharetask_model');
     //validate form input
     $this->form_validation->set_rules('task', 'Task', 'required|xss_clean');
     if ($this->form_validation->run() === TRUE) {
         //save message in the database
         $this->cosharetask_model->insert();
         //show success message
         $this->session->set_flashdata('message', "Task added successfully.");
         redirect('/mylist', 'refresh');
     }
     $data['message'] = validation_errors() ? validation_errors() : $this->session->flashdata('message');
     $data['task'] = array('type' => 'text', 'name' => 'task', 'id' => 'task', 'class' => 'todo-input form-control', 'placeholder' => 'What needs to be done?', 'value' => $this->form_validation->set_value('task'));
     $data['private'] = array('name' => 'private', 'id' => 'private', 'value' => '0', 'checked' => FALSE);
     $data['pagelet_upload_control'] = Modules::run('photo/_pagelet_upload_control', array('message' => '', 'is_multiple' => FALSE, 'progress_template' => FALSE, 'item_template' => '
                 <input type="hidden" name="thumbnail" value="{{thumbnailUrl}}">
                 <img src="{{thumbnailUrl}}" style="width: 50px; height: 50px; padding: 1px;">
             '));
     $this->template->load_view('todo/index', $data);
 }
예제 #15
0
 function getdata()
 {
     $cari = $_POST['cari'];
     $data['count'] = $this->m_skp->hitung_skp_verifikasi($cari);
     if ($data['count'] == 0) {
         $data['hslquery'] = "";
         $data['pager'] = "";
     } else {
         $batas = $_POST['batas'];
         $hal = $_POST['hal'] == "end" ? ceil($dt['count'] / $batas) : $_POST['hal'];
         $mulai = ($hal - 1) * $batas;
         $data['mulai'] = $mulai + 1;
         $bulan = $this->dropdowns->bulan();
         $tahapan_skp = $this->dropdowns->tahapan_skp();
         $data['hslquery'] = $this->m_skp->get_skp_verifikasi($cari, $mulai, $batas);
         foreach ($data['hslquery'] as $key => $val) {
             @($data['hslquery'][$key]->bulan_mulai = $bulan[$val->bulan_mulai]);
             @($data['hslquery'][$key]->bulan_selesai = $bulan[$val->bulan_selesai]);
             @($data['hslquery'][$key]->status = $tahapan_skp[$val->status]);
             $data['hslquery'][$key]->nama_pegawai = (trim($val->gelar_depan) != '-' ? trim($val->gelar_depan) . ' ' : '') . (trim($val->gelar_nonakademis) != '-' ? trim($val->gelar_nonakademis) . ' ' : '') . $val->nama_pegawai . (trim($val->gelar_belakang) != '-' ? ', ' . trim($val->gelar_belakang) : '');
             $data['hslquery'][$key]->penilai_nama_pegawai = (trim($val->penilai_gelar_depan) != '-' ? trim($val->penilai_gelar_depan) . ' ' : '') . (trim($val->penilai_gelar_nonakademis) != '-' ? trim($val->penilai_gelar_nonakademis) . ' ' : '') . $val->penilai_nama_pegawai . (trim($val->penilai_gelar_belakang) != '-' ? ', ' . trim($val->penilai_gelar_belakang) : '');
         }
         $data['pager'] = Modules::run("appskp/appskp/pagerB", $data['count'], $batas, $hal);
     }
     echo json_encode($data);
 }
예제 #16
0
 function getalbum()
 {
     $batas = $_POST['batas'];
     $dt = $this->m_banner->hitung_album();
     if ($_POST['hal'] == "end") {
         $hal = ceil($dt['count'] / $batas);
     } else {
         $hal = $_POST['hal'];
     }
     $mulai = ($hal - 1) * $batas;
     $data['mulai'] = $mulai + 1;
     $data['hslquery'] = $this->m_banner->getalbum($mulai, $batas)->result();
     foreach ($data['hslquery'] as $it => $val) {
         $idd = $data['hslquery'][$it]->id_kategori;
         $cek = $this->m_banner->isi_album($idd)->result();
         if (!empty($cek)) {
             $data['hslquery'][$it]->icon_hapus = "";
         } else {
             $data['hslquery'][$it]->icon_hapus = "<div class=grid_icon onclick=\"loadForm('formhapus','{$idd}');\" title='Klik untuk menghapus data'><span class='ui-icon ui-icon-trash'></span></div>";
         }
     }
     $de = Modules::run("cmsuser/pagerB", $dt['count'], $batas, $hal);
     $data['pager'] = $de;
     echo json_encode($data);
 }
예제 #17
0
 public function getdirektori()
 {
     $batas = $_POST['batas'];
     $hal = $_POST['hal'];
     $ini = $_POST['rubrik'];
     $dt = $this->m_daftar->hitung_direktori($ini);
     if ($_POST['hal'] == "end") {
         $hal = ceil($dt['count'] / $batas);
     } else {
         $hal = $_POST['hal'];
     }
     $mulai = ($hal - 1) * $batas;
     $data['mulai'] = $mulai + 1;
     $ddtt = $this->m_daftar->getdirektori($mulai, $batas, $ini)->result();
     $d = array('-', '/', '\\', ',', '.', '#', ':', ';', '\'', '"', '[', ']', '{', '}', ')', '(', '|', '`', '~', '!', '@', '%', '$', '^', '&', '*', '=', '?', '+', ' ');
     foreach ($ddtt as $key => $val) {
         $isi = $this->m_daftar->ini_direktori($ddtt[$key]->id_konten)->result();
         @($data['hslquery'][$key]->id_konten = $ddtt[$key]->id_konten);
         $data['hslquery'][$key]->judul = $isi[0]->judul;
         $data['hslquery'][$key]->kat_seo = str_replace($d, '-', $isi[0]->nama_kategori);
         $data['hslquery'][$key]->seo = str_replace($d, '-', $isi[0]->judul);
     }
     $de = Modules::run("web/pagerC", $dt['count'], $batas, $hal, "daftar", 2);
     $data['pager'] = $de;
     echo json_encode($data);
 }
예제 #18
0
 function create()
 {
     $update_id = $this->uri->segment(3);
     $data = array();
     $this->load->model('mdl_depot');
     if (!isset($update_id)) {
         $update_id = $this->input->post('update_id', $id);
         $data['region'] = $this->mdl_depot->getRegion();
         $data['county'] = $this->mdl_depot->getCounty();
         $data['subcounty'] = $this->mdl_depot->getSubcounty();
     }
     if (is_numeric($update_id)) {
         $data = $this->get_data_from_db($update_id);
         $data['update_id'] = $update_id;
         $data['region'] = $this->mdl_depot->getRegion();
         $data['county'] = $this->mdl_depot->getCounty();
         $data['subcounty'] = $this->mdl_depot->getSubcounty();
     } else {
         $data = $this->get_data_from_post();
         $data['region'] = $this->mdl_depot->getRegion();
         $data['county'] = $this->mdl_depot->getCounty();
         $data['subcounty'] = $this->mdl_depot->getSubcounty();
     }
     $data['section'] = "Configuration";
     $data['subtitle'] = "Depots";
     $data['page_title'] = "Add Depot";
     $data['module'] = "depot";
     $data['view_file'] = "create_depot_form";
     echo Modules::run('template/admin', $data);
 }
예제 #19
0
 protected function init()
 {
     $this->CI =& get_instance();
     $this->table = 'duc_schedules';
     $this->caption = lang('duc_schedules');
     $this->config = $this->loader->get('config');
     $this->params['groups'] = Modules::run('duc/duc_groups/listGroups');
     $this->params['groups_ext'] = Modules::run('duc/duc_groups/MY_data_array_one', 'main.id', array('main.name', 'encode' => array('CASE main.paid WHEN main.paid=1 THEN \'да\' ELSE \'нет\' END as paid', 'CASE main.active WHEN main.active=1 THEN \'да\' ELSE \'нет\' END as active')), false, 'main.name', array('!' => ' ', 'name' => array('prefix' => '<b>', 'suffix' => '</b>'), 'teacher.name' => array('prefix' => '', 'suffix' => ';'), 'active' => array('prefix' => 'Активно:', 'suffix' => ';'), 'paid' => array('prefix' => 'Платно:', 'suffix' => ';')));
     foreach ($this->params['groups_ext'] as $k => $v) {
         $this->params['groups_ext'][$k] = str_replace(array('"', '\''), '', $v);
     }
     $this->params['teachers'] = Modules::run('duc/duc_teachers/MY_data_array_one', 'id', array('surname', 'name', 'name2'), false, 'surname');
     $this->params['teachers'] = Modules::run('duc/duc_teachers/MY_data_array_one', 'id', array('surname', 'name', 'name2'), false, 'surname', array('!' => ' ', 'surname' => array('prefix' => '<b>', 'suffix' => '</b>')));
     $this->params['num_groups'] = Modules::run('duc/duc_numgroups/MY_data_array_one', 'id', 'name', false, 'sorter');
     $this->start_row_week = 6;
     //return;
     /*
     $this->query = "
         SELECT {fields}
         FROM duc_schedules AS object, duc_groups AS grouper, duc_teachers AS teacher
         WHERE {where}
     ";
     */
     $this->query = "\r\n            SELECT {fields}\r\n            FROM duc_schedules AS object\r\n        \tLEFT JOIN duc_groups grouper\r\n            ON object.id_group = grouper.id\r\n            LEFT JOIN duc_teachers teacher\r\n            ON grouper.id_teacher = teacher.id\r\n            WHERE {where}\r\n        ";
     //$this->where[] = 'object.id_group = grouper.id';
     //$this->where[] = 'grouper.id_teacher = teacher.id';
     $this->cols = array('id' => array('label' => lang('duc_id'), 'db' => 'object.id', 'width' => 20, 'align' => 'center', 'editable' => true, "editoptions" => array("readonly" => true)), 'active' => array('label' => lang('duc_active'), 'db' => 'object.active', 'width' => 30, 'hidden' => true, 'editable' => true, 'encode' => false, 'edittype' => "checkbox", 'editrules' => array('required' => true, 'edithidden' => true)), 'active_icon' => array('label' => lang('duc_active'), 'manual' => true, 'width' => 30, 'align' => 'center', 'encode' => false), 'sorter' => array('label' => lang('duc_sorter'), 'db' => 'object.sorter', 'width' => 30, 'hidden' => true, 'editable' => true, 'encode' => false, 'editrules' => array('edithidden' => true, 'integer' => true, 'minValue' => 1, 'maxValue' => 1000)), 'teacher' => array('label' => lang('duc_teacher'), 'db' => 'teacher.id', 'width' => 50, 'encode' => false, 'replace' => array(0 => 'нет') + $this->params['teachers'], 'edittype' => "select", 'editoptions' => array('value' => new jqGrid_Data_Value($this->params['teachers'])), 'editrules' => array('required' => true, 'integer' => true, 'minValue' => 1, 'maxValue' => 1000, 'edithidden' => true), 'stype' => 'select', 'searchoptions' => array('value' => new jqGrid_Data_Value($this->params['teachers'], 'All'))), 'id_group' => array('label' => lang('duc_group'), 'width' => 100, 'editable' => true, 'encode' => false, 'replace' => array(0 => 'нет') + $this->params['groups_ext'], 'edittype' => "select", 'editoptions' => array('value' => new jqGrid_Data_Value($this->params['groups'])), 'editrules' => array('required' => true, 'integer' => true, 'minValue' => 1, 'maxValue' => 1000, 'edithidden' => true), 'stype' => 'select', 'searchoptions' => array('value' => new jqGrid_Data_Value($this->params['groups_ext'], 'All'))), 'id_numgroup' => array('label' => lang('duc_group_number'), 'width' => 50, 'editable' => true, 'replace' => array(0 => 'нет') + $this->params['num_groups'], 'edittype' => "select", 'editoptions' => array('value' => new jqGrid_Data_Value($this->params['num_groups'])), 'editrules' => array('required' => true, 'integer' => true, 'minValue' => 1, 'maxValue' => 1000, 'edithidden' => true), 'stype' => 'select', 'searchoptions' => array('value' => new jqGrid_Data_Value($this->params['num_groups'], 'All'))), 'mon' => array('label' => lang('duc_mon'), 'db' => "CONCAT(object.mon_from, '-', object.mon_to)", 'width' => 30, 'editable' => false, 'search' => false), 'mon_from' => array('label' => lang('duc_mon'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_mon_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true)), 'mon_to' => array('label' => lang('duc_mon'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_mon_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week, 'colpos' => 1)), 'tue' => array('label' => lang('duc_tue'), 'db' => "CONCAT(object.tue_from, '-', object.tue_to)", 'width' => 30, 'editable' => false, 'search' => false), 'tue_from' => array('label' => lang('duc_tue'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_tue_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 1, 'colpos' => 1)), 'tue_to' => array('label' => lang('duc_tue'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_tue_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 1, 'colpos' => 1)), 'wed' => array('label' => lang('duc_wed'), 'db' => "CONCAT(object.wed_from, '-', object.wed_to)", 'width' => 30, 'editable' => false, 'search' => false), 'wed_from' => array('label' => lang('duc_wed'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_wed_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 2, 'colpos' => 1)), 'wed_to' => array('label' => lang('duc_wed'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_wed_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 2, 'colpos' => 1)), 'thur' => array('label' => lang('duc_thur'), 'db' => "CONCAT(object.thur_from, '-', object.thur_to)", 'width' => 30, 'editable' => false, 'search' => false), 'thur_from' => array('label' => lang('duc_thur'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_thur_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 3, 'colpos' => 1)), 'thur_to' => array('label' => lang('duc_thur'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_thur_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 3, 'colpos' => 1)), 'fri' => array('label' => lang('duc_fri'), 'db' => "CONCAT(object.fri_from, '-', object.fri_to)", 'width' => 30, 'editable' => false, 'search' => false), 'fri_from' => array('label' => lang('duc_fri'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_fri_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 4, 'colpos' => 1)), 'fri_to' => array('label' => lang('duc_fri'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_fri_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 4, 'colpos' => 1)), 'sat' => array('label' => lang('duc_sat'), 'db' => "CONCAT(object.sat_from, '-', object.sat_to)", 'width' => 30, 'editable' => false, 'search' => false), 'sat_from' => array('label' => lang('duc_sat'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_sat_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 5, 'colpos' => 1)), 'sat_to' => array('label' => lang('duc_sat'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_sat_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 5, 'colpos' => 1)), 'sun' => array('label' => lang('duc_sun'), 'db' => "CONCAT(object.sun_from, '-', object.sun_to)", 'width' => 30, 'editable' => false, 'search' => false), 'sun_from' => array('label' => lang('duc_sun'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_start_edu'), 'timeText' => lang('duc_sun_from'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true, 'time' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 6, 'colpos' => 1)), 'sun_to' => array('label' => lang('duc_sun'), 'hidden' => true, 'width' => 30, 'editable' => true, 'searchoptions' => array('dataInit' => $this->initTimepicker(array('onSelect' => new jqGrid_Data_Raw('function(){$grid[0].triggerToolbar();}')))), 'search_op' => 'date', 'editoptions' => array('dataInit' => $this->initTimepicker(array('timeOnlyTitle' => lang('duc_time_end_edu'), 'timeText' => lang('duc_sun_to'), 'hourText' => 'Часы', 'minuteText' => 'Минуты', 'secondText' => 'Секунды', 'currentText' => 'Текущее', 'closeText' => 'Закрыть', 'showButtonPanel' => true, 'showOtherMonths' => true, 'addSliderAccess' => true, 'sliderAccessArgs' => array('touchonly' => false), 'showAnim' => 'slideDown')), 'defaultValue' => date('')), 'editrules' => array('edithidden' => true), 'formoptions' => array('rowpos' => $this->start_row_week + 6, 'colpos' => 1)));
     $this->options = array('sortname' => 'id_group', 'sortorder' => 'asc', 'rowNum' => 20, 'rownumbers' => true, 'width' => 900, 'height' => '100%', 'autowidth' => true, 'altRows' => true, 'rowList' => array(10, 20, 30, 50, 100), 'caption' => $this->caption);
     #Set nav
     $this->nav = array('add' => true, 'addtext' => 'Добавить объект', 'edit' => true, 'edittext' => 'Редактировать', 'del' => true, 'deltext' => 'Удалить', 'prmAdd' => array('width' => 600, 'closeAfterAdd' => true), 'prmEdit' => array('width' => 720, 'closeAfteredit' => true, 'viewPagerButtons' => false));
     $this->render_filter_toolbar = true;
 }
예제 #20
0
 function index()
 {
     //		$sub=array("unor","pegawai","profile","jabfung","mutasi","pejabat","pendidikan","dashboard");
     $sub = array("edok");
     $id_grup = $this->session->userdata('group_id');
     $cari = '"group_id":"' . $id_grup . '"';
     $this->db->from('p_setting_item');
     $this->db->where('id_setting', 3);
     $this->db->like('meta_value', $cari);
     $hsl = $this->db->get()->result();
     foreach ($hsl as $key => $val) {
         $itt = json_decode($val->meta_value);
         $idt = $itt->id_menu;
         $this->db->from('p_setting_item');
         $this->db->where('id_item', $idt);
         $nnm = $this->db->get()->row();
         $itk = json_decode($nnm->meta_value);
         $d = array('module/appdok/', 'module/appbkpp/');
         $etk = explode("/", str_replace($d, '', $itk->path_menu));
         array_push($sub, $etk[0]);
     }
     if (in_array($this->uri->segment(4), $sub)) {
         if ($this->uri->segment(5) == "") {
             echo Modules::run("appdok/" . $this->uri->segment(4) . "/index");
         } else {
             echo Modules::run("appdok/" . $this->uri->segment(4) . "/" . $this->uri->segment(5));
         }
     } else {
         redirect(site_url("admin"));
     }
 }
예제 #21
0
 function index()
 {
     $config = array();
     $config["base_url"] = base_url() . "teacher";
     $config["total_rows"] = $this->teachers_model->getCount();
     $config["per_page"] = 2;
     $config["uri_segment"] = 2;
     $this->pagination->initialize($config);
     $page = $this->uri->segment(2) ? $this->uri->segment(2) : 0;
     $data["teachers"] = $this->teachers_model->getTeachersWithPager($config["per_page"], $page);
     $data["links"] = $this->pagination->create_links();
     $data['title'] = "পুরাতন শিক্ষকদের তালিকা";
     $data['settings'] = $this->settings_model->getSettings();
     $data['photos'] = $this->photos_model->getPhotos();
     $data['webpages'] = $this->webpages_model->getParentpages();
     $data['classes'] = $this->classes_model->getClassess();
     $data['sections'] = $this->sections_model->getSections();
     $data['downloads'] = $this->downloads_model->getDownloads();
     $data['news'] = $this->news_model->getNewslimit();
     $data['notices'] = $this->notices_model->getNotices();
     //$data['teachers'] = $this->teachers_model->getXteachers();
     $data['vcount'] = $this->common_model->getRecords($this->common_model->_counter_values, $this->where, 's');
     $data['module'] = 'xteacher';
     $data['view_settings'] = 'view_settings';
     $data['view_mainmenus'] = 'view_mainmenus';
     $data['view_rightsidebar'] = 'view_rightsidebar';
     echo Modules::run('template/xteacher', $data);
 }
 public function index()
 {
     $this->load->parser();
     $validation_rules = array(array('field' => 'email_test_form_captcha', 'label' => 'Captcha', 'rules' => 'nohtml|trim|callback__captcha'));
     $success = false;
     $messages = array();
     $this->form_validation->set_rules($validation_rules);
     if ($this->form_validation->run()) {
         $custom_text = $this->input->post('custom_text');
         $custom_html = trim($custom_text) != '' ? $this->parser->parse_string($custom_text, null, true, array('textile' => array('restricted_mode' => true))) : '';
         $success = (bool) Events::trigger('email_test', array('custom_text' => $custom_html));
         if ($success) {
             $messages[] = $this->lang->line('mailer_your_message_has_been_sent');
         } else {
             if ($this->registry->get('email_debugger') != '') {
                 $messages[] = $this->lang->line('mailer_error') . '<br /><br />' . $this->registry->get('email_debugger');
             } else {
                 $messages[] = $this->lang->line('mailer_error');
             }
         }
     } else {
         $messages = validation_errors_array();
     }
     extract(Modules::run('email/test/get_message'));
     $has_logo = file_exists(DEFAULTFCPATH . 'apple-touch-icon-precomposed.png');
     $body = $this->parser->parse_string($body, array('has_logo' => $has_logo, 'logo_src' => default_base_url('apple-touch-icon-precomposed.png')), true, 'mustache');
     $this->captcha->clear();
     $this->template->set(compact('success', 'messages', 'subject', 'body'))->enable_parser_body('i18n')->build('email_test');
 }
예제 #23
0
 function create()
 {
     $update_id = $this->uri->segment(3);
     $data = array();
     $this->load->model('mdl_vaccines');
     if (!isset($update_id)) {
         $update_id = $this->input->post('update_id', $id);
         $data['mavaccine'] = $this->mdl_vaccines->getVaccine();
     }
     if (is_numeric($update_id)) {
         $data = $this->get_data_from_db($update_id);
         $data['update_id'] = $update_id;
         $data['mavaccine'] = $this->mdl_vaccines->getVaccine();
     } else {
         $data = $this->get_data_from_post();
         $data['mavaccine'] = $this->mdl_vaccines->getVaccine();
     }
     $data['module'] = "vaccines";
     $data['view_file'] = "create_vaccines_form";
     $data['section'] = "Configuration";
     $data['subtitle'] = "Add Vaccine";
     $data['page_title'] = "Vaccines";
     $data['user_object'] = $this->get_user_object();
     $data['main_title'] = $this->get_title();
     echo Modules::run('template/' . $this->redirect($this->session->userdata['logged_in']['user_group']), $data);
 }
예제 #24
0
 public function index()
 {
     $forgroups = array();
     Modules::run('users/in_groups', $forgroups);
     $data['categories'] = $this->get_categories();
     $this->load->view('categories_homepage_view', $data);
 }
예제 #25
0
 function _dialog($page)
 {
     if (in_array($page, array('edit'))) {
         $this->response->dialog(array('body' => Modules::run('exp_field/' . $page)));
     }
     $this->response->send();
 }
예제 #26
0
파일: home.php 프로젝트: roeldingle/devroel
 public function index()
 {
     $aData['aModule'] = Modules::run('menu');
     $aData['aMenuData'] = $this->getClass->select('tb_menu', '', 'rows');
     $aData['aUserData'] = $this->getClass->select('tb_user', '', 'rows');
     $this->load->view('v_' . strtolower(__CLASS__), $aData);
 }
 public function __construct()
 {
     parent::__construct();
     Modules::run('login/is_logged_in');
     $this->load->model('view');
     $this->load->config('config');
 }
예제 #28
0
 function create()
 {
     Modules::run('secure_tings/ni_admin');
     $update_id = $this->uri->segment(3);
     $data = array();
     $this->load->model('mdl_county');
     if (!isset($update_id)) {
         $update_id = $this->input->post('update_id', $id);
         $data['maregion'] = $this->mdl_county->getRegion();
     }
     if (is_numeric($update_id)) {
         $data = $this->get_data_from_db($update_id);
         $data['update_id'] = $update_id;
         $data['maregion'] = $this->mdl_county->getRegion();
     } else {
         $data = $this->get_data_from_post();
         $data['maregion'] = $this->mdl_county->getRegion();
     }
     $data['section'] = "Configuration";
     $data['subtitle'] = "County";
     $data['page_title'] = "Add County";
     $data['module'] = "county";
     $data['view_file'] = "create_county_form";
     $data['user_object'] = $this->get_user_object();
     $data['main_title'] = $this->get_title();
     $this->load->library('make_bread');
     $this->make_bread->add('Configurations', '', 0);
     $this->make_bread->add('List Counties', 'county/', 1);
     $this->make_bread->add('Edit County', '', 0);
     $data['breadcrumb'] = $this->make_bread->output();
     echo Modules::run('template/' . $this->redirect($this->session->userdata['logged_in']['user_group']), $data);
 }
예제 #29
0
파일: galleries.php 프로젝트: NaszvadiG/ave
 public function __construct()
 {
     parent::__construct();
     Modules::run('users/index');
     $forgroups = array();
     Modules::run('users/in_groups', $forgroups);
 }
예제 #30
0
 private function install_update($product, $update_file)
 {
     switch ($product->type) {
         case "theme":
             $zip = new ZipArchive();
             $file_path = $update_file;
             if ($zip->open($file_path) === TRUE) {
                 $zip->extractTo(APPPATH . '../themes');
                 $zip->close();
                 unlink($update_file);
             } else {
             }
             break;
         case "module":
             $zip = new ZipArchive();
             $file_path = $update_file;
             if ($zip->open($file_path) === TRUE) {
                 $folder = $zip->getNameIndex(0);
                 $zip->extractTo(APPPATH . '../modules');
                 PC::builder_market("Zip extracted successfully.");
                 PC::builder_market("Unzipped folder " . $folder);
                 Modules::run("module_system/admin/update", $folder);
                 $zip->close();
                 unlink($update_file);
             } else {
                 PC::builder_market("Unable to extract zip.");
             }
             break;
     }
 }