帝国CMS7 调用一级和二级栏目做导航代码

1688源码 | 2018-11-11 13:25:50 |

 

<div class="fat-footer-wrapper show-at-desktop">

<div class="fat-footer">

<?php

$ecms_bq_sql=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=0 order by myorder limit 7",14,24,0);

$bqno=0;

while($bqr=$empire->fetch($ecms_bq_sql))

{

$bqsr=sys_ReturnEcmsLoopStext($bqr);

$bqno++;

?> 

<div class="fat-footer-item">

<h3 class="title"><?=sub($bqr[classname],0,54,false)?></h3>

<ul class="menu-list">

<?php

$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsclass where bclassid=$bqr[classid] order by myorder limit 8",14,24,0);

$bqno2=0;

 

while($bqr2=$empire->fetch($ecms_bq_sql2))

{

$bqsr2=sys_ReturnEcmsLoopStext($bqr2);

$bqno2++;

?> 

<li class="item"><a href="<?=$public_r[newsurl]?><?=$bqr2[classpath]?>/" class="link" title="<?=sub($bqr2[classname],0,54,false)?>" ><?=sub($bqr2[classname],0,54,false)?></a></li>

<?php

}

?></ul></div> 

<?php

}

?>

</div>

</div>

精品源码
  • 织梦万能API 百度小程序插件

    惊爆价¥400原价¥800

    立即购买
  • 我爱登报网 百度小程序源码 织梦CMS后台

    惊爆价¥520原价¥1040

    立即购买
  • 索娜根布黑枸杞 百度小程序源码 织梦CMS后台

    惊爆价¥520原价¥1040

    立即购买
视觉焦点