*.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源文件。
[ ]