4a69c5053cc75acd9f20b688d4b5203f.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php /*a:3:{s:62:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance\tongji.html";i:1591348891;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title><?php echo config('admin.sys_name'); ?>后台管理</title>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="apple-mobile-web-app-capable" content="yes">
  12. <meta name="format-detection" content="telephone=no">
  13. <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
  14. <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
  15. <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
  16. <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
  17. <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
  18. <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
  19. <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
  20. <!--[if lt IE 9]>
  21. <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
  22. <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
  23. <!--<![endif]&ndash;&gt;-->
  24. <style id="LM-bg-color">
  25. </style>
  26. </head>
  27. <style>
  28. .upload-wrap {
  29. position: relative;
  30. display: inline-block;
  31. overflow: hidden;
  32. border: 1px solid #2d78f4;
  33. border-radius: 3px;
  34. }
  35. .upload-wrap .file-ele {
  36. position: absolute;
  37. top: 0;
  38. right: 0;
  39. opacity: 0;
  40. height: 100%;
  41. width: 100%;
  42. cursor: pointer;
  43. }
  44. .upload-wrap .file-open {
  45. width: 90px;
  46. height: 30px;
  47. line-height: 30px;
  48. text-align: center;
  49. color: #fff;
  50. background: #3385ff;
  51. }
  52. </style>
  53. <div class="LM-container">
  54. <div class="LM-main">
  55. <fieldset class="layui-elem-field layui-field-title">
  56. <legend>财务统计</legend>
  57. <blockquote class="layui-elem-quote">
  58. <div class="LM-table">
  59. </div>
  60. </blockquote>
  61. </fieldset>
  62. <table class="layui-table" id="list" lay-filter="list">
  63. </table>
  64. </div>
  65. </div>
  66. <script type="text/html" id="image">
  67. {{# layui.each(d.image, function(index, item){ }}
  68. <img src="/static/admin/images/image.gif" onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
  69. {{# });
  70. }}
  71. </script>
  72. <script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
  73. <!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
  74. <script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  75. <script>
  76. layui.use(['form', 'table'], function () {
  77. var $ = layui.jquery,
  78. form = layui.form,
  79. table = layui.table;
  80. var tableIn = table.render({
  81. elem: '#list',
  82. url: '<?php echo url("tongji"); ?>',
  83. method: 'post',
  84. title: '反馈意见',
  85. loading: true,
  86. toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
  87. defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
  88. title: '提示'
  89. , layEvent: 'LAYTABLE_TIPS'
  90. , icon: 'layui-icon-tips'
  91. }],
  92. cols: [[
  93. // {checkbox: true, fixed: true},
  94. {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
  95. {field: 'user_id', title: '用户id', width: 120, sort: true},
  96. {field: 'user_name', title: '用户', width: 120, sort: true},
  97. {field: 'name', title: '说明', width: 300, sort: true},
  98. {field: 'money', title: '金额', width: 120, sort: true},
  99. {field: 'status', title: '0 增加1 减少', width:200, sort: true},
  100. ]],
  101. limits: [10, 15, 20, 25, 50, 100],
  102. limit: 10,
  103. page: true
  104. });
  105. table.on('tool(list)', function (obj) {
  106. var data = obj.data;
  107. let event = obj.event;
  108. switch (event) {
  109. case "check":
  110. layer.confirm('确定要进行这样的操作码', function (index) {
  111. loading = layer.load(1, {shade: [0.1, '#fff']});
  112. $.post("<?php echo url('status'); ?>", {id: data.id}, function (res) {
  113. layer.close(loading);
  114. layer.close(index);
  115. if (res.code == 1) {
  116. layer.msg(res.msg, {time: 1000, icon: 1});
  117. tableIn.reload();
  118. } else {
  119. layer.msg(res.msg, {time: 1000, icon: 2});
  120. }
  121. }, "json")
  122. })
  123. break;
  124. }
  125. });
  126. form.on('switch(status)', function (data) {
  127. });
  128. $('#search').click(function () {
  129. var $keys = $('#name').val();
  130. if (!$keys) {
  131. return layer.msg('请输入关键词');
  132. }
  133. tableIn.reload({page: {page: 1}, where: {name: $keys}});
  134. })
  135. // setInterval(function () {
  136. // tableIn.reload();
  137. // }, 50000)
  138. });
  139. </script>