首页 > 教程 > 前端技术 > 标签调用

    收藏

    展会增加统计离展会开展的时间天数
    DT模板2016-09-16标签调用40℃
    广告
    核心提示:修改方法:找到模板template/default/tag/list-exhibit.htm,将下面的代码td width=120img src ={DT_PATH}file/image/process_{get_process($t[fromtime], $t[totime])}.gif//td换成:td width=120img src ={DT_PATH}file/image/process_{get_process($t[fromtime], $t[totime])}.gif/?php $last
    修改方法:
    找到模板template/default/tag/list-exhibit.htm,将下面的代码
    <td width="120"><img src ="{DT_PATH}file/image/process_{get_process($t[fromtime], $t[totime])}.gif"/></td>
    换成:
    <td width="120"><img src ="{DT_PATH}file/image/process_{get_process($t[fromtime], $t[totime])}.gif"/>
    <?php $lasted_day =(strtotime(timetodate($t[fromtime], 3))-strtotime(date('Y-m-d')))/3600/24;?>
    {if $lasted_day>0}<br /><font color="#003278">离开展还有 {$lasted_day} 天</font>{/if}
    </td>
 
  • 文本链接:https://mbtxw.com/Course/show.php?itemid=56
  • 文章来源:模板模板
  • 版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
0相关评论