@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 border=0 cellpadding=0 cellspacing=0 class="tb-head">
        <tr>
            <td>
                <div class="btn-group btn-group-sm">
                    <button type="button" class="btn btn-default ui-selectInvert">反选</button>
                    <div class="btn-group btn-group-sm">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            菜单<span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="javascript:void(0)" class="ui-dialog" data-custom-params="title:'添加',url:'@Url.Action("Add")',width:'680px',height:'90%'">添加</a></li>
                            <li class="divider"></li>
                            <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.Action("Delete")'">删除</a></li>
                        </ul>
                    </div>
                </div>
            </td>
        </tr>
    </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" width="20%">名称</td>
            <td align="center" width="10%">类型</td>
            <td align="center" width="10%">创建人</td>
            <td align="center" width="12%">创建时间</td>
            <td align="center" width="10%">状态</td>
            <td align="center" width="10%">内容规则</td>
            <td align="center" width="10%">临时内容</td>
            <td align="center" width="15%">管理</td>
        </tr>
        <tr class="item form-group-sm" id="item_{id}">
            <td align="center"><input type="checkbox" id="id" name="id" value="{id}"/></td>
            <td align="center">{name}</td>
            <td align="center">
                <span class="ui-convertTextById InfoTable" data-custom-params="url:'@Url.Action("GetFieldByIds", "InfoTable")',textField:'remark'">{table_id}</span>
            </td>
            <td align="center">
                <span class="ui-convertTextById Member" data-custom-params="url:'@Url.Action("GetFieldByIds", "Member")',textField:'username'">{uid}</span>
            </td>
            <td align="center">{thedate}</td>
            <td align="center" class="state">{state}</td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'采集配置',url:'@Url.Action("DetailRule")?id={id}',width:'80%',height:'90%'">采集配置</a>
                </div>            
            </td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'临时内容',url:'@Url.Action("Index","CollectionContent")?collection_id={id}',width:'90%',height:'95%'">临时内容</a>
                </div>
            </td>
            <td align="center">
                <div class="btn-group btn-group-sm">
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'{name}-修改',url:'@Url.Action("Edit")?id={id}',width:'680px',height:'90%'">修改</a>
                    <a href="javascript:void(0)" class="btn btn-default btn-sm ui-deleteSingle" data-custom-params="url:'@Url.Action("Delete")',id:'{id}',callBack:'CallBack'">删除</a>
                </div>
            </td>
        </tr>
    </table>
</div>

<script type="text/javascript">
    //绑定数据
    function LoadData()
    {
        var url = "@Url.Action("PageListData")";
        $("#tb_list").ListBind(url, {callBack: "LoadedInit" });
        ConvertText($(".InfoTable"));
        ConvertText($(".Member"));
        Replace(".state", "未采集", "采集完毕")
    }
    LoadData();


</script>
