adduserlevel.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
  2. <input type="hidden" name="id" value="{$group['id']}" />
  3. <div class="modal-dialog">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button data-dismiss="modal" class="close" type="button">×</button>
  7. <h4 class="modal-title"><?php if( !empty($group['id'])){ ?>编辑<?php }else{ ?>添加<?php } ?>标签组</h4>
  8. </div>
  9. <div class="modal-body">
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label must">等级</label>
  12. <div class="col-sm-9 col-xs-12">
  13. <select name="level" class="form-control">
  14. <option value="1" <?php if( !empty($group['level']) && $group['level'] == 1){ ?> selected<?php } ?>>1</option>
  15. <option value="2" <?php if( !empty($group['level']) && $group['level'] == 2){ ?> selected<?php } ?>>2</option>
  16. <option value="3" <?php if( !empty($group['level']) && $group['level'] == 3){ ?> selected<?php } ?>>3</option>
  17. <option value="4" <?php if( !empty($group['level']) && $group['level'] == 4){ ?> selected<?php } ?>>4</option>
  18. <option value="5" <?php if( !empty($group['level']) && $group['level'] == 5){ ?> selected<?php } ?>>5</option>
  19. <option value="6" <?php if( !empty($group['level']) && $group['level'] == 6){ ?> selected<?php } ?>>6</option>
  20. <option value="7" <?php if( !empty($group['level']) && $group['level'] == 7){ ?> selected<?php } ?>>7</option>
  21. <option value="8" <?php if( !empty($group['level']) && $group['level'] == 8){ ?> selected<?php } ?>>8</option>
  22. <option value="9" <?php if( !empty($group['level']) && $group['level'] == 9){ ?> selected<?php } ?>>9</option>
  23. <option value="10" <?php if( !empty($group['level']) && $group['level'] == 10){ ?> selected<?php } ?>>10</option>
  24. </select>
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-sm-2 control-label must">等级名称</label>
  29. <div class="col-sm-9 col-xs-12">
  30. <input type="text" name="levelname" class="form-control" value="{$group['levelname']}" data-rule-required="true" />
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label must">等级折扣</label>
  35. <div class="col-sm-9 col-xs-12">
  36. <input type="text" name="discount" class="form-control" value="{$group['discount']}" data-rule-required="true" />
  37. <div class="help-block">请输入1~100之间的数字,值为空代表不设置折扣. 例如:填写80,即为打8折,会员价=商品价格*80%</div>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="col-sm-2 control-label must">等级升级金额</label>
  42. <div class="col-sm-9 col-xs-12">
  43. <input type="text" name="level_money" class="form-control" value="{$group['level_money']}" data-rule-required="true" />
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-2 control-label must">等级logo</label>
  48. <div class="col-sm-9 col-xs-12">
  49. {:tpl_form_field_image2('logo', $group['logo'])}
  50. <div class="help-block">(建议尺寸:长方形小图 20*60 比例)</div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="modal-footer">
  55. <button class="btn btn-primary" type="submit">提交</button>
  56. <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
  57. </div>
  58. </div>
  59. </div>
  60. </form>