list.var为什么代码解析没生效直接显代码了

发布时间:2019-10-12 18:23:44

$newstime=$r[newstime];获取信息发布时间$year=format_datetime($newstime,Y);单独获取年$month=format_datetime($newstime,M);单独获取月$day=format_datetime($newstime,d);单独获取日$listtemp=li div clas=pic...

您的位置:仿站网 > 问答 >
$newstime=$r[newstime];//获取信息发布时间
$year=format_datetime($newstime,"Y");//单独获取年
$month=format_datetime($newstime,"M");//单独获取月
$day=format_datetime($newstime,"d");//单独获取日
$listtemp='<li>
        <div class="pic"><a href="[field:arcurl/]">
          <script src="https://cdn1.ebandao.cn/js/road.js" type="text/javascript"></script>
          </a></div>
        <div class="word-nes"> <a href="[!--titleurl--]" class="name" title='[!--oldtitle--]'>[!--title--]</a>
          <p>[!--smalltext--]...</p>
          <a href="[!--titleurl--]" class="reds">查看详细</a> </div>
        <div class="new-date">
          <div class="month">'.$month.'</div>
          <div class="day">'.$day.'</div>
        </div>
        <div class="clear"></div>
      </li>';


为什么解析没生效直接显代码了
回复列表
1.
应该总么写呢?
2.
title="[!--oldtitle--]">
3.
4楼高手 ,一下子就发现了问题。
4.
楼上正解,外面用单引号,里面就不能用单引号
5.
谢谢...唉...这小错误都会爆源码.
6.
4楼正解

仿站网专注于帝国CMS仿站及二次开发、模板定制等各种有关帝国CMS程序疑难杂症!
Copyright@2016-2023 汇鑫网络工作室 版权所有 仿站网 www.ecmsw.cn
鲁ICP备17005488号-1 鲁公网安备 37018102000481号