@model string
<div class="current-location">
    <ul>
        <li class="left"><i class="glyphicon glyphicon-home"></i><a href="javascript:void(0)" onclick="location.href=location.href">登录锁定记录</a></li>
        <li class="right"><a href="javascript:void(0)" onclick="LoadData()" title="刷新"><span class="glyphicon glyphicon-refresh"></span></a></li>
    </ul>
</div>
<div class="main">
    <table class="tb-head" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="left form-group-sm form-inline">
                <div class="btn-group">
                    <button type="button" class="btn btn-default btn-sm ui-selectInvert">反选</button>
                    <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false">
                        菜单
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'">删除</a></li>
                    </ul>
                </div>
            </td>
            <td class="right form-group-sm">
                <div class="controls form-inline">
                    <select class="form-control ui-setName" style="width:120px;">
                        <option value="username">用户名</option>
                        <option value="ip">ip</option>
                        <option value="thedate" valuetype="date" searchtype="range">登录时间</option>
                        <option value="expireDate" valuetype="date" searchtype="range">过期时间</option>
                    </select>
                    <input type="text" style="width:120px" placeholder="搜索关键词" class="form-control ui-keyword ui-queryString">
                    <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>
                </div>
            </td>
    </table>
    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered" id="tb_list">
        <thead>
            <tr>
                <td align="center" width="30px"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
                <td align="center">用户</td>
                <td align="center">IP</td>
                <td align="center">锁定类型</td>
                <td align="center">锁定时间</td>
                <td align="center">解锁时间</td>
                <td align="center">管理</td>
            </tr>
        </thead>
        <tr class="item list-template-item" id="item_{id}">
            <td align="center"><input type="checkbox" value="{id}" class="checked-item"></td>
            <td align="center">{username}</td>
            <td align="center">{ip}</td>
            <td align="center">{lockType}</td>
            <td align="center">{thedate}</td>
            <td align="center">{expireDate}</td>
            <td align="center">
                <input type="hidden" name="id" value="{id}" />
                <button class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'">删除</button>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    function LoadData() {
        var url = "@Url.ActionUrl("PageListData")";
        $("#tb_list").ListBind({ url: url });
    }
    LoadData();
</script>
