帝国CMS菜单调用多级栏目名,支持后台自定义菜单和排序

时间:2022-12-22 15:00:09
<li><a href="[!--news.url--]" class="on">网站首页</a></li>
<?php
$sql=$empire->query("select * from {$dbtbpre}enewsclass where showclass=0 order by myorder limit 0,200");
while($r=$empire->fetch($sql))
{
$num=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsclass where bclassid=$r[classid] and showclass=0");
?>
<li><a href="<?=sys_ReturnBqClassUrl($class_r[$r[classid]]);?>">
<?=$r[classname]?>
</a></li>
<?php
}
?>