帝国cms封面模板调用当前栏目下的子栏目名称及子栏目的子栏目名称信息展示/三级分类
时间:2024年06月03日
/来源:网络
/编辑:佚名
<!-- 栏目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.78moban.com/xiaoxuejiaoan/
<?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.78moban.com/xiaoxuejiaoan/
新闻资讯 更多
- 【帝国cms教程】帝国cms封面模板调用当前栏目下的子栏目名称及子栏目的子栏目名称信息展示/三级分类06-03
- 【帝国cms教程】帝国cms如何自动生成缩略图自动下载远程图设置选区第一张图为缩略图06-03
- 【帝国cms教程】帝国cms灵动标签中价格折扣的计算方式06-02
- 【帝国cms教程】帝国CMS在下载内容页downpath字段显示下载点数06-02
- 【帝国cms教程】帝国CMS模板制作:用灵动标签调用导航,栏目设置是否显示不起作用06-02
- 【帝国cms教程】帝国cms头部模板导航栏目显示代码,显示二级栏目下拉菜单带样式判断06-02
- 【帝国cms教程】帝国cms7.5PHP获取当前页面url地址,并且获取url地址中的参数06-02
- 【帝国cms教程】帝国cms利用自定义函数拼音汉字互转06-02
热门文章
- 178Moban源码谈谈免费源码与收费源码的区别
- 2帝国CMS忘记后台登陆用户名、密码、认证码的解决方法
- 3帝国CMS(EmpireCMS) v7.5后台任意代码执行漏洞及具体修复方法
- 4帝国CMS和WordPress 哪个好?哪个适合建站?
- 5如何解决Discuz的密码错误次数过多请15分钟后登陆的问题
- 6帝国cms灵动标签取得内容和栏目链接地址
- 7emlog pro 注册码“开心”教程(如果有一天,emlog官方版 或者 emlog免费版 跑路了,那用户怎么办?)
- 8帝国cms后台登录出现”您还未登录”怎么解决?
- 9织梦CMS在nginx下设置伪静态方法(附nginx伪静态规则)
- 10帝国cms7.5忘记登录密码 和忘记登录认证码以及多次登录 失败被锁定解决办法