帝国cms 7.0之前版本首页调用tag的方法是:
[e:loop={0,1,13,1}
<?
$a="$bqr[infotags]";
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);
for($i=0;$i<count($t);$i++)
{
if($t[$i])
{
$tagslink="http://www.jzread.com/e/tags/?tagname=".urlencode($t[$i])."";
$tag.="<a href='$tagslink' target='_blank'>".$t[$i]."</a> ";
}
}
echo $tag;
?>
[/e:loop]
帝国cms7.0首页读取TAGS方法是:
[e:loop={0,1,13,1}]
<?php
$newbook1=$empire->query("select * from phome_ecms_news_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="http://www.jzread.com/e/tags/?tagname=".urlencode($t[$i])."";
$tag.="<a href='$tagslink' target='_blank'>".$t[$i]."</a> ";
}
}
echo $tag;
?>
[/e:loop]
帝国cms关键字读取的方法
<?
$a=$navinfor[keyboard];
$str=str_replace(',', ',', $a);
$tag='';
$t= explode(",", $str);
for($i=0;$i<count($t);$i++)
{
if($t[$i])
{
$tagslink="http://www.jzread.com/e/sch/index.php?keyboard=".urlencode($t[$i])."";
$tag.="<a href='$tagslink' target='_blank'>".$t[$i]."</a> ";
}
}
echo $tag;
?>