帝国cms列表页最新文章显示红色日期的教程
2021-06-07
帝国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.mokuw.com) 内容来自分享和网络收集,仅供学习与参考测试请备份。 转载请注明本文地址,如有侵权请联系我们!
本文地址:/study/96.html


