@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="site_id" name="site_id" class="form-control  ui-queryString">
                <option value="">所有站点</option>
            </select>
            <select id="state" name="state" class="form-control  ui-queryString">
                <option value="">使用状态</option>
                <option value="1">使用中附件</option>
                <option value="0">未使用附件</option>
                <option value="-1">已删除的附件</option>
            </select>
            <input name="thedate" id="thedate" Maxlength="10" style="width:105px" placeholder="开始时间" class="laydate-icon form-control ui-queryString" onclick="laydate({istime:true,format:'YYYY-MM-DD'})">
            <input name="thedate" id="thedate" 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="path" name="path" placeholder="关键字" class="form-control ui-queryString ui-keyword" style="width:100px">
            <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">状态</td>
            <td align="center">大小(kb)</td>
            <td align="center">表名</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" width="30px"><input type="checkbox" id="id" name="id" value="{id}" /> </td>
            <td align="left"><a class="filepath" href="{path}" target="_blank">{path}</a></td>
            <td align="center">{state}</td>
            <td align="center">{filesize}</td>
            <td align="center">{table_name}</td>
            <td align="center">{field_name}</td>
            <td align="center">{username}</td>
            <td align="center">{thedate}</td>
            <td align="center">
                <button type="button" class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.Action("Delete")',id:'{id}'">删除</button>
            </td>
        </tr>
    </table>
</div>
<div class="zhushi"><span class="icon icon-tips"></span>删除记录将同步删除文件，对于使用中的文件，请谨慎操作。</div>
<script>
    //绑定数据
    function LoadData()
    {
        var url = "@Url.Action("PageListData")";
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
    }
    LoadData();
</script>
