帝国CMS灵动标签loop中插入php调用tag标签-列表页

帝国CMS灵动标签loop中插入php调用tag标签-列表页

	    [e:loop={1,10,2,0}]
		  <li><div class="c_right noimg">
			  <h2><a href="<?=$bqr['titleurl']?>"><?=$bqr['title']?></a></h2>
			  <p><?=$bqr['smalltext']?></p> <div>
			<?php
$newbook1=$empire->query("select * from phome_ecms_article_data_1 where id =".$bqr[id]."");
$r1=$empire->fetch($newbook1);
$a="$r1[infotags]";
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);
for($i=0;$i<count($t);$i++)
{
if($t[$i])
{
  $tagslink=$public_r[newsurl]."e/tags/?tagname=".urlencode($t[$i])."";
  $tag.="<span class='a4'><a href='$tagslink' target='_blank'>".$t[$i]."</a></span> ";
}
}
echo $tag;
?>
			  </div>
			  <span><?=date("Y-m-d H:i:s",$bqr[newstime])?></span>
			  </div>
			  <div class="clear"></div>
		  </li>
		   [/e:loop]
没有账号? 忘记密码?

社交账号快速登录