timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/san-pham/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT t_tieude,t_mota FROM ".$prefix."sanpham WHERE t_id = '".$id."' AND t_hienthi = 1"); $row = $db->fetch_array($rs); $t_tieude = ucwords($myString->unQuote(stripslashes($row[t_tieude]))); $t_mota = ucwords($myString->unQuote(stripslashes($row[t_mota]))); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude . " | " . $t_mota; $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "danh-muc" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/danh-muc/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT c_ten FROM ".$prefix."loaisanpham WHERE c_id = '".$id."' AND c_hienthi = 1"); $row = $db->fetch_array($rs); if($db->num_rows($rs) != 0) { $t_tieude = stripslashes($row[c_ten]); $t_tieude = ucwords($t_tieude); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude; } $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "raovat" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/raovat/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT rv_tieude,rv_mota FROM ".$prefix."raovat WHERE rv_id = '".$id."' AND rv_hienthi = 1"); $row = $db->fetch_array($rs); $t_tieude = ucwords($myString->unQuote(stripslashes($row[rv_tieude]))); $t_mota = ucwords($myString->unQuote(stripslashes($row[rv_mota]))); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude . " | " . $t_mota; $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "danh-muc-rao-vat" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/danh-muc-rao-vat/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT rvc_ten FROM ".$prefix."loairaovat WHERE rvc_id = '".$id."' AND rvc_hienthi = 1"); $row = $db->fetch_array($rs); if($db->num_rows($rs) != 0) { $t_tieude = stripslashes($row[rvc_ten]); $t_tieude = ucwords($t_tieude); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude; } $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "vieclam" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/vieclam/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT td_tieude,td_mota FROM ".$prefix."tuyendung WHERE td_id = '".$id."' AND td_hienthi = 1"); $row = $db->fetch_array($rs); $t_tieude = ucwords($myString->unQuote(stripslashes($row[td_tieude]))); $t_mota = ucwords($myString->unQuote(stripslashes($row[td_mota]))); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude . " | " . $t_mota; $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "danh-muc-tuyen-dung" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/danh-muc-tuyen-dung/'.$id.'.php'); if($CacheManager_header->caching) { $rs = $db->query("SELECT ltd_ten FROM ".$prefix."loaituyendung WHERE ltd_id = '".$id."' AND ltd_hienthi = 1"); $row = $db->fetch_array($rs); if($db->num_rows($rs) != 0) { $t_tieude = stripslashes($row[ltd_ten]); $t_tieude = ucwords($t_tieude); $t_tieude = $t_tieude . " | " . str_replace($marTViet,$marKoDau,$t_tieude); $t_tukhoa = $t_tieude; $t_mota = $t_tieude; } $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); } else if($mota == "shop" ) { $CacheManager_header = new Cache(); $CacheManager_header->timeOut = 86400; $CacheManager_header->startCacheWithFileName('index/shop/'.$id.'.php'); if($CacheManager_header->caching) { $t_tieude = "Shop " . $id; $t_tukhoa = $t_tieude; $t_mota = $t_tieude; $html = "".$t_tieude." "; $CacheManager_header->content = $html; } $CacheManager_header->endCache(); }else { $html = "".$t_tieude." "; echo $html; } ?>