统计记录: select count(*) as total from phome_enewstags 查询记录: select tagname as title, tagid as id from

统计记录:

select count(*) as total from phome_enewstags

查询记录:

select tagname as title, tagid as id from [!db.pre!]enewstags order by tagid desc

列表模板示例:

(页面模板内容):

<?php $tag="on"; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>[!--pagetitle--]</title>
<meta name="keywords" content="[!--pagekey--]" />
<meta name="description" content="[!--pagedes--]" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link rel="shortcut icon" href="<?=$public_r['add_zhann_cn_url']?>/favicon.ico" rel="external nofollow"  type="image/x-icon" />
<script src="<?=$public_r['add_zhann_cn_url']?>/skin/zhann/js/setsize.js"></script>
<link rel="stylesheet" href="<?=$public_r['add_zhann_cn_url']?>/skin/zhann/css/style.css?t=201912021" rel="external nofollow" >

<script type="text/javascript" src="<?=$public_r['add_zhann_cn_url']?>/skin/zhann/js/jquery.min.js?t=20181122"></script>

<link rel="canonical" href="<?=$public_r['add_zhann_cn_url']?>" rel="external nofollow"  />
</head>
 <script src="<?=$public_r['add_zhann_cn_url']?>/skin/zhann/js/touchslide.js"></script>
<body>
<div class="preload">
    <span class="text"><i class="icon icon-loading"></i>正在加载</span>
</div>
<div class="page page-index1" id="page">
<!--页面头部-->
[!--temp.zdyheader--]
<!--页面头部-->
                 <div class="top-list-tit1">
                <ul id="phbtit1">
                    <li class="on"><a href="/newstag/" rel="external nofollow" >最新标签</a></li>
                    <li><a href="/hotags/" rel="external nofollow" >热门标签</a></li>
                </ul>
            </div>
  <div class="clear blank"></div>

  <div class="whitebg box tags">

    <div class="news-title">

      <span class="tab-a-more"><a href="/tags/" rel="external nofollow"  title="更多"><i></i><i></i><i></i></a></span></div>
    <ul>
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
		 </ul>
  </div>
<div class="ft">
<div class="page con_page" id="lcpage">
<div name="laypage1.2" class="laypage_main laypageskin_molv" id="laypage_0"> [!--show.listpage--]</div>
</div></div>
  <!-- tags end-->
<!--页面底部--> 
[!--temp.mfooter--]
<script type="text/javascript">
$('#phbtit1 li').click(function(){
			var temp = $(this).index()
			$(this).addClass('on').siblings().removeClass('on')
			$('#topList1 .inph').addClass('hide').eq(temp).removeClass('hide')
		})
</script>
<script type="text/javascript">
    seajs.use('app/common', function(fn){
        fn.init();
        fn.index(); //焦点图
        fn.imgLazyLoad(); //图片延迟加载
    })
</script>
</body>
</html>

list.var:

$tagstr=dp_InfoTag($r['classid'],$r['id'],'| ',5);

$listtemp='
'.$tagstr.'
';

温馨提示:本文最后更新于 2022-02-26 10:47 ,某些文章具有时效性,若有错误或已失效,请在下方留言或联系QQ115904045
声明:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:[email protected],我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA打赏
共{{data.count}}人
人已打赏
帝国CMS教程

如何修改帝国cms7.5后台信息管理显示的一级二级三级推荐头条置顶文字

2022-2-26 10:47:19

帝国CMS教程

PHP判断语句 if($bqno==1) $style= 灵动标签调用数字排序号

2022-2-26 10:47:21

  • 0 条回复 A文章作者 M管理员
      暂无讨论,说说你的看法吧
    购物车
    优惠劵
    今日签到
    有新私信 私信列表
    搜索

    夕阳无别事,等风也等你

    联系我们