要我帮设计推荐信息摘要:
帝国cms首页循环调用子栏目文章 [e:loop={"select classid, classname, classpath from phome_enewsclass where bclassid='$bclassid' order by classid desc",21,24,0}] <div class="partwrap" <?p
帝国cms首页循环调用子栏目文章
[e:loop={"select classid, classname, classpath from phome_enewsclass where bclassid='$bclassid' order by classid desc",21,24,0}]
<div class="partwrap" <?php $i++;if($i%3==0){echo 'id="mlr10"';} ?>>
<div class="p-title"><b><a href="<?=$public_r[newsurl].$bqr[classpath]?>"><?=$bqr[classname]?></a></b><a href="<?=$public_r[newsurl].$bqr[classpath]?>">更多>></a></div>
<dl>
<?php
//取得该分类下有图片的最新数据
$newbook=$empire->query("select title,titlepic,smalltext,titleurl,keyboard,newstime,groupid,classid,newspath,filename,id from phome_ecms_news where classid =".$bqr[classid]." and ispic!='' order by newstime desc limit 1");
while($r=$empire->fetch($newbook)) {
?>
<dt><img src="<?=$r[titlepic]?>" alt="<?=$r[title]?>" width="80" height="63" /><b><a href="<?=sys_ReturnBqTitleLink($r)?>"><?=esub($r[title],26)?></a></b><p><?=esub($r[smalltext],54)?>...<a href="<?=sys_ReturnBqTitleLink($r)?>">[详细]</a></p>
</dt>
<?php
}
?>
<?php
//取得该分类下的最新数据
$newbook=$empire->query("select title,titlepic,smalltext,titleurl,keyboard,newstime,groupid,classid,newspath,filename,id from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 1,5");
while($r=$empire->fetch($newbook)) {
?>
<dd><a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>"><?=esub($r[title],40)?></a></dd>
<?php
}
?>
</dl>
</div>
[/e:loop]
本网站采用 BY-NC-SA 协议进行授权 转载请注明原文链接:帝国cms首页循环调用子栏目文章
本站资源仅供学习研究使用,严谨商用!
如若本站内容侵犯了原著者的合法权益,版权异议/举报。