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

Posted surplus

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了帝国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最新文章显示红色日期的教程的主要内容,如果未能解决你的问题,请参考以下文章