帝国cms栏目下子栏目文章循环显示 - 小闻网

		<?php
$Result = sys_ReturnEcmsLoopBq("select classid,classname from {$dbtbpre}enewsclass where bclassid='$GLOBALS[navclassid]' order by myorder,classid asc",0,24,0);
while($IndexClass=$empire->fetch($Result)){
  $ClassLink = sys_ReturnBqClassname($IndexClass,9);
?>
		<div class="mod-content modclearfix" id="l22">
			<div class="content-con content-con-first">
			
				<h2 class="content-title"><a href="<?=$ClassLink?>"><?=$IndexClass[classname]?></a></h2>
			
 	<ul class="content-link">   	       
<?php
$bqno=0;
  $ResultG = sys_ReturnEcmsLoopBq($IndexClass[classid],'1,30',0,0,'','newstime DESC');
  while($ClassGoods=$empire->fetch($ResultG)){
    $bqsr=sys_ReturnEcmsLoopStext($ResultG);
$bqsr=sys_ReturnEcmsLoopStext($ClassGoods);
$bqno++;
?>
 <li><h3><div><a href="<?=$ClassGoods[ftitle]?>" class="dian1" style="background:url(<?=$ClassGoods[titlepic]?$ClassGoods[titlepic]:'/e/data/images/notimg.gif'?>) no-repeat 0 center;background-size: 16px 16px;" target="_blank" title="<?=$ClassGoods[title]?>"><?=$ClassGoods[title]?></a><a data-siteid="318" href="<?=$ClassGoods[ftitle]?>" title="<?=$ClassGoods[title]?>" target="_blank" class="text-con"><?=$ClassGoods[title]?></a></div></h3></li>

<?php
     }
     //显示10条
?>             
			</div>
		</div>
<?
}
?>

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。