tyjclist.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <title>代理中心</title>
  7. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/vendor/bootstrap/css/bootstrap.min.css">
  8. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/base.css" media="all">
  9. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css" media="all">
  10. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/module.css">
  11. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/style.css" media="all">
  12. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/default_color.css" media="all">
  13. <script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.min.js"></script>
  14. <script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
  15. <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/flat-ui.css">
  16. <script src="__PUBLIC__/Admin/js/flat-ui.min.js"></script>
  17. <script src="__PUBLIC__/Admin/js/application.js"></script>
  18. </head>
  19. <body style="margin:0px;padding:0px; margin-top:100px;">
  20. <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  21. <div class="navbar-header" style="background-color:#3c434d;">
  22. <a class="navbar-brand" style="width:200px;text-align:center;background-color:#3c434d;" href="{:U('Agent/Index/index')}">
  23. <span>代理系统</span>
  24. </a>
  25. </div>
  26. <div class="navbar-collapse collapse">
  27. <ul class="nav navbar-nav">
  28. <li>
  29. <a href="{:U('Agent/Index/index')}">会员列表</a>
  30. </li>
  31. <li>
  32. <a href="{:U('Agent/Index/jclist')}">合约建仓订单</a>
  33. </li>
  34. <li>
  35. <a href="{:U('Agent/Index/pclist')}">合约平仓订单</a>
  36. </li>
  37. <li class="active">
  38. <a href="{:U('Agent/Index/tyjclist')}">体验单建仓订单</a>
  39. </li>
  40. <li>
  41. <a href="{:U('Agent/Index/typclist')}">体验单平仓订单</a>
  42. </li>
  43. <li>
  44. <a href="{:U('Agent/Index/czlist')}">充值记录</a>
  45. </li>
  46. <li>
  47. <a href="{:U('Agent/Index/txlist')}">提币记录</a>
  48. </li>
  49. </ul>
  50. <ul class="nav navbar-nav navbar-rights" style="margin-right:10px;">
  51. <li>
  52. <a class="dropdown-toggle" title="退出" href="{:U('Agent/Login/loginout')}" target="_blank">
  53. <span class="glyphicon glyphicon-share" aria-hidden="true"></span>
  54. </a>
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. <div id="main-content">
  60. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  61. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  62. <div class="alert-content">警告内容</div>
  63. </div>
  64. <div id="main" class="main">
  65. <div class="main-title-h">
  66. <span class="h1-title">合约建仓订单列表</span>
  67. <a class="btn btn-warning" onClick="location.href='{:U('Agent/Index/jclist')}'">初始化搜索</a>
  68. <!--<span class="h1-title" style="color:red;">{:L('如果用户ID被指定盈亏,不受单控影响')}</span>-->
  69. </div>
  70. <div class="cf">
  71. <div class="search-form fr cf" style="43px;float: none !important;">
  72. <div class="sleft">
  73. <form name="formSearch" id="formSearch" method="get" name="form1">
  74. <input type="text" name="username" class="search-input form-control" value="" placeholder="请输入邮箱账号" />
  75. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  76. </form>
  77. <script>
  78. //搜索功能
  79. $(function () {
  80. $('#search').click(function () {
  81. $('#formSearch').submit();
  82. });
  83. });
  84. //回车搜索
  85. $(".search-input").keyup(function (e) {
  86. if (e.keyCode === 13) {
  87. $("#search").click();
  88. return false;
  89. }
  90. });
  91. </script>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="data-table table-striped">
  96. <table class="">
  97. <thead>
  98. <tr>
  99. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  100. <th class="">ID</th>
  101. <th class="">会员账号</th>
  102. <th class="">交易对</th>
  103. <th class="">方向</th>
  104. <th class="">状态</th>
  105. <th class="">委托额度</th>
  106. <th class="">建仓单价</th>
  107. <th class="">平仓单价</th>
  108. <th class="">建仓时间</th>
  109. <th class="">盈亏金额</th>
  110. <!--<th class="">{:L('单控操作')}</th>-->
  111. </tr>
  112. </thead>
  113. <tbody>
  114. <notempty name="list">
  115. <volist name="list" id="vo">
  116. <tr>
  117. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  118. <td>{$vo.id}</td>
  119. <td>{$vo.username}</td>
  120. <td>{$vo.coinname}</td>
  121. <td>
  122. <if condition="$vo.hyzd eq 1">
  123. <span style="color:#0ecb81;">买涨</span>
  124. <elseif condition="$vo.hyzd eq 2" />
  125. <span style="color:#f5465c;">买跌</span>
  126. </if>
  127. </td>
  128. <td>
  129. <if condition="$vo.status eq 1">
  130. <span style="color:#707A8A;">待结算</span>
  131. <elseif condition="$vo.status eq 2" />
  132. <span style="color:#0ecb81;">已完成</span>
  133. <elseif condition="$vo.status eq 3" />
  134. <span style="color:#f5465c;">无效</span>
  135. </if>
  136. </td>
  137. <td>{$vo.num}</td>
  138. <td>{$vo.buyprice}</td>
  139. <td>
  140. <if condition="$vo.is_win eq 0">
  141. <span style="color:#707A8A;">{$vo.sellprice}</span>
  142. <elseif condition="$vo.is_win eq 1" />
  143. <span style="color:#0ecb81;">{$vo.sellprice}</span>
  144. <elseif condition="$vo.is_win eq 2" />
  145. <span style="color:#f5465c;">{$vo.sellprice}</span>
  146. </if>
  147. </td>
  148. <td>{$vo.buytime}</td>
  149. <td>
  150. <if condition="$vo.is_win eq 0">
  151. <span style="color:#707A8A;">{$vo.ploss}</span>
  152. <elseif condition="$vo.is_win eq 1" />
  153. <span style="color:#0ecb81;">+{$vo.ploss}</span>
  154. <elseif condition="$vo.is_win eq 2" />
  155. <span style="color:#f5465c;">-{$vo.ploss}</span>
  156. </if>
  157. </td>
  158. <!--<td>-->
  159. <!-- <select name="kongyk" id="kongyk" style="width:60px;" onchange="setwinloss({$vo.id});">-->
  160. <!-- <option value="0" <?php if($vo['kongyk'] == 0){?>selected<?php }?>>正常</option>-->
  161. <!-- <option value="1" <?php if($vo['kongyk'] == 1){?>selected<?php }?>>盈利</option>-->
  162. <!-- <option value="2" <?php if($vo['kongyk'] == 2){?>selected<?php }?>>亏损</option>-->
  163. <!-- </select>-->
  164. <!--</td>-->
  165. </tr>
  166. </volist>
  167. <else/>
  168. <td colspan="12" class="text-center empty-info">
  169. <i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据
  170. </td>
  171. </notempty>
  172. </tbody>
  173. </table>
  174. <div class="page">
  175. <div>{$page}</div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>
  181. <script type="text/javascript">
  182. $(function(){
  183. setInterval("tzfc()",2000);
  184. });
  185. function tzfc(){
  186. var st = 1;
  187. $.post("{:U('Admin/Trade/gethyorder')}",
  188. {'st':st},
  189. function(data){
  190. if(data.code == 1){
  191. layer.confirm('有新的合约订单', {
  192. btn: ['知道了'] //按钮
  193. }, function(){
  194. $.post("{:U('Admin/Trade/settzstatus')}",
  195. function(data){
  196. if(data.code == 1){
  197. window.location.reload();
  198. }
  199. });
  200. });
  201. }
  202. });
  203. }
  204. </script>
  205. <script type="text/javascript">
  206. function setwinloss(id){
  207. var id = id;
  208. var kongyk = $("#kongyk").val();
  209. $.post("{:U('Agent/Index/setwinloss')}",
  210. {'id':id,'kongyk':kongyk},
  211. function(data){
  212. if(data.code == 1){
  213. alert(data.info);
  214. setTimeout(function(){
  215. window.location.reload();
  216. },2000);
  217. }else{
  218. alert(data.info);
  219. setTimeout(function(){
  220. window.location.reload();
  221. },2000);
  222. }
  223. });
  224. }
  225. </script>