帝国CMS之date()转换时间格式函数
语法:date(时间格式,时间戳)
说明:PHP本身函数
使用范例:
<?=date('Y-m-d H:i:s',1277865010)?>,
返回结果为:2010-06-30 10:30:10
语法:date(时间格式,时间戳)
说明:PHP本身函数
使用范例:
<?=date('Y-m-d H:i:s',1277865010)?>,
返回结果为:2010-06-30 10:30:10
帝国cms伪静态 nginxrewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$1&page=$2 last; rewrite ^...
帝国CMS内容页模板怎么样才能让某一个字段,如果填写了就显示,没有填写就不显示呢?其实方法很简单,下面帝国cms模板网就来告诉大家怎么调用: <?phpif($navinfor[字段名]){?>字段有值时显示的内容,如[!---字段名--]<?}else{?>字段无值时显示...
帝国CMS灵动标签怎么调用指定时间段的信息呢? 1、某天发布的文章: [e:loop={'news',10,18,0,'newstime>='.to_time('2010-11-11 00:00:01').' and newstime<='.to_time('2010-11-11 23...
国CMS模板中怎么判断评论验证码是否开启? 打开:后台-模板-公共模板变量-评论表单 查找如下代码: 验证码: <input name="key" type="text" class="inputText" size="10" /> <img src="[!--news.url-...
帝国cms列表模板页随机调用数字 列表内容模板(list.var) (*) 使用使用程序代码 并打上勾 $rand=rand(1,100); $listtemp=' <li>'.$rand.'<a href="[!--titleurl--]" title="[!--oldti...
帝国CMS自定义页面导航,实现当前页面高亮显示! 以下是实现代码 [e:loop={'select id,path,title from [!db.pre!]enewspage where classid=2 order by id',20,24,0}] <?php $pageurl=$p...