帝国cms最新文章显示红色日期的教程

前端之家收集整理的这篇文章主要介绍了帝国cms最新文章显示红色日期的教程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

使用程序代码

$newimg='[!--newstime--]';
if(time()-$r[newstime]<=1*24*3600)
{
$newimg='<FONT color=red>[!--newstime--]</FONT>';
}

$listtemp='<LI><SPAN class=date>'.$newimg.'</SPAN> <a href="[!--titleurl--]" target=_blank>[!--title--]</A> </LI>';

猜你在找的帝国CMS相关文章