帝国CMS显示指定时间内更新的信息数量,如1天内列新多少条信息:
用sql调用
12小时:<?=$empire->gettotal("select count(*) as total from phome_ecms_表 where newstime>UNIX_TIMESTAMP()-24*3600")?>
6小时:<?=$empire->gettotal("select count(*) as total f...
15、如何用灵动标签调用副表字段内容?
原理:在灵动标签循环内用SQL读取副表内容。下面以读取新闻副表中的newstext字段为例:
[e:loop={0,1,3,0}]
<?php
$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$bqr[stb]} where id='$bqr[id]...
9、帝国CMS程序扩展变量说明
程序扩展变量说明:通过这些变量可实现各种更复杂的系统.
1、列表/封面模板变量说明:
当前栏目id:$GLOBALS[navclassid]
通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclass...