$title = lg('gallery-detail'); // Danh muc san pham if(!empty($_GET['name'])) { $pageURL = safe($_GET['name']); $s = "SELECT * FROM ".PREFIX_NAME."img_detail".SUPFIX_NAME." WHERE URL='$pageURL'"; if($r = $dx->get_row($s)) { // Da ngon ngu if(MULTI_LANGUAGE && lc()!=DEFAULT_LANGUAGE){ $ss = "SELECT * FROM ".PREFIX_NAME."img_detail_lg".SUPFIX_NAME." WHERE imgID='".$r->imgID."' ".lw('AND'); if($rr = $dx->get_row($ss)){ foreach(['Ten','Mota'] as $key) { $r->$key = $rr->$key; } } } } $title = stripslashes($r->Ten); $colname = GetField($dx,PREFIX_NAME."collection_img".SUPFIX_NAME,"colID ='".$r->colID."'",'Ten'); if(MULTI_LANGUAGE && lc()!=DEFAULT_LANGUAGE){ $ssx = "SELECT * FROM ".PREFIX_NAME."collection_img_lg".SUPFIX_NAME." WHERE colID='".$r->colID."' ".lw('AND'); if($rrx = $dx->get_row($ssx)){ $colname = $rrx->Ten; } } $tagchilID = GetField($dx,PREFIX_NAME."tag".SUPFIX_NAME,"tagID ='".$r->tagID."'",'tagchilID'); $gallery = [ 'imgID' => stripslashes($r->imgID), 'name' => stripslashes($r->Ten), 'image' => $r->Anh, 'thumb' => $r->Anh, 'rias' => $r->Anh, 'alt' => stripslashes($r->alt), 'Mota' => stripslashes($r->Mota), 'tagID' => stripslashes($r->tagID), 'tagchilID' => stripslashes($tagchilID), 'colID' => stripslashes($r->colID), 'proID' => stripslashes($r->proID), 'colname' => stripslashes($colname), ]; } if(empty($seot)) $seot = $title.' | '.$web['title']; if(!empty($seot)) $web['title'] = $seot; ?>
include_once('_header.php')?>
$taglist = []; //select tag $Stag = "SELECT * FROM ".PREFIX_NAME."tag".SUPFIX_NAME." WHERE tagID='".$gallery['tagchilID']."' OR tagID='".$gallery['tagID']."' "; if ($rs = $dx->get_results($Stag)) { foreach ($rs as $r) { $info = [ 'name' => stripslashes($r->Ten), 'link'=> stripslashes($r->URL), ]; // Da ngon ngu if(MULTI_LANGUAGE && lc()!=DEFAULT_LANGUAGE){ $ss = "SELECT * FROM ".PREFIX_NAME."tag_lg".SUPFIX_NAME." WHERE tagID='".$r->tagID."' ".lw('AND'); if($rr = $dx->get_row($ss)){ $info['name'] = stripslashes($rr->Ten); } } $taglist[] = $info; } } ?> Tag: foreach ($taglist as $vl) { ?> }?>
X
Để lại thông tin & nhận ngay thiết kế miễn phí!