if ( ! function_exists('GetTags'))
{
function GetTags($aid)
{
global $dsql;
$tags = '';
$query = "SELECT tag FROM `weiwei_taglist` WHERE aid='$aid' ";
$dsql->Execute('tag',$query);
while($row = $dsql->GetArray('tag'))
{
$tags .= ($tags=='' ? $row['tag'] : ','.$row['tag']);
}
return $tags;
}
}
|
if ( ! function_exists('GetTags'))
{
function GetTags($aid)
{
global $dsql;
$sql = "select tid from weiwei_taglist where aid='$aid' group by tid ";
$dsql->Execute('ala',$sql);
while($row=$dsql->GetObject('ala')){
$url=nic_tag_url($row->tid);
if ($arcRow = $dsql->GetOne("select * from weiwei_tagindex where id='".$row->tid."' ")) $tag=$arcRow["tag"];
else $tag="";
$str.=" <a href='".$url."' target=_blank><b>".$tag."</b></a> ";
}
return $str;
}
}
|
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢文章列表頁調(diào)用靜態(tài)化的tag標(biāo)簽