index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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="conflicttpl" type="text/html">
  154. <div class="alert alert-dismissable alert-danger">
  155. <button type="button" class="close" data-dismiss="alert">×</button>
  156. <strong>{:__('Warning')}</strong> {:__('Conflict tips')}
  157. </div>
  158. <table class="table table-striped">
  159. <thead>
  160. <tr>
  161. <th>#</th>
  162. <th>{:__('File')}</th>
  163. </tr>
  164. </thead>
  165. <tbody>
  166. <%for(var i=0;i < conflictlist.length;i++){%>
  167. <tr>
  168. <th scope="row"><%=i+1%></th>
  169. <td><%=conflictlist[i]%></td>
  170. </tr>
  171. <%}%>
  172. </tbody>
  173. </table>
  174. </script>
  175. <!--@formatter:off-->
  176. <script id="operatetpl" type="text/html">
  177. <% var labelarr = ['primary', 'success', 'info', 'danger', 'warning']; %>
  178. <% var label = labelarr[item.id % 5]; %>
  179. <% var addon = item.addon; %>
  180. <span class="operate" data-id="<%=item.id%>" data-name="<%=item.name%>">
  181. <% if(!addon){ %>
  182. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  183. <span class="btn-group">
  184. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  185. data-type="<%=item.price<=0?'free':'price';%>"
  186. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  187. <a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
  188. <span class="fa fa-caret-down"></span>
  189. </a>
  190. <ul class="dropdown-menu">
  191. <% for(var j=0;j< item.releaselist.length;j++){ %>
  192. <li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
  193. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  194. <% } %>
  195. </ul>
  196. </span>
  197. <% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%>
  198. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  199. data-type="<%=item.price<=0?'free':'price';%>"
  200. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  201. <% } %>
  202. <% if(item.demourl){ %>
  203. <a href="<%=item.demourl%>" class="btn btn-xs btn-primary btn-info btn-demo" target="_blank">
  204. <i class="fa fa-flash"></i> {:__('Demo')}
  205. </a>
  206. <% } %>
  207. <% if(item.button){ %>
  208. <a href="<%=item.url%>" class="btn btn-xs btn-primary btn-info" target="_blank">
  209. <%=item.button%>
  210. </a>
  211. <% } %>
  212. <% } else {%>
  213. <% if(addon.version!=item.version){%>
  214. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  215. <span class="btn-group">
  216. <a href="javascript:;" class="btn btn-xs btn-info btn-success btn-upgrade"
  217. data-version="<%=item.version%>"><i class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  218. <a class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown"
  219. href="javascript:;">
  220. <span class="fa fa-caret-down"></span>
  221. </a>
  222. <ul class="dropdown-menu">
  223. <% for(var j=0;j< item.releaselist.length;j++){ %>
  224. <li><a href="javascript:;" class="btn-upgrade"
  225. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  226. <% } %>
  227. </ul>
  228. </span>
  229. <% }else{%>
  230. <a href="javascript:;" class="btn btn-xs btn-info btn-upgrade" title="{:__('Upgrade')}" data-version="<%=item.version%>"><i
  231. class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  232. <% }%>
  233. <% }%>
  234. <% if(addon.config){ %>
  235. <a href="javascript:;" class="btn btn-xs btn-primary btn-config" title="{:__('Setting')}"><i class="fa fa-pencil"></i>
  236. {:__('Setting')}</a>
  237. <% } %>
  238. <a href="javascript:;" class="btn btn-xs btn-danger btn-uninstall" title="{:__('Uninstall')}"><i class="fa fa-times"></i>
  239. {:__('Uninstall')}</a>
  240. <% } %>
  241. </span>
  242. </script>
  243. <!--@formatter:on-->