帝国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>';
 

猜你喜欢

转载自www.cnblogs.com/surplus/p/12361004.html
今日推荐