帝国cms自定义列表做标签聚合页教程

时间:2024年04月23日

/

来源:网络

/

编辑:佚名

添加自定义列表,
统计记录
select count(*) as total from phome_enewstags
查询记录
select tagid as id,tagname as title from phome_enewstags order by tagid desc
标签聚合列表模板
<?php
if($class_r[$GLOBALS[navclassid]][bclassid]==0){
$classid=$GLOBALS['navclassid'];
$classname=$class_r[$classid][classname]; 
}else{
$classid=$class_r[$GLOBALS[navclassid]][bclassid];
$classname=$class_r[$classid][classname];
$fclass=sys_ReturnBqClassUrl($class_r[$classid]);//父栏目 URL
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>[!--pagetitle--] - <?=$public_r[sitename]?></title>
<meta name="keywords" content="[!--pagekey--]">
<meta name="description" content="[!--pagedes--]">
<meta http-equiv="x-dns-prefetch-control" content="on" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/skin/zhann/css/list.css" rel="stylesheet" type="text/css" />
<script src="/skin/zhann/js/head.js"></script>
<script src="/skin/zhann/js/myfocus-2.0.4.min.js"></script>
<!--移动适配star-->
    <script type="text/javascript">
        (function(){
            var ua = navigator.userAgent.toLowerCase();
            var bIsIpad = ua.match(/ipad/i) == "ipad";
            var bIsIphoneOs = ua.match(/iphone os/i) == "iphone os";
            var bIsAndroid = ua.match(/android/i) == "android";
            var bIsWM=ua.match(/windows mobile/i)=="windows mobile";
            var host = "<?=$public_r['add_zhann_murl']?>";
            var pathname = window.location.pathname;
            if(bIsIpad||bIsIphoneOs||bIsAndroid||bIsWM){
                window.location.href =host + pathname;
            }
        })();
    </script>
<!--移动适配end-->
</head>
<body>
[!--temp.header--]
<div class="list_con con clear">
<div class="main">
<div class="ls_con_nr">
<div class="con_l1 fl">
<div class="ls_list bg yj_10 bj_mt10">
<div class="head_2">
<div class="fl lm_head_l">
<h3>
<em class="iconfont cb f24">&#xe6ec;</em>
<span href="#" class="f24 ca">最新标签</span>
</h3>
</div>
</div>
<ul class="ls_list_ul bj_mt301">
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</ul>
</div>
</div>
</div>
<div class="pnum">
<ul>
[!--show.listpage--]
<div class="clear"></div>
</ul>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<footer class="bj_mt30 bg2">
<div class="footer_b bg_a bj_mt30">
</div>
</footer>
<script src="/skin/zhann/js/footer.js"></script>
<script src="/skin/zhann/js/index.js"></script>
</body>
</html>
帝国cms列表页模板
list.var代码
<li><a href="/tag/[!--id--].html" target="_blank">[!--title--]</a></li>
案例图:

 
猜你需要

豫ICP备2021026617号-1  豫公网安备:41172602000185   Copyright © 2021-2028 www.78moban.com/ All Rights Reserved

本站作品均来自互联网,转载目的在于传递更多信息,并不代表本站赞同其观点和对其真实性负责。如有侵犯您的版权,请联系 1565229909#qq.com(把#改成@),我们将立即处理。