merchant.ratios.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  2. <style>
  3. .page .fixed-bar .item-title h3 {
  4. margin-top:18px !important;
  5. margin-bottom:10px !important;
  6. font-weight:700 !important;
  7. }
  8. .tab-base li span {
  9. font-size:12px !important;
  10. }
  11. .layui-form-select .layui-input {
  12. height:26px;
  13. }
  14. input::placeholder{
  15. color:#333;
  16. }
  17. </style>
  18. <div class="page">
  19. <div class="fixed-bar">
  20. <div class="item-title">
  21. <h3>成功率监控列表</h3>
  22. <ul class="tab-base">
  23. <li><a href="?index.php&act=refill_successful&op=index&type=provider"><span>通道成功率监控</span></a></li>
  24. <li><a href="?index.php&act=refill_successful&op=index&type=system"><span>平台成功率监控</span></a></li>
  25. <li><a href="JavaScript:void(0);" class="current" ><span>机构成功率统计</span></a></li>
  26. </ul>
  27. </div>
  28. </div>
  29. <div class="fixed-empty"></div>
  30. <form method="get" name="formSearch" id="formSearch" class="layui-form">
  31. <input type="hidden" value="refill_refund" name="act">
  32. <input type="hidden" value="merchant_ratios" name="op">
  33. <table class="tb-type1 noborder search">
  34. <tbody>
  35. <tr>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </form>
  40. <form method="post" id="merchant_name_form">
  41. <input type="hidden" name="form_submit" value="ok"/>
  42. <table class="table tb-type2">
  43. <thead>
  44. <tr class="thead">
  45. <th class="align-center w10pre">机构编码</th>
  46. <th class="align-center w10pre">机构名称</th>
  47. <th class="align-center w10pre">超时时间(秒)</th>
  48. <th class="align-center w15pre">15分钟</th>
  49. <th class="align-center w15pre">30分钟</th>
  50. <th class="align-center w15pre">1小时</th>
  51. <th class="align-center w10pre">2小时</th>
  52. <th class="align-center w10pre">当天</th>
  53. </thead>
  54. <tbody>
  55. <?php if (!empty($output['list']) && is_array($output['list'])) { ?>
  56. <?php foreach ($output['list'] as $k => $v) { ?>
  57. <tr class="trFlex">
  58. <td class="align-center"><?php echo $k; ?></td>
  59. <td class="align-center"><?php echo $v['company_name']; ?></td>
  60. <td class="align-center"><?php echo $v['time_out']; ?></td>
  61. <td class="align-center"><?php echo ($v['ratio'][900] * 100); ?>%</td>
  62. <td class="align-center"><?php echo ($v['ratio'][1800] * 100); ?>%</td>
  63. <td class="align-center"><?php echo ($v['ratio'][3600] * 100); ?>%</td>
  64. <td class="align-center"><?php echo ($v['ratio'][7200] * 100); ?>%</td>
  65. <td class="align-center"><?php echo ($v['ratio'][86400] * 100); ?>%</td>
  66. </tr>
  67. <?php } ?>
  68. <?php } else { ?>
  69. <tr class="no_data">
  70. <td colspan="7"><?php echo $lang['nc_no_record']; ?></td>
  71. </tr>
  72. <?php } ?>
  73. </tbody>
  74. <tfoot>
  75. <tr class="tfoot">
  76. <td></td>
  77. <td colspan="7">
  78. <div class="pagination"><?php echo $output['show_page']; ?></div>
  79. </td>
  80. </tr>
  81. </tfoot>
  82. </table>
  83. </form>
  84. </div>
  85. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.edit.js" charset="utf-8"></script>
  86. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  87. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
  88. <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
  89. <script>
  90. $(function () {
  91. // 日期选择器
  92. laydate.render({
  93. elem: '#startTime',
  94. type: 'datetime'
  95. });
  96. laydate.render({
  97. elem: '#endTime',
  98. type: 'datetime'
  99. });
  100. $('#ncsubmit').click(function () {
  101. $('#formSearch').submit();
  102. });
  103. // 表格hover时背景
  104. $('.trFlex').each(function () {
  105. $("tbody>tr:odd").css("background-color","#FEF2E8");
  106. $("tbody>tr:even").css("background-color","#ebf1de");
  107. $(this).hover(function () {
  108. $(this)[0].style.backgroundColor = '#cbe9f3'
  109. },function() {
  110. $("tbody>tr:odd").css("background-color","#FEF2E8");
  111. $("tbody>tr:even").css("background-color","#ebf1de");
  112. })
  113. })
  114. // 导出
  115. $('#ncexport').click(function () {
  116. $('input[name="export"]').val('1');
  117. $('input[name="op"]').val('index');
  118. $('#formSearch').submit();
  119. $('input[name="export"]').val('');
  120. var ii = layer.load();
  121. setTimeout(function(){
  122. layer.close(ii);
  123. }, 800);
  124. })
  125. });
  126. </script>