<ul id="menu-navigation" class="menu"> <!--{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}--> class="current-menu-parent menu-item-has-children"<!--{/if}--> > <a href="$nav[url]"{if $nav[target] == 1} target="_blank"{/if} style=""> <!--{if $nav[logo]}--> <img src="data/attachment/common/$nav[logo]" style=" max-width: 25px; margin: -3px -3px 0 0;"/> <!--{/if}-->$nav[name]</a> <!--{if $subs}--> <ul class="sub-menu"> <!--{loop $subnavs $subnav}--> <li> <a href="$subnav[url]"{if $subnav[target] == 1} target="_blank"{/if} style=""> $subnav[name] </a> </li> <!--{/loop}--> </ul> <!--{ad/subnavbanner/a_mu}--> <!--{/if}--> </li> <!--{/loop}--> </ul> |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: dsucuz 調(diào)用主導(dǎo)航