case 5: include_once 'blocks/project_3_list.php'; break; case 6: include_once 'blocks/contact.php'; break; 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);