<@_tradeAccountHistoryList userId=userId status=status startCreateDate=startCreateDate endCreateDate=endCreateDate 
            orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader">
    <form class="pagerForm" autocomplete="off" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/parameters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'user'/>:</label>
                    <#include "../include_page/userId.html"/>
                </li>
                <li>
                    <label><@t.page 'status'/>:</label>
                    <input type="text" name="status" value="${status!}" />
                </li>
                <li class="colspan">
                    <label><@t.page 'create_date'/>:</label>
                    <input type="text" name="startCreateDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startCreateDate!}" />
                    <span>-</span>
                    <input type="text" name="endCreateDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${endCreateDate!}" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" width="100%" layoutH>
        <thead>
            <tr>
                <th><@t.page 'id'/></th>
                <th><@t.page 'serial_number'/></th>
                <th><@t.page 'account.id'/></th>
                <th><@t.page 'user'/></th>
                <th><@t.page 'operate_user'/></th>
                <th><@t.page 'amount'/></th>
                <th><@t.page 'amount_change'/></th>
                <th><@t.page 'balance'/></th>
                <th><@t.page 'status'/></th>
                <th><@t.page 'description'/></th>
                <th orderField="createDate" class="<#if orderField??&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>"><@t.page 'create_date'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
                <@t.merge 'userIds' a.accountId!/>
                <@t.merge 'userIds' a.userId!/>
            </#list>
            <@_sysUser ids=t.userIds!><#assign userMap=map!/></@_sysUser>
            <#list page.list as a>
            <tr target="sid" rel="${a.id}">
                <td>${a.id!}</td>
                <td>${a.serialNumber!}</td>
                <td>${a.accountId!}</td>
                <td class="center">
                    ${(userMap[a.accountId?string].nickName)!}
                </td>
                <td class="center">
                    ${(userMap[a.userId?string].nickName)!}
                </td>
                <td>${a.amount!}</td>
                <td>${a.amountChange!}</td>
                <td>${a.balance!}</td>
                <td><@t.page 'status.accountHistory.'+a.status/></td>
                <td>${a.description!}</td>
                <td>${a.createDate!}</td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@_tradeAccountHistoryList>