方维订餐系统二次开发,将商户的所有图片调到商铺详情里面
方维订餐系统将商户的所有图片调到商铺详情里面,在上一篇已经解决了,这里有另外一种方法:
在store_view.html 加入下面一句
<!--add by QQ 1006440989 --> <div style="height:30px;"></div> <ul id="pic-album"> {foreach from=$pic_list item=pic_item name="pic_item"} <li style="height:20px;"></li> <li class="{if $pic_item.id eq $pic_info.id}current{/if}"><div><a href="{url x="store" r="photos" p="id=$store_info.id&image_type=$images_group_id&pid=$pic_item.id"}#pic-bd"><img src="{$pic_item.image}" alt="{$pic_item.brief}"></a></div></li> {/foreach} </ul> <div style="height:30px;"></div>
在viewModule.class 加下面
//add by QQ1006440989 $pic_list = $GLOBALS['db']->getAll("select id,image,click_count,images_group_id,brief,user_id,create_time from ".DB_PREFIX."supplier_location_images where status = 1 and supplier_location_>); $GLOBALS['tmpl']->assign("pic_list",$pic_list);
这样可以把餐厅 的图片都调用到详情里面