[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>
转载请注明: » 帝国CMS模板灵动标签调用同级栏目导航栏目自定义字段,带当前栏目高亮判断