refill.cron.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <style>
  2. th label { display: inline-block;width: 60px; }
  3. .lineLi {
  4. min-width: 150px;
  5. font-size: 12px;
  6. color:#000;
  7. }
  8. #prompt ul .noLineLi {
  9. background:none;
  10. }
  11. #prompt div {
  12. display:inline-block;
  13. background:none
  14. }
  15. #prompt ul .lineLi {
  16. color:#000;
  17. }
  18. th {
  19. width: 10px;
  20. }
  21. .txt2 {
  22. position: relative;
  23. }
  24. .btn-search {
  25. position: absolute;
  26. left: 332px;
  27. margin-top: 3px;
  28. }
  29. </style>
  30. <?php defined('InShopNC') or exit('Access Invalid!'); ?>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <h3>队列查询</h3>
  35. <ul class="tab-base">
  36. <li><a href="JavaScript:void(0);" class="current"><span>管理</span></a></li>
  37. </ul>
  38. </div>
  39. </div>
  40. <div class="fixed-empty"></div>
  41. <form method="get" action="index.php" name="formSearch" id="formSearch">
  42. <input type="hidden" name="act" value="refill_cron"/>
  43. <input type="hidden" name="op" value="index"/>
  44. <table class="tb-type1 noborder search" style="min-width:1400px">
  45. <tbody>
  46. <tr>
  47. <th><label>搜索内容</label></th>
  48. <td><input class="txt2" type="text" name="search" value="<?php echo $_GET['search']; ?>"/></td>
  49. <a href="javascript:void(0);" id="ncsubmit" class="btn-search"
  50. title="<?php echo $lang['nc_query']; ?>">&nbsp;
  51. </a>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </form>
  56. <table class="table tb-type2 nobdb" style="min-width:1400px">
  57. <thead>
  58. <tr class="thead">
  59. <th class="align-center">出队时间</th>
  60. <th class="align-center">队列名称</th>
  61. <th class="align-center">执行方法</th>
  62. <th class="align-center">机构编码</th>
  63. <th class="align-center">机构名称</th>
  64. <th class="align-center">商家单号</th>
  65. <th class="align-center">充值卡号</th>
  66. <th class="align-center">面值</th>
  67. <th class="align-center">操作</th>
  68. </thead>
  69. <tbody id="tbody">
  70. <?php if (count($output['cron']) > 0) { ?>
  71. <?php
  72. foreach ($output['cron'] as $key => $cron) { ?>
  73. <tr class="hover trFlex">
  74. <td class="align-center"><?php echo date('Y-m-d H:i:s', $cron['exetime']); ?></td>
  75. <td class="align-center"><?php echo array_key_first($cron['params']); ?></td>
  76. <?php foreach ($cron['params'] as $param){ ?>
  77. <td class="align-center"><?php echo $param['method'];?></td>
  78. <td class="align-center"><?php echo $param['params']['mchid']; ?></td>
  79. <td class="align-center"><?php echo $cron['company_name']; ?></td>
  80. <td class="align-center"><?php echo $param['params']['mch_order']; ?></td>
  81. <td class="align-center"><?php echo $param['params']['card_no']; ?></td>
  82. <td class="align-center"><?php echo $param['params']['amount']; ?></td>
  83. <?php }?>
  84. <td class="align-center">
  85. <a href="index.php?act=refill_cron&op=del&id=<?php echo $cron['id'] ?>">删除</a>
  86. </td>
  87. </tr>
  88. <?php } ?>
  89. <?php } else { ?>
  90. <tr class="no_data">
  91. <td colspan="8"><?php echo $lang['nc_no_record']; ?></td>
  92. </tr>
  93. <?php } ?>
  94. </tbody>
  95. <tfoot>
  96. <tr class="tfoot">
  97. <td colspan="8" id="dataFuncs">
  98. <div class="pagination"> <?php echo $output['show_page']; ?> </div>
  99. </td>
  100. </tr>
  101. </tfoot>
  102. </table>
  103. </div>
  104. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/laydate/laydate.js"></script>
  105. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/jquery.ui.js"></script>
  106. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/i18n/zh-CN.js"
  107. charset="utf-8"></script>
  108. <link rel="stylesheet" type="text/css"
  109. href="<?php echo RESOURCE_SITE_URL; ?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"/>
  110. <script type="text/javascript" src="<?php echo ADMIN_TEMPLATES_URL;?>/js/xm-select.js"></script>
  111. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/refill/layer.js"></script>
  112. <script type="text/javascript">
  113. $(function () {
  114. $('#ncsubmit').click(function () {
  115. $('#formSearch').submit();
  116. });
  117. // 表格hover时背景
  118. $('.trFlex').each(function () {
  119. $(this).hover(function () {
  120. $(this)[0].style.backgroundColor = '#cbe9f3'
  121. },function() {
  122. $(this)[0].style.backgroundColor = '#fff'
  123. })
  124. })
  125. })
  126. </script>