帝国cms调用一级栏目及下面的二级栏目调用方法如下:
SQL语句
02 |
$ecms_bq_sql =sys_ReturnEcmsLoopBq( "select * from [!db.pre!]enewsclass where bclassid=0 order by myorder limit 6" ,14,24,0); |
04 |
while ( $bqr = $empire ->fetch( $ecms_bq_sql )) |
06 |
$bqsr =sys_ReturnEcmsLoopStext( $bqr ); |
09 |
<li><a href= "<?=$public_r[newsurl]?><?=$bqr[classpath]?>/" ><?=sub( $bqr [classname],0,54,false)?></a> |
10 |
<div class = "head_nav_hover" > |
12 |
$ecms_bq_sql2 =sys_ReturnEcmsLoopBq( "select * from [!db.pre!]enewsclass where bclassid=$bqr[classid] order by myorder limit 20" ,14,24,0); |
14 |
while ( $bqr2 = $empire ->fetch( $ecms_bq_sql2 )) |
16 |
$bqsr2 =sys_ReturnEcmsLoopStext( $bqr2 ); |
19 |
<a href= "<?=$public_r[newsurl]?><?=$bqr2[classpath]?>/" ><?=sub( $bqr2 [classname],0,54,false)?></a> |