Dedecms 5.5站点信息调用标签代码

Dedecms 5.5站点信息调用标签代码,有需要的拿去吧。

 

{dede:sql sql="SELECT count( * ) AS c FROM dede_archives WHERE pubdate > UNIX_TIMESTAMP( CURDATE( ) ) "} 

<li class="count">今日更新:<span>[field:c/]</span> 篇</li> 

{/dede:sql} 

{dede:sql sql="Select count(ID) as c From dede_archives WHERE FROM_UNIXTIME(pubdate,'%m')=month(curdate())"} 

<li class="count">当月更新:<span>[field:c/]</span> 篇</li> 

{/dede:sql} 

{dede:sql sql="select count(*) as c from dede_archives} 

<li class="count">共有文章:<span>[field:c/]</span> 篇</li> 

{/dede:sql} 

{dede:sql sql="select sum(click) as c from dede_archives"} 

<li class="count">总共阅读:<span>[field:c/]</span> 人次</li> 

{/dede:sql} 

{dede:sql sql="select count(mid) as c from dede_member "} 

<li class="count">共有会员:<span>[field:c/]</span> 名</li> 

{/dede:sql}

  还可以指定栏目ID,例如:

 

{dede:sql sql="select count(*) as c from dede_archives where channel in(1,2,3,5,6,9)"} 

<li class="count">共有文章:<span>[field:c/]</span> 篇</li> 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e2a2e036ec7e97c2535d7fe9157e6e3b.html