当前目录:帝国CMS教程

帝国cms 列表内容模版 时间调用

帝国CMS教程 2025-04-03 15:26:04

列表内容模版时间调用
列表模板启用list.var支持程序代码,然后用:
$listtemp='  月份:'.date("Y-m",$r[newstime]).'<br>日:'.date("d",$r[newstime]).'<br>其它模板内容   ';
在内容页:
<?=date("Y-M",$navinfor[newstime])?>
在php中
<?=date('Y-m-d',$r[newstime])?>

帝国cms 列表内容模版 时间调用