★首页全局用。SQL语句,统计全站数据
[pre]
{pboot:sql sql="SELECT count(*) AS c FROM ay_content"}[sql:c]{/pboot:sql}
[/pre]
★首页全局用。SQL语句,统计当天更新的数据
[pre]
{pboot:sql sql="select count(id) as total from ay_content WHERE date > Datetime()"}[sql:total]条{/pboot:sql}
[/pre]
★当天发布的文章标红
[pre]
{pboot:list scode=2 num=10 order=date}
)}style="color:red"{else}{/pboot:if}>[list:title]
{/pboot:list}
[/pre]