<!-- 栏目1 -->


<?php
$Result = sys_ReturnEcmsLoopBq("select classid,classname from {$dbtbpre}enewsclass where classid in($public_r[add_home_classid2]) order by myorder,myorder desc",0,24,0);
while($IndexClass=$empire->fetch($Result)){
  $ClassLink = sys_ReturnBqClassname($IndexClass,9);
?>
		<div class="lm b_top main louti">
			<div class="lm_l fl">
				<!-- 栏目标题 -->
				<div class="lm_head bj_mt10">
					<a href="<?=$ClassLink?>" target="_blank" title="<?=$IndexClass[classname]?>" class="head f20 fl"><h4 class="nobold"><?=$IndexClass[classname]?></h4></a>
                                       <div class="hd fr chao">

				[e:loop={"select * from phome_enewsclass where bclassid=$IndexClass[classid] order by classid asc limit 25",0,24,0}]
				<a href="<?=$bqsr[classurl]?>" target="_blank" class="lm_bt c9"><?=$bqr[classname]?></a>
				[/e:loop]
					
					</div>
				</div>
				<!-- 栏目标题 -->
				<div class="lm_nr bj_mt10">
					<div class="lm_nr_l fl">
						<div class="lm_l_t_r">
        <?php
$bqno=0;
  $ResultG = sys_ReturnEcmsLoopBq($IndexClass[classid],1,0,1);
  while($ClassGoods=$empire->fetch($ResultG)){
$bqno++;
?>
						<div class="lb_5">
<a class="lb_l fl" href="<?=sys_ReturnBqTitleLink($ClassGoods)?>" title="<?=$ClassGoods[title]?>" target="_blank">
									<img src="<?=$ClassGoods[titlepic]?>" alt="<?=$ClassGoods[title]?>">
								</a>
								<div class="lb_r fr">
									<a href="<?=sys_ReturnBqTitleLink($ClassGoods)?>" title="<?=$ClassGoods[title]?>" target="_blank" class="lb_bt chao f16"><?=$ClassGoods[title]?></a>
									<p class="chao2 c9 f12"><?=$ClassGoods[smalltext]?></p>
									<div class="lb_b c9 f12"><time><?=date('m-d',$ClassGoods[newstime])?></time></div>
								</div>
								<div class="clear"></div>
							</div>
    <?php
     }
     //显示1条
    ?> 
							<div class="bj_mt10">
<?php
$bqno=0;
  $ResultG = sys_ReturnEcmsLoopBq($IndexClass[classid],'1,11',0,0);
  while($ClassGoods=$empire->fetch($ResultG)){
$bqno++;
?>
							<a href="<?=sys_ReturnBqTitleLink($ClassGoods)?>" title="<?=$ClassGoods[title]?>" target="_blank" class="chao lb_2"><time><?=date('m-d',$ClassGoods[newstime])?></time><?=$ClassGoods[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
$bqno=0;
  $ResultG = sys_ReturnEcmsLoopBq($IndexClass[classid],12,0,0);
  while($ClassGoods=$empire->fetch($ResultG)){
$bqno++;
?>
							<a href="<?=sys_ReturnBqTitleLink($ClassGoods)?>" title="<?=$ClassGoods[title]?>" target="_blank" class="chao lb_2"><time><?=date('m-d',$ClassGoods[newstime])?></time><?=$ClassGoods[title]?></a>
   <?php
     }
     //显示12条
    ?> 
						</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
$bqno=0;
  $ResultG = sys_ReturnEcmsLoopBq($IndexClass[classid],10,0,0);
  while($ClassGoods=$empire->fetch($ResultG)){
$bqno++;
?>
					<a href="<?=sys_ReturnBqTitleLink($ClassGoods)?>" title="<?=$ClassGoods[title]?>" target="_blank" class="lb_6">
							<span class="chao lb_a f14"><?=$ClassGoods[title]?></span>
							<p class="chao2 c9 f12"><?=$ClassGoods[smalltext]?></p>
						</a>
   <?php
     }
     //显示10条
    ?> 

					</div>
				</div>
			<!-- 热门排行 -->
			</div>
		</div>
<?
}
?>
		<!-- 栏目1 -->

参考:http://jiaoan.cncobo.com/ 首页模板模块调用。

 

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