帝国cms灵动标签调用当前文章内容tag标签代码:
[e:loop={"SELECT*FROMseo_ecms_newsWHEREid="".$navinfor[id].""LIMIT0,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="/e/tags/?tagname=".urlencode($t[$i]).""; $tag.="<ahref="$tagslink"target="_blank">".$t[$i]."</a>"; } } echo$tag; ?> [/e:loop]