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->info_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_detail_image; include_once 'blocks/articles.php'; break; case 3: $qr = $tc->thisinh_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_thisinh_image; include_once 'blocks/thisinh.php'; break; case 4: $qr = $tc->bosuutap_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_bosuutap_image; include_once 'blocks/bosuutap.php'; break; case 6: $qr = $tc->video_detail($dt); $row_detail = mysql_fetch_array($qr); $image_link = url_video_image; include_once 'blocks/video.php';