@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">
    <ul class="clearfix">
        <li class="left">
            <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.Action("Delete")'">删除</a></li>
                </ul>
            </div>
        </li>
        <li class="right form-group-sm form-inline">
            <select id="s_type" class="form-control ui-queryString option_jj">
                <option value="">所有类型</option>
                <option value="master">后台登录</option>
                <option value="member">会员登录</option>
            </select>
            <select id="s_order" class="form-control ui-queryString option_jj">
                <option value="id desc">按时间↓</option>
                <option value="id asc">按时间↑</option>
            </select>
            <input name="StartDate" id="StartDate" Maxlength="10" style="width:105px" placeholder="开始时间" class="laydate-icon form-control ui-queryString" onclick="laydate({istime:true,format:'YYYY-MM-DD'})">
            <input name="EndDate" id="EndDate" Maxlength="10" style="width:105px" placeholder="接受时间" class="laydate-icon form-control ui-queryString" onclick="laydate({istime:true,format:'YYYY-MM-DD'})">
            <input type="text" id="s_keyword" placeholder="IP地址" class="form-control ui-queryString">
            <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>
        </li>
    </ul>
    <span class="help-block"></span>
    <table border=0 cellpadding=0 cellspacing=0 width=100% class="table table-bordered" id="tb_list">
        <thead><tr>
            <td align="center" width="30px">选择</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>
        <tr class="item" id="item_{id}">
            <td align="center"><input type="checkbox" id="id" name="id" value="{id}"></td>
            <td align="center">{is_admin}</td>
            <td align="center">{ip}</td>
            <td align="center">{thedate}</td>
            <td align="center">{username}</td>
            <td align="center">{error_nums}</td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.Action("Delete")',id:'{id}'">删除</a>
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    function LoadData()
    {
        var url = "@Url.Action("PageListData")";
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
    }
    LoadData();
</script>
