{include file="public/seller_top" /} 
<div class="seller_main w1200">
    {include file="public/seller_left" /}
    <div class="seller_right">
        <div class="seller_items">
            {include file="public/seller_items" /}
        </div>
        
        
        
<form method="get" action="">
  <table class="search-form">
    <tr>
      <td>&nbsp;</td>
      <th>{$Think.lang.store_goods_index_store_goods_class}</th>
      <td class="w160"><select name="stc_id" class="w150">
          <option value="0">{$Think.lang.ds_please_choose}</option>
          <?php if(is_array($store_goods_class) && !empty($store_goods_class)){?>
          <?php foreach ($store_goods_class as $val) {?>
          <option value="<?php echo $val['stc_id']; ?>" {if condition="$Think.get.stc_id eq $val.stc_id"}selected="selected"{/if}><?php echo $val['stc_name']; ?></option>
          <?php if (isset($val['child']) && count($val['child'])>0){?>
          <?php foreach ($val['child'] as $child_val){?>
          <option value="<?php echo $child_val['stc_id']; ?>" {if condition="$Think.get.stc_id eq $child_val.stc_id"}selected="selected"{/if}>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $child_val['stc_name']; ?></option>
          <?php }?>
          <?php }?>
          <?php }?>
          <?php }?>
        </select></td>
      <th>
        <select name="search_type">
          <option value="0" {if condition="$Think.get.type eq '0'"}selected="selected"{/if}>{$Think.lang.store_goods_index_goods_name}</option>
          <option value="1" {if condition="$Think.get.type eq '1'"}selected="selected"{/if}>{$Think.lang.store_goods_index_goods_no}</option>
          <option value="2" {if condition="$Think.get.type eq '2'"}selected="selected"{/if}>平台货号</option>
        </select>
      </th>
      <td class="w160"><input type="text" class="text" name="keyword" value="{$Think.get.keyword}"/></td>
      <td class="tc w70"><label class="submit-border"><input type="submit" class="submit" value="{$Think.lang.ds_search}" /></label></td>
    </tr>
  </table>
</form>
<table class="dssc-default-table">
  <thead>
    <tr nc_type="table_header">
      <th class="w30"></th>
      <th class="w50"></th>
      <th>{$Think.lang.store_goods_index_goods_name}</th>
      <th class="w180">{$Think.lang.store_goods_index_show}</th>
      <th class="w100">{$Think.lang.store_goods_index_price}</th>
      <th class="w100">{$Think.lang.store_goods_index_stock}</th>
      <th class="w100">{$Think.lang.ds_handle}</th>
    </tr>
    <?php  if (!empty($goods_list)) { ?>
    <tr>
      <td class="tc"><input type="checkbox" id="all" class="checkall"/></td>
      <td colspan="10"><label for="all">{$Think.lang.ds_select_all}</label>
        <a href="javascript:void(0);" class="dssc-btn-mini" nc_type="batchbutton" uri="{:url('/Home/Sellergoodsonline/drop_goods')}" name="commonid" confirm="{$Think.lang.ds_ensure_del}"><i class="icon-trash"></i>{$Think.lang.ds_del}</a>
        <a href="javascript:void(0);" class="dssc-btn-mini" nc_type="batchbutton" uri="{:url('/Home/Sellergoodsoffline/goods_show')}" name="commonid"><i class="icon-level-up"></i>{$Think.lang.store_goods_index_show}</a>
    </tr>
    <?php } ?>
  </thead>
  <tbody>
    <?php if (!empty($goods_list)) { ?>
    <?php foreach ($goods_list as $val) { ?>
    <tr>
      <th class="tc"><input type="checkbox" class="checkitem tc" value="<?php echo $val['goods_commonid']; ?>"/></th>
      <th colspan="20">平台货号：<?php echo $val['goods_commonid'];?></th>
    </tr>
    <tr>
      <td class="trigger"><i class="tip icon-plus-sign" nctype="ajaxGoodsList" data-comminid="<?php echo $val['goods_commonid'];?>" title="点击展开查看此商品全部规格；规格值过多时请横向拖动区域内的滚动条进行浏览。"></i></td>
      <td>
          <div class="pic-thumb">
        <a href="{:url('/Home/Goods/index',['goods_id'=>$storage_array[$val['goods_commonid']]['goods_id']])}" target="_blank"><img src="<?php echo thumb($val, 60);?>"/></a>
          </div>
      </td>
      <td class="tl"><dl class="goods-name">
          <dt style="max-width: 450px !important;">
            <?php if ($val['is_virtual'] ==1) {?>
            <span class="type-virtual" title="虚拟兑换商品">虚拟</span>
            <?php }?>
            <?php if ($val['is_fcode'] ==1) {?>
            <span class="type-fcode" title="F码优先购买商品">F码</span>
            <?php }?>
            <?php if ($val['is_presell'] ==1) {?>
            <span class="type-presell" title="预先发售商品">预售</span>
            <?php }?>
            <?php if ($val['is_appoint'] ==1) {?>
            <span class="type-appoint" title="预约销售提示商品">预约</span>
            <?php }?>
            <a href="{:url('/Home/Goods/index',['goods_id'=>$storage_array[$val['goods_commonid']]['goods_id']])}" target="_blank"><?php echo $val['goods_name']; ?></a></dt>
          <dd>{$Think.lang.store_goods_index_goods_no}{$Think.lang.ds_colon}<?php echo $val['goods_serial'];?></dd>
          <dd class="serve"> <span class="<?php if ($val['goods_commend'] == 1) { echo 'open';}?>" title="店铺推荐商品"><i class="commend">荐</i></span> <span class="<?php if ($val['mobile_body'] != '') { echo 'open';}?>" title="手机端商品详情"><i class="icon-tablet"></i></span> <span class="" title="商品页面二维码"><i class="icon-qrcode"></i>
            <div class="QRcode"><a target="_blank" href="<?php echo goodsQRCode(array('goods_id' => $storage_array[$val['goods_commonid']]['goods_id'], 'store_id' => session('store_id')));?>">下载标签</a>
              <p><img src="<?php echo goodsQRCode(array('goods_id' => $storage_array[$val['goods_commonid']]['goods_id'], 'store_id' => session('store_id')));?>"/></p>
            </div>
            </span> </dd>
        </dl></td>
      <td><a href="javascript:void(0)" onclick="ajax_get_confirm('','{:url('/Home/Sellergoodsoffline/goods_show',['commonid'=>$val.goods_commonid])}')" class="dssc-btn">{$Think.lang.store_goods_index_show}</a></td>
      <td><span>{$Think.lang.currency}<?php echo $val['goods_price']; ?></span></td>
      <td><span><?php echo $storage_array[$val['goods_commonid']]['sum']; ?>{$Think.lang.piece}</span></td>
      <td class="dscs-table-handle"><span><a href="{:url('/Home/Sellergoodsonline/edit_goods',['commonid'=>$val.goods_commonid])}" class="btn-blue"><i class="icon-edit"></i><p>{$Think.lang.ds_edit}</p></a></span>
        <span><a href="javascript:void(0)" onclick="ajax_get_confirm('{$Think.lang.ds_ensure_del}', '{:url('/Home/Sellergoodsonline/drop_goods',['commonid'=>$val.goods_commonid])}');" class="btn-red"><i class="icon-trash"></i><p>{$Think.lang.ds_del}</p></a></span></td>
    </tr>
    <tr style="display:none;"><td colspan="20"><div class="dssc-goods-sku ps-container"></div></td></tr>
    <?php } ?>
    <?php } else { ?>
    <tr>
      <td colspan="20" class="norecord"><div class="warning-option"><i class="icon-warning-sign"></i><span>{$Think.lang.no_record}</span></div></td>
    </tr>
    <?php } ?>
  </tbody>
    <?php  if (!empty($goods_list)) { ?>
  <tfoot>
    <tr>
      <th class="tc"><input type="checkbox" id="all2" class="checkall"/></th>
      <th colspan="10"><label for="all2">{$Think.lang.ds_select_all}</label>
        <a href="javascript:void(0);" class="dssc-btn-mini" nc_type="batchbutton" uri="{:url('/Home/Sellergoodsonline/drop_goods')}" name="commonid" confirm="{$Think.lang.ds_ensure_del}"><i class="icon-trash"></i>{$Think.lang.ds_del}</a>
        <a href="javascript:void(0);" class="dssc-btn-mini" nc_type="batchbutton" uri="{:url('/Home/Sellergoodsoffline/goods_show')}" name="commonid"><i class="icon-level-up"></i>{$Think.lang.store_goods_index_show}</a></th>
    </tr>
    <tr>
      <td colspan="20"><div class="pagination">{$show_page}</div></td>
    </tr>
  </tfoot>
  <?php } ?>
</table>
<script src="{$Think.config.url_domain_root}static/plugins/jquery.poshytip.min.js"></script>
<script src="{$Think.config.url_domain_root}static/home/js/store_goods_list.js"></script> 
<script>
$(function(){
    //Ajax提示
    $('.tip').poshytip({
        className: 'tip-yellowsimple',
        showTimeout: 1,
        alignTo: 'target',
        alignX: 'center',
        alignY: 'top',
        offsetY: 5,
        allowTipHover: false
    });
});
</script>





    </div>
</div>
{include file="public/mall_footer" /}