index.html 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  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="first-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="{$product_differentiation->name}">
  64. <input id="c-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$product_differentiation->image}">
  65. <div class="input-group-addon no-border no-padding">
  66. <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>
  67. <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>
  68. </div>
  69. <span class="msg-box n-right" for="c-images"></span>
  70. </div>
  71. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  72. <ul class="row list-inline plupload-preview" id="p-images" data-template="desctpl" data-name="row[content]"></ul>
  73. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  74. <textarea name="row[content]" class="form-control" style="margin-top:5px;display: none">{$product_differentiation->content}</textarea>
  75. <!--这里自定义图片预览的模板 开始-->
  76. <script type="text/html" id="desctpl">
  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[content][<%=index%>][info]" class="form-control mb-1" placeholder="请输入标题" value="<%=value?value['info']:''%>"/>
  82. <input type="text" name="row[content][<%=index%>][describe]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value['describe']:''%>"/>
  83. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  84. </li>
  85. </script>
  86. <!--这里自定义图片预览的模板 结束-->
  87. </div>
  88. </div>
  89. <div class="form-group row">
  90. <label class="control-label col-xs-12"></label>
  91. <div class="col-xs-12">
  92. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  93. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  94. </div>
  95. </div>
  96. </form>
  97. </div>
  98. </div>
  99. </div>
  100. <!--方案亮点-->
  101. <div class="col-md-6">
  102. <div class="box box-success">
  103. <div class="panel-body">
  104. <form id="product_function-form1" role="form" data-toggle="validator" method="POST" action="">
  105. <div class="form-group row">
  106. <label class="control-label col-xs-12">方案亮点</label>
  107. <div class="col-xs-12">
  108. <div class="input-group">
  109. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$system_introduction->name}">
  110. <input id="e-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$system_introduction->image}">
  111. <div class="input-group-addon no-border no-padding">
  112. <span><button type="button" id="plupload-product_function2" class="btn btn-danger plupload" data-input-id="e-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="product_function-images2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  113. <span><button type="button" id="fachoose-product_function2" class="btn btn-primary fachoose" data-input-id="e-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  114. </div>
  115. <span class="msg-box n-right" for="c-images"></span>
  116. </div>
  117. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  118. <ul class="row list-inline plupload-preview" id="product_function-images2" data-template="product_function2" data-name="row[system_introduction_content]"></ul>
  119. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  120. <textarea name="row[system_introduction_content]" class="form-control" style="margin-top:5px;display: none">{$system_introduction->system_introduction_content}</textarea>
  121. <!--这里自定义图片预览的模板 开始-->
  122. <script type="text/html" id="product_function2">
  123. <li class="col-xs-3">
  124. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  125. <img src="<%=fullurl%>" class="img-responsive">
  126. </a>
  127. <input type="text" name="row[system_introduction_content][<%=index%>][info]" class="form-control mb-1" placeholder="请输入标题" value="<%=value?value['info']:''%>"/>
  128. <input type="text" name="row[system_introduction_content][<%=index%>][describe]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value['describe']:''%>"/>
  129. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  130. </li>
  131. </script>
  132. <!--这里自定义图片预览的模板 结束-->
  133. </div>
  134. </div>
  135. <div class="form-group row">
  136. <label class="control-label col-xs-12"></label>
  137. <div class="col-xs-12">
  138. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  139. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  140. </div>
  141. </div>
  142. </form>
  143. </div>
  144. </div>
  145. </div>
  146. <!--技术框架以及技术亮点-->
  147. <div class="col-md-6">
  148. <div class="box box-info">
  149. <div class="panel-heading">
  150. 技术框架以及技术亮点
  151. </div>
  152. <div class="panel-body">
  153. <!-- <div class="alert alert-danger-light">-->
  154. <!-- <b>温馨提示</b><br>-->
  155. <!-- 默认我们的fieldlist只有一维数组,为键值形式,如果需要二维数组,可使用下面的自定义模板来实现<br>-->
  156. <!-- 默认追加的元素是没有进行事件绑定的,我们需要监听btn-append这个按钮的fa.event.appendfieldlist事件<br>-->
  157. <!-- <b>下面的演示textarea为了便于调试,设置为可见的,实际使用中应该添加个hidden的class进行隐藏</b>-->
  158. <!-- </div>-->
  159. <form id="second-form" role="form" data-toggle="validator" method="POST" action="">
  160. <div class="form-group row">
  161. <label class="control-label col-xs-12">技术框架以及技术亮点</label>
  162. <div class="col-xs-12">
  163. <table class="table fieldlist" data-template="basictpl" data-name="row[basic]" id="first-table">
  164. <tr>
  165. <td>{:__('标题')}</td>
  166. <td>{:__('介绍')}</td>
  167. <!-- <td>{:__('大小')}</td>-->
  168. <!-- <td>{:__('状态')}</td>-->
  169. <td width="100"></td>
  170. </tr>
  171. <tr>
  172. <td colspan="5"><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></td>
  173. </tr>
  174. </table>
  175. <!--请注意实际开发中textarea应该添加个hidden进行隐藏-->
  176. <textarea name="row[basic]" class="form-control" cols="30" rows="5" style="display: none">{$added_services.content}</textarea>
  177. <script id="basictpl" type="text/html">
  178. <tr class="form-inline">
  179. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$added_services->name}">
  180. <input class="form-control" name="row[image]" type="hidden" value="{$added_services->image}">
  181. <td><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" size="15" value="<%=row.title%>" placeholder="标题"/></td>
  182. <td><input type="text" name="<%=name%>[<%=index%>][intro]" class="form-control" size="15" value="<%=row.intro%>" placeholder="介绍"/></td>
  183. <!-- <td><input type="text" name="<%=name%>[<%=index%>][size]" class="form-control" style="width:50px" value="<%=row.size%>" placeholder="大小"/></td>-->
  184. <!-- <td>-->
  185. <!-- <input type="hidden" name="<%=name%>[<%=index%>][state]" id="c-state-<%=index%>" class="form-control" style="width:50px" value="<%=row.state%>" placeholder="状态"/>-->
  186. <!-- <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-state-<%=index%>" data-yes="1" data-no="0" >-->
  187. <!-- <i class="fa fa-toggle-on text-success <%if(row.state==0){%>fa-flip-horizontal text-gray<%}%> fa-2x"></i>-->
  188. <!-- </a>-->
  189. <!-- </td>-->
  190. <td>
  191. <!--下面的两个按钮务必保留-->
  192. <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
  193. <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
  194. </td>
  195. </tr>
  196. </script>
  197. </div>
  198. </div>
  199. <div class="form-group row">
  200. <label class="control-label col-xs-12"></label>
  201. <div class="col-xs-12">
  202. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  203. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  204. </div>
  205. </div>
  206. </form>
  207. </div>
  208. </div>
  209. </div>
  210. <!--应用场景-->
  211. <div class="col-md-6">
  212. <div class="box box-success">
  213. <div class="panel-body">
  214. <form id="product_features-form" role="form" data-toggle="validator" method="POST" action="">
  215. <div class="form-group row">
  216. <label class="control-label col-xs-12">应用场景</label>
  217. <div class="col-xs-12">
  218. <div class="input-group">
  219. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$scheme_highlights->name}">
  220. <input id="c-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$scheme_highlights->image}">
  221. <div class="input-group-addon no-border no-padding">
  222. <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>
  223. <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>
  224. </div>
  225. <span class="msg-box n-right" for="c-files"></span>
  226. </div>
  227. <!-- ul需要添加 data-template和data-name属性,并一一对应且唯一-->
  228. <ul class="row list-inline plupload-preview" id="p-files" data-template="introtpl_product_features" data-name="row[scheme_highlights_content]"></ul>
  229. <!-- 请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  230. <textarea name="row[scheme_highlights_content]" class="form-control" style="margin-top:5px;display:none;">{$scheme_highlights->scheme_highlights_content}</textarea>
  231. <!-- 这里自定义图片预览的模板 开始-->
  232. <script type="text/html" id="introtpl_product_features">
  233. <li class="col-xs-3">
  234. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  235. <img src="<%=fullurl%>" class="img-responsive">
  236. </a>
  237. <input type="text" name="row[scheme_highlights_content][<%=index%>]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value:''%>"/>
  238. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  239. </li>
  240. </script>
  241. <!-- 这里自定义图片预览的模板 结束-->
  242. </div>
  243. </div>
  244. <div class="form-group row">
  245. <label class="control-label col-xs-12"></label>
  246. <div class="col-xs-12">
  247. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  248. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  249. </div>
  250. </div>
  251. </form>
  252. </div>
  253. </div>
  254. </div>
  255. <!--售后服务-->
  256. <div class="col-md-6">
  257. <div class="box box-success">
  258. <div class="panel-body">
  259. <form id="product_function-form" role="form" data-toggle="validator" method="POST" action="">
  260. <div class="form-group row">
  261. <label class="control-label col-xs-12">售后服务</label>
  262. <div class="col-xs-12">
  263. <div class="input-group">
  264. <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$after_sale->name}">
  265. <input id="d-images" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$after_sale->image}">
  266. <div class="input-group-addon no-border no-padding">
  267. <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>
  268. <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>
  269. </div>
  270. <span class="msg-box n-right" for="c-images"></span>
  271. </div>
  272. <!--ul需要添加 data-template和data-name属性,并一一对应且唯一 -->
  273. <ul class="row list-inline plupload-preview" id="product_function-images" data-template="product_function" data-name="row[after_sale_content]"></ul>
  274. <!--请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏-->
  275. <textarea name="row[after_sale_content]" class="form-control" style="margin-top:5px;display: none">{$after_sale->after_sale_content}</textarea>
  276. <!--这里自定义图片预览的模板 开始-->
  277. <script type="text/html" id="product_function">
  278. <li class="col-xs-3">
  279. <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
  280. <img src="<%=fullurl%>" class="img-responsive">
  281. </a>
  282. <input type="text" name="row[after_sale_content][<%=index%>][info]" class="form-control mb-1" placeholder="请输入标题" value="<%=value?value['info']:''%>"/>
  283. <input type="text" name="row[after_sale_content][<%=index%>][describe]" class="form-control mb-1" placeholder="请输入描述" value="<%=value?value['describe']:''%>"/>
  284. <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
  285. </li>
  286. </script>
  287. <!--这里自定义图片预览的模板 结束-->
  288. </div>
  289. </div>
  290. <div class="form-group row">
  291. <label class="control-label col-xs-12"></label>
  292. <div class="col-xs-12">
  293. <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
  294. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  295. </div>
  296. </div>
  297. </form>
  298. </div>
  299. </div>
  300. </div>
  301. <!--售后服务-->
  302. <!-- <div class="col-md-6">-->
  303. <!-- <div class="box box-success">-->
  304. <!-- <div class="panel-body">-->
  305. <!-- <form id="e-form" role="form" data-toggle="validator" method="POST" action="">-->
  306. <!-- <div class="form-group row">-->
  307. <!-- <label class="control-label col-xs-12">售后服务</label>-->
  308. <!-- <div class="col-xs-12">-->
  309. <!-- <div class="input-group">-->
  310. <!-- <input data-rule="required" class="form-control" name="row[name]" type="hidden" value="{$after_sale->name}">-->
  311. <!-- <input id="ee-files" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$after_sale->image}">-->
  312. <!-- <div class="input-group-addon no-border no-padding">-->
  313. <!-- <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>-->
  314. <!-- <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>-->
  315. <!-- </div>-->
  316. <!-- <span class="msg-box n-right" for="b-files"></span>-->
  317. <!-- </div>-->
  318. <!-- &lt;!&ndash;ul需要添加 data-template和data-name属性,并一一对应且唯一 &ndash;&gt;-->
  319. <!-- <ul class="row list-inline plupload-preview" id="e-files" data-template="introtpl_e" data-name="row[image]"></ul>-->
  320. <!-- &lt;!&ndash;请注意 ul和textarea间不能存在其它任何元素,实际开发中textarea应该添加个hidden进行隐藏&ndash;&gt;-->
  321. <!-- &lt;!&ndash;这里自定义图片预览的模板 开始&ndash;&gt;-->
  322. <!-- <script type="text/html" id="introtpl_e">-->
  323. <!-- <li class="col-xs-3">-->
  324. <!-- <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">-->
  325. <!-- <img src="<%=fullurl%>" class="img-responsive">-->
  326. <!-- </a>-->
  327. <!-- <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>-->
  328. <!-- </li>-->
  329. <!-- </script>-->
  330. <!-- &lt;!&ndash;这里自定义图片预览的模板 结束&ndash;&gt;-->
  331. <!-- </div>-->
  332. <!-- </div>-->
  333. <!-- <div class="form-group row">-->
  334. <!-- <label class="control-label col-xs-12"></label>-->
  335. <!-- <div class="col-xs-12">-->
  336. <!-- <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>-->
  337. <!-- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
  338. <!-- </div>-->
  339. <!-- </div>-->
  340. <!-- </form>-->
  341. <!-- </div>-->
  342. <!-- </div>-->
  343. <!-- </div>-->
  344. </div>