123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?php defined('InShopNC') or exit('Access Invalid!'); ?>
- <style>
- .page .fixed-bar .item-title h3 {
- margin-top:18px !important;
- margin-bottom:10px !important;
- font-weight:700 !important;
- }
- .tab-base li span {
- font-size:12px !important;
- }
- .layui-form-select .layui-input {
- height:26px;
- }
- input::placeholder{
- color:#333;
- }
- </style>
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <h3>成功率监控列表</h3>
- <ul class="tab-base">
- <li><a href="?index.php&act=refill_successful&op=index&type=provider"><span>通道成功率监控</span></a></li>
- <li><a href="?index.php&act=refill_successful&op=index&type=system"><span>平台成功率监控</span></a></li>
- <li><a href="JavaScript:void(0);" class="current" ><span>机构成功率统计</span></a></li>
- </ul>
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form method="get" name="formSearch" id="formSearch" class="layui-form">
- <input type="hidden" value="refill_refund" name="act">
- <input type="hidden" value="merchant_ratios" name="op">
- <table class="tb-type1 noborder search">
- <tbody>
- <tr>
- </tr>
- </tbody>
- </table>
- </form>
- <form method="post" id="merchant_name_form">
- <input type="hidden" name="form_submit" value="ok"/>
- <table class="table tb-type2">
- <thead>
- <tr class="thead">
- <th class="align-center w10pre">机构编码</th>
- <th class="align-center w10pre">机构名称</th>
- <th class="align-center w10pre">超时时间(秒)</th>
- <th class="align-center w15pre">15分钟</th>
- <th class="align-center w15pre">30分钟</th>
- <th class="align-center w15pre">1小时</th>
- <th class="align-center w10pre">2小时</th>
- <th class="align-center w10pre">当天</th>
- </thead>
- <tbody>
- <?php if (!empty($output['list']) && is_array($output['list'])) { ?>
- <?php foreach ($output['list'] as $k => $v) { ?>
- <tr class="trFlex">
- <td class="align-center"><?php echo $k; ?></td>
- <td class="align-center"><?php echo $v['company_name']; ?></td>
- <td class="align-center"><?php echo $v['time_out']; ?></td>
- <td class="align-center"><?php echo ($v['ratio'][900] * 100); ?>%</td>
- <td class="align-center"><?php echo ($v['ratio'][1800] * 100); ?>%</td>
- <td class="align-center"><?php echo ($v['ratio'][3600] * 100); ?>%</td>
- <td class="align-center"><?php echo ($v['ratio'][7200] * 100); ?>%</td>
- <td class="align-center"><?php echo ($v['ratio'][86400] * 100); ?>%</td>
- </tr>
- <?php } ?>
- <?php } else { ?>
- <tr class="no_data">
- <td colspan="7"><?php echo $lang['nc_no_record']; ?></td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td></td>
- <td colspan="7">
- <div class="pagination"><?php echo $output['show_page']; ?></div>
- </td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery.edit.js" charset="utf-8"></script>
- <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
- <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/layui/layui.js"></script>
- <link rel="stylesheet" type="text/css" href="<?php echo ADMIN_TEMPLATES_URL; ?>/layui/css/layui.css"/>
- <script>
- $(function () {
- // 日期选择器
- laydate.render({
- elem: '#startTime',
- type: 'datetime'
- });
- laydate.render({
- elem: '#endTime',
- type: 'datetime'
- });
- $('#ncsubmit').click(function () {
- $('#formSearch').submit();
- });
- // 表格hover时背景
- $('.trFlex').each(function () {
- $("tbody>tr:odd").css("background-color","#FEF2E8");
- $("tbody>tr:even").css("background-color","#ebf1de");
- $(this).hover(function () {
- $(this)[0].style.backgroundColor = '#cbe9f3'
- },function() {
- $("tbody>tr:odd").css("background-color","#FEF2E8");
- $("tbody>tr:even").css("background-color","#ebf1de");
- })
- })
- // 导出
- $('#ncexport').click(function () {
- $('input[name="export"]').val('1');
- $('input[name="op"]').val('index');
- $('#formSearch').submit();
- $('input[name="export"]').val('');
- var ii = layer.load();
- setTimeout(function(){
- layer.close(ii);
- }, 800);
- })
-
- });
- </script>
|