添加自定义列表,
统计记录
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"></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>
list.var代码
<li><a href="/tag/[!--id--].html" target="_blank">[!--title--]</a></li>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)