<?php defined('ByFeiWa') or exit('Access Invalid!');?>
<?php if(!empty($output['list']) && is_array($output['list'])) {?>
<script type="text/javascript">
$(document).ready(function(){
    $("[feiwa_type=shareshow_like]").shareshow_like({type:'store'});
});
</script>
<?php foreach($output['list'] as $key=>$value) {?>

<div class="shareshow-store-list">
  <?php if($output['owner_flag'] === TRUE){ ?>
  <?php if($_GET['feiwa'] == 'like_list') { ?>
  <!-- 喜欢删除按钮 -->
  <div class="del"><a feiwa_type="like_drop" like_id="<?php echo $output['like_store_list'][$value['shareshow_store_id']]['like_id'];?>" href="javascript:void(0)" title="<?php echo $lang['feiwa_delete'];?>">&nbsp;</a></div>
  <?php } ?>
  <?php } ?>
  <div class="top"><span class="goods-count"><strong><?php echo $value['goods_count'];?></strong><?php echo $lang['shareshow_text_jian'].$lang['shareshow_text_goods'];?></span>
    <h2><a href="<?php echo SHARESHOW_SITE_URL.'/index.php?app=store&feiwa=detail&store_id='.$value['shareshow_store_id'];?>"><?php echo $value['store_name'];?></a></h2>
  </div>
  <div style="zoom:1;">
    <div class="shareshow-store-info">
      <dl>
        <dt><?php echo $lang['shareshow_text_store_member_name'];?><?php echo $lang['feiwa_colon'];?></dt>
        <dd><?php echo $value['member_name'];?></dd>
      </dl>
      <dl>
        <dt><?php echo $lang['shareshow_text_store_area'];?><?php echo $lang['feiwa_colon'];?></dt>
        <dd><?php echo $value['area_info'];?></dd>
      </dl>
      <dl>
        <dt><?php echo $lang['shareshow_text_store_zy'];?><?php echo $lang['feiwa_colon'];?></dt>
        <dd><?php echo $value['store_zy'];?></dd>
      </dl>
      <dl>
        <dt><?php echo $lang['shareshow_text_store_favorites'];?><?php echo $lang['feiwa_colon'];?></dt>
        <dd><strong nctype="store_collect"><?php echo $value['store_collect']?></strong><?php echo $lang['feiwa_person'];?><?php echo $lang['feiwa_collect'];?></dd>
      </dl>
      <div class="handle"><span class="like-btn"><a feiwa_type="shareshow_like" like_id="<?php echo $value['shareshow_store_id'];?>" href="javascript:void(0)"><i class="pngFix"></i><span><?php echo $lang['shareshow_text_like'];?></span><em><?php echo $value['like_count']<=999?$value['like_count']:'999+';?></em></a></span> <span class="comment"><a href="<?php echo SHARESHOW_SITE_URL.'/index.php?app=store&feiwa=detail&store_id='.$value['shareshow_store_id'];?>"><i class="pngFix" title="<?php echo $lang['shareshow_text_comment'];?>">&nbsp;</i><em><?php echo $value['comment_count']<=999?$value['comment_count']:'999+';?></em></a></span> </div>
    </div>
    <?php if(!empty($value['hot_sales_list']) && is_array($value['hot_sales_list'])) { ?>
    <div class="shareshow-store-info-image">
      <ul>
        <?php $i = 1;?>
        <?php foreach($value['hot_sales_list'] as $k=>$v){?>
        <li style="background-image: url(<?php echo thumb($v, 240);?>)" title="<?php echo $v['goods_name'];?>"><a href="<?php echo urlMall('goods', 'index', array('goods_id'=>$v['goods_id']));?>" target="_blank">&nbsp;</a> <em><?php echo $v['goods_store_price'];?></em> </li>
        <?php if($i >=5) break; ?>
        <?php $i++; ?>
        <?php }?>
      </ul>
    </div>
    <?php } else {?>
    <div class="no-content">
        <p><?php echo $lang['shareshow_store_commend_goods_none'];?></p>
    </div>
    <?php }?>
</div>
</div>
<?php } ?>
<div class="pagination"> <?php echo $output['show_page'];?> </div>
<?php } else { ?>
<?php if($_GET['feiwa'] == 'like_list') { ?>
<div class="no-content">
<i class="store">&nbsp;</i>
<?php if($output['owner_flag'] === TRUE) { ?>
<p><?php echo $lang['shareshow_store_like_list_none_owner'];?></p>
<?php } else { ?>
<p><?php echo $lang['feiwa_quote1'];?><?php echo $output['member_info']['member_name'];?><?php echo $lang['feiwa_quote2'];?><?php echo $lang['shareshow_store_like_list_none'];?></p>
<?php } ?>
<?php } else { ?>
<div class="no-content">
<i class="store">&nbsp;</i>
<p><?php echo $lang['shareshow_store_list_none'];?></p>
<?php } ?>
<?php } ?>
