修改頭文件,具體代碼如下
在疏附等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專(zhuān)注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站制作、成都做網(wǎng)站、外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè) 網(wǎng)站設(shè)計(jì)制作按需策劃設(shè)計(jì),公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,全網(wǎng)營(yíng)銷(xiāo)推廣,外貿(mào)營(yíng)銷(xiāo)網(wǎng)站建設(shè),疏附網(wǎng)站建設(shè)費(fèi)用合理。
nav class="nav"
ul class="nav__menu"
li class="nav__menu-item"a href="[!--news.url--]" target="_self"首頁(yè)/a/li
?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq('select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder limit 8',20,24,0); $bqno=0;
while($bqr=$empire-fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
if($bqr[classid] != '23' ){
?
li class="nav__menu-item"a href="?=$public_r[newsurl]??=$bqr[classpath]?" title="?=$bqr[classname]?" target="_self" ?=$bqr[classname]?/a
ul class="nav__submenu"
?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq("select classid,classname,classpath from [!db.pre!]enewsclass where bclassid='$bqr[classid]' order by myorder limit 5",20,24,0);
$bqno2=0;
while($bqr2=$empire-fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?
li class="nav__submenu-item"a href="?=$public_r[newsurl]??=$bqr2[classpath]?" title="?=$bqr2[classname]?" target="_self" ?=$bqr2[classname]?/a/li
?php
}
?
/ul
/li
?php
}
}
?
/ul
/nav
//調(diào)用與當(dāng)前欄目相同?模型?的所二級(jí)欄目
[e:loop={"select?*?from?{$dbtbpre}enewsclass?where?bclassid?=?(select?bclassid?from?{$dbtbpre}enewsclass?where?classid?=?$GLOBALS[navclassid])?order?by?myorder?ASC",1000,24,0}]
a?href="[!--news.url--]?=$bqr['classpath']?"?=$bqr['classname']?/a
[/e:loop]
可以用標(biāo)簽?zāi)0?,自己先?xiě)一個(gè)標(biāo)簽?zāi)0?,比如,dd 或者 li標(biāo)簽循環(huán)的,然后用showclasstemp標(biāo)簽進(jìn)行調(diào)用