| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <include file="Public:header"/>
- <div id="main-content">
- <div id="top-alert" class="fixed alert alert-error" style="display: none;">
- <button class="close fixed" style="margin-top: 4px;">×</button>
- <div class="alert-content">警告内容</div>
- </div>
- <div id="main" class="main">
- <div class="main-title-h">
- <span class="h1-title">合约订单平仓记录</span>
- </div>
- <div class="cf">
- <div class="search-form fr cf" style="43px;float: none !important;">
- <div class="sleft">
- <form name="formSearch" id="formSearch" method="get" name="form1">
- <input type="text" name="invit" class="search-input form-control" value="<?php if(isset($_GET['invit'])){ echo $_GET['invit'];}?>" placeholder="请输入用户名" />
- <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
- </form>
- <script>
- //搜索功能
- $(function () {
- $('#search').click(function () {
- $('#formSearch').submit();
- });
- });
- //回车搜索
- $(".search-input").keyup(function (e) {
- if (e.keyCode === 13) {
- $("#search").click();
- return false;
- }
- });
- </script>
- </div>
- </div>
- </div>
- <div class="data-table table-striped">
- <table class="">
- <thead>
- <tr>
- <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
- <th class="">ID</th>
- <th class="">会员账号</th>
- <th class="">交易对</th>
- <th class="">方向</th>
- <th class="">状态</th>
- <th class="">委托额度</th>
- <th class="">建仓单价</th>
- <th class="">平仓单价</th>
- <th class="">建仓时间</th>
- <th class="">盈亏金额</th>
- </tr>
- </thead>
- <tbody>
- <notempty name="list">
- <volist name="list" id="vo">
- <tr>
- <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
- <td>{$vo.id}</td>
- <td>{$vo.username}</td>
- <td>{$vo.coinname}</td>
- <td>
- <if condition="$vo.hyzd eq 1">
- <span style="color:#0ecb81;">买涨</span>
- <elseif condition="$vo.hyzd eq 2" />
- <span style="color:#f5465c;">买跌</span>
- </if>
- </td>
- <td>
- <if condition="$vo.status eq 1">
- <span style="color:#707A8A;">待结算</span>
- <elseif condition="$vo.status eq 2" />
- <span style="color:#0ecb81;">已完成</span>
- <elseif condition="$vo.status eq 3" />
- <span style="color:#f5465c;">无效</span>
- </if>
- </td>
- <td>{$vo.num}</td>
- <td>{$vo.buyprice}</td>
- <td>
- <if condition="$vo.is_win eq 0">
- <span style="color:#707A8A;">{$vo.sellprice}</span>
- <elseif condition="$vo.is_win eq 1" />
- <span style="color:#0ecb81;">{$vo.sellprice}</span>
- <elseif condition="$vo.is_win eq 2" />
- <span style="color:#f5465c;">{$vo.sellprice}</span>
- </if>
- </td>
-
- <td>{$vo.buytime}</td>
- <td>
- <if condition="$vo.is_win eq 0">
- <span style="color:#707A8A;">{$vo.ploss}</span>
- <elseif condition="$vo.is_win eq 1" />
- <span style="color:#0ecb81;">+{$vo.ploss}</span>
- <elseif condition="$vo.is_win eq 2" />
- <span style="color:#f5465c;">-{$vo.ploss}</span>
- </if>
- </td>
- </tr>
- </volist>
- <else/>
- <td colspan="12" class="text-center empty-info">
- <i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据
- </td>
- </notempty>
- </tbody>
- </table>
- <div class="page">
- <div>{$page}</div>
- </div>
- </div>
- </div>
- </div>
- <include file="Public:footer"/>
- <block name="script">
- <script type="text/javascript" charset="utf-8">
- //导航高亮
- highlight_subnav("{:U('Trade/hylog')}");
- </script>
- </block>
|