default: echo '<p style="height:500px"><font color="#FF0000"><b>Could not be found</b></font></p>'; } $include = ob_get_clean(); } else { $dt = $_GET['detail']; $include = ob_start(); switch ($type) { case 2: $qr = $tc->detail_info($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_detail_image_thumb; include_once 'blocks/articles.php'; break; case 3: $qr = $tc->detail_product($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_products_image_thumb; include_once 'blocks/project_detail.php'; break; default: echo '<p style="height:500px"><font color="#FF0000"><b>Could not be found</b></font></p>'; } $include = ob_get_clean(); $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']);