7713149ba532770b9a6f60935478c026.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:70:"/www/wwwroot/baoxian/public/../application/admin/view/addon/index.html";i:1627698986;s:63:"/www/wwwroot/baoxian/application/admin/view/layout/default.html";i:1627698986;s:60:"/www/wwwroot/baoxian/application/admin/view/common/meta.html";i:1627698986;s:62:"/www/wwwroot/baoxian/application/admin/view/common/script.html";i:1627698986;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="<?php echo $config['language']; ?>">
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  8. <meta name="renderer" content="webkit">
  9. <meta name="referrer" content="never">
  10. <meta name="robots" content="noindex, nofollow">
  11. <link rel="shortcut icon" href="/assets/img/favicon.ico" />
  12. <!-- Loading Bootstrap -->
  13. <link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  14. <?php if(\think\Config::get('fastadmin.adminskin')): ?>
  15. <link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
  16. <?php endif; ?>
  17. <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
  18. <!--[if lt IE 9]>
  19. <script src="/assets/js/html5shiv.js"></script>
  20. <script src="/assets/js/respond.min.js"></script>
  21. <![endif]-->
  22. <script type="text/javascript">
  23. var require = {
  24. config: <?php echo json_encode($config); ?>
  25. };
  26. </script>
  27. </head>
  28. <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
  29. <div id="main" role="main">
  30. <div class="tab-content tab-addtabs">
  31. <div id="content">
  32. <div class="row">
  33. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  34. <section class="content-header hide">
  35. <h1>
  36. <?php echo __('Dashboard'); ?>
  37. <small><?php echo __('Control panel'); ?></small>
  38. </h1>
  39. </section>
  40. <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
  41. <!-- RIBBON -->
  42. <div id="ribbon">
  43. <ol class="breadcrumb pull-left">
  44. <?php if($auth->check('dashboard')): ?>
  45. <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
  46. <?php endif; ?>
  47. </ol>
  48. <ol class="breadcrumb pull-right">
  49. <?php foreach($breadcrumb as $vo): ?>
  50. <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
  51. <?php endforeach; ?>
  52. </ol>
  53. </div>
  54. <!-- END RIBBON -->
  55. <?php endif; ?>
  56. <div class="content">
  57. <style type="text/css">
  58. .layui-layer-pay .layui-layer-content {
  59. padding: 0;
  60. height: 600px !important;
  61. }
  62. .layui-layer-pay {
  63. border: none;
  64. }
  65. .payimg {
  66. position: relative;
  67. width: 800px;
  68. height: 600px;
  69. }
  70. .payimg .alipaycode {
  71. position: absolute;
  72. left: 265px;
  73. top: 442px;
  74. }
  75. .payimg .wechatcode {
  76. position: absolute;
  77. left: 660px;
  78. top: 442px;
  79. }
  80. .thumbnail img {
  81. width: 100%;
  82. }
  83. .fixed-table-toolbar .pull-right.search {
  84. min-width: 300px;
  85. }
  86. a.title {
  87. color: #444;
  88. }
  89. .releasetips {
  90. position: relative;
  91. }
  92. .releasetips i {
  93. display: block;
  94. background: #f00;
  95. border-radius: 50%;
  96. width: 0.3em;
  97. height: 0.3em;
  98. top: 0px;
  99. right: -8px;
  100. position: absolute;
  101. box-shadow: 0px 0px 2px #f11414;
  102. }
  103. .form-userinfo .breadcrumb {
  104. margin-bottom: 10px;
  105. }
  106. .btn-toggle {
  107. padding: 0;
  108. }
  109. </style>
  110. <div class="panel panel-default panel-intro">
  111. <div class="panel-heading">
  112. <?php echo build_heading(null,FALSE); if(\think\Config::get('fastadmin.api_url')): ?>
  113. <ul class="nav nav-tabs nav-category">
  114. <li class="active"><a href="javascript:;" data-id=""><?php echo __('All'); ?></a></li>
  115. <li><a href="javascript:;" data-id="0"><?php echo __('Uncategoried'); ?></a></li>
  116. </ul>
  117. <?php endif; ?>
  118. </div>
  119. <div class="panel-body">
  120. <div id="myTabContent" class="tab-content">
  121. <div class="tab-pane fade active in" id="one">
  122. <div class="widget-body no-padding">
  123. <div id="toolbar" class="toolbar">
  124. <a href="javascript:;" class="btn btn-primary btn-refresh" title="<?php echo __('Refresh'); ?>" data-force-refresh="false"><i class="fa fa-refresh"></i> </a>
  125. <?php if(\think\Config::get('fastadmin.api_url')): ?>
  126. <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>
  127. <?php echo __('Offline install'); ?>
  128. </button>
  129. <div class="btn-group">
  130. <a href="#" class="btn btn-info btn-switch active btn-mini-xs" data-type="all"><i class="fa fa-list"></i> <?php echo __('All'); ?></a>
  131. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="free"><i class="fa fa-gift"></i> <?php echo __('Free'); ?></a>
  132. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="price"><i class="fa fa-rmb"></i> <?php echo __('Paying'); ?></a>
  133. <a href="#" class="btn btn-info btn-switch btn-mini-xs" data-type="local" data-url="addon/downloaded"><i class="fa fa-laptop"></i> <?php echo __('Local addon'); ?></a>
  134. </div>
  135. <a class="btn btn-primary btn-userinfo btn-mini-xs" href="javascript:;"><i class="fa fa-user"></i> <?php echo __('Userinfo'); ?></a>
  136. <?php endif; ?>
  137. </div>
  138. <table id="table" class="table table-striped table-bordered table-hover" width="100%">
  139. </table>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <script id="searchformtpl" type="text/html">
  146. <form action="" class="form-commonsearch hide">
  147. <div class="well" style="box-shadow:none;border-radius:2px;margin-bottom:10px;">
  148. <div class="row">
  149. <div class="col-xs-12 col-sm-6 col-md-3">
  150. <div class="form-group">
  151. <label class="control-label"><?php echo __('Title'); ?></label>
  152. <input class="operate" type="hidden" data-name="title" value="like"/>
  153. <input class="form-control" type="text" name="title" placeholder="" value=""/>
  154. </div>
  155. </div>
  156. <div class="col-xs-12 col-sm-6 col-md-3">
  157. <div class="form-group">
  158. <label class="control-label"><?php echo __('Type'); ?></label>
  159. <input class="operate" type="hidden" data-name="type" value="="/>
  160. <input class="form-control" type="text" name="type" placeholder="all" value=""/>
  161. </div>
  162. </div>
  163. <div class="col-xs-12 col-sm-6 col-md-3">
  164. <div class="form-group">
  165. <label class="control-label"><?php echo __('Category'); ?></label>
  166. <input type="hidden" class="operate" data-name="category_id" value="="/>
  167. <input class="form-control" name="category_id" type="text" value="">
  168. </div>
  169. </div>
  170. <div class="col-xs-12 col-sm-6 col-md-3">
  171. <div class="form-group">
  172. <label class="control-label"><?php echo __('Version'); ?></label>
  173. <input type="hidden" class="operate" data-name="faversion" value="="/>
  174. <input class="form-control" name="faversion" type="text" value="<?php echo \think\Config::get('fastadmin.version'); ?>">
  175. </div>
  176. </div>
  177. <div class="col-xs-12 col-sm-6 col-md-3">
  178. <div class="form-group">
  179. <label class="control-label"></label>
  180. <div class="row">
  181. <div class="col-xs-6">
  182. <input type="submit" class="btn btn-success btn-block" value="<?php echo __('Submit'); ?>"/>
  183. </div>
  184. <div class="col-xs-6">
  185. <input type="reset" class="btn btn-primary btn-block" value="<?php echo __('Reset'); ?>"/>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </form>
  193. </script>
  194. <script id="logintpl" type="text/html">
  195. <div>
  196. <form class="form-horizontal">
  197. <fieldset>
  198. <div class="alert alert-dismissable alert-danger">
  199. <button type="button" class="close" data-dismiss="alert">×</button>
  200. <strong><?php echo __('Warning'); ?></strong><br/><?php echo __('Login tips'); ?>
  201. </div>
  202. <div class="form-group">
  203. <div class="col-lg-12">
  204. <div class="input-group">
  205. <span class="input-group-addon"><i class="fa fa-user"></i></span>
  206. <input type="text" class="form-control" id="inputAccount" value=""
  207. placeholder="<?php echo __('Your username or email'); ?>">
  208. </div>
  209. </div>
  210. </div>
  211. <div class="form-group">
  212. <div class="col-lg-12">
  213. <div class="input-group">
  214. <span class="input-group-addon"><i class="fa fa-lock"></i></span>
  215. <input type="password" class="form-control" id="inputPassword" value=""
  216. placeholder="<?php echo __('Your password'); ?>">
  217. </div>
  218. </div>
  219. </div>
  220. </fieldset>
  221. </form>
  222. </div>
  223. </script>
  224. <script id="userinfotpl" type="text/html">
  225. <div>
  226. <form class="form-horizontal form-userinfo">
  227. <fieldset>
  228. <div class="alert alert-dismissable alert-success">
  229. <button type="button" class="close" data-dismiss="alert">×</button>
  230. <strong><?php echo __('Warning'); ?></strong><br/><?php echo __('Logined tips', '<%=username%>'); ?>
  231. </div>
  232. </fieldset>
  233. <div class="breadcrumb"><a href="https://www.fastadmin.net/user/myaddon.html" target="_blank"><i class="fa fa-money"></i> <?php echo __('My addons'); ?></a></div>
  234. </form>
  235. </div>
  236. </script>
  237. <script id="paytpl" type="text/html">
  238. <div class="payimg" style="background:url('<%=payimg%>') 0 0 no-repeat;background-size:cover;">
  239. <%if(paycode){%>
  240. <div class="alipaycode">
  241. <%=paycode%>
  242. </div>
  243. <div class="wechatcode">
  244. <%=paycode%>
  245. </div>
  246. <%}%>
  247. </div>
  248. </script>
  249. <script id="uninstalltpl" type="text/html">
  250. <div class="">
  251. <div class=""><%=#__("Are you sure you want to unstall %s?", addon['title'])%>
  252. <p class="text-danger"><?php echo __('Delete all the addon file and cannot be recovered!'); ?> </p>
  253. <?php if(config('app_debug')): ?>
  254. <p class="text-danger"><input type="checkbox" name="droptables" id="droptables" data-name="<%=addon['name']%>"/> <?php echo __('Delete all the addon database and cannot be recovered!'); ?> </p>
  255. <?php endif; ?>
  256. <p class="text-danger"><?php echo __('Please backup important data manually before uninstall!'); ?></p>
  257. </div>
  258. </div>
  259. </script>
  260. <script id="conflicttpl" type="text/html">
  261. <div class="alert alert-dismissable alert-danger">
  262. <button type="button" class="close" data-dismiss="alert">×</button>
  263. <strong><?php echo __('Warning'); ?></strong> <?php echo __('Conflict tips'); ?>
  264. </div>
  265. <table class="table table-striped">
  266. <thead>
  267. <tr>
  268. <th>#</th>
  269. <th><?php echo __('File'); ?></th>
  270. </tr>
  271. </thead>
  272. <tbody>
  273. <%for(var i=0;i < conflictlist.length;i++){%>
  274. <tr>
  275. <th scope="row"><%=i+1%></th>
  276. <td><%=conflictlist[i]%></td>
  277. </tr>
  278. <%}%>
  279. </tbody>
  280. </table>
  281. </script>
  282. <!--@formatter:off-->
  283. <script id="operatetpl" type="text/html">
  284. <% var labelarr = ['primary', 'success', 'info', 'danger', 'warning']; %>
  285. <% var label = labelarr[item.id % 5]; %>
  286. <% var addon = item.addon; %>
  287. <div class="operate" data-id="<%=item.id%>" data-name="<%=item.name%>">
  288. <% if(!addon){ %>
  289. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  290. <span class="btn-group">
  291. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  292. data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
  293. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> <?php echo __('Install'); ?></a>
  294. <a class="btn btn-xs btn-success dropdown-toggle" data-toggle="dropdown" href="javascript:;">
  295. <span class="fa fa-caret-down"></span>
  296. </a>
  297. <ul class="dropdown-menu">
  298. <% for(var j=0;j< item.releaselist.length;j++){ %>
  299. <li><a href="javascript:;" class="btn-install" data-type="<%=item.price<=0?'free':'price';%>"
  300. data-donateimage="<%=item.donateimage%>"
  301. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  302. <% } %>
  303. </ul>
  304. </span>
  305. <% }else if(typeof item.releaselist !="undefined" && item.releaselist.length>0){%>
  306. <a href="javascript:;" class="btn btn-xs btn-primary btn-success btn-install"
  307. data-type="<%=item.price<=0?'free':'price';%>" data-donateimage="<%=item.donateimage%>"
  308. data-version="<%=item.version%>"><i class="fa fa-cloud-download"></i> <?php echo __('Install'); ?></a>
  309. <% } %>
  310. <% if(item.demourl){ %>
  311. <a href="<%=item.demourl%>" class="btn btn-xs btn-primary btn-info btn-demo" target="_blank">
  312. <i class="fa fa-flash"></i> <?php echo __('Demo'); ?>
  313. </a>
  314. <% } %>
  315. <% if(item.button){ %>
  316. <a href="<%=item.url%>" class="btn btn-xs btn-primary btn-info" target="_blank">
  317. <%=item.button%>
  318. </a>
  319. <% } %>
  320. <% } else {%>
  321. <% if(addon.version!=item.version){%>
  322. <% if(typeof item.releaselist !="undefined" && item.releaselist.length>1){%>
  323. <span class="btn-group">
  324. <a href="javascript:;" class="btn btn-xs btn-info btn-success btn-upgrade"
  325. data-version="<%=item.version%>"><i class="fa fa-cloud"></i> <?php echo __('Upgrade'); ?></a>
  326. <a class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown"
  327. href="javascript:;">
  328. <span class="fa fa-caret-down"></span>
  329. </a>
  330. <ul class="dropdown-menu">
  331. <% for(var j=0;j< item.releaselist.length;j++){ %>
  332. <li><a href="javascript:;" class="btn-upgrade"
  333. data-version="<%=item.releaselist[j].version%>"><%=item.releaselist[j].version%></a></li>
  334. <% } %>
  335. </ul>
  336. </span>
  337. <% }else{%>
  338. <a href="javascript:;" class="btn btn-xs btn-info btn-upgrade" title="<?php echo __('Upgrade'); ?>" data-version="<%=item.version%>"><i
  339. class="fa fa-cloud"></i> <?php echo __('Upgrade'); ?></a>
  340. <% }%>
  341. <% }%>
  342. <% if(addon.config){ %>
  343. <a href="javascript:;" class="btn btn-xs btn-primary btn-config" title="<?php echo __('Setting'); ?>"><i class="fa fa-pencil"></i>
  344. <?php echo __('Setting'); ?></a>
  345. <% } %>
  346. <a href="javascript:;" class="btn btn-xs btn-danger btn-uninstall" title="<?php echo __('Uninstall'); ?>"><i class="fa fa-times"></i>
  347. <?php echo __('Uninstall'); ?></a>
  348. <% } %>
  349. </div>
  350. </script>
  351. <!--@formatter:on-->
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
  359. </body>
  360. </html>