function __construct()
 {
     parent::__construct();
     if (!$this->session->userdata('lang')) {
         $this->session->set_userdata('lang', 'th');
     }
     $this->template->title('สำนักโรคติดต่อทั่วไป :: Bureau of General Communicable Department of Disease Control MOPH, Thailand');
     $this->session->userdata('th', "gcdnew");
     $this->session->userdata('en', "gcdeng");
     $this->template->set_theme('thaigcd2015');
     $this->template->set_layout('layout');
     // Set js
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     $this->template->append_metadata(js_lightbox());
     // set lang
     if (!$this->session->userdata('lang')) {
         $this->session->set_userdata('lang', 'th');
     }
     if (@$this->session->userdata('lang') == "th") {
         $this->lang->load('public', 'thai');
     } else {
         $this->lang->load('public', 'english');
     }
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     header('Content-type: text/html; charset=UTF-8');
     $this->template->title('DrTooth Dental Clinic');
     $this->template->set_theme('drtooth');
     $this->template->set_layout('layout');
     // Set js
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     // meta keywords
     // $this->template->append_metadata( meta('description','คลินิกทันตกรรมที่ให้บริการการดูแลรักษาฟันและโรคในช่องปากโดยทีมทันตแพทย์ที่เชี่ยวชาญเฉพาะทาง มีประสบการณ์ในการทำงาน'));
     // $this->template->append_metadata( meta('keywords','DrTooth,Dental,Clinic,ทันตกรรม,จัดฟัน,Damon,Invisalign,จัดฟันร่วมกับการผ่าตัด,ความงาม,ทันตกรรมประดิษฐ์,รากเทียม,ศัลยกรรม,ช่องปาก,โรคเหงือก,ขูดหินปูน,เคลือบผิวฟัน,เคลือบฟลูออไรด์,ฟอกสีฟัน,X-Ray,ถอนฟัน,ผ่าฟันคุด,ครอบฟัน,อุดฟัน'));
     // Set Language
     if (!$this->session->userdata('lang')) {
         $this->session->set_userdata('lang', 'th');
     }
     if (@$this->session->userdata('lang') == "th") {
         $this->lang->load('public', 'thai');
     } elseif (@$this->session->userdata('lang') == "en") {
         $this->lang->load('public', 'english');
     } else {
         $this->lang->load('public', 'china');
     }
 }
 function __construct()
 {
     parent::__construct();
     // Check Auth Login
     $this->template->title('Thaigcd.ddc.moph.go.th - ระบบแบบสอบถาม');
     $this->template->set_theme('question');
     $this->template->set_layout('layout');
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     $this->template->append_metadata(js_lightbox());
 }
Example #4
0
 function __construct()
 {
     parent::__construct();
     // Check Auth Login
     if (!is_login('Administrator')) {
         redirect('users/admin/auth');
     }
     if (!is_auth()) {
         redirect('users/admin/auth/fail');
     }
     $this->template->set_theme('admin');
     // Set layout
     $this->template->set_layout('layout');
     // Load Langauge
     $this->lang->load('admin');
     // Set js
     $this->template->append_metadata(js_notify());
 }
Example #5
0
 function __construct()
 {
     parent::__construct();
     ini_set("memory_limit", "512M");
     // check login
     // if(!is_login('Administrator')) redirect('users/admin/auth/login');
     $this->template->set_theme('ace_admin');
     // Set layout
     $this->template->set_layout('layout');
     // Load Langauge
     $this->lang->load('admin');
     // Set Default Language
     $this->session->set_userdata('lang', 'th');
     // Set js
     $this->template->append_metadata(js_notify());
     // simple dom
     include 'media/simpledom/simple_html_dom.php';
 }
 function __construct()
 {
     parent::__construct();
     // Check Auth Login
     if (!is_login()) {
         set_notify('error', 'คุณไม่มีสิทธิเข้าใช้งานในส่วนนี้ค่ะ');
         redirect('home');
     } else {
         if (!is_publish('documents')) {
             set_notify('error', 'คุณไม่มีสิทธิเข้าใช้งานในส่วนนี้ค่ะ');
             redirect('home');
         }
     }
     $this->template->title('Thaigcd.ddc.moph.go.th - ระบบลงทะเบียนการประชุม');
     $this->template->set_theme('document');
     $this->template->set_layout('layout');
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     $this->template->append_metadata(js_lightbox());
 }
Example #7
0
 function __construct()
 {
     parent::__construct();
     header('Content-type: text/html; charset=UTF-8');
     $this->template->title('งานบริหารกองทุน สำนักงานปลัดกระทรวงการพัฒนาสังคมและความมั่นคงของมนุษย์.');
     $this->template->set_theme('fundv2');
     $this->template->set_layout('blank');
     // Set js
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     // Set Language
     if (!$this->session->userdata('lang')) {
         $this->session->set_userdata('lang', 'th');
     }
     if (@$this->session->userdata('lang') == "th") {
         $this->lang->load('public', 'thai');
     } elseif (@$this->session->userdata('lang') == "en") {
         $this->lang->load('public', 'english');
     } else {
         $this->lang->load('public', 'china');
     }
 }
Example #8
0
 function __construct()
 {
     parent::__construct();
     header('Content-type: text/html; charset=UTF-8');
     $this->template->title('Addfriend 2016');
     $this->template->set_theme('addfriend');
     $this->template->set_layout('layout');
     $this->template->title('หาเพื่อน หาแฟน หากิ๊ก หาคู่ หาเพื่อนเล่นเกม แลกไอดีไลน์ - Addfriend');
     // Set js
     $this->lang->load('admin');
     $this->template->append_metadata(js_notify());
     meta_description();
     $this->template->append_metadata(meta('keywords', "โสด,เหงา,LINE,instagram,facebook,whatsapp,BBM,Sticker,Sticker LINE,สติ๊กเกอร์,หาเพื่อน,หาแฟน,หากิ๊ก,หาคู่,แลกไอดีไลน์,หาเพื่อนไลน์,หาเพื่อน LINE,หาเพื่อน instagram,หาเพื่อน facebook,หาเพื่อน whatsapp,หาเพื่อน BBM,หาเพื่อนชาย,หาเพื่อนหญิง,หาเพื่อนเกย์,หาเพื่อนทอม,หาเพื่อนดี้,หาเพื่อนสาวประเภทสอง,หาเพื่อนหน้าตาดี,หาเพื่อนเล่นเกม,คุ้กกี้รัน,cookie run,เกมเศรษฐี,Let's Get Rich,LINE ranger"));
     // Set Language
     // if(!$this->session->userdata('lang')) $this->session->set_userdata('lang','th');
     //
     // if(@$this->session->userdata('lang') == "th"){
     // $this->lang->load('public','thai');
     // }elseif(@$this->session->userdata('lang') == "en"){
     // $this->lang->load('public','english');
     // }else{
     // $this->lang->load('public','china');
     // }
 }
 public function __construct()
 {
     parent::__construct('/views/artists/');
 }
Example #10
0
 public function __construct()
 {
     parent::__construct(get_class(), 'master', '/views/');
     // $this->model = new \Models\Artist();
     //echo "Login Controller created<br />";
 }
Example #11
0
 public function __construct()
 {
     parent::__construct(get_class(), 'master', '/views/');
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
 }
Example #13
0
 function __construct()
 {
     parent::__construct();
     $this->template->set_theme('admin');
     $this->template->set_layout('index');
 }