public function __construct()
 {
     parent::__construct();
     $this->_add_java_script('j');
     $this->_add_java_script('table');
     $this->_add_java_script('stuff');
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('parent_account_model');
     $this->load->model('child/child_model');
 }
 /**
  *
  * @return ничего не возвращает
  */
 public function __construct()
 {
     //Значения временных полей заполняются parent_controller
     $this->temporary = array($this->form_prefix . '_reqreports_type_filt' => 'all', $this->form_prefix . '_reqreports_columns' => 'all', $this->form_prefix . '_reptemplates_columns' => 'all');
     parent::__construct();
     $this->_add_ajax();
     $this->load->helper('periods');
     $this->load->library('form');
     $this->search_entities_controller = "";
     $this->clone_report_controller = "";
     $this->view_report_controller = "";
     $this->after_create_controller = "";
     $this->save_defaults_controller = "";
     $this->view_report_from_controller = "";
     $this->content_template = "common/reports_center/template.html";
     $this->create_report_template = 'common/reports_center/create_report.html';
     $this->req_report_buttons_template = "common/reports_center/buttons.html";
     $this->all_entities_tab_label = "All Users";
     $this->selected_entities_tab_label = "Selected Users";
     $this->entities_filter_label = "Users Filter";
     $this->search_result_label = "Users";
     $this->choosed_entities_label = "Choosed Users";
     $this->select_entity_alert = "Select at least one user!";
     $this->display_entities_selects = false;
     $this->display_actions_in_table = true;
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('Feedback_model');
     if ($this->module_in_array('feedback') == FALSE) {
         redirect(site_url('home'));
         $this->session->set_flashdata('message', 'permission Denied');
     }
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('gallery_model');
     $this->load->library('form_validation');
     $this->data['message'] = '';
     $this->data['themes'] = "themes/parent";
     if ($this->module_in_array('gallery') == FALSE) {
         redirect(site_url('home'));
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('payment/payment_model', 'options_model'));
     $default = array();
     $current_child = $this->payment_model->select('current_centre_id')->getOneWhere(array('id' => $this->selected_child_id), IMS_DB_PREFIX . 'child');
     $centre_settings = $this->payment_model->getOneWhere(array('id' => $current_child->current_centre_id), IMS_DB_PREFIX . 'centre');
     if (empty($centre_settings->billing_settings)) {
         $this->data['billing_settings'] = array('currency' => '', 'vat' => '', 'date_format' => '', 'time_format' => '', 'payment_term' => '', 'business_detail' => '', 'going_to_due' => '', 'over_due' => '', 'snd_over_due' => '');
         $this->data['current_currency'] = 'SGD';
         $this->data['tax'] = 0;
     } else {
         $this->data['billing_settings'] = unserialize($centre_settings->billing_settings);
         $this->data['current_currency'] = $this->data['billing_settings']['currency'];
         $this->data['tax'] = $this->data['billing_settings']['vat'];
     }
 }