效果演示
灵动标签调用:
- [e:loop={"select * from {$dbtbpre}enewsclass order by myorder,classid desc",0,24,0}]
- <?php
- $_listyle="";
- if($bqr[classid]==$GLOBALS[navclassid]){$_listyle=' class="active"';}
- ?>
- <li<?=$_listyle?>><a href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
- [/e:loop]
- .active{color: #00a0e8;border-bottom: solid 3px #00a0e8;}