PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
后台商品列表显缩略图方法修改一:adminincludeslib_goods.php (可能是781行)
$sql = SELECT goods_id, goods_name, goods_sn, shop_price, goods_thumb, is_on_sale, is_best, is_new, is_hot, goods_number, integral, .
加多红色部分
修改二:admintemplatesgoods_list.htm
顶端加以下样式:
style type=textcss
#zoomimg
{positionrelative;displayblock; floatleft; margin-right0px;width18px; height18px; border1px solid #0000FF}
#zoomimg
a {positionrelative; displayblock; width18px; height18px; backgroundtransparent;}
#zoomimg
a img {width100%; height100%; border0;}
#zoomimg
ahover {positionabsolute; left-83px; top-83px; width100px; height100px; z-index2;border1px solid #0000FF;padding1px;background#f4f4f4;}
style
在以地方加多红色部分(可能是41行)
td class=first-cell style={if $goods.is_promote}colorred;{if}div id=zoomimga href=#1img src=..{$goods.goods_thumb}adivspan{$goods.goods_nameescapehtml}spantd
如果看完这篇文章还没有清楚可以点击这里ecshop二次开发
转载请注明:谷谷点程序 » ecshop后台商品列表显缩略图方法