@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.ActionUrl("Add")'">添加</a></li>
                            @*<li class="divider"></li>
                            <li><a href="javascript:void(0)" class="ui-deleteMultiple" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'">删除</a></li>*@
                        </ul>
                    </div>
                </div>
            </td>
            <td align="right">
                <div class="form-group">
                    <div class="controls form-inline form-group-sm">
                        <select class="form-control ui-queryString ui-setName" style="width:120px;">
                            <option value="name">站点名称</option>
                            <option value="domain">绑定域名</option>
                            <option value="directory">站点目录</option>
                        </select>

                        <input type="text" placeholder="搜索关键词" class="form-control ui-keyword ui-queryString">

                        <button type="button" class="btn btn-default btn-sm ui-queryString-search">确定</button>


                    </div>
                </div>
            </td>
        </tr>
    </table>

    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered form-inline form-group-sm" id="tb_list">
        <thead>
            <tr>
                <td align="center" style="width:40px"><input type="checkbox" title="选择" class="ui-selectInvert" data-custom-params="isReverse:false"></td>
                <td align="center">id</td>
                <td align="center">名称</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" style="width:40px"><input type="checkbox" class="checked-item" value="{id}"></td>
            <td align="center">{id}</td>
            <td align=left><a href="/e/preview/Site?id={id}" target="_blank" class="urlview" title="预览">{name}</a></td>
            <td align="center">{remark}</td>
            <td align="center">{directory}</td>
            <td align="center">{domain}</td>
            <td align="center">
                <input type="hidden" name="id" value="{id}" />
                <div class="btn-group btn-group-sm">
                    <button class="btn btn-default btn-sm ui-dialog" data-custom-params="title: '{name}-修改', url:'@Url.ActionUrl("Edit")?id={id}'">修改</button>
                    <button type="button" data-custom-params="url:'@Url.ActionUrl("Delete")',callBack:'LoadData'" class="btn btn-default btn-sm ui-deleteSingle btn_delete_is_{isDefault}">删除</button>
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    function LoadedInit() {
        $(".btn_delete_is_1").attr("disabled", "disabled");
    }
    function LoadData() {
        $("#tb_list").ListBind({ url: "@Url.ActionUrl("PageListData")?_byuser=1", callBack: "LoadedInit" });
    }
    LoadData();
</script>
