zoukankan      html  css  js  c++  java
  • 方维订餐系统二次开发,将商户的所有图片调到商铺详情里面

    方维订餐系统将商户的所有图片调到商铺详情里面,在上一篇已经解决了,这里有另外一种方法:

    在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_id=".intval($store_info['id'])." $extImgType order by sort desc, id desc");
                $GLOBALS['tmpl']->assign("pic_list",$pic_list);

    这样可以把餐厅 的图片都调用到详情里面

  • 相关阅读:
    VC++ 读取UTF-8和ANSI编码文件
    Swift中Singleton的实现
    Swift详解之NSPredicate
    swift中的as?和as!
    Swift中的init方法
    Swift属性
    罗列系统中的所有字体
    Swift 中的Range和NSRange不同
    In line copy and paste to system clipboard
    苹果开发者账号那些事儿(一)
  • 原文地址:https://www.cnblogs.com/wangtongphp/p/3519737.html
Copyright © 2011-2022 走看看