function __construct() { parent::__construct(); $this->user_id = get_current_user_id(); $this->load->helper('car'); $this->load->model('car_model'); }
function __construct() { parent::__construct(); $this->layout->add_javascripts(array('bootstrap.min', 'bootstrap-datepicker')); $this->load->model(array('about_model')); //echo $this->layout->get_img_dir(); }
/** * Search function */ function __construct() { parent::__construct(); // get the inputs from the search // form uses post, but next/prev links use get $this->id = $this->input->get_post('id'); $this->s1 = $this->input->get_post('s1'); $this->s2 = $this->input->get_post('s2'); $this->s3 = $this->input->get_post('s3'); $this->s4 = $this->input->get_post('s4'); $this->s5 = $this->input->get_post('s5'); // figure out which type of search it is from the searches table $query = $this->db->get_where('searches', array('id' => $this->id)); $myresult = $query->row(); // assign the query from the search to the query string // replace the s1 thru s5 etc place holders with the actual variables $this->searchquery = str_replace("%s1%", $this->s1, $myresult->query); $this->searchquery = str_replace("%s2%", $this->s2, $this->searchquery); $this->searchquery = str_replace("%s3%", $this->s3, $this->searchquery); $this->searchquery = str_replace("%s4%", $this->s4, $this->searchquery); $this->searchquery = str_replace("%s5%", $this->s5, $this->searchquery); $this->result = $this->db->query($this->searchquery) or die("search result queryfailed"); // print the search page heading echo "<h3>"; echo lang('foundset'); echo "</h3>"; echo "<table cellpadding=5 cellspacing=1 border=0>"; }
public function __construct() { parent::__construct(); $this->body_class[] = 'skin-blue'; $this->load->model('settings_model'); $this->page_title = 'General Settings'; }
function __construct() { parent::__construct(); $this->load->helper("gchart"); $this->load->model("statistics_model"); $this->colors = array("ff7f00", "007fff", "7fff00", "ff007f", "00ff7f", "7f00ff", "7f7f00", "7f007f", "007f7f", "ff0000", "00ff00", "0000ff", "ffff00", "ff00ff", "00ffff"); }
function __construct() { parent::__construct(); $this->layout->add_javascripts(array('bootstrap.min', 'bootstrap-datepicker')); $this->load->model(array('login_model', 'user_model')); $this->load->model('plan_model'); }
function __construct() { parent::__construct(); $this->load->model('customer_model'); $this->load->model('module_model'); $this->load->model('billing_model'); $this->load->model('user_model'); }
public function init() { $this->view->setLayout('layout_admin'); if (!App_Auth::getInstance()->hasIdentity()) { App_Request::getInstance()->setAction('login'); } parent::init(); }
public function __construct() { parent::__construct(); $this->load->library('session'); $this->load->model('Ion_auth_model'); $this->lang->load('auth'); $this->load->helper('language'); }
function __construct() { parent::__construct(); $this->load->model(array('forms1_model')); if ($this->session->userdata('user_id') == "") { redirect(""); } }
public function __construct() { parent::__construct(); $this->body_class[] = 'skin-blue'; $this->page_title = 'General Tech - Brand'; $this->load->library('form_validation'); $this->load->model('Brand_model', 'brand_model'); }
function __construct() { parent::__construct(); //$this->layout->add_javascripts(array('custom')); //$this->load->library('form_validation'); //$this->load->model('userlogin_model'); //$this->load->library('upload_manager'); }
/** * Overrides postDispatch() from App_Controller * * @access public * @return void */ public function postDispatch() { parent::postDispatch(); if (isset($this->title)) { $this->view->headTitle($this->title); } else { $this->view->headTitle(''); } }
public function __construct() { parent::__construct(); $this->body_class[] = 'skin-blue'; $this->page_title = 'General Tech - Product'; $this->load->model('brand_model', 'brand_model'); $this->load->model('category_model', 'category_model'); $this->load->model('product_model', 'product_model'); }
function __construct() { parent::__construct(); $this->load->library('safety_forms'); $this->load->library("pdf"); if ($this->session->userdata('user_id') == "") { redirect(""); } }
function __construct() { parent::__construct(); $this->layout->add_javascripts(array('bootstrap.min', 'bootstrap-datepicker', 'cart')); $this->load->model(array('product1_model')); if ($this->session->userdata('user_detail')['role'] != 2 || $this->session->userdata('user_id') == "") { redirect(""); } }
function __construct() { parent::__construct(); $this->layout->add_javascripts(array('bootstrap.min', 'bootstrap-datepicker')); $this->load->model(array('webinars_model')); if ($this->session->userdata('user_id') == "") { redirect(""); } //echo $this->layout->get_img_dir(); }
function __construct() { parent::__construct(); $this->load->model('service_model'); $this->load->model('schema_model'); $this->load->model('module_model'); $this->load->model('customer_model'); $this->load->model('billing_model'); $this->load->model('support_model'); }
public function __construct() { parent::__construct(); $this->load->model("Dashboard_model"); $this->body_class = array('sidebar-mini', 'dashboard_page'); $this->page_title = 'Dashboard'; $this->extra_css = array('dashboard/style.css'); $this->extra_js = array('dashboard/script.js'); $this->current_section = 'dashboard'; }
function __construct() { parent::__construct(); $this->layout->add_javascripts(array('cart')); $this->load->library('cart'); $this->load->model(array('cart_model')); if ($this->session->userdata('user_detail')['role'] != 2 || $this->session->userdata('user_id') == "") { redirect(""); } }
public function __construct() { parent::__construct(); /* Load title, css, js etc... */ $this->page_title = "General Tech Services LLC -" . STATIC_TITLE; $this->page_meta_keywords = ''; $this->page_meta_description = ''; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'bootstrap.min.css', 'main.css', 'responsive.css', 'component.css', 'metro.css', 'requesttab.css'); $this->assets_js = array('easyResponsiveTabs.js', 'jquery.validate.min.js'); /* Load title, css, js etc... */ }
public function __construct() { $packageName = substr(dirname(__FILE__), strlen(APP_PATH . 'controller/')); empty($packageName) && ($packageName = 'default'); $this->packageName = $packageName; $this->className = strtolower(substr(__CLASS__, 0, strpos(__CLASS__, '_'))); parent::__construct(FALSE); if ($this->isAjaxRequest() == TRUE) { $this->template = new View('layout/default_json'); } }
public function __construct() { parent::__construct(); /* Load title, css, js etc... */ $this->page_title = "General Tech Services LLC -" . STATIC_TITLE; $this->page_meta_keywords = ''; $this->page_meta_description = ''; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'responsiveslides.css', 'bootstrap.min.css', 'main.css', 'responsive.css', 'metro.css'); $this->assets_js = array('jquery-1.11.2.min.js', 'responsiveslides.min.js', 'jquery.carouFredSel-6.0.4-packed.js', 'jquery.meanmenu.js', 'bootstrap.min.js', 'my.script.min.js'); $this->load->model('user_model'); /* Load title, css, js etc... */ }
public function __construct() { parent::__construct(); /* if(!is_logged_in()) { redirect('login'); } */ $this->data = array(); //$this->role = get_user_role(); $this->load->library("form_validation"); }
public function __construct() { parent::__construct(); $this->load->model('home_model'); $this->load->model('product_model'); $this->load->model('brand_model'); $this->load->model('category_model'); $this->load->model('calibration_model'); /* Load title, css, js etc... */ $this->page_title = "General Tech Services LLC - Sitemap"; $this->page_meta_keywords = ''; $this->page_meta_description = ''; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'responsiveslides.css', 'bootstrap.min.css', 'main.css', 'responsive.css'); /* Load title, css, js etc... */ }
public function __construct() { parent::__construct(); $this->load->model('brand_model'); $this->data['brands'] = $this->brand_model->getBrands(); /* Load title, css, js etc... */ $this->page_title = "Calibration Service and repair Dubai / Sharjah, UAE"; $this->page_meta_description = 'General Tech UAE, provides calibration and repair services for Electrical and Temperature parameters including Oven, Furnace, Compression machine, Multimeter, Weigh balance and Dimensional instrument in Sharjah, Dubai, UAE'; $this->page_meta_keywords = 'Dimensional instrument repair uae, oven repairing service dubai, furnace repair sharjah, compression machine repairing uae, Multimeter repairing dubai, Weigh balance repairing uae'; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'responsiveslides.css', 'bootstrap.min.css', 'main.css', 'responsive.css'); $this->assets_js = array('responsiveslides.min.js', 'jquery.carouFredSel-6.0.4-packed.js', 'jquery.meanmenu.js', 'bootstrap.min.js', 'my.script.min.js', 'jquery.simple.select.js'); /* Load title, css, js etc... */ }
public function __construct() { parent::__construct(); $this->load->model('Ion_auth_model'); $this->body_class = array('sidebar-mini', 'signup_page'); $this->page_title = 'Sign Up'; $this->extra_css = array('signup/style.css'); $this->extra_js = array('signup/script.js'); $this->current_section = 'singup'; $this->show_searchbar = false; $this->template->set_partial("college_slider", "partials/college_slider"); $this->form_validation->set_rules('nickname', 'Nickname', 'required|min_length[3]'); $this->form_validation->set_rules('email', 'Email', 'required|valid_email'); $this->form_validation->set_rules('password', 'Password', 'required|min_length[8]'); $this->form_validation->set_rules('cpassword', 'Confirm Password', 'required|matches[password]'); $this->form_validation->set_rules('national', 'Nationality', 'required|callback_validate_national'); }
public function __construct() { parent::__construct(); $this->load->model('home_model'); $this->load->model('product_model'); $this->load->model('brand_model'); $this->load->model('category_model'); $this->load->model('news_model'); $this->data['featuredProducts'] = $this->product_model->getFeaturedProducts(); $this->data['brands'] = $this->brand_model->getBrands(); /* Load title, css, js etc... */ $this->page_meta_keywords = 'dimensional calibration uae, electrical calibration sharjah, pressure calibration dubai, temperature calibration uae, humidity calibration dubai, torque calibration sharjah, mass calibration uae, volumetric calibration sharjah, flow calibration dubai, force calibration uae'; $this->page_meta_description = 'Generaltech established with the primary objective of providing top quality calibration services including equipment calibration, instrument calibration, meter calibration, pressure gage calibration, electrical calibration, laboratory calibration, dimensional calibration to their reputed customers in Dubai, Sharjah, UAE and Middle East.'; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'responsiveslides.css', 'bootstrap.min.css', 'main.css', 'responsive.css'); $this->assets_js = array('responsiveslides.min.js', 'jquery.carouFredSel-6.0.4-packed.js', 'bootstrap.min.js', 'jquery.validate.min.js', 'my.script.min.js'); /* Load title, css, js etc... */ }
function __construct() { parent::__construct(); $config = api_credentials('sandbox', 'paypal'); $config1 = api_credentials('TEST', 'authorize'); if ($config1['mode'] == "TEST") { $config1['api_url'] = 'https://test.authorize.net/gateway/transact.dll'; $config1['arb_api_url'] = 'https://apitest.authorize.net/xml/v1/request.api'; } else { $config1['api_url'] = 'https://authorize.net/gateway/transact.dll'; $config1['arb_api_url'] = 'https://api.authorize.net/xml/v1/request.api'; } $this->load->library('authorize_net', $config1); $this->load->library('authorize_arb', $config1); // Show Errors if ($config['Sandbox']) { error_reporting(E_ALL); ini_set('display_errors', '1'); } $this->load->model(array('payment_model', 'login_model', 'user_model')); $this->load->library('Paypal_pro', $config); $this->payment_method = ''; }
public function __construct() { parent::__construct(); /* Load title, css, js etc... */ $this->page_title = "Dimensional Calibration Dubai / Sharjah, UAE"; $this->page_meta_description = 'Generaltech materials testing labs in Sharjah, UAE provide testing, inspection, analysis, and consulting for your materials, parts, equipment and products. Dimensional inspection services are performed in our environmentally controlled laboratory under regulated temperature and humidity conditions.'; $this->page_meta_keywords = 'dimensional inspection services dubai, dimensional inspection labs sharjah, dimensional inspection laboratories uae, metrology uae, dimensional metrology sharjah, metrology services dubai, metrology and inspection uae, laser metrology sharjah, optical metrology services dubai, surface metrology uae, metrology laboratory dubai, metrology service uae, metrology inspection dubai, metrology companies uae, metrology calibration services uae'; $this->assets_css = array('reset.css', 'header_footer.css', 'style.css', 'meanmenu.css', 'bootstrap.min.css', 'main.css', 'responsive.css', 'component.css', 'metro.css', 'requesttab.css'); /* Load title, css, js etc... */ }