Exemple #1
0
 public function __construct($alias)
 {
     parent::__construct();
     $this->_alias = $alias;
 }
/*entrytest*/
if (isset($_GET['entrytest'])) {
    if (!isset($_GET['menu_id']) || !isset($_GET['type']) || !isset($_GET['date'])) {
        return false;
    }
    $menu_id = $c->_model->_changeDauNhay($_GET['menu_id']);
    settype($menu_id, "int");
    $table = $c->_model->_changeDauNhay($_GET['type']);
    $table_date = $c->_model->_changeDauNhay($_GET['date']);
    $arr = array("select" => "`id`", "from" => "`{$table}`", "where" => "`datetime`='{$table_date}'");
    $data = $c->_model->_select($arr);
    if (count($data) == 0) {
        echo 'Khong ton tai bai test nay.';
        return false;
    }
    $cG = new controlGerenal();
    $logo = $cG->logo($lang);
    $logoStevbros = $logo[0];
    $logoPMI = $logo[1];
    $currentPage = $c->_model->_webHeaderID($menu_id);
    if (count($currentPage) == 0) {
        return false;
    }
    include_once 'view/web_entrytest.php';
    return true;
}
if (isset($_POST['entrytestUser'])) {
    if (!isset($_POST['table']) || !isset($_POST['table_date']) || !isset($_POST['menu_id']) || !isset($_POST['entrytest_id']) || !isset($_POST['answers'])) {
        $arr = array('error' => 1, 'message' => 'Error 01: Please press F5 key to try again');
        echo $c->exportError($arr);
        return false;
Exemple #3
0
<?php

$c = new controlGerenal();
$currentPage = $c->currentPage($arrUrl['link']);
//$c->_model->_print($currentPage);
if ($currentPage['id'] == '') {
    $lang = $arrUrl['link'];
    $checksLang = $c->_model->_language($lang);
    if (count($checksLang) != 0) {
        include_once 'pageHome.php';
        return true;
    }
    $error = ERROR_NOT_FOUND_PAGE . $arrUrl['link'];
    include_once 'view/web_error.php';
    return false;
}
$lang = $currentPage['lang'];
$config = $c->config($lang);
$language_var = $c->_model->_language_var($lang);
$urlImg = $c->webType();
if ($currentPage['properties'] == 1) {
    $fileView = "web_{$currentPage['type']}_list.php";
} else {
    if ($currentPage['properties'] == 2) {
        $menu = $c->headerMenu($currentPage['menu_id']);
        $rowDetail = $c->_model->_content($currentPage['id']);
        if (count($rowDetail) == 0) {
            $error = ERROR_NOT_FOUND_PAGE . $arrUrl['page'];
            include_once 'view/web_error.php';
            return false;
        }
Exemple #4
0
<?php

$c = new controlGerenal();
$currentPage = $c->currentPage($arrUrl['link']);
if ($currentPage['id'] == '') {
    $lang = $arrUrl['link'];
    $checksLang = $c->_model->_language($lang);
    if (count($checksLang) != 0) {
        include_once 'pageHome.php';
        return true;
    } else {
        $lang = CONS_DEFAULT_LANG;
        include_once 'pageHome.php';
        return false;
    }
    $error = ERROR_NOT_FOUND_PAGE . $arrUrl['link'];
    include_once 'view/web_error.php';
    return false;
}
$lang = $currentPage['lang'];
$config = $c->_model->_config($lang);
$lang_var = $c->_model->_language_var($lang);
if ($currentPage['properties'] == 1) {
    $fileView = "web_{$currentPage['type']['type']}_list.php";
} else {
    if ($currentPage['properties'] == 2) {
        $currentMenu = $c->headerMenu($currentPage['menu_id']);
        $rowDetail = $c->_model->_content($currentPage['id']);
        $fileView = "web_{$currentPage['type']['type']}_detail.php";
    } else {
        $error = ERROR_NOT_FOUND_PAGE . $arrUrl['page'];
 public function __construct()
 {
     parent::__construct();
     $this->_mApps = new modelApps();
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct();
     //$this->_home = new modelHome;
     $this->language();
 }
 public function __construct($lang)
 {
     parent::__construct();
     $this->_lang = $lang;
 }
Exemple #8
0
 public function __construct($alias, $currentPage = NULL)
 {
     parent::__construct();
     $this->_alias = $alias;
     $this->_currentPage = $currentPage;
 }