$idMenu = $row_menu_one['id']; $type = $row_menu_one['type_id']; $lang = $row_menu_one['lang']; include "languages/{$lang}.php"; include_once 'config.php'; $menu_root = $tc->menu_root($row_menu_one['parent_id'], $idMenu); if (!@$_GET['detail']) { $row_menu_one['url_hinh'] == '' ? $image = 'http://' . $domain . '/' . url_default_image : ($image = 'http://' . $domain . '/' . url_catalog_image . $row_menu_one['url_hinh']); $url = 'http://' . $domain . '/' . $row_menu_one['url']; $title = strip_tags($row_menu_one['title'], ''); $title = str_replace('"', ' ', $title); $description = strip_tags($row_menu_one['metaDescription'], ''); $description = str_replace('"', ' ', $description); $keyword = strip_tags($row_menu_one['metaKeyword'], ''); $keyword = str_replace('"', ' ', $keyword); $seo = $tc->seo($domain, $title . $page_name, $description . $page_name, $keyword, $image, $url); $include = ob_start(); switch ($type) { case 2: include_once 'blocks/articles_list.php'; break; case 3: include_once 'blocks/product_list.php'; break; case 4: include_once 'blocks/project_2_list.php'; break; case 5: include_once 'blocks/project_3_list.php'; break; case 6:
$tc = new trangchu(); include "languages/{$lang}.php"; include_once 'config.php'; $dt = $_GET['info']; $qr = $tc->info_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_detail_image_thumb; $row_detail['url_hinh'] != '' ? $image = 'http://' . $domain . '/' . $image_link . $row_detail['url_hinh'] : ($image = 'http://' . $domain . '/' . url_default_image); $url = 'http://' . $domain . '/' . $row_menu_one['url'] . $row_detail['name_rewrite'] . '.html'; $title = strip_tags($row_detail['name'], ''); $title = str_replace('"', ' ', $title); $description = strip_tags($row_detail['metaDescription'], ''); $description = str_replace('"', ' ', $description); $keyword = strip_tags($row_detail['metaKeyword']); $keyword = str_replace('"', ' ', $keyword); $seo = $tc->seo($domain, $title, $description, $keyword, $image, $url); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php echo $seo; ?> <style> body{font-family:Arial, Helvetica, sans-serif; font-size:11pt} .viewpost{line-height:23px} .viewpost p, .viewpost div {margin:10px 0} .viewpost li{margin-left:35px} h1{font-size:140%; line-height:25px; color:#DA251E; margin-bottom:10px} h2, h3, h4, h5, h6 {font-size:100%} </style>