其实就是灵动标签+PHP代码的.大家看代码就知道了.没什么技术含量了.
<?php $bclassid=$GLOBALS[navclassid]; //取得本栏目id //取得本栏目下的子栏目 ?> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",7,24,0}] <ul class="am-nav am-text-sm"> <li class="am-nav-header" style="background:url(img/dot.png) no-repeat 0 center; margin-left:-5px; text-indent:2px; font-size:16px"><a href="<?=$public_r[newsurl].$bqr[classpath]?>"><?=$bqr[classname]?></a></li> <?php $ecms_bq_sql2=sys_ReturnEcmsLoopBq($bqr[classid],5,0,0); $bqno2=0; while($bqr2=$empire->fetch($ecms_bq_sql2)) { $bqsr2=sys_ReturnEcmsLoopStext($bqr2); $bqno2++; ?> <? if($bqno2==1) { ?> <li><a href="<?=$bqsr2[titleurl]?>" target="_blank" title="<?=$bqr2[title]?>"><?=esub($bqr2[title],30)?></a></li> <li style="padding:0 15px"><?=$bqr2[smalltext]?></li> <?php } else{ ?> <li><a href="<?=$bqsr2[titleurl]?>" target="_blank" title="<?=$bqr2[title]?>"><?=esub($bqr2[title],30)?></a></li> <? } ?> <?php } ?> </ul> [/e:loop]
|