<div id="batchcates" style="z-index: 999;display: none;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.5)" class="form-horizontal form-validate batchcates"  enctype="multipart/form-data">
    <div class="modal-dialog" style="position: absolute;margin-top: -190px">
        <div class="modal-content">
            <div class="modal-header">
                <button data-dismiss="modal" class="close" type="button">×</button>
                <h4 class="modal-title">选取分类</h4>
            </div>
            <div class="modal-body" style="height:270px">
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-8 col-xs-12">
                        <label class="radio-inline"><input type="radio"  name="iscover" value="0" <?php if( $iscover ==0){ ?> checked="checked"<?php } ?> /> 保留原有分类</label>
                        <label class="radio-inline"><input type="radio"  name="iscover" value="1" <?php if( $iscover ==1){ ?> checked="checked"<?php } ?> /> 覆盖原有分类</label>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">商品分类</label>
                    <div class="col-sm-8 col-xs-12">
                        
                            <select id="cates"  name='cates[]' class="form-control select2" style='width:550px;' multiple='' >
                                <?php foreach( $category as  $c  ){ ?>
                                <option value="{$c['id']}" <?php if( is_array($cates) &&  in_array($c['id'],$cates)){ ?>selected<?php } ?> >{$c['name']}</option>
                                <?php } ?>
                            </select>
                        
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary modal-fenlei">确认</button>
                <button class="btn btn-default" >取消</button>
            </div>
        </div>
    </div>
</div>



