field_edit_form.inc.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="mb-3 row" >
  2. <label class="col-md-2 col-form-label" >显示模式</label>
  3. <div class=" col-md-10">
  4. <ul class="list-group">
  5. <li class='list-group-item'>
  6. <div class='form-check'>
  7. <input type='radio' name='setting[type]' value='thumb' class='form-check-input' <?php if(isset($setting['type'])&&$setting['type']=='thumb') echo 'checked';?>>
  8. <label class='form-check-label'>缩略图</label>
  9. </div>
  10. </li>
  11. <li class='list-group-item'>
  12. <div class='form-check'>
  13. <input type='radio' name='setting[type]' value='avatar' class='form-check-input' <?php if(isset($setting['type'])&&$setting['type']=='avatar') echo 'checked';?>>
  14. <label class='form-check-label'>头像</label>
  15. </div>
  16. </li>
  17. </ul>
  18. </div>
  19. </div>
  20. <div class="mb-3 row">
  21. <label class="col-md-2 col-form-label" >允许大小(MB)</label>
  22. <div class="col-md-10">
  23. <input type="text" name="setting[max_size]" value="<?php echo isset($setting['max_size'])?$setting['max_size']:'';?>" autocomplete="off" class="form-control" >
  24. <div class="text-muted input-word-aux">提示:1KB=1024Byte,1MB=1024KB</div>
  25. </div>
  26. </div>
  27. <div class="mb-3 row">
  28. <label class="col-md-2 col-form-label" >允许类型</label>
  29. <div class="col-md-10">
  30. <input type="text" name="setting[file_type]" value="<?php echo isset($setting['file_type'])?$setting['file_type']:'';?>" autocomplete="off" class="form-control" >
  31. </div>
  32. </div>
  33. <div class="mb-3 row">
  34. <label class="col-md-2 col-form-label">添加水印</label>
  35. <div class="col-md-10">
  36. <input value="1" id="switch-water_mark" type="checkbox" switch="success" class="row-switch" name="setting[water_mark]" <?php if(isset($setting['water_mark'])&&$setting['water_mark']==1){?> checked <?php }?>>
  37. <label class="switch-check-label " for="switch-water_mark" data-on-label="是" data-off-label="否"></label>
  38. </div>
  39. </div>