最新最全的移动资源,海量教程攻略!

网站首页 > 技术支持 > discuz > discuz使用教程 > dsucuz 调用主最近导航

dsucuz 调用主最近导航

作者: 资源猫 时间: 2020-03-03 17:29:49 人气: 4

ul id= menu-navigation >
!--{eval $navs = DB::fetch_all( SELECT * FROM .DB::table('common_nav'). WHERE `available` 0 and `navtype` = 0 and `parentid` = 0 ORDER BY `displayorder` ASC }--
!--{loop $navs $nav}--
!--{eval $subnavs = DB::fetch_all( SELECT * FROM .DB::table('common_nav'). WHERE `available` 0 and `navtype` = 0 and `parentid` = $nav[id] ORDER BY `displayorder` ASC }--
!--{eval $subs = DB::result(DB::query( SELECT name FROM .DB::table('common_nav'). WHERE available '0' and navtype = '0' and parentid = '$nav[id]' ));}--
li !--{if $subs}-- >
a href= $nav[url] {if $nav[target] == 1} target= _blank {/if} >
!--{if $nav[logo]}--
img src= data/attachment/common/$nav[logo] >
!--{/if}-- $nav[name] /a
!--{if $subs}--
ul >
!--{loop $subnavs $subnav}--
li
a href= $subnav[url] {if $subnav[target] == 1} target= _blank {/if} >
$subnav[name]
/a
/li
!--{/loop}--
/ul
!--{ad/subnavbanner/a_mu}--
!--{/if}--
/li
!--{/loop}--
/ul
复制代码
样式和js就不带了,网上特效很多往里套就行。

感谢访问资源猫吧,本站所有资源均来自互联网或用户分享,如您发现本站存在侵权或违规内容,请来邮件告知我们! 资源分享/侵权下架/商务合作联系邮箱:qiazou77ziyuan@126.com