field_edit_form.inc.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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[tool_bar]' value='simple' class='form-check-input' <?php if(isset($setting['tool_bar'])&&$setting['tool_bar']=='simple'){?> checked <?php }?>>
  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[tool_bar]' value='basic' class='form-check-input' <?php if(isset($setting['tool_bar'])&&$setting['tool_bar']=='basic'){?> checked <?php }?>>
  14. <label class='form-check-label'>标准型</label>
  15. </div>
  16. </li>
  17. <li class='list-group-item'>
  18. <div class='form-check'>
  19. <input type='radio' name='setting[tool_bar]' value='full' class='form-check-input' <?php if(isset($setting['tool_bar'])&&$setting['tool_bar']=='full'){?> checked <?php }?>>
  20. <label class='form-check-label'>全能型</label>
  21. </div>
  22. </li>
  23. </ul>
  24. </div>
  25. </div>
  26. <div class="mb-3 row">
  27. <label class="col-md-2 col-form-label" >编辑器样式(前台)</label>
  28. <div class=" col-md-10">
  29. <ul class="list-group">
  30. <li class='list-group-item'>
  31. <div class='form-check'>
  32. <input type='radio' name='setting[tool_bar_front]' value='simple' class='form-check-input' <?php if(isset($setting['tool_bar_front'])&&$setting['tool_bar_front']=='simple'){?> checked <?php }?>>
  33. <label class='form-check-label'>简约型</label>
  34. </div>
  35. </li>
  36. <li class='list-group-item'>
  37. <div class='form-check'>
  38. <input type='radio' name='setting[tool_bar_front]' value='basic' class='form-check-input' <?php if(isset($setting['tool_bar_front'])&&$setting['tool_bar_front']=='basic'){?> checked <?php }?>>
  39. <label class='form-check-label'>标准型</label>
  40. </div>
  41. </li>
  42. <li class='list-group-item'>
  43. <div class='form-check'>
  44. <input type='radio' name='setting[tool_bar_front]' value='publish' class='form-check-input' <?php if(isset($setting['tool_bar_front'])&&$setting['tool_bar_front']=='publish'){?> checked <?php }?>>
  45. <label class='form-check-label'>前台发布</label>
  46. </div>
  47. </li>
  48. <li class='list-group-item'>
  49. <div class='form-check'>
  50. <input type='radio' name='setting[tool_bar_front]' value='full' class='form-check-input' <?php if(isset($setting['tool_bar_front'])&&$setting['tool_bar_front']=='full'){?> checked <?php }?>>
  51. <label class='form-check-label'>全能型</label>
  52. </div>
  53. </li>
  54. </ul>
  55. </div>
  56. </div>
  57. <div class="mb-3 row">
  58. <label class="col-md-2 col-form-label" >默认值</label>
  59. <div class="col-md-10">
  60. <input type="text" name="setting[default_value]" value="<?php echo $setting['default_value'];?>" autocomplete="off" class="form-control" >
  61. </div>
  62. </div>
  63. <div class="mb-3 row">
  64. <label class="col-md-2 col-form-label">允许上传附件</label>
  65. <div class="col-md-10">
  66. <input value="1" id="switch-allow_attachment" type="checkbox" switch="success" class="row-switch" name="setting[allow_attachment]" <?php if(isset($setting['allow_attachment'])&&$setting['allow_attachment']==1){?> checked <?php }?>>
  67. <label class="switch-check-label " for="switch-allow_attachment" data-on-label="是" data-off-label="否"></label>
  68. </div>
  69. </div>
  70. <div class="mb-3 row">
  71. <label class="col-md-2 col-form-label">保存远程图片</label>
  72. <div class="col-md-10">
  73. <input value="1" id="switch-save_remote_image" type="checkbox" switch="success" class="row-switch" name="setting[save_remote_image]" <?php if(isset($setting['save_remote_image'])&&$setting['save_remote_image']==1){?> checked <?php }?>>
  74. <label class="switch-check-label " for="switch-save_remote_image" data-on-label="是" data-off-label="否"></label>
  75. </div>
  76. </div>
  77. <div class="mb-3 row">
  78. <label class="col-md-2 col-form-label" >编辑器高度(px)</label>
  79. <div class="col-md-10">
  80. <input type="text" name="setting[height]" value="<?php echo $setting['height'];?>" autocomplete="off" class="form-control" >
  81. </div>
  82. </div>
  83. <div class="mb-3 row">
  84. <label class="col-md-2 col-form-label">分页符</label>
  85. <div class="col-md-10">
  86. <input value="1" id="switch-page_break" type="checkbox" switch="success" class="row-switch" name="setting[page_break]" <?php if(isset($setting['page_break'])&&$setting['page_break']==1){?> checked <?php }?>>
  87. <label class="switch-check-label " for="switch-page_break" data-on-label="启用" data-off-label="禁用"></label>
  88. </div>
  89. </div>
  90. <div class="mb-3 row">
  91. <label class="col-md-2 col-form-label">百度地图</label>
  92. <div class="col-md-10">
  93. <input value="1" id="switch-map" type="checkbox" switch="success" class="row-switch" name="setting[map]" <?php if(isset($setting['map'])&&$setting['map']==1){?> checked <?php }?>>
  94. <label class="switch-check-label " for="switch-map" data-on-label="启用" data-off-label="禁用"></label>
  95. </div>
  96. </div>