正在载入...

通过php代码实现灵动标签的方法,就可以相对简单的实现了。

<?php
$ttids_sql=sys_ReturnEcmsLoopBq("select ttids from [!db.pre!]enewsclassadd where classid=$GLOBALS[navclassid]",0,24,0);
//$bqno=0;
while($bqr=$empire->fetch($ttids_sql))
{
//   $bqsr=sys_ReturnEcmsLoopStext($bqr);
//  $bqno++;
$ttids=explode(',',trim($bqr[ttids],","));
foreach($ttids as $id){
$ttname_sql=sys_ReturnEcmsLoopBq("select  tname from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);
while($bqr2=$empire->fetch($ttname_sql)){
//  $bqsr2=sys_ReturnEcmsLoopStext($bqr2);
?>
<?=$bqr2[tname]?>
<?php
}
}
}
?>

本文链接:

关键词:互联网, 代码, 函数, 帝国cms, 标题分类, 灵动标签,

(全文完        )

Comments

哈哈,沙发有木有?!!!抢沙发快速评论