A-A+
ecshop后台广告列表显示其缩略图的方法
在前几篇的文章中,夏日博客写了一篇关于商品列表显示缩略图的方法,今天再来改写一下 ecshop 后台广告列表显示缩略图的方法,这个纯粹是觉得好玩,实际没多大的用户,在 ecshop 后台的广告列表处是不显示缩略图的,只要我们稍微的来个微型开发就可以了。
首先打开 admin/templates/ads_list.htm 文件,查找如下的代码:
<td align="left"><span>{$list.type}</span></td>
将其修改为如下代码:
<td valign="middle"><span>
<div style="float:left;margin-right:10px;line-height:40px;">{$list.type}</div>
{if ($list.type == '图片')}
<div style="float:left;height:40px;max-width:200px;*width:200px;overflow:hidden;">
<img {if strpos($list.ad_code,'www') }src="{$list.ad_code}"{else}src="http://www.68ecshop.com/data/afficheimg/{$list.ad_code}" {/if} height="40px" />
</div>
{/if}
</span></td>
楼上说在大牛网站里评论可以增加知名度,我就跟着评论了
哈哈,欢迎常来访额。
你一直致力于ecshop的研究?
听说在大牛网站里评论可以增加知名度,我就来了。
ecshop我当年也是研究过的,还建过这样的站!可惜都没有了,都没有坚持下来!
喜欢 赞一个 好文章