add.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <form id="edit-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 class="form-control" name="row[product_no]" type="text" data-rule="required;length(~60)">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('商品标题')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input class="form-control" name="row[name]" type="text" data-rule="required;length(~50)">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('运营商')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. {:build_select('row[brand]', $brands)}
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('售价')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input class="form-control" name="row[amount_base]" type="number" data-rule="required;range(0~)">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('库存')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input class="form-control" name="row[stock_num]" type="number" data-rule="required;range(0~)">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input class="form-control" name="row[sort]" type="number" data-rule="required;range(0~)">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <textarea class="form-control" name="row[summary]" type="text" data-rule="required;length(~50)"></textarea>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('年龄限制')}:</label>
  46. <div class="col-xs-4 col-sm-4">
  47. <input class="form-control" name="row[min_age]" type="number" data-rule="range(0~)" placeholder="最小年龄">
  48. </div>
  49. <div class="col-xs-4 col-sm-4">
  50. <input class="form-control" name="row[max_age]" type="number" data-rule="range(0~)" placeholder="最大年龄">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-xs-12 col-sm-2">{:__('需传身份证')}:</label>
  55. <div class="col-xs-12 col-sm-8">
  56. {:build_radios('row[card_status]',['否', '是'], 0)}
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label col-xs-12 col-sm-2">{:__('选号')}:</label>
  61. <div class="col-xs-12 col-sm-8">
  62. {:build_radios('row[select_num_status]',['不开启', '开启'], 0)}
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="control-label col-xs-12 col-sm-2">{:__('选号产品编码')}:</label>
  67. <div class="col-xs-12 col-sm-8">
  68. <input class="form-control" name="row[product_sku]" type="text" data-rule="length(~60)">
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="control-label col-xs-12 col-sm-2">{:__('只发货地区')}:</label>
  73. <div class="col-xs-12 col-sm-8">
  74. <select title="请选择发货地区模板" name="row[send_template]" class="form-control selectpicker">
  75. <option value="0">请选择发货地区模板</option>
  76. {volist name="templates" id="vo"}
  77. <option value="{$vo.id}">{$vo.name}</option>
  78. {/volist}
  79. </select>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-2">{:__('不发货地区')}:</label>
  84. <div class="col-xs-12 col-sm-8">
  85. <select title="请选择发货地区模板" name="row[not_send_template]" class="form-control selectpicker">
  86. <option value="0">请选择发货地区模板</option>
  87. {volist name="templates" id="vo"}
  88. <option value="{$vo.id}">{$vo.name}</option>
  89. {/volist}
  90. </select>
  91. </div>
  92. </div>
  93. <div class="form-group">
  94. <label class="control-label col-xs-12 col-sm-2">{:__('顶部图片')}:</label>
  95. <div class="col-xs-12 col-sm-8">
  96. <div class="input-group">
  97. <input id="c-images1" class="form-control" size="50" name="row[images][1]" type="text" value="" data-rule="required">
  98. <div class="input-group-addon no-border no-padding">
  99. <span><button type="button" id="plupload-avatar-images1" class="btn btn-danger plupload" data-input-id="c-images1" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images1"><i class="fa fa-upload"></i> 上传</button></span>
  100. <span><button type="button" id="fachoose-avatar-images1" class="btn btn-primary fachoose" data-input-id="c-images1" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  101. </div>
  102. <span class="msg-box n-right" for="c-images1"></span>
  103. </div>
  104. <ul class="row list-inline plupload-preview" id="p-images1"></ul>
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="control-label col-xs-12 col-sm-2">{:__('尾部图')}:</label>
  109. <div class="col-xs-12 col-sm-8">
  110. <div class="input-group">
  111. <input id="c-images2" class="form-control" size="50" name="row[images][2]" type="text" value="" data-rule="required">
  112. <div class="input-group-addon no-border no-padding">
  113. <span><button type="button" id="plupload-avatar-images2" class="btn btn-danger plupload" data-input-id="c-images2" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images2"><i class="fa fa-upload"></i> 上传</button></span>
  114. <span><button type="button" id="fachoose-avatar-images2" class="btn btn-primary fachoose" data-input-id="c-images2" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
  115. </div>
  116. <span class="msg-box n-right" for="c-images2"></span>
  117. </div>
  118. <ul class="row list-inline plupload-preview" id="p-images2"></ul>
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <label class="control-label col-xs-12 col-sm-2">{:__('缩略图')}:</label>
  123. <div class="col-xs-12 col-sm-8">
  124. <div class="input-group">
  125. <input id="c-logo" class="form-control" size="50" name="row[logo]" type="text" value="" data-rule="required">
  126. <div class="input-group-addon no-border no-padding">
  127. <span><button type="button" id="plupload-avatar-logo" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-logo"><i class="fa fa-upload"></i> 上传</button></span>
  128. <span><button type="button" id="fachoose-avatar-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
  129. </div>
  130. <span class="msg-box n-right" for="c-logo"></span>
  131. </div>
  132. <ul class="row list-inline plupload-preview" id="p-logo"></ul>
  133. </div>
  134. </div>
  135. <div class="form-group">
  136. <label class="control-label col-xs-12 col-sm-2">{:__('跳转链接')}:</label>
  137. <div class="col-xs-12 col-sm-8">
  138. <input class="form-control" name="row[link]" type="text">
  139. </div>
  140. </div>
  141. <!-- <div class="form-group">
  142. <label class="control-label col-xs-12 col-sm-2">{:__('APP专属流量图')}:</label>
  143. <div class="col-xs-12 col-sm-8">
  144. <div class="input-group">
  145. <input id="c-free_app" class="form-control" size="50" name="row[free_app]" type="text" value="" data-rule="required">
  146. <div class="input-group-addon no-border no-padding">
  147. <span><button type="button" id="plupload-avatar-free_app" class="btn btn-danger plupload" data-input-id="c-free_app" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-free_app"><i class="fa fa-upload"></i> 上传</button></span>
  148. <span><button type="button" id="fachoose-avatar-free_app" class="btn btn-primary fachoose" data-input-id="c-free_app" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  149. </div>
  150. <span class="msg-box n-right" for="c-free_app"></span>
  151. </div>
  152. <ul class="row list-inline plupload-preview" id="p-free_app"></ul>
  153. </div>
  154. </div>-->
  155. <!-- <div class="form-group">
  156. <label class="control-label col-xs-12 col-sm-2">{:__('资费详情图')}:</label>
  157. <div class="col-xs-12 col-sm-8">
  158. <div class="input-group">
  159. <input id="c-images4" class="form-control" size="50" name="row[images][3]" type="text" value="" data-rule="required">
  160. <div class="input-group-addon no-border no-padding">
  161. <span><button type="button" id="plupload-avatar-images4" class="btn btn-danger plupload" data-input-id="c-images4" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images4"><i class="fa fa-upload"></i> 上传</button></span>
  162. <span><button type="button" id="fachoose-avatar-images4" class="btn btn-primary fachoose" data-input-id="c-images4" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  163. </div>
  164. <span class="msg-box n-right" for="c-images4"></span>
  165. </div>
  166. <ul class="row list-inline plupload-preview" id="p-images4"></ul>
  167. </div>
  168. </div>
  169. <div class="form-group">
  170. <label class="control-label col-xs-12 col-sm-2">{:__('APP专属流量图')}:</label>
  171. <div class="col-xs-12 col-sm-8">
  172. <div class="input-group">
  173. <input id="c-images3" class="form-control" size="50" name="row[images][4]" type="text" value="" data-rule="required">
  174. <div class="input-group-addon no-border no-padding">
  175. <span><button type="button" id="plupload-avatar-images3" class="btn btn-danger plupload" data-input-id="c-images3" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images3"><i class="fa fa-upload"></i> 上传</button></span>
  176. <span><button type="button" id="fachoose-avatar-images3" class="btn btn-primary fachoose" data-input-id="c-images3" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  177. </div>
  178. <span class="msg-box n-right" for="c-images3"></span>
  179. </div>
  180. <ul class="row list-inline plupload-preview" id="p-images3"></ul>
  181. </div>
  182. </div>
  183. <div class="form-group">
  184. <label class="control-label col-xs-12 col-sm-2">{:__('注意事项图')}:</label>
  185. <div class="col-xs-12 col-sm-8">
  186. <div class="input-group">
  187. <input id="c-images5" class="form-control" size="50" name="row[images][5]" type="text" value="" data-rule="required">
  188. <div class="input-group-addon no-border no-padding">
  189. <span><button type="button" id="plupload-avatar-images5" class="btn btn-danger plupload" data-input-id="c-images5" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-images5"><i class="fa fa-upload"></i> 上传</button></span>
  190. <span><button type="button" id="fachoose-avatar-images5" class="btn btn-primary fachoose" data-input-id="c-images5" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
  191. </div>
  192. <span class="msg-box n-right" for="c-images5"></span>
  193. </div>
  194. <ul class="row list-inline plupload-preview" id="p-images5"></ul>
  195. </div>
  196. </div>-->
  197. <!-- <div class="form-group">
  198. <label class="control-label col-xs-12 col-sm-2">{:__('商品详情')}:</label>
  199. <div class="col-xs-12 col-sm-8" style="width: 500px;">
  200. <textarea class="form-control editor" name="row[describe]" type="text" data-rule="required" style="height: 500px;"></textarea>
  201. </div>
  202. </div>
  203. <div class="form-group">
  204. <label class="control-label col-xs-12 col-sm-2">{:__('注意事项')}:</label>
  205. <div class="col-xs-12 col-sm-8" style="width: 500px;">
  206. <textarea class="form-control editor" name="row[content]" type="text" data-rule="required" style="height: 500px;"></textarea>
  207. </div>
  208. </div>-->
  209. <div class="form-group layer-footer">
  210. <label class="control-label col-xs-12 col-sm-2"></label>
  211. <div class="col-xs-12 col-sm-8">
  212. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  213. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  214. </div>
  215. </div>
  216. </form>