Example #1
0
 /**
  * 获得店铺标志、信用、商品数量、店铺评分等信息
  *
  * @param	array $param 店铺数组
  * @return	array 数组格式的返回结果
  */
 public function getStoreInfoBasic($list, $day = 0)
 {
     $list_new = array();
     if (!empty($list) && is_array($list)) {
         foreach ($list as $key => $value) {
             if (!empty($value)) {
                 $value['store_logo'] = getStoreLogo($value['store_logo']);
                 //店铺评价
                 $model_evaluate_store = Model('evaluate_store');
                 $store_evaluate_info = $model_evaluate_store->getEvaluateStoreInfoByStoreID($value['store_id'], $value['sc_id']);
                 $value = array_merge($value, $store_evaluate_info);
                 if (!empty($value['store_presales'])) {
                     $value['store_presales'] = unserialize($value['store_presales']);
                 }
                 if (!empty($value['store_aftersales'])) {
                     $value['store_aftersales'] = unserialize($value['store_aftersales']);
                 }
                 $list_new[$value['store_id']] = $value;
                 $list_new[$value['store_id']]['goods_count'] = 0;
             }
         }
         //全部商品数直接读取缓存
         if ($day > 0) {
             $store_id_string = implode(',', array_keys($list_new));
             //指定天数直接查询数据库
             $condition = array();
             $condition['goods_show'] = '1';
             $condition['store_id'] = array('in', $store_id_string);
             $condition['goods_add_time'] = array('gt', strtotime("-{$day} day"));
             $model = Model();
             $goods_count_array = $model->table('goods')->field('store_id,count(*) as goods_count')->where($condition)->group('store_id')->select();
             if (!empty($goods_count_array)) {
                 foreach ($goods_count_array as $value) {
                     $list_new[$value['store_id']]['goods_count'] = $value['goods_count'];
                 }
             }
         } else {
             $list_new = $this->getGoodsCountByStoreArray($list_new);
         }
     }
     return $list_new;
 }
Example #2
0
      <!-- 店铺列表 start -->
      <?php 
if (!empty($output['store_list'])) {
    ?>
      <ul id="mycarousel-g" class="snsstorelist jcarousel-skin-tango">
        <?php 
    foreach ($output['store_list'] as $v) {
        ?>
        <li><a href="javascript:void(0);" value="<?php 
        echo $v['store_id'];
        ?>
"><img title="<?php 
        echo $v['store_name'];
        ?>
" src="<?php 
        echo getStoreLogo($v['store_avatar']);
        ?>
"  width="90px" height="90px"/>
          <p class="extra"><?php 
        echo $lang['sns_selected'];
        ?>
</p>
          </span></a></li>
        <?php 
    }
    ?>
      </ul>
      <?php 
} else {
    ?>
      <div class="sns-norecord"><?php 
    <!-- 店铺列表 start -->
    <?php 
if (!empty($output['store_list'])) {
    ?>
    <ul id="mycarousel-g" class="snsstorelist jcarousel-skin-tango">
      <?php 
    foreach ($output['store_list'] as $v) {
        ?>
      <li><a href="javascript:void(0);" value="<?php 
        echo $v['store_id'];
        ?>
"><span class="thumb size90"><i></i><img title="<?php 
        echo $v['store_name'];
        ?>
" src="<?php 
        echo getStoreLogo($v['store_label']);
        ?>
" onload="javascript:DrawImage(this,90,90);" />
        <p class="extra"><?php 
        echo $lang['sns_selected'];
        ?>
</p>
        </span></a></li>
      <?php 
    }
    ?>
    </ul>
    <?php 
} else {
    ?>
    <div class="sns-norecord"><?php 
Example #4
0
 /**
  * 获得店铺标志、信用、商品数量、店铺评分等信息
  * 
  * @param	array $param 店铺数组
  * @return	array 数组格式的返回结果
  */
 public function getStoreInfoBasic($list, $day = 0)
 {
     $list_new = array();
     if (!empty($list) && is_array($list)) {
         foreach ($list as $key => $value) {
             if (!empty($value)) {
                 $value['store_logo'] = getStoreLogo($value['store_logo']);
                 $value['credit_arr'] = getCreditArr($value['store_credit']);
                 $value['store_desccredit_rate'] = @round($value['store_desccredit'] / 5 * 100, 2);
                 $value['store_servicecredit_rate'] = @round($value['store_servicecredit'] / 5 * 100, 2);
                 $value['store_deliverycredit_rate'] = @round($value['store_deliverycredit'] / 5 * 100, 2);
                 if (!empty($value['store_presales'])) {
                     $value['store_presales'] = unserialize($value['store_presales']);
                 }
                 if (!empty($value['store_aftersales'])) {
                     $value['store_aftersales'] = unserialize($value['store_aftersales']);
                 }
                 $list_new[$value['store_id']] = $value;
                 $list_new[$value['store_id']]['goods_count'] = 0;
             }
         }
         //全部商品数直接读取缓存
         if ($day > 0) {
             $store_id_string = implode(',', array_keys($list_new));
             //指定天数直接查询数据库
             $condition = array();
             $condition['goods_show'] = '1';
             $condition['store_id'] = array('in', $store_id_string);
             $condition['goods_add_time'] = array('gt', strtotime("-{$day} day"));
             $model = Model();
             $goods_count_array = $model->table('goods')->field('store_id,count(*) as goods_count')->where($condition)->group('store_id')->select();
             if (!empty($goods_count_array)) {
                 foreach ($goods_count_array as $value) {
                     $list_new[$value['store_id']]['goods_count'] = $value['goods_count'];
                 }
             }
         } else {
             $list_new = $this->getGoodsCountByStoreArray($list_new);
         }
     }
     return $list_new;
 }
Example #5
0
        <?php 
    }
    ?>
        <?php 
    if ($_GET['act'] == 'store') {
        ?>
        <input type="hidden" value="<?php 
        echo $output['detail']['microshop_store_id'];
        ?>
" name="share_id" id="share_id"></input>
        <div class="command-goods">
            <div class="pic">
                <span class="thumb size100">
                    <i></i>
                        <img src="<?php 
        echo getStoreLogo($output['detail']['store_label']);
        ?>
" alt="<?php 
        echo $output['detail']['store_name'];
        ?>
" />
                </span>
            </div>
            <div><?php 
        echo $output['detail']['store_name'];
        ?>
</div>
        </div>
        <?php 
    }
    ?>
Example #6
0
    ?>
      <div class="null"><?php 
    echo $lang['store_sns_content_null'];
    ?>
</div>
      <?php 
}
?>
    </div>
    <!-- 表情弹出层 -->
    <div id="smilies_div" class="smilies-module"></div>
  </div>
  <div class="cms-sns-right">
    <div class="cms-sns-right-container">
      <div class="cms-store-pic"><a><img src="<?php 
echo getStoreLogo($output['store_info']['store_avatar']);
?>
" alt="<?php 
echo $output['store_info']['store_name'];
?>
" title="<?php 
echo $output['store_info']['store_name'];
?>
" /></a></div>
      <dl class="cms-store-info">
        <dt><?php 
echo $output['store_info']['store_name'];
?>
</dt>
        <dd>已收藏:<em nctype="store_collect"><?php 
echo $output['store_info']['store_collect'];
Example #7
0
                ?>
</dt>
              <dd><?php 
                echo $lang['home_voucher_desc_1'];
                echo $v_voucher['voucher_t_limit'];
                echo $lang['currency_zh'] . $lang['home_voucher_desc_2'];
                ?>
<em><?php 
                echo $lang['currency'] . $v_voucher['voucher_t_price'];
                ?>
</em></dd>
            </dl>
          </div>
          <div class="voucher-store">
            <p class="logo"> <span class="thumb size160-48"><i></i> <img src="<?php 
                echo getStoreLogo($v_voucher['store_label']);
                ?>
"  onload="javascript:DrawImage(this,160,48);" > </span></p>
            <p class="name"><a target="_blank" href="<?php 
                echo urlShop('show_store', 'index', array('store_id' => $v_voucher['store_id']));
                ?>
"><?php 
                echo $v_voucher['store_name'];
                ?>
</a></p>
          </div>
        </li>
        <?php 
            }
            ?>
      </ul>
Example #8
0
<div class="feededitor">
  <form method="post" action="index.php?act=member_snsindex&op=sharestore" id="sharestore_form">
    <input type="hidden" name="form_submit" value="ok"/>
    <input type="hidden" id="choosestoreid" name="choosestoreid" value="<?php 
echo intval($output['store_info']['store_id']);
?>
" />
    <div class="goods">
        <div class="pic"><span class="thumb size90"><i></i><a target="_blank" href="<?php 
echo $output['store_info']['store_url'];
?>
"><img title="<?php 
echo $output['store_info']['store_name'];
?>
" src="<?php 
echo getStoreLogo($output['store_info']['store_label']);
?>
" onload="javascript:DrawImage(this,90,90);" /></a></span></div>
      <dl class="intro">
        <dt><a target="_blank" href="<?php 
echo $output['store_info']['store_url'];
?>
"><?php 
echo $output['store_info']['store_name'];
?>
</a></dt>
        <dd><?php 
echo $lang['sns_sharestore_shopkeeper'] . $lang['nc_colon'];
echo $output['store_info']['member_name'];
?>
</dd>
Example #9
0
<ul class="fd-list">
  <?php 
if (!empty($output['strace_info'])) {
    ?>
  <li nc_type="stracerow_<?php 
    echo $output['strace_info']['strace_id'];
    ?>
">
  	<div class="fd-aside">
		<span class="thumb size60"><i></i>
			<a href="index.php?act=store_snshome&sid=<?php 
    echo $output['strace_info']['strace_storeid'];
    ?>
" target="_blank">
				<img src="<?php 
    echo getStoreLogo($output['strace_info']['strace_storelogo']);
    ?>
" onload="javascript:DrawImage(this,60,60);">
			</a>
		</span>
      </div>
    <dl class="fd-wrap">
      <dt>
        <h3><a href="index.php?act=store_snshome&sid=<?php 
    echo $output['strace_info']['strace_storeid'];
    ?>
" target="_blank"><?php 
    echo $output['strace_info']['strace_storename'];
    ?>
</a><?php 
    echo $lang['nc_colon'];
Example #10
0
              <input class="btn" type="submit" value="<?php echo $lang['nc_search'];?>" />
            </div>
          </div>
          <?php }?>
        </div>
      </form>
    </nav>
  </div>
</div>
<ul class="nc-store-list">
<?php if(!empty($output['store_list']) && is_array($output['store_list'])){?>
<?php foreach($output['store_list'] as $skey => $store){?>
    <li class="item">
      <dl class="shop-info">
        <dt class="shop-name"><a href="<?php echo urlShop('show_store','', array('store_id'=>$store['store_id']),$store['store_domain']);?>" target="_blank"><?php echo $store['store_name'];?></a></dt>
        <dd class="shop-pic"><a href="<?php echo urlShop('show_store','', array('store_id'=>$store['store_id']),$store['store_domain']);?>" title="" target="_blank"><span class="size72"><img src="<?php echo getStoreLogo($store['store_label']);?>"  alt="<?php echo $store['store_name'];?>" title="<?php echo $store['store_name'];?>" class="size72" /></span></a></dd>
        <dd class="main-runs" title="<?php echo $store['store_zy']?>"><?php echo $lang['store_class_index_store_zy'].$lang['nc_colon'];?><?php echo $store['store_zy']?></dd>
        <dd class="shopkeeper"><?php echo $lang['store_class_index_owner'].$lang['nc_colon'];?><?php echo $store['member_name'];?><a target="_blank" class="message" href="index.php?act=member_message&op=sendmsg&member_id=<?php echo $store['member_id'];?>"></a><span>
        <?php if(!empty($store['store_qq'])){?>
          <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $store['store_qq'];?>&site=qq&menu=yes" title="QQ: <?php echo $store['store_qq'];?>"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $store['store_qq'];?>:52" style=" vertical-align: middle;"/></a>
        <?php }?>
        <?php if(!empty($store['store_ww'])){?>
          <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?php echo $store['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo $store['store_ww'];?>&site=cntaobao&s=2&charset=<?php echo CHARSET;?>" alt="Wang Wang" style=" vertical-align: middle;" /></a>
        <?php }?></span></dd>
      </dl>
      <dl class="w200">
        <dd><?php echo ($tmp = $store['goods_count']) ? $lang['store_class_index_goods_amount'].$tmp.$lang['piece'] : $lang['nc_common_goods_null'];?></dd>
        <dd><?php echo ($tmp = $store['num_sales_jq']) ? $lang['store_class_index_deal'].$tmp.$lang['store_class_index_jian'] : $lang['nc_common_sell_null'];?></dd>
        <?php if (!empty($store['search_list_goods'])){?>
        <dd class="more-on" attr='morep' nc_type='<?php echo $skey;?>'><span><?php echo $lang['store_class_index_goods_hiden'];?></span><i></i></dd>
        <?php }?>
Example #11
0
 /**
  * 店铺信息统计
  */
 public function store_statisticsOp()
 {
     $model_stat = Model('stat');
     $start_time = strtotime(date('Y-m', time()));
     // 当月开始
     // 月销量 月订单
     $condition = array();
     $condition['order_add_time'] = array('gt', $start_time);
     $monthly_sales = $model_stat->getoneByStatorder($condition, 'COUNT(*) as ordernum,SUM(order_amount) as orderamount ');
     // 月访问量
     //确定统计分表名称
     $last_num = $this->store_info['store_id'] % 10;
     //获取店铺ID的末位数字
     $tablenum = ($t = intval(C('flowstat_tablenum'))) > 1 ? $t : 1;
     //处理流量统计记录表数量
     $flow_tablename = ($t = $last_num % $tablenum) > 0 ? "flowstat_{$t}" : 'flowstat';
     $condition = array();
     $condition['store_id'] = $this->store_info['store_id'];
     $condition['stattime'] = array('gt', $start_time);
     $condition['type'] = 'sum';
     $statlist_tmp = $model_stat->getoneByFlowstat($flow_tablename, $condition, 'SUM(clicknum) as amount');
     $output = array('store_name' => $this->store_info['store_name'], 'store_banner' => getStoreLogo($this->store_info['store_banner'], 'store_logo'), 'order_amount' => $monthly_sales['orderamount'], 'order_num' => $monthly_sales['ordernum'], 'click_amount' => $statlist_tmp['amount']);
     output_data(array('statistics' => $output));
 }
Example #12
0
            <a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $value['store_id']));
        ?>
" target="_blank" >
                <?php 
        echo $value['store_name'];
        ?>
            </a>
            </dt>
            <dd class="store-logo">
            <a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $value['store_id']));
        ?>
" target="_blank" >
                <img src="<?php 
        echo getStoreLogo($value['store_label']);
        ?>
" />
            </a>
            </dd>
            <dd class="member-name">店主:<?php 
        echo $value['member_name'];
        ?>
</dd>
            <dd nctype="btn_store_select" class="handle-button" title="<?php 
        echo $lang['cms_text_add'];
        ?>
"></dd>
        </dl>
        </li>
        <?php 
Example #13
0
        <h4><i></i><?php 
echo $lang['microshop_store_new_list'];
?>
<span class="arrow"></span></h4>
      </div>
      <ol nc_type="index_store" style=" background: none; padding-left: 7px;">
        <?php 
if ($store_list_count > 10) {
    ?>

        <?php 
    for ($i = 10; $i < $store_list_count; $i++) {
        ?>

        <li class="overall"><div class="store-pic"><img src="<?php 
        echo getStoreLogo($output['store_list'][$i]['store_logo']);
        ?>
" onload="javascript:DrawImage(this,60,60);" /></div><i><?php 
        echo $i - 9;
        ?>
</i>
          
          <dl class="store-intro">
            <dt><a href="<?php 
        echo MICROSHOP_SITEURL . DS;
        ?>
index.php?act=store&op=detail&store_id=<?php 
        echo $output['store_list'][$i]['microshop_store_id'];
        ?>
" target="_blank"><?php 
        echo $output['store_list'][$i]['store_name'];
Example #14
0
 public function indexOp()
 {
     $goods_class = Model('goods');
     $condition = array();
     $condition['store_id'] = $this->store_info['store_id'];
     $model_goods = Model('goods');
     // 字段
     $fieldstr = "goods_id,goods_commonid,goods_name,goods_jingle,store_id,store_name,goods_price,goods_promotion_price,goods_marketprice,goods_storage,goods_image,goods_freight,goods_salenum,color_id,evaluation_good_star,evaluation_count,goods_promotion_type";
     $fieldstr .= ',is_virtual,is_presell,is_fcode,have_gift';
     //得到最新12个商品列表
     $new_goods_list = $model_goods->getGoodsListByColorDistinct($condition, $fieldstr, 'goods_id desc', 12);
     $condition['goods_commend'] = 1;
     //得到12个推荐商品列表
     $recommended_goods_list = $model_goods->getGoodsListByColorDistinct($condition, $fieldstr, 'goods_id desc', 12);
     $goods_list = $this->getGoodsMore($new_goods_list, $recommended_goods_list);
     $show_sto['new_goods'] = $goods_list[1];
     $show_sto['recommended_goods'] = $goods_list[2];
     //获取缩略图
     foreach ($show_sto['recommended_goods'] as $k => $v) {
         $v['url'] = thumb($v, 240);
         $arr[] = $v;
     }
     $show_store['goods_list_info']['recommended_goods_list'] = $arr;
     foreach ($show_sto['new_goods'] as $kk => $vv) {
         $vv['url'] = thumb($vv, 240);
         $arrr[] = $vv;
     }
     $show_store['goods_list_info']['new_goods_list'] = $arrr;
     //幻灯片图片
     if ($this->store_info['store_slide'] != '' && $this->store_info['store_slide'] != ',,,,') {
         $show_store['goods_list_info']['store_slide'] = explode(',', $this->store_info['store_slide']);
         $show_store['goods_list_info']['store_slide_url'] = explode(',', $this->store_info['store_slide_url']);
     }
     $condon = array();
     foreach ($this->goods_wep_list as $value) {
         $condon[] = $value;
     }
     if (trim($_POST['key']) != '') {
         $model_mb_user_token = Model('mb_user_token');
         $key = trim($_POST['key']);
         $mb_user_token_info = $model_mb_user_token->getMbUserTokenInfoByToken($key);
         $kkyy = $mb_user_token_info['member_id'];
     }
     if ($kkyy > 0) {
         $favorites_model = Model('favorites');
         $favorites_info = $favorites_model->getOneFavorites(array('fav_id' => $this->store_info['store_id'], 'fav_type' => 'store', 'member_id' => $kkyy));
         if (!empty($favorites_info)) {
             $memberid = '1';
             $store_model = Model('store');
             $store_list = $store_model->getStoreList(array('store_id' => array('in', $this->store_info['store_id'])));
         } else {
             $memberid = '0';
         }
     }
     // 轮播
     if ($this->store_info['mb_sliders']) {
         $mbSliders = $this->getStoreMbSliders($this->store_info['store_id']);
         $mbSliderUrls = array();
         foreach ($mbSliders as $k => $v) {
             if ($v['img']) {
                 $mbSliderUrls[$k]['imgUrl'] = UPLOAD_SITE_URL . DS . ATTACH_STORE . DS . $v['img'];
                 $mbSliderUrls[$k]['img'] = $v['img'];
                 $mbSliderUrls[$k]['link'] = $v['link'];
                 $mbSliderUrls[$k]['type'] = $v['type'];
             }
         }
     }
     if ($this->store_info['mb_title_img']) {
         $show_store['goods_list_info']['goods_store']['mb_title_img'] = UPLOAD_SITE_URL . DS . ATTACH_STORE . DS . $this->store_info['mb_title_img'];
     }
     $show_store['goods_list_info']['goods_store']['store_collect'] = $store_list[0]['store_collect'];
     $show_store['goods_list_info']['goods_store']['member_id'] = $memberid;
     $show_store['goods_list_info']['goods_wep_list'] = $condon;
     $show_store['goods_list_info']['goods_store']['store_id'] = $this->store_info['store_id'];
     $show_store['goods_list_info']['goods_store']['store_name'] = $this->store_info['store_name'];
     $show_store['goods_list_info']['goods_store']['store_company_name'] = $this->store_info['store_company_name'];
     $show_store['goods_list_info']['goods_store']['area_info'] = $this->store_info['area_info'];
     $show_store['goods_list_info']['goods_store']['store_address'] = $this->store_info['store_address'];
     $show_store['goods_list_info']['goods_store']['store_banner'] = $this->store_info['store_banner'];
     $show_store['goods_list_info']['goods_store']['store_avatar'] = $this->store_info['store_avatar'];
     $show_store['goods_list_info']['goods_store']['store_qq'] = $this->store_info['store_qq'];
     $show_store['goods_list_info']['goods_store']['store_ww'] = $this->store_info['store_ww'];
     $show_store['goods_list_info']['goods_store']['store_phone'] = $this->store_info['store_phone'];
     //mb_title_img
     $show_store['goods_list_info']['goods_store']['mb_sliders'] = $mbSliderUrls;
     $show_store['goods_list_info']['goods_store']['store_credit'] = $this->store_info['store_credit'];
     $show_store['goods_list_info']['goods_store']['store_labell'] = $this->store_info['store_label'];
     $show_store['goods_list_info']['goods_store']['store_credit_average'] = $this->store_info['store_credit_average'];
     $show_store['goods_list_info']['goods_store']['store_credit_percent'] = $this->store_info['store_credit_percent'];
     $show_store['goods_list_info']['goods_store']['store_label'] = getStoreLogo($show_store['goods_list_info']['goods_store']['store_labell'], 'store_logo');
     output_data($show_store);
 }
Example #15
0
 /**
  * 会员相关的信息
  *
  * @param
  * @return array
  */
 public function getMemberInfo($condition)
 {
     $model_member = Model('member');
     $member = $model_member->getMemberInfo($condition, 'member_id,member_name,member_avatar');
     $member['store_id'] = '';
     $member['store_name'] = '';
     $member['store_avatar'] = '';
     $member['grade_id'] = '';
     $member['member_avatar'] = getMemberAvatar($member['member_avatar']);
     $model_seller = Model('seller');
     $seller = $model_seller->getSellerInfo(array('member_id' => $member['member_id']));
     if (!empty($seller) && $seller['store_id'] > 0) {
         $store_info = $this->table('store')->field('store_id,store_name,grade_id,store_avatar')->where(array('store_id' => $seller['store_id']))->find();
         if (is_array($store_info) && !empty($store_info)) {
             $member['store_id'] = $store_info['store_id'];
             $member['store_name'] = $store_info['store_name'];
             $member['seller_name'] = $seller['seller_name'];
             $member['grade_id'] = $store_info['grade_id'];
             $member['store_avatar'] = getStoreLogo($store_info['store_avatar']);
         }
     }
     return $member;
 }
Example #16
0
          <ul>
            <li><a href="javascript:collect_store('<?php echo $output['store_info']['store_id'];?>','count','store_collect')" class="btn"><i></i><?php echo $lang['nc_collect'];?></a></li>
            <li><a href="javascript:void(0);" nctype="store_collect" class="no-url"><?php echo $output['store_info']['store_collect'];?></a><span><?php echo $lang['nc_collection_popularity'];?></span></li>
            <li><a href="index.php?act=store_snshome&sid=<?php echo $output['store_info']['store_id'];?>" target="_blank">0</a><span><?php echo $lang['nc_store_the_dynamic'];?></span></li>
            <li><a href="javascript:void(0);" class="share" nctype="share_store"></a><span><?php echo $lang['nc_share'];?></span></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</header>
<div class="background clearfix">
<div class="ncsl-nav">
  <div class="banner"><a href="<?php echo urlShop('show_store', 'index', array('store_id'=>$output['store_info']['store_id']));?>" class="img">
    <?php if(!empty($output['store_info']['store_banner'])){?>
    <img src="<?php echo getStoreLogo($output['store_info']['store_banner']);?>" alt="<?php echo $output['store_info']['store_name']; ?>" title="<?php echo $output['store_info']['store_name']; ?>" class="pngFix">
    <?php }else{?>
    <div class="ncs-default-banner pngFix"></div>
    <?php }?>
    </a></div>
  <nav id="nav" class="pngFix">
    <ul class="pngFix">
      <li class="<?php if($output['page'] == 'index'){?>active<?php }else{?>normal<?php }?>"><a href="<?php echo urlShop('show_store', 'index', array('store_id'=>$output['store_info']['store_id']));?>"><span><?php echo $lang['nc_store_index'];?><i></i></span></a></li>
      <?php if($output['page'] == 'goods'){?>
      <li class="active"><a href="JavaScript:void(0);"><span><?php echo $lang['nc_goods_info'];?><i></i></span></a></li>
      <?php }?>
      <?php if($output['page'] == 'bundling'){?>
      <li class="active"><a href="JavaScript:void(0);"><span><?php echo $lang['nc_bundling'];?><i></i></span></a></li>
      <?php }?>
      <?php if(!empty($output['store_navigation_list'])){
      		foreach($output['store_navigation_list'] as $value){
                            </ul>
                            <ul class="ncsc-goods-sku-list"style="display: block;border-top: dashed 1px #E6E6E6;margin-top: 3px;padding-top: 5px;">
                                <?php 
        $ext = $v['ext'];
        ?>
                              
                                <?php 
        foreach ($ext as $bs) {
            ?>
                                <li>
                                    <div class="goods-thumb" title="装修公司:<?php 
            echo $bs['store_name'];
            ?>
">
                                        <img width="60" style="width:100%" src="<?php 
            echo getStoreLogo($bs['store_label'], 'store_avatar');
            ?>
">
                                    </div>
                                    <div class="goods-price">预算:<em title="¥<?php 
            echo $bs['bid_budget'];
            ?>
">¥<?php 
            echo $bs['bid_budget'];
            ?>
万</em></div>
                                    <a class="ncsc-btn-mini" href="javascript:void(0);" onclick="lookup_bid(<?php 
            echo $bs['bid_id'];
            ?>
)">查看详情</a>
                                </li>
  <?php 
if (is_array($output['strace_array'])) {
    ?>
  <ul class="fd-list">
    <?php 
    foreach ($output['strace_array'] as $val) {
        ?>
    <li nc_type="tracerow_<?php 
        echo $val['strace_id'];
        ?>
">
    <div class="fd-aside"> <span class="thumb size60"><i></i> <a href="index.php?act=store_snshome&sid=<?php 
        echo $val['strace_storeid'];
        ?>
" target="_blank"> <img onload="javascript:DrawImage(this,60,60);" src="<?php 
        echo getStoreLogo($val['strace_storelogo']);
        ?>
"> </a> </span> </div>
      <dl class="fd-wrap">
        <dt>
          <h3><a href="index.php?act=store_snshome&sid=<?php 
        echo $val['strace_storeid'];
        ?>
" target="_blank"><?php 
        echo $val['strace_storename'];
        ?>
</a><?php 
        echo $lang['nc_colon'];
        ?>
</h3>
          <h5><?php 
if (!empty($output['favorites_list']) && is_array($output['favorites_list'])) {
    ?>
    <tbody>
      <?php 
    foreach ($output['favorites_list'] as $key => $favorites) {
        ?>
      <tr class="bd-line">
        <td class="tc"><input type="checkbox" class="checkitem" value="<?php 
        echo $favorites['fav_id'];
        ?>
"/></td>
        <td><div class="goods-pic-small"> <span class="thumb size60"> <i></i><a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $favorites['store']['store_id']), $favorites['store']['store_domain']);
        ?>
" target="_blank"><img src="<?php 
        echo getStoreLogo($favorites['store']['store_label']);
        ?>
" onload="javascript:DrawImage(this,60,60);"/></a></span></div></td>
        <td class="tl"><dl class="goods-name">
            <dt><a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $favorites['store']['store_id']), $favorites['store']['store_domain']);
        ?>
" target="_blank"><?php 
        echo $favorites['store']['store_name'];
        ?>
</a>
            	<p><?php 
        echo $favorites['store']['area_info'];
        ?>
</p>
            	</dt>
Example #20
0
     <?php 
    }
    ?>
      <?php 
} else {
    ?>
     <!-- 不启用店铺装修 -->
<div class="banner"><a href="<?php 
    echo urlShop('show_store', 'index', array('store_id' => $output['store_info']['store_id']));
    ?>
" class="img">
      <?php 
    if (!empty($output['store_info']['store_banner'])) {
        ?>
      <img src="<?php 
        echo getStoreLogo($output['store_info']['store_banner'], 'store_logo');
        ?>
" alt="<?php 
        echo $output['store_info']['store_name'];
        ?>
" title="<?php 
        echo $output['store_info']['store_name'];
        ?>
" class="pngFix">
      <?php 
    } else {
        ?>
      <div class="ncs-default-banner"></div>
      <?php 
    }
    ?>
      <h3>店铺收藏</h3>
    </div>
    <?php 
if (!empty($output['favorites_store_list']) && is_array($output['favorites_store_list'])) {
    ?>
    <div class="ncm-favorites-store">
      <ul id="favoritesStoreList" class="jcarousel-skin-tango">
        <?php 
    foreach ($output['favorites_store_list'] as $key => $favorites) {
        ?>
        <li>
          <div class="ncm-store-pic"><a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $favorites['store']['store_id']), $favorites['store']['store_domain']);
        ?>
" ><img alt="" src="<?php 
        echo getStoreLogo($favorites['store']['store_avatar']);
        ?>
"></a></div>
          <dl>
            <dt class="ncm-goods-name"><a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $favorites['store']['store_id']), $favorites['store']['store_domain']);
        ?>
" title="<?php 
        echo $favorites['store']['store_name'];
        ?>
" ><?php 
        echo $favorites['store']['store_name'];
        ?>
</a></dt>
            <dd>新品<?php 
        echo $output['goods_count'][$favorites['store']['store_id']];
Example #22
0
 protected function get_share_app_store_content($store_info, $param)
 {
     $content_str = "\r\n            <div class='fd-media'>\r\n            <div class='goodsimg'><a target=\"_blank\" href=\"{$param['url']}\"><img src=\"" . getStoreLogo($store_info['store_label']) . "\" onload=\"javascript:DrawImage(this,120,120);\"></a></div>\r\n            <div class='goodsinfo'>\r\n            <dl>\r\n            <dt><a target=\"_blank\" href=\"{$param['url']}\">{$store_info['store_name']}</a></dt>\r\n            <dd>{$param['comment']}<a target=\"_blank\" href=\"{$param['url']}\">" . Language::get('nc_common_goto') . "</a></dd>\r\n            </dl>\r\n            </div>\r\n            </div>\r\n            ";
     return $content_str;
 }
            <a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $value['store_id']));
        ?>
"  >
                <?php 
        echo $value['store_name'];
        ?>
            </a>
            </dt>
            <dd class="store-logo">
            <a href="<?php 
        echo urlShop('show_store', 'index', array('store_id' => $value['store_id']));
        ?>
"  >
                <img src="<?php 
        echo getStoreLogo($value['store_avatar']);
        ?>
" />
            </a>
            </dd>
            <dd class="member-name">店主:<?php 
        echo $value['member_name'];
        ?>
</dd>
            <dd nctype="btn_store_select" class="handle-button" title="<?php 
        echo $lang['cms_text_add'];
        ?>
"></dd>
        </dl>
        </li>
        <?php 
if (!isset($_GET["store"]) or !storeExists($_GET["store"])) {
    header("Location: ../index.php");
}
// Update paths
function updatePath($elem)
{
    if ($elem["filename"] != 'imageurl') {
        $elem["file"] = "../../files/" . $elem["file"];
    }
    return $elem;
}
/* BEGIN -- Get store data */
$domain = $_GET["store"];
$storeId = getStoreId($domain);
// Logo
$logoPath = getStoreLogo($domain);
// Categories
$categories = getCategories($storeId);
// Products
$searchTerm = $_GET["terms"];
$products = searchOnStore($storeId, $searchTerm, 30);
$products = array_map("updatePath", $products);
// Vat
$vat_oux = getStoreById($storeId);
$vat = $vat_oux[0]["vat"];
//loged in user
$smarty->assign('userPermission', 'guest');
if (isset($_SESSION['storesLogin'][$storeId]['userId'])) {
    $userInfo = $_SESSION['storesLogin'][$storeId]['userId'];
    if (isset($userInfo)) {
        $userInfo = getAccount($userInfo);
Example #25
0
    public static function getChatHtml($layout)
    {
        $web_html = '';
        if ($layout != 'layout/msg_layout.php' && $layout != 'layout/store_joinin_layout.php') {
            $config_file = BASE_ROOT_PATH . DS . 'chat' . DS . 'config' . DS . "config.ini.php";
            require_once $config_file;
            $avatar = getMemberAvatar($_SESSION['avatar']);
            $store_avatar = getStoreLogo($_SESSION['store_avatar']);
            $nchash = getNchash();
            $formhash = Security::getTokenValue();
            $css_url = CHAT_TEMPLATES_URL;
            $app_url = APP_SITE_URL;
            $chat_url = CHAT_SITE_URL;
            $node_url = NODE_SITE_URL;
            $shop_url = SHOP_SITE_URL;
            $goods_id = intval($_GET['goods_id']);
            $web_html = <<<EOT
\t\t\t<link href="{$css_url}/css/chat.css" rel="stylesheet" type="text/css">
\t\t\t<div style="clear: both;"></div>
\t\t\t<div id="web_chat_dialog" style="display: none;float:right;">
\t\t\t\t\t</div>
\t\t\t<a id="chat_login" href="javascript:void(0)" style="display: none;"></a>
\t\t\t<script type="text/javascript">
\t\t\tvar APP_SITE_URL = '{$app_url}';
                    var CHAT_SITE_URL = '{$chat_url}';
                    var SHOP_SITE_URL = '{$shop_url}';
                    var connect_url = "{$node_url}";

                    var layout = "{$layout}";
                    var act_op = "{$_GET['act']}_{$_GET['op']}";
                    var chat_goods_id = "{$goods_id}";
                    var user = {};

                    user['u_id'] = "{$_SESSION['member_id']}";
                    user['u_name'] = "{$_SESSION['member_name']}";
                    user['s_id'] = "{$_SESSION['store_id']}";
                    user['s_name'] = "{$_SESSION['store_name']}";
                    user['s_avatar'] = "{$store_avatar}";
                    user['avatar'] = "{$avatar}";

                    \$("#chat_login").nc_login({
                      nchash:'{$nchash}',
                      formhash:'{$formhash}'
                    });
                    </script>
EOT;
            if (defined('APP_ID') && APP_ID != 'shop') {
                $web_html .= '<link href="' . RESOURCE_SITE_URL . '/js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">';
                $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/perfect-scrollbar.min.js"></script>';
                $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.mousewheel.js"></script>';
            }
            $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.charCount.js" charset="utf-8"></script>';
            $web_html .= '<script type="text/javascript" src="' . RESOURCE_SITE_URL . '/js/jquery.smilies.js" charset="utf-8"></script>';
            $web_html .= '<script type="text/javascript" src="' . CHAT_RESOURCE_URL . '/js/user.js" charset="utf-8"></script>';
        }
        if ($layout == 'layout/seller_layout.php') {
            $web_html .= '<script type="text/javascript" src="' . CHAT_RESOURCE_URL . '/js/store.js" charset="utf-8"></script>';
            $seller_smt_limits = '';
            if (!empty($_SESSION['seller_smt_limits']) && is_array($_SESSION['seller_smt_limits'])) {
                $seller_smt_limits = implode(',', $_SESSION['seller_smt_limits']);
            }
            $web_html .= <<<EOT
\t\t\t\t\t<script type="text/javascript">
\t\t\t\t\tuser['seller_id'] = "{$_SESSION['seller_id']}";
\t\t\t\t\tuser['seller_name'] = "{$_SESSION['seller_name']}";
\t\t\t\t\tuser['seller_is_admin'] = "{$_SESSION['seller_is_admin']}";
\t\t\t\t\tvar smt_limits = "{$seller_smt_limits}";
\t\t\t\t\t</script>
EOT;
        }
        return $web_html;
    }