3a5c36ffeecc1f95625476fb3ba26d60.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <?php if (!defined('THINK_PATH')) exit();?><!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>后台 | 管理中心 - ADMIN EX</title>
  7. <!-- Loading Bootstrap -->
  8. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/base.css" media="all">
  10. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css" media="all">
  11. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/module.css">
  12. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/style.css" media="all">
  13. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/default_color.css" media="all">
  14. <script type="text/javascript" src="/Public/Admin/js/jquery.min.js"></script>
  15. <script type="text/javascript" src="/Public/layer/layer.js"></script>
  16. <link rel="stylesheet" type="text/css" href="/Public/Admin/css/flat-ui.css">
  17. <script src="/Public/Admin/js/flat-ui.min.js"></script>
  18. <script src="/Public/Admin/js/application.js"></script>
  19. </head>
  20. <body>
  21. <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  22. <div class="navbar-header">
  23. <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="<?php echo U('Index/index');?>">
  24. <img src="/Public/Admin/ecshe_img/logo_text.png" />
  25. </a>
  26. </div>
  27. <div class="navbar-collapse collapse">
  28. <ul class="nav navbar-nav">
  29. <!-- 主导航 -->
  30. <?php if(is_array($__MENU__["main"])): $i = 0; $__LIST__ = $__MENU__["main"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li <?php if(($menu["class"]) == "current"): ?>class="active"<?php endif; ?> >
  31. <a href="<?php echo (U($menu["url"])); ?>">
  32. <?php echo ($menu["title"]); ?>
  33. </a>
  34. </li><?php endforeach; endif; else: echo "" ;endif; ?>
  35. </ul>
  36. <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
  37. <li class="dropdown">
  38. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  39. <?php echo session('admin_username');?><b class="caret"></b>
  40. </a>
  41. <ul class="dropdown-menu">
  42. <li>
  43. <a href="<?php echo U('User/setpwd');?>">
  44. <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> 修改密码
  45. </a>
  46. </li>
  47. <li class="center">
  48. <a href="javascript:void(0);" onclick="lockscreen()">
  49. <span class="glyphicon glyphicon-lock" aria-hidden="true"></span> 锁屏休息
  50. </a>
  51. </li>
  52. <li class="dividers"></li>
  53. <li>
  54. <a href="<?php echo U('Login/loginout');?>">
  55. <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 退出后台
  56. </a>
  57. </li>
  58. </ul>
  59. </li>
  60. <li>
  61. <a href="<?php echo U('Tools/delcache');?>" class="dropdown-toggle" title="清除缓存">
  62. <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
  63. </a>
  64. </li>
  65. <li>
  66. <a class="dropdown-toggle" title="打开前台" href="/" target="_blank">
  67. <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
  68. </a>
  69. </li>
  70. </ul>
  71. </div>
  72. </div>
  73. <!-- 边栏 -->
  74. <div class="sidebar">
  75. <!-- 子导航 -->
  76. <div id="subnav" class="subnav" style="max-height: 94%;overflow-x: hidden;overflow-y: auto;">
  77. <?php if(!empty($_extra_menu)): ?> <?php echo extra_menu($_extra_menu,$__MENU__); endif; ?>
  78. <?php if(is_array($__MENU__["child"])): $i = 0; $__LIST__ = $__MENU__["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub_menu): $mod = ($i % 2 );++$i;?><!-- 子导航 -->
  79. <?php if(!empty($sub_menu)): if(!empty($key)): ?><h3><i class="icon icon-unfold"></i><?php echo ($key); ?></h3><?php endif; ?>
  80. <ul class="side-sub-menu">
  81. <?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li>
  82. <a class="item" href="<?php echo (U($menu["url"])); ?>">
  83. <?php if(empty($menu["ico_name"])): ?><span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
  84. <?php else: ?>
  85. <span class="glyphicon glyphicon-<?php echo ($menu["ico_name"]); ?>" aria-hidden="true"></span><?php endif; ?>
  86. <?php echo ($menu["title"]); ?>
  87. </a>
  88. </li><?php endforeach; endif; else: echo "" ;endif; ?>
  89. </ul>
  90. _
  91. <div>
  92. <audio id="remind">
  93. <source src="/Public/Admin/images/5f71a0c7a5c27778.mp3" type="audio/mpeg">
  94. </audio>
  95. </div><?php endif; ?>
  96. <!-- /子导航 --><?php endforeach; endif; else: echo "" ;endif; ?>
  97. </div>
  98. <!-- /子导航 -->
  99. </div>
  100. <!-- /边栏 -->
  101. <script type="text/javascript">
  102. $(function(){
  103. setInterval("tzfc()",5000);
  104. });
  105. function tzfc(){
  106. var st = 1;
  107. $.post("<?php echo U('Admin/Trade/getmyzrtz');?>",
  108. {'st':st},
  109. function(data){
  110. if(data.code == 1){
  111. var audio = document.getElementById('remind')
  112. audio.play()
  113. }
  114. });
  115. $.post("<?php echo U('Admin/Trade/gethyorder');?>",
  116. {'st':st},
  117. function(data){
  118. if(data.code == 1){
  119. layer.confirm('有新的合约订单', {
  120. btn: ['知道了'] //按钮
  121. }, function(){
  122. $.post("<?php echo U('Admin/Trade/settzstatus');?>",
  123. function(data){
  124. if(data.code == 1){
  125. window.location.reload();
  126. }
  127. });
  128. });
  129. }
  130. });
  131. }
  132. </script>
  133. <?php if(($versionUp) == "1"): ?><script type="text/javascript" charset="utf-8">
  134. /**顶部警告栏*/
  135. var top_alert = $('#top-alerta');
  136. top_alert.find('.close').on('click', function () {
  137. top_alert.removeClass('block').slideUp(200);
  138. // content.animate({paddingTop:'-=55'},200);
  139. });
  140. </script><?php endif; ?>
  141. <div id="main-content">
  142. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  143. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  144. <div class="alert-content">警告内容</div>
  145. </div>
  146. <div id="main" class="main">
  147. <div class="main-title-h">
  148. <span class="h1-title">税金记录</span>
  149. <div class="fr">
  150. <button class="btn btn-warning" onClick="location.href='<?php echo U('Finance/taxlist');?>'">初始化搜索</button>
  151. </div>
  152. </div>
  153. <div class="cf">
  154. <div class="search-form fl cf" style="float: none !important;">
  155. <div class="sleft">
  156. <form name="formSearch" id="formSearch" method="get" name="form1">
  157. <select style=" width: 100px; float: left; margin-right: 10px;" name="field" class="form-control">
  158. <option value="username" <?php if(($_GET['field']) == "username"): ?>selected<?php endif; ?>>用户名</option>
  159. </select>
  160. <input type="text" name="name" class="search-input form-control " value="<?php echo ($_GET['name']); ?>" placeholder="请输入查询内容" style="">
  161. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  162. </form>
  163. <script>
  164. //搜索功能
  165. $(function () {
  166. $('#search').click(function () {
  167. $('#formSearch').submit();
  168. });
  169. });
  170. //回车搜索
  171. $(".search-input").keyup(function (e) {
  172. if (e.keyCode === 13) {
  173. $("#search").click();
  174. return false;
  175. }
  176. });
  177. </script>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="data-table table-striped">
  182. <table class="">
  183. <thead>
  184. <tr>
  185. <th class="">ID</th>
  186. <th class="">用户名</th>
  187. <th width="">充值时间</th>
  188. <th width="">处理时间</th>
  189. <th width="">税金金额</th>
  190. <th width="">转账凭证</th>
  191. <th width="">状态</th>
  192. <th width="">操作</th>
  193. </tr>
  194. </thead>
  195. <tbody>
  196. <?php if(!empty($list)): if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
  197. <td><?php echo ($vo["id"]); ?></td>
  198. <td><?php echo ($vo["username"]); ?></td>
  199. <td><?php echo ($vo["addtime"]); ?></td>
  200. <td><?php echo ($vo["updatetime"]); ?></td>
  201. <td><?php echo ($vo['taxnum']*1); ?> USDT</td>
  202. <td>
  203. <img src="/Public/Static/payimgs/<?php echo ($vo["payimgs"]); ?>" style="height:60px;"/>
  204. </td>
  205. <td>
  206. <?php if(($vo["status"]) == "1"): ?><span style="color:blue;">等待审核</span><?php endif; ?>
  207. <?php if(($vo["status"]) == "2"): ?><span style="color:green;">审核通过</span><?php endif; ?>
  208. <?php if(($vo["status"]) == "3"): ?><span style="color:red;">驳回充值</span><?php endif; ?>
  209. </td>
  210. <td>
  211. <?php if(($vo["status"]) == "1"): ?><input type="button" class="ajax-get btn btn-primary btn-xs" value="确认" onclick="Upzr('<?php echo ($vo['id']); ?>');"/>
  212. <input type="button" class="ajax-get btn btn-primary btn-xs" value="驳回" onclick="Upbhzr('<?php echo ($vo['id']); ?>');"/><?php endif; ?>
  213. <?php if(($vo["status"]) == "2"): ?><span style="color:blue;">已处理</span><?php endif; ?>
  214. <?php if(($vo["status"]) == "3"): ?><span style="color:blue;">已处理</span><?php endif; ?>
  215. </td>
  216. </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  217. <?php else: ?>
  218. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td><?php endif; ?>
  219. </tbody>
  220. </table>
  221. <div class="page">
  222. <div><?php echo ($page); ?></div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
  228. <script type="text/javascript">
  229. +function(){
  230. //$("select").select2({dropdownCssClass: 'dropdown-inverse'});//下拉条样式
  231. layer.config({
  232. extend: 'extend/layer.ext.js'
  233. });
  234. var $window = $(window), $subnav = $("#subnav"), url;
  235. $window.resize(function(){
  236. //$("#main").css("min-height", $window.height() - 90);
  237. }).resize();
  238. /* 左边菜单高亮 */
  239. url = window.location.pathname + window.location.search;
  240. url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");
  241. $subnav.find("a[href='" + url + "']").parent().addClass("current");
  242. /* 左边菜单显示收起 */
  243. $("#subnav").on("click", "h3", function(){
  244. var $this = $(this);
  245. $this.find(".icon").toggleClass("icon-fold");
  246. $this.next().slideToggle("fast").siblings(".side-sub-menu:visible").
  247. prev("h3").find("i").addClass("icon-fold").end().end().hide();
  248. });
  249. $("#subnav h3 a").click(function(e){e.stopPropagation()});
  250. /* 头部管理员菜单 */
  251. $(".user-bar").mouseenter(function(){
  252. var userMenu = $(this).children(".user-menu ");
  253. userMenu.removeClass("hidden");
  254. clearTimeout(userMenu.data("timeout"));
  255. }).mouseleave(function(){
  256. var userMenu = $(this).children(".user-menu");
  257. userMenu.data("timeout") && clearTimeout(userMenu.data("timeout"));
  258. userMenu.data("timeout", setTimeout(function(){userMenu.addClass("hidden")}, 100));
  259. });
  260. /* 表单获取焦点变色 */
  261. $("form").on("focus", "input", function(){
  262. $(this).addClass('focus');
  263. }).on("blur","input",function(){
  264. $(this).removeClass('focus');
  265. });
  266. $("form").on("focus", "textarea", function(){
  267. $(this).closest('label').addClass('focus');
  268. }).on("blur","textarea",function(){
  269. $(this).closest('label').removeClass('focus');
  270. });
  271. // 导航栏超出窗口高度后的模拟滚动条
  272. var sHeight = $(".sidebar").height();
  273. var subHeight = $(".subnav").height();
  274. var diff = subHeight - sHeight; //250
  275. var sub = $(".subnav");
  276. }();
  277. //导航高亮
  278. function highlight_subnav(url){
  279. $('.side-sub-menu').find('a[href="'+url+'"]').closest('li').addClass('current');
  280. }
  281. function lockscreen(){
  282. layer.prompt({
  283. title: '输入一个锁屏密码',
  284. formType: 1,
  285. btn: ['锁屏','取消'] //按钮
  286. }, function(pass){
  287. if(!pass){
  288. layer.msg('需要输入一个密码!');
  289. }else{
  290. $.post("<?php echo U('Login/lockScreen');?>",{pass:pass},function(data){
  291. layer.msg(data.info);
  292. layer.close();
  293. if(data.status){
  294. window.location.href = "<?php echo U('Login/lockScreen');?>";
  295. }
  296. },'json');
  297. }
  298. });
  299. }
  300. </script>
  301. <div style="display:none;">
  302. </div>
  303. </body>
  304. </html>
  305. <script type="text/javascript">
  306. function Upbhzr(id) {
  307. var zcid = parseInt(id);
  308. if (zcid == "" || zcid == null || zcid <=0) {
  309. layer.alert('参数错误!');
  310. return false;
  311. }
  312. layer.load(0, {shade: [0.5,'#8F8F8F']});
  313. $.post("<?php echo U('Finance/rejecttax');?>", {
  314. id: zcid
  315. }, function (data) {
  316. setTimeout("closetanchu()",2000);
  317. if (data.status == 1) {
  318. layer.msg(data.info, {
  319. icon: 1
  320. });
  321. setTimeout("shuaxin()",1000);
  322. } else {
  323. layer.msg(data.info, {
  324. icon: 2
  325. });
  326. }
  327. }, "json");
  328. }
  329. </script>
  330. <script type="text/javascript">
  331. function Upzr(id) {
  332. var zcid = parseInt(id);
  333. if (zcid == "" || zcid == null || zcid <=0) {
  334. layer.alert('参数错误!');
  335. return false;
  336. }
  337. layer.load(0, {shade: [0.5,'#8F8F8F']});
  338. $.post("<?php echo U('Finance/adopttax');?>", {
  339. id: zcid
  340. }, function (data) {
  341. setTimeout("closetanchu()",2000);
  342. if (data.status == 1) {
  343. layer.msg(data.info, {
  344. icon: 1
  345. });
  346. setTimeout("shuaxin()",1000);
  347. } else {
  348. layer.msg(data.info, {
  349. icon: 2
  350. });
  351. }
  352. }, "json");
  353. }
  354. </script>
  355. <script type="text/javascript">
  356. function closetanchu(){
  357. layer.closeAll('loading');
  358. }
  359. function shuaxin(){
  360. window.location.href=window.location.href;
  361. }
  362. </script>
  363. </script>
  364. <script type="text/javascript" charset="utf-8">
  365. //导航高亮
  366. highlight_subnav("<?php echo U('Finance/taxlist');?>");
  367. </script>