kjlist.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. <span class="h2-title">>><a href="{:U('Kuangm/kjlist')}">运行中的矿机</a></span>
  11. </div>
  12. <div class="cf">
  13. <div class="fl">
  14. <button class="btn ajax-post btn-info " url="{:U('Kuangm/userkjStatus',array('type'=>'1','mobile'=>'Admin'))}" target-form="ids">启动收益</button>
  15. <button class="btn ajax-post btn-warning " url="{:U('Kuangm/userkjStatus',array('type'=>'2','mobile'=>'Admin'))}" target-form="ids">禁止收益</button>
  16. <button class="btn ajax-post confirm btn-danger " confirm-msg="批量删除不可恢复,确定删除?" url="{:U('Kuangm/userkjStatus',array('type'=>'3','mobile'=>'Admin'))}" target-form="ids">删除矿机</button>
  17. </div>
  18. <div class="search-form fr cf" style="43px;float: none !important;">
  19. <div class="sleft">
  20. <form name="formSearch" id="formSearch" method="get" name="form1">
  21. <input type="text" name="username" class="search-input form-control" value="" placeholder="输入用户账号" />
  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="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  47. <th class="">ID</th>
  48. <th class="">会员账号</th>
  49. <th class="">类型</th>
  50. <th class="">名称</th>
  51. <th class="">图片</th>
  52. <th class="">购买时间</th>
  53. <th class="">过期时间</th>
  54. <th class="">矿机状态</th>
  55. <th class="">收益次数</th>
  56. <th class="">产出币种</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <notempty name="list">
  61. <volist name="list" id="vo">
  62. <tr>
  63. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  64. <td>{$vo.id}</td>
  65. <td>{$vo.username}</td>
  66. <td>
  67. <if condition="$vo.type eq 1">
  68. 独资
  69. <elseif condition="$vo.type eq 2" />
  70. <span>共享</span>
  71. <br />
  72. {$vo.sharebl}%
  73. </if>
  74. </td>
  75. <td>{$vo.kjtitle}</td>
  76. <td><img src="/Upload/public/{$vo.imgs}" style="height:50px;"></td>
  77. <td><?php echo date("m-d H:i",strtotime($vo['addtime']));?></td>
  78. <td><?php echo date("m-d H:i",strtotime($vo['endtime']));?></td>
  79. <td>
  80. <if condition="$vo.status eq 1">
  81. <span style="color:green;">正常</span>
  82. <elseif condition="$vo.status eq 2" />
  83. <span style="color:red;">停止</span>
  84. </if>
  85. </td>
  86. <td><?php echo ($vo['cycle'] - $vo['synum']);?>次</td>
  87. <td><?php echo strtoupper($vo['outcoin']);?></td>
  88. </tr>
  89. </volist>
  90. <else/>
  91. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  92. </notempty>
  93. </tbody>
  94. </table>
  95. <div class="page">
  96. <div>{$page}</div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <include file="Public:footer"/>
  102. <block name="script">
  103. <script type="text/javascript" charset="utf-8">
  104. //导航高亮
  105. highlight_subnav("{:U('Kuangm/kjlist')}");
  106. </script>
  107. </block>