<?php defined('InShopNC') or exit('Access Invalid!');?>

<!F码分析—>
<div class="page">
    <!— 页面导航 —>
    <div class="fixed-bar">
        <div class="item-title">
            <h3>收藏分析</h3>
            <ul class="tab-base">
                <li><a href="index.php?act=stat_anotice&op=index"><span>到货通知分析</span></a></li>
                <li><a href="index.php?act=stat_anotice&op=favorites"><span>商品收藏分析</span></a></li>
                <li><a href="javascript:void(0)" class="current"><span>F码分析</span></a></li>
            </ul>
        </div>
    </div>
    <!— 帮助 —>
    <table class="table tb-type2" id="prompt">
        <tbody>
        <tr class="space odd">
            <th colspan="12" class="nobg"> <div class="title nomargin">
                    <h5><?php echo $lang['nc_prompts'];?></h5>
                    <span class="arrow"></span> </div>
            </th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li>可以查询每个F码的使用情况</li>
                </ul>
            </td>
        </tr>
        </tbody>
    </table>
    <form method="post" id="serch_batch" name="serch_batch">
        <input type="hidden" name="form_submit" value="ok">
        <table class="tb-type1 noborder search">
            <tbody>
            <tr>
                <td>
                    <label>F码批次：<input type="text" name="batch_code"></label>
                    <a href="javascript:void(0);" id="ncsubmit" class="btn-search" title="查询">&nbsp;</a >
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <script type="text/javascript">
        $('#ncsubmit').on('click',function(){
            $('#serch_batch').submit();
        })
    </script>
    <form method="post">
        <table class="table tb-type2">
            <thead>
            <tr class="space">
                <th colspan="15" class="nobg"><?php echo $lang['nc_list'];?></th>
            </tr>
            <tr class="thead">
                <th class="w60 align-left">编号</th>
                <th class="w60 align-left">平台编码</th>
                <th class="w60 align-left">F码批次</th>
                <th class="w200 align-left">商品名称</th>
                <th class="w60 align-left">生成数量</th>
                <th class="w60 align-left">已使用</th>
                <th class="w60 align-left">已领取</th>
                <th class="w300 align-left">F码生成地址</th>
            </tr>
            </thead>
            <tbody>
            <?php if(!empty($output['list']) && is_array($output['list'])){  $i = 1;?>
                <?php foreach($output['list'] as $item){ ?>
                    <tr class="hover">
                        <td class="w60 align-left"><?php echo $i++;?></td>
                        <td class="w60 align-left"><?php echo $item['goods_commonid'];?></td>
                        <td class="w60 align-left"><?php echo $item['batch_code'];?></td>
                        <td class="w200 align-left"><?php echo $item['goods_name'];?></td>
                        <td class="w60 align-left"><?php echo $item['count'];?></td>
                        <td class="w60 align-left"><?php echo $item['used'];?></td>
                        <td class="w60 align-left"><?php echo $item['binded'];?></td>
                        <td class="w300 align-left"><?php echo $item['fc_link'];?></td>
                    </tr>
                <?php } ?>
            <?php }else { ?>
                <tr class="no_data">
                    <td colspan="16"><?php echo $lang['nc_no_record'];?></td>
                </tr>
            <?php } ?>
            </tbody>
            <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
                <tfoot>
                <tr class="tfoot">
                    <td colspan="16"><div class="pagination"> <?php echo $output['page'];?> </div></td>
                </tr>
                </tfoot>
            <?php } ?>
        </table>
    </form>
</div>