get_row($s)) { // Da ngon ngu if(MULTI_LANGUAGE && lc()!=DEFAULT_LANGUAGE){ $ss = "SELECT * FROM ".PREFIX_NAME."collection_img_lg".SUPFIX_NAME." WHERE colID ='".$r->colID ."' ".lw('AND'); if($rr = $dx->get_row($ss)){ foreach(['Ten'] as $key) { $r->$key = $rr->$key; } } } } } $colID = $r->colID; $title = stripslashes($r->Ten); $s = "SELECT * FROM ".PREFIX_NAME."gallery".SUPFIX_NAME." LIMIT 1"; if($r = $dx->get_row($s)) { // Da ngon ngu if(MULTI_LANGUAGE && lc()!=DEFAULT_LANGUAGE){ $ss = "SELECT * FROM ".PREFIX_NAME."gallery_lg".SUPFIX_NAME." WHERE lgID='".$r->gID."' ".lw('AND'); if($rr = $dx->get_row($ss)){ foreach(['Ten','Mota'] as $key) { $r->$key = $rr->$key; } } } } if(empty($r->gID)) { $web['title'] = $title.' | '.$web['title']; }else { if(!empty($_GET['name'])){ $url = $_GET['name']; $gcolID = GetField($dx,PREFIX_NAME."collection_img".SUPFIX_NAME,"URL='$url'",'colID'); } $whss=''; $limit = "LIMIT 4" ; if(!empty($gcolID)){ $whss .= ($whss == '' ? 'WHERE' : 'AND') . "(colID = '$gcolID')"; $limit =''; $title = GetField($dx,PREFIX_NAME."collection_img".SUPFIX_NAME,"URL='$url'",'Ten'); $brief = GetField($dx,PREFIX_NAME."collection_img".SUPFIX_NAME,"URL='$url'",'BanText'); }elseif(!empty($_GET['cbk-input'])){ $tagID = $_GET['cbk-input']; $s = "SELECT * FROM ".PREFIX_NAME."tag".SUPFIX_NAME." WHERE tagID='$tagID'"; if ($r = $dx->get_row($s)) { $title = stripslashes($r->Title); $brief = stripslashes($r->BanText); } }else{ $title = stripslashes($r->Ten); $brief = stripslashes($r->Mota); } } if(empty($seot)) $seot = $title.' | '.$web['title']; if(!empty($seot)) $web['title'] = $seot; ?>

get_results($s)){ foreach($rs as $r){ $info = [ 'id' => $r->tagID, 'name' => stripslashes($r->Ten), 'link' => URL_Rewrite('hinh-anh-trang-suc',$r->URL), 'image' => $r->Anh, ]; // 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); } } $catalog[] = $info; } } ?>
get_results($s)) { foreach ($rs as $r) { $ww .= " OR tagID='".$r->tagID."'"; } } $tagchild = GetField($dx,PREFIX_NAME."tag".SUPFIX_NAME,"tagchilID='$tagID'",'tagID'); $wh .= ($wh==''?'':'AND')."(tagID='$tagID' $ww )"; } $whs =''; if (!empty($_GET['txtsearch'])) { $txtsearch = addslashes($_GET['txtsearch']); $wh .= ($wh == '' ? '' : 'AND') . "(Ten LIKE '%$txtsearch%')"; // $whss .= ($whss== '' ? 'WHERE' : 'AND') . "(Ten LIKE '%$txtsearch%')"; } ?> get_results($s)) { foreach ($rs as $r) { $whs=$wh; $name_session = $r->Ten; $colID = $r->colID; $gLink = URL_Rewrite('hinh-anh-trang-suc', $r->URL); if(!empty($colID)){ $whs .= ($whs==''?'WHERE':'AND')." colID ='$colID' "; } if (MULTI_LANGUAGE && lc() != DEFAULT_LANGUAGE) { $slg = "SELECT * FROM " . PREFIX_NAME . "collection_img_lg" . SUPFIX_NAME . " WHERE colID ='" . $r->colID . "' " . lw('AND'); if ($rlg = $dx->get_row($slg)) { $name_session = stripslashes($rlg->Ten); } } ?> get_results($sl)) { ?>
Ten); if (MULTI_LANGUAGE && lc() != DEFAULT_LANGUAGE) { $ss = "SELECT * FROM " . PREFIX_NAME . "img_detail_lg" . SUPFIX_NAME . " WHERE lgID='" . $pro->proID . "' " . lw('AND'); if ($rr = $dx->get_row($ss)) { $names = stripslashes($rr->Ten); //$info['brief'] = CutString($pro->Tomtat,150); } } $image = $pro->Anh; $thumb = $pro->Anh; $rias = $pro->Anh; $link = URL_Rewrite('hinh-anh-trang-suc', $pro->URL); ?>
Ten); if (MULTI_LANGUAGE && lc() != DEFAULT_LANGUAGE) { $ss = "SELECT * FROM " . PREFIX_NAME . "img_detail_lg" . SUPFIX_NAME . " WHERE lgID='" . $pro->proID . "' " . lw('AND'); if ($rr = $dx->get_row($ss)) { $names = stripslashes($rr->Ten); //$info['brief'] = CutString($pro->Tomtat,150); } } $image = $pro->Anh; $thumb = $pro->Anh; $rias = $pro->Anh; $link = URL_Rewrite('hinh-anh-trang-suc', $pro->URL); ?>