system.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">分享标题:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-share_title" data-rule="required" class="form-control" name="row[share_title]"
  6. type="text" value="{$row['share_title']|default=''}">
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label class="control-label col-xs-12 col-sm-2">{:__('轮播图')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <div class="input-group">
  13. <input id="c-banner" class="form-control" size="50" name="row[banner]"
  14. value="{$row['banner']|default=''}"
  15. type="text">
  16. <div class="input-group-addon no-border no-padding">
  17. <span>
  18. <button type="button" id="plupload-banner" class="btn btn-danger plupload" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-banner">
  19. <i class="fa fa-upload"></i> {:__('Upload')}
  20. </button>
  21. </span>
  22. <span>
  23. <button type="button" id="fachoose-banner" class="btn btn-primary fachoose" data-input-id="c-banner" data-mimetype="image/*" data-multiple="true">
  24. <i class="fa fa-list"></i> {:__('Choose')}
  25. </button>
  26. </span>
  27. </div>
  28. <span class="msg-box n-right" for="c-banner"></span>
  29. </div>
  30. <ul class="row list-inline plupload-preview" id="p-banner"></ul>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="control-label col-xs-12 col-sm-2">开启用户账号注册:</label>
  35. <div class="col-xs-12 col-sm-8">
  36. <div class="radio">
  37. <label for="row[open_user_register]-1">
  38. <input id="row[open_user_register]-1" name="row[open_user_register]" type="radio" value="1" {if condition="!isset($row['open_user_register']) || $row['open_user_register'] == 1" }checked{/if}/>
  39. 开启
  40. </label>
  41. <label for="row[open_user_register]-0">
  42. <input id="row[open_user_register]-0" name="row[open_user_register]" type="radio" value="0" {if condition="isset($row['open_user_register']) && $row['open_user_register'] == 0" }checked{/if}/>
  43. 关闭
  44. </label>
  45. </div>
  46. <!--<p class="info-text">* 仅微信小程序生效</p>-->
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="control-label col-xs-12 col-sm-2">登录时绑定手机号:</label>
  51. <div class="col-xs-12 col-sm-8">
  52. <div class="radio">
  53. <label for="row[bind_mobile]-1">
  54. <input id="row[bind_mobile]-1" name="row[bind_mobile]" type="radio" value="1" {notempty name="$row.bind_mobile" }{eq name="$row.bind_mobile" value="1" }checked{/eq}{else/}checked{/notempty}/>
  55. 可选绑定
  56. </label>
  57. <label for="row[bind_mobile]-2">
  58. <input id="row[bind_mobile]-2" name="row[bind_mobile]" type="radio" value="2" {notempty name="$row.bind_mobile" }{eq name="$row.bind_mobile" value="2" }checked{/eq}{else/}checked{/notempty}/>
  59. 强制绑定
  60. </label>
  61. <label for="row[bind_mobile]-0">
  62. <input id="row[bind_mobile]-0" name="row[bind_mobile]" type="radio" value="0" {notempty name="$row.bind_mobile" }{eq name="$row.bind_mobile" value="0" }checked{/eq}{else/}checked{/notempty}/>
  63. 不绑定
  64. </label>
  65. </div>
  66. </div>
  67. </div>
  68. <!--<div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">记录用户答题记录:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-record_exam_open" name="row[record_exam_open]" type="hidden" value="{$row.record_exam_open|default=0}">
  72. <a href="javascript:;" data-toggle="switcher" class="btn-record_exam_open" data-input-id="c-record_exam_open" data-yes="1" data-no="0" >
  73. <i class="fa fa-toggle-on text-success {if condition="!isset($row['record_exam_open']) || !$row['record_exam_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  74. </a>
  75. <p class="info-text">* 记录用户每次考试的答题内容</p>
  76. </div>
  77. </div>-->
  78. <input type="hidden" name="type" value="system">
  79. <div class="form-group layer-footer">
  80. <label class="control-label col-xs-12 col-sm-2"></label>
  81. <div class="col-xs-12 col-sm-8">
  82. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  83. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  84. </div>
  85. </div>
  86. </form>