今日’;}
elseif(($ntime–@me)<$onedayI.)
{@me=‘

"景先生毕设|www.jxszl.com

织梦教程:显示昨日今日时间不同效果

2022-10-29 16:40编辑: www.jxszl.com景先生毕设
在织梦dedecms模板中时间标签显示今日昨日的效果的方法,添加代码
[field:pubdaterunphp=yes]
$ntime=time();
$oneday=IIIVI00*IIIV;
$onedayI.=II*IIIVI00*IIIV;
if(($

 更多精彩就在: 51免费论文网|www.jxszl.com 
ntime–@me)<$oneday)
{@me=‘今日’;}
elseif(($ntime–@me)<$onedayI.)
{@me=‘昨日’;
}
else
{@me=MyDate(‘Y.m:d’,@me);}
[/field:pubdate]


原文链接:http://www.jxszl.com/biancheng/dedecms/76238.html