加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 教程 > 正文

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

发布时间:2021-02-24 20:44:44 所属栏目:教程 来源:网络整理
导读:使用程序代码 $newimg='[!--newstime--]'; if(time()-$r[newstime]=1*24*3600) { $newimg='FONT color=red[!--newstime--]/FONT'; } $listtemp='LISPAN class=date'.$newimg.'/SPAN a href="[!--titleurl--]" target=_blank[!--title--]/A /LI';

使用程序代码

$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>';

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读