add.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <form id="add-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">{:__('Topic_ids')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-topic_ids" data-rule="required" data-source="topic/index" data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-content" data-rule="required" class="form-control" name="row[content]" type="text" value="">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <div class="input-group">
  24. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[images]" type="text" value="">
  25. <div class="input-group-addon no-border no-padding">
  26. <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  27. <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  28. </div>
  29. <span class="msg-box n-right" for="c-images"></span>
  30. </div>
  31. <ul class="row list-inline faupload-preview" id="p-images"></ul>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Audio_file')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. <div class="input-group">
  38. <input id="c-audio_file" data-rule="required" class="form-control" size="50" name="row[audio_file]" type="text" value="">
  39. <div class="input-group-addon no-border no-padding">
  40. <span><button type="button" id="faupload-audio_file" class="btn btn-danger faupload" data-input-id="c-audio_file" data-multiple="false" data-preview-id="p-audio_file"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  41. <span><button type="button" id="fachoose-audio_file" class="btn btn-primary fachoose" data-input-id="c-audio_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  42. </div>
  43. <span class="msg-box n-right" for="c-audio_file"></span>
  44. </div>
  45. <ul class="row list-inline faupload-preview" id="p-audio_file"></ul>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-xs-12 col-sm-2">{:__('Audio_second')}:</label>
  50. <div class="col-xs-12 col-sm-8">
  51. <input id="c-audio_second" data-rule="required" class="form-control" name="row[audio_second]" type="number" value="0">
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  56. <div class="col-xs-12 col-sm-8">
  57. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  58. {foreach name="typeList" item="vo"}
  59. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  60. {/foreach}
  61. </select>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Goodnum')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-goodnum" data-rule="required" class="form-control" name="row[goodnum]" type="number" value="0">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-2">{:__('Answernum')}:</label>
  72. <div class="col-xs-12 col-sm-8">
  73. <input id="c-answernum" data-rule="required" class="form-control" name="row[answernum]" type="number" value="0">
  74. </div>
  75. </div>
  76. <div class="form-group">
  77. <label class="control-label col-xs-12 col-sm-2">{:__('Cityname')}:</label>
  78. <div class="col-xs-12 col-sm-8">
  79. <input id="c-cityname" data-rule="required" class="form-control" name="row[cityname]" type="text" value="">
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('Longitude')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <input id="c-longitude" data-rule="required" class="form-control" name="row[longitude]" type="text">
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <label class="control-label col-xs-12 col-sm-2">{:__('Latitude')}:</label>
  90. <div class="col-xs-12 col-sm-8">
  91. <input id="c-latitude" data-rule="required" class="form-control" name="row[latitude]" type="text">
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-2">{:__('Aite')}:</label>
  96. <div class="col-xs-12 col-sm-8">
  97. <input id="c-aite" data-rule="required" class="form-control" name="row[aite]" type="text" value="">
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="control-label col-xs-12 col-sm-2">{:__('Is_public')}:</label>
  102. <div class="col-xs-12 col-sm-8">
  103. <select id="c-is_public" data-rule="required" class="form-control selectpicker" name="row[is_public]">
  104. {foreach name="isPublicList" item="vo"}
  105. <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
  106. {/foreach}
  107. </select>
  108. </div>
  109. </div>
  110. <div class="form-group">
  111. <label class="control-label col-xs-12 col-sm-2">{:__('Toptime')}:</label>
  112. <div class="col-xs-12 col-sm-8">
  113. <input id="c-toptime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[toptime]" type="text" value="{:date('Y-m-d H:i:s')}">
  114. </div>
  115. </div>
  116. <div class="form-group">
  117. <label class="control-label col-xs-12 col-sm-2">{:__('Auditstatus')}:</label>
  118. <div class="col-xs-12 col-sm-8">
  119. <div class="radio">
  120. {foreach name="auditstatusList" item="vo"}
  121. <label for="row[auditstatus]-{$key}"><input id="row[auditstatus]-{$key}" name="row[auditstatus]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
  122. {/foreach}
  123. </div>
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
  128. <div class="col-xs-12 col-sm-8">
  129. <input id="c-audittime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:date('Y-m-d H:i:s')}">
  130. </div>
  131. </div>
  132. <div class="form-group">
  133. <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
  134. <div class="col-xs-12 col-sm-8">
  135. <input id="c-auditremark" data-rule="required" class="form-control" name="row[auditremark]" type="text" value="">
  136. </div>
  137. </div>
  138. <div class="form-group layer-footer">
  139. <label class="control-label col-xs-12 col-sm-2"></label>
  140. <div class="col-xs-12 col-sm-8">
  141. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  142. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  143. </div>
  144. </div>
  145. </form>