<!-- 栏目1 --> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$GLOBALS[navclassid]' order by classid asc ",7,24,0}] <div class="lm b_top main louti"> <div class="lm_l fl"> <!-- 栏目标题 --> <div class="lm_head bj_mt10"> <a href="<?=$public_r[newsurl].$bqr[classpath]?>" target="_blank" title="<?=$bqr[classname]?>" class="head f20 fl"><h4 class="nobold"><?=$bqr[classname]?></h4></a> <div class="hd fr chao"><? $newsclass=$empire->query("select classid,classname from ".$dbtbpre."enewsclass where bclassid=".$bqr[classid]." order by myorder,classid asc");while($classr=$empire->fetch($newsclass)){ $classurl=sys_ReturnBqClassname($classr,9);?><a href="<?=$classurl?>" class="lm_bt c9"><?=$classr[classname]?></a> <?}?> </div> </div> <!-- 栏目标题 --> <div class="lm_nr bj_mt10"> <div class="lm_nr_l fl"> <div class="lm_l_t_r"><?php//取得该分类下的最新数据 $newbook=$empire->query("select * from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 1"); while($r=$empire->fetch($newbook)) { ?> <div class="lb_5"><a class="lb_l fl" href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>" target="_blank"> <img src="<?=$r[titlepic]?$r[titlepic]:$public_r[newsurl]."e/data/images/notimg.gif"?>" alt="<?=$r[title]?>" /> </a> <div class="lb_r fr"> <a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>" target="_blank" class="lb_bt chao f16"><?=$r[title]?></a> <p class="chao2 c9 f12"><?=$r[smalltext]?></p> <div class="lb_b c9 f12"><time><?=date('m-d',$r[newstime])?></time></div> </div> <div class="clear"></div> </div> <?php } //显示1条 ?> <div class="bj_mt10"><?php//取得该分类下的最新数据 $newbook=$empire->query("select * from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 10"); while($r=$empire->fetch($newbook)) { ?> <a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>" target="_blank" class="chao lb_2"><time><?=date('m-d',$r[newstime])?></time><?=$r[title]?></a> <?php } //显示10条 ?> </div> </div> </div> <div class="lm_nr_r fr"> <div class="head_2 yj_10 bg2"> <h4 class="nobold f18">热门推荐</h4> </div> <div class="bj_mt10"><?php//取得该分类下的最新数据 $newbook=$empire->query("select * from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 12"); while($r=$empire->fetch($newbook)) { ?> <a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>" target="_blank" class="chao lb_2"><time><?=date('m-d',$r[newstime])?></time><?=$r[title]?></a> <?php } //显示10条 ?> </div> </div> <div class="clear"></div> </div> </div> <div class="lm_r fr"> <!-- 热门排行 --> <div class="r_hot yj_10 bg2"> <div class="head_1 f18 nobold"> <h4 class="nobold"><em class="iconfont ca"></em>热门排行</h4> </div> <div class="hot_nr bj_mt15 sideMen"><?php//取得该分类下的最新数据 $newbook=$empire->query("select * from phome_ecms_news where classid =".$bqr[classid]." order by newstime desc limit 10"); while($r=$empire->fetch($newbook)) { ?> <a href="<?=sys_ReturnBqTitleLink($r)?>" title="<?=$r[title]?>" target="_blank" class="lb_6"> <span class="chao lb_a f14"><?=$r[title]?></span> <p class="chao2 c9 f12"><?=$r[smalltext]?></p> </a> <?php } //显示10条 ?> </div> </div> <!-- 热门排行 --> </div> </div> [/e:loop] <!-- 栏目1 -->