<@log.loginList result=result userId=admin.id channel=channel loginMethod=loginMethod
            name=name startCreateDate=startCreateDate endCreateDate=endCreateDate ip=ip
            orderField=orderField orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader card">
    <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 'channel'/>:</label>
                    <input type="text" name="channel" value="${channel!}"/>
                </li>
                <li>
                    <select class="combox" name="loginMethod">
                        <option value><@t.page 'login_method'/></option>
                        <option value="password"${(loginMethod?has_content&&"password"=loginMethod)?then(' selected="true"','')?no_esc}><@t.page 'password'/></option>
                        <option value="clientAutoLogin"${(loginMethod?has_content&&"clientAutoLogin"=loginMethod)?then(' selected="true"','')?no_esc}><@t.page 'login.clientAutoLogin'/></option>
                        <option value="otpcode"${(loginMethod?has_content&&"otpcode"=loginMethod)?then(' selected="true"','')?no_esc}><@t.page 'login.2fa'/>-<@t.page 'login.otpcode'/></option>
                        <option value="fingerprint"${(loginMethod?has_content&&"fingerprint"=loginMethod)?then(' selected="true"','')?no_esc}><@t.page 'login.fingerprint'/></option>
                    </select>
                </li>
                <li>
                    <label><@t.page 'result'/>:</label>
                    <select class="combox" name="result">
                        <option value><@t.page 'please_select'/></option>
                        <option value="true"${(result?has_content&&"true"=result)?then(' selected="true"','')?no_esc}><@t.page 'success'/></option>
                        <option value="false"${(result?has_content&&"false"=result)?then(' selected="true"','')?no_esc}><@t.page 'fail'/></option>
                    </select>
                </li>
                <li>
                    <label><@t.page 'log.login_date'/>:</label>
                    <input type="text" name="startCreateDate" class="date" size="10" autocomplete="off" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startCreateDate!}"/>
                    <a class="inputDateButton" href="javascript:void(0);"></a>
                    <span>-</span>
                    <input type="text" name="endCreateDate" class="date" size="10" autocomplete="off" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d+1}" value="${endCreateDate!}"/>
                    <a class="inputDateButton" href="javascript:void(0);"></a>
                </li>
                <li>
                    <label><@t.page 'log.login_ip'/>:</label>
                    <input type="text" name="ip" value="${ip!}"/>
                </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="card">
    <table class="table" width="100%" layoutH orderField="${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th><@t.page 'channel'/></th>
                <th><@t.page 'login_method'/></th>
                <th><@t.page 'log.login_ip'/></th>
                <th><@t.page 'result'/></th>
                <th orderField="createDate"><@t.page 'log.login_date'/></th>
                <th><@t.page 'log.error_password'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr>
                <td><input name="ids" value="${a.id}" type="checkbox"></td>
                <td class="exclude-translate">${a.channel!}</td>
                <td><#if a.loginMethod?has_content><@t.page a.loginMethod?switch('otp','login.2fa','password','password','login.'+a.loginMethod)/></#if></td>
                <td>
                    <div class="box">
                        <p>${a.ip!}</p>
                        <p>${(getIpRegion(a.ip).address)!}</p>
                    </div>
                </td>
                <td><span class="statusText ${a.result?then('green','red')}">${t.pageMessage(a.result?then('success','fail'))}</span></td>
                <td>${a.createDate!}</td>
                <td class="exclude-translate">${(a.errorPassword)!}</td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@log.loginList>