@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 left">
                <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_site" class="form-control ui-queryString option_jj">
                <option value="">所有站点</option>
                <%=SiteList%>
            </select>
            <select id="s_type" class="form-control ui-queryString option_jj">
                <option value="">所有类型</option>
                <option value="login">登录日志</option>
                <option value="add">增加日志</option>
                <option value="edit">编辑日志</option>
                <option value="delete">删除日志</option>
                <option value="issue">签发日志</option>
                <option value="sign">签收日志</option>
                <option value="send">发送日志</option>
                <option value="autotask">计划任务</option>
                <option value="else">其他日志</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'})">
            @*<select id="s_field" class="form-control ui-queryString ui-setName">
                <option value="username">按用户名</option>
                <option value="description">按描述</option>
            </select>
            <input type="text" id="s_keyword" class="form-control ui-queryString ui-keyword" placeholder="关键字">*@
            <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">
        <thead><tr>
            <td align="center"  style="width:40px">选择</td>
            <td align="center">操作</td>
            <td align="center" width="40%">描述</td>
            <td align="center">时间</td>
            <td align="center">ip</td>
            <td align="center">用户</td>
            <td align="center">状态</td>
            <td align="center">管理</td>
        </tr>
        <tr class="item" id="item_{id}">
            <td align="center" width="30px"><input type="checkbox" id="id" name="id" value="{id}"></td>
            <td align=left>{thetype}</td>
            <td><a href='{url}'  width="40%" target="new">{description}</a></td>
            <td align="center">{thedate}</td>
            <td align="center">{ip}</td>
            <td align="center"><a href='{username}'>{username}</a></td>
            <td align="center">{state}</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 class="pagearea ui-pagePanel" data-custom-params="@Html.Raw(ViewBag.PageInfo)"></div>
</div>
<script type="text/javascript">
    var serverData=eval(@Html.Raw(Model??"null"));
    $(".item").ListBind(serverData);
</script>




