myzr.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <include file="Public:header"/>
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">充币列表</span>
  10. <div class="fr">
  11. <button class="btn btn-warning" onClick="location.href='{:U('Finance/myzr')}'">初始化搜索</button>
  12. </div>
  13. </div>
  14. <div class="cf">
  15. <div class="search-form fl cf" style="float: none !important;">
  16. <div class="sleft">
  17. <form name="formSearch" id="formSearch" method="get" name="form1">
  18. <select style=" width: 100px; float: left; margin-right: 10px;" name="field" class="form-control">
  19. <option value="username" <eq name="Think.get.field" value="username">selected</eq>>用户名</option>
  20. </select>
  21. <input type="text" name="name" class="search-input form-control " value="{$Think.get.name}" placeholder="请输入查询内容" style="">
  22. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  23. </form>
  24. <script>
  25. //搜索功能
  26. $(function () {
  27. $('#search').click(function () {
  28. $('#formSearch').submit();
  29. });
  30. });
  31. //回车搜索
  32. $(".search-input").keyup(function (e) {
  33. if (e.keyCode === 13) {
  34. $("#search").click();
  35. return false;
  36. }
  37. });
  38. </script>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="data-table table-striped">
  43. <table class="">
  44. <thead>
  45. <tr>
  46. <th class="">ID</th>
  47. <th class="">用户名</th>
  48. <th class="">充值币种</th>
  49. <th width="">充值时间</th>
  50. <th width="">处理时间</th>
  51. <th width="">充值数量</th>
  52. <th width="">实际到账</th>
  53. <th width="">转账凭证</th>
  54. <th width="">状态</th>
  55. <th width="">操作</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <notempty name="list">
  60. <volist name="list" id="vo">
  61. <tr>
  62. <td>{$vo.id}</td>
  63. <td>{$vo.username}</td>
  64. <td><?php echo strtoupper($vo['coin']);?></td>
  65. <td>{$vo.addtime}</td>
  66. <td>{$vo.updatetime}</td>
  67. <td>{$vo['num']*1}</td>
  68. <td>{$vo['num']*1}</td>
  69. <td>
  70. <a target="_blank" href="/Public/Static/payimgs/{$vo.payimg}">
  71. <img src="/Public/Static/payimgs/{$vo.payimg}" style="height:60px;"/></a>
  72. </td>
  73. <td>
  74. <eq name="vo.status" value="1">
  75. <span style="color:blue;">等待审核</span>
  76. </eq>
  77. <eq name="vo.status" value="2">
  78. <span style="color:green;">审核通过</span>
  79. </eq>
  80. <eq name="vo.status" value="3">
  81. <span style="color:red;">驳回充值</span>
  82. </eq>
  83. </td>
  84. <td>
  85. <eq name="vo.status" value="1">
  86. <input type="button" class="ajax-get btn btn-primary btn-xs" value="确认" onclick="Upzr('{$vo['id']}');"/>
  87. <input type="button" class="ajax-get btn btn-primary btn-xs" value="驳回" onclick="Upbhzr('{$vo['id']}');"/>
  88. </eq>
  89. <eq name="vo.status" value="2"><span style="color:blue;">已处理</span></eq>
  90. <eq name="vo.status" value="3"><span style="color:blue;">已处理</span></eq>
  91. </td>
  92. </tr>
  93. </volist>
  94. <else/>
  95. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  96. </notempty>
  97. </tbody>
  98. </table>
  99. <div class="page">
  100. <div>{$page}</div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <include file="Public:footer"/>
  106. <script type="text/javascript">
  107. $(function(){
  108. $('.active').onclick(function(){
  109. $('#bg').show();$('#div').show();
  110. });
  111. $('#div').onclick(function(){
  112. $('#bg').hide();$('#div').hide();
  113. });
  114. });
  115. function Upbhzr(id) {
  116. var zcid = parseInt(id);
  117. if (zcid == "" || zcid == null || zcid <=0) {
  118. layer.alert('参数错误!');
  119. return false;
  120. }
  121. layer.load(0, {shade: [0.5,'#8F8F8F']});
  122. $.post("{:U('Finance/rejectzr')}", {
  123. id: zcid
  124. }, function (data) {
  125. setTimeout("closetanchu()",2000);
  126. if (data.status == 1) {
  127. layer.msg(data.info, {
  128. icon: 1
  129. });
  130. setTimeout("shuaxin()",1000);
  131. } else {
  132. layer.msg(data.info, {
  133. icon: 2
  134. });
  135. }
  136. }, "json");
  137. }
  138. </script>
  139. <script type="text/javascript">
  140. function Upzr(id) {
  141. var zcid = parseInt(id);
  142. if (zcid == "" || zcid == null || zcid <=0) {
  143. layer.alert('参数错误!');
  144. return false;
  145. }
  146. layer.load(0, {shade: [0.5,'#8F8F8F']});
  147. $.post("{:U('Finance/adoptzr')}", {
  148. id: zcid
  149. }, function (data) {
  150. setTimeout("closetanchu()",2000);
  151. if (data.status == 1) {
  152. layer.msg(data.info, {
  153. icon: 1
  154. });
  155. setTimeout("shuaxin()",1000);
  156. } else {
  157. layer.msg(data.info, {
  158. icon: 2
  159. });
  160. }
  161. }, "json");
  162. }
  163. </script>
  164. <script type="text/javascript">
  165. function closetanchu(){
  166. layer.closeAll('loading');
  167. }
  168. function shuaxin(){
  169. window.location.href=window.location.href;
  170. }
  171. </script>
  172. </script>
  173. <block name="script">
  174. <script type="text/javascript" charset="utf-8">
  175. //导航高亮
  176. highlight_subnav("{:U('Finance/myzr')}");
  177. </script>
  178. </block>