默认的,后台广告的图片,是显示一个
图片类型,无法清晰的知道,当前广告的图片长啥样。
作用:把广告列表中的
图片类型 这几个字。替换为广告的缩略图。
打开根目录 admin/templates/ads_list.htm 文件
定位查找
- {foreach from=$ads_list item=list}
查找
- <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://网站地址/data/afficheimg/{$list.ad_code}" {/if} height="40px" />
- </div>
- {/if}
- </span></td>
提示:修改时候,需要修改上方的
网站网址 为你的网站域名。否则广告缩略图无法显示
评论 (0)