欢迎您光临自学哈网,只为分享网络知识教程,供大家学习参考!

「自学哈网」帝国cms封面模板调用当前栏目下的子栏目名称及子栏目下的信息展示/二级分类

作者 : 自学哈 本文共2924个字,预计阅读时间需要8分钟 2022-09-28 共150人阅读
也想出现在这里? 联系我们
			<!-- 栏目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 -->

 

自学哈网

本站声明:
本站所有资源来源于网络,分享目的仅供大家学习和交流!如若本站内容侵犯了原著者的合法权益,可联系邮箱976157886@qq.com进行删除。
自学哈专注于免费提供最新的分享知识、网络教程、网络技术的资源分享平台,好资源不私藏,大家一起分享!

自学哈网 » 「自学哈网」帝国cms封面模板调用当前栏目下的子栏目名称及子栏目下的信息展示/二级分类
也想出现在这里? 联系我们
© 2022 Theme by - 自学哈网 & WordPress Theme. All rights reserved 浙ICP备2022016594号