电脑技术学习

灵动标签里面如何获得TAGS

dn001

帝国cms6.5灵动标签里面如何获得TAGS

[e:loop={"SELECT * FROM phome_ecms_news WHERE id = '".$navinfor[id]."' LIMIT 0 , 30",1,24,0}]
<?
;$a="$bqr[infotags]";
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);

; ;;;for($i=0;$i<count($t);$i++)
; ;;;{
; ; if($t[$i])
; ; {
; ;$tagslink="http://www.xxxx.com/e/sch/index.php?keyboard=".urlencode($t[$i])."";
; ;$tag.="<a href='$tagslink' target='_blank'>".$t[$i]."</a> ";
; ; }
}
echo $tag;
?>
[/e:loop]

标签: