[e:loop={"select classname,classpath,classid from phome_enewsclass where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' and showclass=0 order by classid ",0,24,0}]
<?php
$class="";
if($bqr[classid]==$GLOBALS[navclassid])
{
$class='hover';
}
?>
<a href="<?=$bqsr[classurl]?>" class="<?=$class?>"><?=$bqr[classname]?></a>
[/e:loop]
带栏目自定义字段
<ul>
<li class="<?=$GLOBALS[navclassid]?"":"current"?>"><a href="[!--news.url--]"> 首页 </a><span>Home</span></li>
[e:loop={"select classname,classpath,classid from phome_enewsclass where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' and showclass=0 order by classid ",0,24,0}]
<?php
$cr=$empire->fetch1("select * from {$dbtbpre}enewsclassadd where classid='$bqr[classid]'");
$ename=$cr['ename'];
$class="";
if($bqr[classid]==$GLOBALS[navclassid])
{
$class='current';
}
?>
<li><a href="<?=$bqsr[classurl]?>" class="<?=$class?>"><?=$bqr[classname]?></a><span><?=$ename?></span></li>
[/e:loop]
</ul>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)