推广 热搜: 食品  快递      www  民事主体  网络营销  代理  东莞市  橡塑 
点击 79回答 3 2022-03-27 02:28

建议及演示:展会增加统计离展会开展的时间天数。

已解决 悬赏分:20 - 解决时间 2022-03-27 11:52
*.com/bbs/forum/201111/20111128_8fd8273ca4e5e58a65ecor4VoxT7O9bu.gif" file="https://static.destoon.com/bbs/forum/201111/20111128_8fd8273ca4e5e58a65ecor4VoxT7O9bu.gif" thumbImg="1" id="aimg_9104" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" />

http://www.***.com/exhibit/list.php?catid=232


修改方法:

找到模板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>

备注说明:为了升级方便,没有将代码写入PHP源文件。

[ ]
反对 0举报 0 收藏 0 打赏 0
最佳答案
支持 0 反对 0 举报 2022-03-27 04:05
*.com/bbs/f...
支持 0 反对 0 举报 2022-03-27 04:33
建议及演示:
展会列表和显示页面增加统计离展会开展的时间天数,假如已经过期的展会,则不会显示离开展的天数。

修改原因:
展会在B2B里面发布,通常都是预期要开的展会才会发布,所以需要计算一下离展会开始还有多少天。

演示效果:

QQ截图20111128213618.gif (1.91 KB, 下载次数: 0)

下载附件

2011-11-28 21:45 上传



http://www.**.com/exhibit/list.php?catid=232


修改方法:

找到模板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>

备注说明:为了升级方便,没有将代码写入PHP源文件。

[ 本帖最后由 ims5 于 2011-11-28 21:45 编辑 ]
支持 0 反对 0 举报 2022-03-27 05:21
不错,有时间试试看,收藏了
网站首页  |  营业执照  |  关于我们  |  联系方式  |  使用协议  |  版权隐私  |  网站地图  |  排名推广  |  广告服务  |  积分换礼  |  网站留言  |  RSS订阅  |  违规举报