帝国CMS按照评论数调用文章排序

文章描述:

帝国CMS文章按照评论数量排序

 

[e:loop={"select * from [!db.pre!]ecms_news order by plnum desc,id desc limit 5",10,24,0}]
      	<li class="side-con">
        	<a href="<?=$bqsr[titleurl]?>" title="" target="_blank">
                <div class="hotcom-img"><img src="<?=$bqr[titlepic]?>" alt=""></div>
                <div class="hotcom-left">
                  <div class="hot-com-title"><span class="num1">1</span><?=sub($bqr[title],0,30,false)?></div>
                  <div class="hot-com-clock">阅读:<?=$bqr[onclick]?></div>
                </div>
            </a>
        </li>
[/e:loop]

 

发布时间:2022/10/22

发表评论