灵动标签三级导航栏目
[e:loop={"select classid,classname,islast from {$dbtbpre}enewsclass where bclassid in ($topbclassid) order by myorder,classid ASC",0,24,0}]
<?php
//二级栏目
$classurl = sys_ReturnBqClassname( $bqr, 9 );
$classname = "";
if ( $bqr[ classid ] == $GLOBALS[ navclassid ] ) {
$classname = 'current';
}
?>
<li class="nav-tab nav-ul"> <a href="javascript:void[0]" class="li-a" target="iframe" href="<?=$classurl?>"> <i class='bx bx-layer'></i>
<?=$classurl?>
<i class='bx bx-chevron-right' style="float: right;"> </i> </a>
<div class="nav-box">
<?
//三极栏目
$newsclass = $empire->query( "select classid,classname from " . $dbtbpre . "enewsclass where bclassid=" . $bqr[ classid ] . " order by myorder,classid asc" );
while ( $classr = $empire->fetch( $newsclass ) ) {
$classurl = sys_ReturnBqClassname( $classr, 9 );
$classrname = "";
if ( $classr[ classid ] == $GLOBALS[ navclassid ] ) {
$classrname = ' class="current"';
}
?>
<a href="<?=$classurl?>"<?=$classrname?> class="li-a-a" target="iframe">
<?=$classr[classname]?>
</a>
<?}?>
</div>
<?}?>
</li>
[/e:loop]