index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <style type="text/css">
  2. .layui-layer-pay .layui-layer-content {
  3. padding: 0;
  4. height: 600px !important;
  5. }
  6. .layui-layer-pay {
  7. border: none;
  8. }
  9. .payimg {
  10. position: relative;
  11. width: 800px;
  12. height: 600px;
  13. }
  14. .payimg .alipaycode {
  15. position: absolute;
  16. left: 265px;
  17. top: 442px;
  18. }
  19. .payimg .wechatcode {
  20. position: absolute;
  21. left: 660px;
  22. top: 442px;
  23. }
  24. .thumbnail img {
  25. width: 100%;
  26. }
  27. .fixed-table-toolbar .pull-right.search {
  28. min-width: 300px;
  29. }
  30. a.title {
  31. color: #444;
  32. }
  33. .releasetips {
  34. position: relative;
  35. }
  36. .releasetips i {
  37. display: block;
  38. background: #f00;
  39. border-radius: 50%;
  40. width: 0.3em;
  41. height: 0.3em;
  42. top: 0px;
  43. right: -8px;
  44. position: absolute;
  45. box-shadow: 0px 0px 2px #f11414;
  46. }
  47. .form-userinfo .breadcrumb {
  48. margin-bottom: 10px;
  49. }
  50. .btn-toggle {
  51. padding: 0;
  52. }
  53. .operate .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu {
  54. bottom: inherit;
  55. }
  56. </style>
  57. <div class="panel panel-default panel-intro">
  58. <div class="panel-heading">
  59. {:build_heading(null,FALSE)}
  60. {if $Think.config.fastadmin.api_url}
  61. <ul class="nav nav-tabs nav-category">
  62. <li class="active"><a href="javascript:;" data-id="">{:__('All')}</a></li>
  63. <li><a href="javascript:;" data-id="0">{:__('Uncategoried')}</a></li>
  64. </ul>
  65. {/if}
  66. </div>
  67. <div class="panel-body">
  68. <div id="myTabContent" class="tab-content">
  69. <div class="tab-pane fade active in" id="one">
  70. <div class="widget-body no-padding">
  71. <div id="toolbar" class="toolbar">
  72. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" data-force-refresh="false"><i class="fa fa-refresh"></i> </a>
  73. {if $Think.config.fastadmin.api_url}
  74. <button type="button" id="faupload-addon" class="btn btn-danger faupload btn-mini-xs" data-url="addon/local" data-chunking="false" data-mimetype="zip,fastaddon" data-multiple="false"><i class="fa fa-upload"></i>
  75. {:__('Local install')}
  76. </button>
  77. <div class="btn-group">
  78. <a href="#" class="btn btn-info btn-switch active btn-mini-xs" data-type="all"><i class="fa fa-list"></i> {:__('All')}</a>
  79. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="free"><i class="fa fa-gift"></i> {:__('Free')}</a>
  80. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="price"><i class="fa fa-rmb"></i> {:__('Paying')}</a>
  81. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="local" data-url="addon/downloaded"><i class="fa fa-laptop"></i> {:__('Local addon')}</a>
  82. </div>
  83. <a class="btn btn-primary btn-userinfo btn-mini-xs" href="javascript:;"><i class="fa fa-user"></i> {:__('Userinfo')}</a>
  84. {/if}
  85. </div>
  86. <table id="table" class="table table-striped table-bordered table-hover" width="100%">
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <script id="searchformtpl" type="text/html">
  94. <form action="" class="form-commonsearch hide">
  95. <div class="well" style="box-shadow:none;border-radius:2px;margin-bottom:10px;">
  96. <div class="row">
  97. <div class="col-xs-12 col-sm-6 col-md-3">
  98. <div class="form-group">
  99. <label class="control-label">{:__('Title')}</label>
  100. <input class="operate" type="hidden" data-name="title" value="like"/>
  101. <input class="form-control" type="text" name="title" placeholder="" value=""/>
  102. </div>
  103. </div>
  104. <div class="col-xs-12 col-sm-6 col-md-3">
  105. <div class="form-group">
  106. <label class="control-label">{:__('Type')}</label>
  107. <input class="operate" type="hidden" data-name="type" value="="/>
  108. <input class="form-control" type="text" name="type" placeholder="all" value=""/>
  109. </div>
  110. </div>
  111. <div class="col-xs-12 col-sm-6 col-md-3">
  112. <div class="form-group">
  113. <label class="control-label">{:__('Category')}</label>
  114. <input type="hidden" class="operate" data-name="category_id" value="="/>
  115. <input class="form-control" name="category_id" type="text" value="">
  116. </div>
  117. </div>
  118. <div class="col-xs-12 col-sm-6 col-md-3">
  119. <div class="form-group">
  120. <label class="control-label">{:__('Version')}</label>
  121. <input type="hidden" class="operate" data-name="faversion" value="="/>
  122. <input class="form-control" name="faversion" type="text" value="{$Think.config.fastadmin.version}">
  123. </div>
  124. </div>
  125. <div class="col-xs-12 col-sm-6 col-md-3">
  126. <div class="form-group">
  127. <label class="control-label"></label>
  128. <div class="row">
  129. <div class="col-xs-6">
  130. <input type="submit" class="btn btn-success btn-block" value="{:__('Submit')}"/>
  131. </div>
  132. <div class="col-xs-6">
  133. <input type="reset" class="btn btn-primary btn-block" value="{:__('Reset')}"/>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. </form>
  141. </script>
  142. <script id="uninstalltpl" type="text/html">
  143. <div class="">
  144. <div class=""><%=#__("Are you sure you want to unstall %s?", addon['title'])%>
  145. <p class="text-danger">{:__('Delete all the addon file and cannot be recovered!')} </p>
  146. {if config('app_debug')}
  147. <p class="text-danger"><input type="checkbox" name="droptables" id="droptables" data-name="<%=addon['name']%>"/> {:__('Delete all the addon database and cannot be recovered!')} </p>
  148. {/if}
  149. <p class="text-danger">{:__('Please backup important data manually before uninstall!')}</p>
  150. </div>
  151. </div>
  152. </script>
  153. <script id="upgradetpl" type="text/html">
  154. <div class="">
  155. <div class=""><%=#__("Upgrade tips", addon['title'])%></div>
  156. </div>
  157. </script>
  158. <script id="conflicttpl" type="text/html">
  159. <div class="alert alert-dismissable alert-danger">
  160. <button type="button" class="close" data-dismiss="alert">×</button>
  161. <strong>{:__('Warning')}</strong> {:__('Conflict tips')}
  162. </div>
  163. <table class="table table-striped">
  164. <thead>
  165. <tr>
  166. <th>#</th>
  167. <th>{:__('File')}</th>
  168. </tr>
  169. </thead>
  170. <tbody>
  171. <%for(var i=0;i < conflictlist.length;i++){%>
  172. <tr>
  173. <th scope="row"><%=i+1%></th>
  174. <td><%=conflictlist[i]%></td>
  175. </tr>
  176. <%}%>
  177. </tbody>
  178. </table>
  179. </script>
  180. <!--@formatter:off-->
  181. <script id="operatetpl" type="text/html">
  182. <% var labelarr = ['primary', 'success', 'info', 'danger', 'warning']; %>
  183. <% var label = labelarr[item.id % 5]; %>
  184. <% var addon = item.addon; %>
  185. <span class="operate" data-id="<%=item.id%>" data-name="<%=item.name%>">
  186. <% if(!addon){ %>
  187. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  188. <span class="btn-group">
  189. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  190. data-type="<%=item.price<=0?'free':'price';%>"
  191. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  192. <a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
  193. <span class="fa fa-caret-down"></span>
  194. </a>
  195. <ul class="dropdown-menu">
  196. <% for(var j=0;j< item.releaselist.length;j++){ %>
  197. <li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
  198. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  199. <% } %>
  200. </ul>
  201. </span>
  202. <% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%>
  203. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  204. data-type="<%=item.price<=0?'free':'price';%>"
  205. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  206. <% } %>
  207. <% if(item.demourl){ %>
  208. <a href="<%=item.demourl%>" class="btn btn-xs btn-primary btn-info btn-demo" target="_blank">
  209. <i class="fa fa-flash"></i> {:__('Demo')}
  210. </a>
  211. <% } %>
  212. <% if(item.button){ %>
  213. <a href="<%=item.url%>" class="btn btn-xs btn-primary btn-info" target="_blank">
  214. <%=item.button%>
  215. </a>
  216. <% } %>
  217. <% } else {%>
  218. <% if(addon.version!=item.version){%>
  219. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  220. <span class="btn-group">
  221. <a href="javascript:;" class="btn btn-xs btn-info btn-success btn-upgrade"
  222. data-version="<%=item.version%>"><i class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  223. <a class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown"
  224. href="javascript:;">
  225. <span class="fa fa-caret-down"></span>
  226. </a>
  227. <ul class="dropdown-menu">
  228. <% for(var j=0;j< item.releaselist.length;j++){ %>
  229. <li><a href="javascript:;" class="btn-upgrade"
  230. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  231. <% } %>
  232. </ul>
  233. </span>
  234. <% }else{%>
  235. <a href="javascript:;" class="btn btn-xs btn-info btn-upgrade" title="{:__('Upgrade')}" data-version="<%=item.version%>"><i
  236. class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  237. <% }%>
  238. <% }%>
  239. <% if(addon.config){ %>
  240. <a href="javascript:;" class="btn btn-xs btn-primary btn-config" title="{:__('Setting')}"><i class="fa fa-pencil"></i>
  241. {:__('Setting')}</a>
  242. <% } %>
  243. <a href="javascript:;" class="btn btn-xs btn-danger btn-uninstall" title="{:__('Uninstall')}"><i class="fa fa-times"></i>
  244. {:__('Uninstall')}</a>
  245. <% } %>
  246. </span>
  247. </script>
  248. <!--@formatter:on-->