batchcates.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <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">
  2. <div class="modal-dialog" style="position: absolute;margin-top: -190px">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button data-dismiss="modal" class="close" type="button">×</button>
  6. <h4 class="modal-title">选取分类</h4>
  7. </div>
  8. <div class="modal-body" style="height:270px">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label"></label>
  11. <div class="col-sm-8 col-xs-12">
  12. <label class="radio-inline"><input type="radio" name="iscover" value="0" <?php if( $iscover ==0){ ?> checked="checked"<?php } ?> /> 保留原有分类</label>
  13. <label class="radio-inline"><input type="radio" name="iscover" value="1" <?php if( $iscover ==1){ ?> checked="checked"<?php } ?> /> 覆盖原有分类</label>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">商品分类</label>
  18. <div class="col-sm-8 col-xs-12">
  19. <select id="cates" name='cates[]' class="form-control select2" style='width:550px;' multiple='' >
  20. <?php foreach( $category as $c ){ ?>
  21. <option value="{$c['id']}" <?php if( is_array($cates) && in_array($c['id'],$cates)){ ?>selected<?php } ?> >{$c['name']}</option>
  22. <?php } ?>
  23. </select>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="modal-footer">
  28. <button class="btn btn-primary modal-fenlei">确认</button>
  29. <button class="btn btn-default" >取消</button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>