Exemple #1
0
<?php

include 'common.php';
//echo $res;
require_once __SITE_PATH . '/model/dbaccess.class.php';
$sqlselect = 'cat_id,cat_url,cat_title title';
if ($lang == 'vn') {
    $sqlselect = 'cat_id,cat_url,cat_title_vn title';
}
$db = new dbaccess(DB_NAME, DB_HOST, DB_USER, DB_PASSWORD);
$db->connect();
$db->select('tbl_category', $sqlselect, 'cat_parent = 0 and status = 0', 'cat_seq');
$res = $db->getResult();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" href="<?php 
echo __SITE_URL;
?>
/images/icon.ico" />
        <link rel="stylesheet" href="<?php 
echo __SITE_URL;
?>
/themes/css/nav.css">
        <link rel="stylesheet" href="<?php 
echo __SITE_URL;
?>
/themes/css/main.css">
        <script src="<?php