index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. </style>
  54. <div class="panel panel-default panel-intro">
  55. <div class="panel-heading">
  56. {:build_heading(null,FALSE)}
  57. {if $Think.config.fastadmin.api_url}
  58. <ul class="nav nav-tabs nav-category">
  59. <li class="active"><a href="javascript:;" data-id="">{:__('All')}</a></li>
  60. <li><a href="javascript:;" data-id="0">{:__('Uncategoried')}</a></li>
  61. </ul>
  62. {/if}
  63. </div>
  64. <div class="panel-body">
  65. <div id="myTabContent" class="tab-content">
  66. <div class="tab-pane fade active in" id="one">
  67. <div class="widget-body no-padding">
  68. <div id="toolbar" class="toolbar">
  69. {:build_toolbar('refresh')}
  70. <button type="button" id="plupload-addon" class="btn btn-danger plupload" data-url="addon/local" data-mimetype="application/zip" data-multiple="false"><i class="fa fa-upload"></i>
  71. {:__('Offline install')}
  72. </button>
  73. {if $Think.config.fastadmin.api_url}
  74. <div class="btn-group">
  75. <a href="#" class="btn btn-info btn-switch active" data-type="all"><i class="fa fa-list"></i> {:__('All')}</a>
  76. <a href="#" class="btn btn-info btn-switch" data-type="free"><i class="fa fa-gift"></i> {:__('Free')}</a>
  77. <a href="#" class="btn btn-info btn-switch" data-type="price"><i class="fa fa-rmb"></i> {:__('Paying')}</a>
  78. <a href="#" class="btn btn-info btn-switch" data-type="local" data-url="addon/downloaded"><i class="fa fa-laptop"></i> {:__('Local addon')}</a>
  79. </div>
  80. <a class="btn btn-primary btn-userinfo" href="javascript:;"><i class="fa fa-user"></i> {:__('Userinfo')}</a>
  81. {/if}
  82. </div>
  83. <table id="table" class="table table-striped table-bordered table-hover" width="100%">
  84. </table>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script id="searchformtpl" type="text/html">
  91. <form action="" class="form-commonsearch hide">
  92. <div class="well" style="box-shadow:none;border-radius:2px;margin-bottom:10px;">
  93. <div class="row">
  94. <div class="col-xs-12 col-sm-6 col-md-3">
  95. <div class="form-group">
  96. <label class="control-label">{:__('Title')}</label>
  97. <input class="operate" type="hidden" data-name="title" value="like"/>
  98. <input class="form-control" type="text" name="title" placeholder="" value=""/>
  99. </div>
  100. </div>
  101. <div class="col-xs-12 col-sm-6 col-md-3">
  102. <div class="form-group">
  103. <label class="control-label">{:__('Type')}</label>
  104. <input class="operate" type="hidden" data-name="type" value="="/>
  105. <input class="form-control" type="text" name="type" placeholder="all" value=""/>
  106. </div>
  107. </div>
  108. <div class="col-xs-12 col-sm-6 col-md-3">
  109. <div class="form-group">
  110. <label class="control-label">{:__('Category')}</label>
  111. <input type="hidden" class="operate" data-name="category_id" value="="/>
  112. <input class="form-control" name="category_id" type="text" value="">
  113. </div>
  114. </div>
  115. <div class="col-xs-12 col-sm-6 col-md-3">
  116. <div class="form-group">
  117. <label class="control-label">{:__('Version')}</label>
  118. <input type="hidden" class="operate" data-name="faversion" value="="/>
  119. <input class="form-control" name="faversion" type="text" value="{$Think.config.fastadmin.version}">
  120. </div>
  121. </div>
  122. <div class="col-xs-12 col-sm-6 col-md-3">
  123. <div class="form-group">
  124. <label class="control-label"></label>
  125. <div class="row">
  126. <div class="col-xs-6">
  127. <input type="submit" class="btn btn-success btn-block" value="{:__('Submit')}"/>
  128. </div>
  129. <div class="col-xs-6">
  130. <input type="reset" class="btn btn-primary btn-block" value="{:__('Reset')}"/>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </form>
  138. </script>
  139. <script id="logintpl" type="text/html">
  140. <div>
  141. <form class="form-horizontal">
  142. <fieldset>
  143. <div class="alert alert-dismissable alert-danger">
  144. <button type="button" class="close" data-dismiss="alert">×</button>
  145. <strong>{:__('Warning')}</strong><br/>{:__('Login tips')}
  146. </div>
  147. <div class="form-group">
  148. <div class="col-lg-12">
  149. <div class="input-group">
  150. <span class="input-group-addon"><i class="fa fa-user"></i></span>
  151. <input type="text" class="form-control" id="inputAccount" value=""
  152. placeholder="{:__('Your username or email')}">
  153. </div>
  154. </div>
  155. </div>
  156. <div class="form-group">
  157. <div class="col-lg-12">
  158. <div class="input-group">
  159. <span class="input-group-addon"><i class="fa fa-lock"></i></span>
  160. <input type="password" class="form-control" id="inputPassword" value=""
  161. placeholder="{:__('Your password')}">
  162. </div>
  163. </div>
  164. </div>
  165. </fieldset>
  166. </form>
  167. </div>
  168. </script>
  169. <script id="userinfotpl" type="text/html">
  170. <div>
  171. <form class="form-horizontal form-userinfo">
  172. <fieldset>
  173. <div class="alert alert-dismissable alert-success">
  174. <button type="button" class="close" data-dismiss="alert">×</button>
  175. <strong>{:__('Warning')}</strong><br/>{:__('Logined tips', '<%=username%>')}
  176. </div>
  177. </fieldset>
  178. <div class="breadcrumb"><a href="https://www.fastadmin.net/user/myaddon.html" target="_blank"><i class="fa fa-money"></i> {:__('My addons')}</a></div>
  179. <div class="breadcrumb"><a href="https://www.fastadmin.net/user/addon.html" target="_blank"><i class="fa fa-upload"></i> {:__('My posts')}</a></div>
  180. </form>
  181. </div>
  182. </script>
  183. <script id="paytpl" type="text/html">
  184. <div class="payimg" style="background:url('<%=payimg%>') 0 0 no-repeat;background-size:cover;">
  185. <%if(paycode){%>
  186. <div class="alipaycode">
  187. <%=paycode%>
  188. </div>
  189. <div class="wechatcode">
  190. <%=paycode%>
  191. </div>
  192. <%}%>
  193. </div>
  194. </script>
  195. <script id="conflicttpl" type="text/html">
  196. <div class="alert alert-dismissable alert-danger">
  197. <button type="button" class="close" data-dismiss="alert">×</button>
  198. <strong>{:__('Warning')}</strong> {:__('Conflict tips')}
  199. </div>
  200. <table class="table table-striped">
  201. <thead>
  202. <tr>
  203. <th>#</th>
  204. <th>{:__('File')}</th>
  205. </tr>
  206. </thead>
  207. <tbody>
  208. <%for(var i=0;i < conflictlist.length;i++){%>
  209. <tr>
  210. <th scope="row"><%=i+1%></th>
  211. <td><%=conflictlist[i]%></td>
  212. </tr>
  213. <%}%>
  214. </tbody>
  215. </table>
  216. </script>
  217. <!--@formatter:off-->
  218. <script id="operatetpl" type="text/html">
  219. <% var labelarr = ['primary', 'success', 'info', 'danger', 'warning']; %>
  220. <% var label = labelarr[item.id % 5]; %>
  221. <% var addon = item.addon; %>
  222. <div class="operate" data-id="<%=item.id%>" data-name="<%=item.name%>">
  223. <% if(!addon){ %>
  224. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  225. <span class="btn-group">
  226. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  227. data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
  228. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  229. <a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
  230. <span class="fa fa-caret-down"></span>
  231. </a>
  232. <ul class="dropdown-menu">
  233. <% for(var j=0;j< item.releaselist.length;j++){ %>
  234. <li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
  235. data-donateimage="<%=item.donateimage%>"
  236. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  237. <% } %>
  238. </ul>
  239. </span>
  240. <% }else{%>
  241. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  242. data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
  243. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> {:__('Install')}</a>
  244. <% } %>
  245. <% if(item.demourl){ %>
  246. <a href="<%=item.demourl%>" class="btn btn-xs btn-primary btn-info btn-demo" target="_blank">
  247. <i class="fa fa-flash"></i> {:__('Demo')}
  248. </a>
  249. <% } %>
  250. <% } else {%>
  251. <% if(addon.version!=item.version){%>
  252. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  253. <span class="btn-group">
  254. <a href="javascript:;" class="btn btn-xs btn-info btn-success btn-upgrade"
  255. data-version="<%=item.version%>"><i class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  256. <a class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown"
  257. href="javascript:;">
  258. <span class="fa fa-caret-down"></span>
  259. </a>
  260. <ul class="dropdown-menu">
  261. <% for(var j=0;j< item.releaselist.length;j++){ %>
  262. <li><a href="javascript:;" class="btn-upgrade"
  263. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  264. <% } %>
  265. </ul>
  266. </span>
  267. <% }else{%>
  268. <a href="javascript:;" class="btn btn-xs btn-info btn-upgrade" title="{:__('Upgrade')}" data-version="<%=item.version%>"><i
  269. class="fa fa-cloud"></i> {:__('Upgrade')}</a>
  270. <% }%>
  271. <% }%>
  272. <% if(addon.config){ %>
  273. <a href="javascript:;" class="btn btn-xs btn-primary btn-config" title="{:__('Setting')}"><i class="fa fa-pencil"></i>
  274. {:__('Setting')}</a>
  275. <% } %>
  276. <a href="javascript:;" class="btn btn-xs btn-danger btn-uninstall" title="{:__('Uninstall')}"><i class="fa fa-times"></i>
  277. {:__('Uninstall')}</a>
  278. <% } %>
  279. </div>
  280. </script>
  281. <!--@formatter:on-->