帝國cms最新文章顯示紅色日期的教程

字號(hào):


    使用程序代碼
    $newimg='[!--newstime--]';
    if(time()-$r[newstime]<=1*24*3600)
    {
    $newimg='<FONT color=red>[!--newstime--]</FONT>';
    }
    $listtemp='<LI><SPAN class=date>'.$newimg.'</SPAN> <a href="/jc/26.html" target=_blank>[!--title--]</A> </LI>';