index.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <style>
  2. .upload-image {
  3. background: url('__CDN__/assets/addons/example/img/plus.png') no-repeat center center;
  4. background-size: 30px 30px;
  5. height: 30px;
  6. width: 30px;
  7. border: 1px solid #ccc;
  8. }
  9. </style>
  10. <div class="row">
  11. <!-- 幻灯片-->
  12. <div class="col-md-6">
  13. <div class="box box-success">
  14. <div class="panel-body">
  15. <form id="aaa-form" role="form" data-toggle="validator" method="POST" action="">
  16. <div class="form-group row">
  17. <label class="control-label col-xs-12">幻灯片</label>
  18. <div class="col-xs-12">
  19. <div class="input-group">
  20. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$iantern_slide->name}">
  21. <input id="a-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$iantern_slide->image}">
  22. <div class="input-group-addon no-border no-padding">
  23. <span><button type="button" id="plupload-files" class="btn btn-danger plupload" data-input-id="a-files" data-mimetype="*" data-multiple="true" data-preview-id="aa-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  24. <span><button type="button" id="fachoose-files" class="btn btn-primary fachoose" data-input-id="a-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  25. </div>
  26. <span class="msg-box n-right" for="a-files"></span>
  27. </div>
  28. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  29. <ul class="row list-inline plupload-preview" id="aa-files" data-template="introtpl" data-name="row[image]"></ul>
  30. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  31. <!--这里自定义图片预览的模板 开始-->
  32. <script type="text/html" id="introtpl">
  33. <li class="col-xs-3">
  34. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  35. <img src="<%=fullurl%>" class="img-responsive">
  36. </a>
  37. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  38. </li>
  39. </script>
  40. <!--这里自定义图片预览的模板 结束-->
  41. </div>
  42. </div>
  43. <div class="form-group row">
  44. <label class="control-label col-xs-12"></label>
  45. <div class="col-xs-12">
  46. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  47. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. </div>
  53. </div>
  54. <!--系统介绍-->
  55. <div class="col-md-6">
  56. <div class="box box-success">
  57. <div class="panel-body">
  58. <form id="product_features-form" role="form" data-toggle="validator" method="POST" action="">
  59. <div class="form-group row">
  60. <label class="control-label col-xs-12">系统介绍</label>
  61. <div class="col-xs-12">
  62. <div class="input-group">
  63. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$system_introduction->name}">
  64. <input id="c-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$system_introduction->image}">
  65. <div class="input-group-addon no-border no-padding">
  66. <span><button type="button" id="plupload-files_product_features" class="btn btn-danger plupload" data-input-id="c-files" data-mimetype="*" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  67. <span><button type="button" id="fachoose-files_product_features" class="btn btn-primary fachoose" data-input-id="c-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  68. </div>
  69. <span class="msg-box n-right" for="c-files"></span>
  70. </div>
  71. <!-- ul需要添加 data-template和data-name属性,并一一对应且唯一-->
  72. <ul class="row list-inline plupload-preview" id="p-files" data-template="introtpl_product_features" data-name="row[system_introduction_content]"></ul>
  73. <!-- 请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  74. <textarea name="row[system_introduction_content]" class="form-control" style="margin-top:5px;display:none;">{$system_introduction->system_introduction_content}</textarea>
  75. <!-- 这里自定义图片预览的模板 开始-->
  76. <script type="text/html" id="introtpl_product_features">
  77. <li class="col-xs-3">
  78. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  79. <img src="<%=fullurl%>" class="img-responsive">
  80. </a>
  81. <input type="text" name="row[system_introduction_content][<%=index%>]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value:''%>"/>
  82. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  83. </li>
  84. </script>
  85. <!-- 这里自定义图片预览的模板 结束-->
  86. </div>
  87. </div>
  88. <div class="form-group row">
  89. <label class="control-label col-xs-12"></label>
  90. <div class="col-xs-12">
  91. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  92. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  93. </div>
  94. </div>
  95. </form>
  96. </div>
  97. </div>
  98. </div>
  99. <!--产品差异化-->
  100. <div class="col-md-6">
  101. <div class="box box-success">
  102. <div class="panel-body">
  103. <form id="first-form" role="form" data-toggle="validator" method="POST" action="">
  104. <div class="form-group row">
  105. <label class="control-label col-xs-12">产品差异化</label>
  106. <div class="col-xs-12">
  107. <div class="input-group">
  108. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$product_differentiation->name}">
  109. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$product_differentiation->image}">
  110. <div class="input-group-addon no-border no-padding">
  111. <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  112. <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>
  113. </div>
  114. <span class="msg-box n-right" for="c-images"></span>
  115. </div>
  116. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  117. <ul class="row list-inline plupload-preview" id="p-images" data-template="desctpl" data-name="row[content]"></ul>
  118. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  119. <textarea name="row[content]" class="form-control" style="margin-top:5px;display: none">{$product_differentiation->content}</textarea>
  120. <!--这里自定义图片预览的模板 开始-->
  121. <script type="text/html" id="desctpl">
  122. <li class="col-xs-3">
  123. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  124. <img src="<%=fullurl%>" class="img-responsive">
  125. </a>
  126. <input type="text" name="row[content][<%=index%>][info]" class="form-control mb-1" placeholder="请输入标题" value="<%=value?value['info']:''%>"/>
  127. <input type="text" name="row[content][<%=index%>][describe]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value['describe']:''%>"/>
  128. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  129. </li>
  130. </script>
  131. <!--这里自定义图片预览的模板 结束-->
  132. </div>
  133. </div>
  134. <div class="form-group row">
  135. <label class="control-label col-xs-12"></label>
  136. <div class="col-xs-12">
  137. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  138. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  139. </div>
  140. </div>
  141. </form>
  142. </div>
  143. </div>
  144. </div>
  145. <!--方案亮点-->
  146. <div class="col-md-6">
  147. <div class="box box-success">
  148. <div class="panel-body">
  149. <form id="product_function-form" role="form" data-toggle="validator" method="POST" action="">
  150. <div class="form-group row">
  151. <label class="control-label col-xs-12">方案亮点</label>
  152. <div class="col-xs-12">
  153. <div class="input-group">
  154. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$scheme_highlights->name}">
  155. <input id="d-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$scheme_highlights->image}">
  156. <div class="input-group-addon no-border no-padding">
  157. <span><button type="button" id="plupload-product_function" class="btn btn-danger plupload" data-input-id="d-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="product_function-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  158. <span><button type="button" id="fachoose-product_function" class="btn btn-primary fachoose" data-input-id="d-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  159. </div>
  160. <span class="msg-box n-right" for="c-images"></span>
  161. </div>
  162. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  163. <ul class="row list-inline plupload-preview" id="product_function-images" data-template="product_function" data-name="row[image]"></ul>
  164. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  165. <!--这里自定义图片预览的模板 开始-->
  166. <script type="text/html" id="product_function">
  167. <li class="col-xs-3">
  168. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  169. <img src="<%=fullurl%>" class="img-responsive">
  170. </a>
  171. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  172. </li>
  173. </script>
  174. <!--这里自定义图片预览的模板 结束-->
  175. </div>
  176. </div>
  177. <div class="form-group row">
  178. <label class="control-label col-xs-12"></label>
  179. <div class="col-xs-12">
  180. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  181. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  182. </div>
  183. </div>
  184. </form>
  185. </div>
  186. </div>
  187. </div>
  188. <!--一站式三方增值服务-->
  189. <div class="col-md-6">
  190. <div class="box box-success">
  191. <div class="panel-body">
  192. <form id="-form" role="form" data-toggle="validator" method="POST" action="">
  193. <div class="form-group row">
  194. <label class="control-label col-xs-12">一站式三方增值服务</label>
  195. <div class="col-xs-12">
  196. <div class="input-group">
  197. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$added_services->name}">
  198. <input id="b-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$added_services->image}">
  199. <div class="input-group-addon no-border no-padding">
  200. <span><button type="button" id="plupload-files_a" class="btn btn-danger plupload" data-input-id="b-files" data-mimetype="*" data-multiple="true" data-preview-id="bb-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  201. <span><button type="button" id="fachoose-files_a" class="btn btn-primary fachoose" data-input-id="b-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  202. </div>
  203. <span class="msg-box n-right" for="b-files"></span>
  204. </div>
  205. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  206. <ul class="row list-inline plupload-preview" id="bb-files" data-template="introtpl_a" data-name="row[image]"></ul>
  207. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  208. <!--这里自定义图片预览的模板 开始-->
  209. <script type="text/html" id="introtpl_a">
  210. <li class="col-xs-3">
  211. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  212. <img src="<%=fullurl%>" class="img-responsive">
  213. </a>
  214. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  215. </li>
  216. </script>
  217. <!--这里自定义图片预览的模板 结束-->
  218. </div>
  219. </div>
  220. <div class="form-group row">
  221. <label class="control-label col-xs-12"></label>
  222. <div class="col-xs-12">
  223. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  224. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  225. </div>
  226. </div>
  227. </form>
  228. </div>
  229. </div>
  230. </div>
  231. <!--售后服务-->
  232. <div class="col-md-6">
  233. <div class="box box-success">
  234. <div class="panel-body">
  235. <form id="e-form" role="form" data-toggle="validator" method="POST" action="">
  236. <div class="form-group row">
  237. <label class="control-label col-xs-12">售后服务</label>
  238. <div class="col-xs-12">
  239. <div class="input-group">
  240. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$after_sale->name}">
  241. <input id="ee-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$after_sale->image}">
  242. <div class="input-group-addon no-border no-padding">
  243. <span><button type="button" id="plupload-files_e" class="btn btn-danger plupload" data-input-id="ee-files" data-mimetype="*" data-multiple="true" data-preview-id="e-files"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  244. <span><button type="button" id="fachoose-files_e" class="btn btn-primary fachoose" data-input-id="ee-files" data-mimetype="*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  245. </div>
  246. <span class="msg-box n-right" for="b-files"></span>
  247. </div>
  248. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  249. <ul class="row list-inline plupload-preview" id="e-files" data-template="introtpl_e" data-name="row[image]"></ul>
  250. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  251. <!--这里自定义图片预览的模板 开始-->
  252. <script type="text/html" id="introtpl_e">
  253. <li class="col-xs-3">
  254. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  255. <img src="<%=fullurl%>" class="img-responsive">
  256. </a>
  257. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  258. </li>
  259. </script>
  260. <!--这里自定义图片预览的模板 结束-->
  261. </div>
  262. </div>
  263. <div class="form-group row">
  264. <label class="control-label col-xs-12"></label>
  265. <div class="col-xs-12">
  266. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  267. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  268. </div>
  269. </div>
  270. </form>
  271. </div>
  272. </div>
  273. </div>
  274. </div>