修改方法:
找到模板template/default/tag/list-exhibit.htm,将下面的代码
找到模板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>