现在终极栏目的列表页下显示该栏目下面标题分类的文章,大概格式是

栏目(终极)—-标题分类一—-标题分类二

标题分类一文章列表一,文章列表二,文章列表三

标题分类二文章列表一,文章列表二,文章列表三

解决办法如下:

<?php$ttids_sql=sys_ReturnEcmsLoopBq("select ttids from [!db.pre!]enewsclassadd where classid=$GLOBALS[navclassid]",0,24,0);while($bqr=$empire->fetch($ttids_sql)){$ttids=explode(',',trim($bqr[ttids],","));foreach($ttids as $id){$ttname_sql=sys_ReturnEcmsLoopBq("select tname from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);while($bqr2=$empire->fetch($ttname_sql)){?><h2><?=$bqr2[tname]?></h2><ul>[e:loop={'selfinfo',50,0,0,"ttid='$id'"}]<li><a href="<?=$bqsr[titleurl]?>"><?=$bqr[title]?></a></li>[/e:loop]</ul><?php}}}?>