<%@ Page Language="c#" Inherits="WebApp.Wpdcc.WebOperate" CodeBehind="WebOperate.aspx.cs" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>网站清除恢复控制</title>
    <meta name="description" content="overview &amp; stats" />
    <!--#include file = "../assets/head.htm" -->
    

</head>
<body class="no-skin">
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    主页
                </li>
                <li>站点管理</li>
                <li class="active">站点删除撤销（回收站）</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->

        <div class="page-content">
            <!-- PAGE CONTENT BEGINS -->

            <form id="frmWebControl" method="post" runat="server">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:DataGrid ID="webList" CssClass="table table-striped table-bordered" DataKeyField="pkID" Width="100%" AutoGenerateColumns="False"
                            runat="server" OnItemCommand="webList_ItemCommand" OnItemDataBound="webList_ItemDataBound">
                            <Columns>
                                <asp:BoundColumn DataField="pkID" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="applyID" HeaderText="网站ID" HeaderStyle-CssClass="title" Visible="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="SchoolName" HeaderText="站点名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="domainName" HeaderText="域名" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="IP" HeaderText="IP" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="Port" HeaderText="端口" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="dbIP" HeaderText="数据库IP" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="dbName" HeaderText="数据库名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                <asp:BoundColumn DataField="webState" HeaderText="网站状态" HeaderStyle-CssClass="title" Visible="False"></asp:BoundColumn>
                                <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                        <asp:LinkButton ID="btnDetail" runat="server" CommandName="Detail" CssClass="FBox" href='<%# Eval("applyID","WebDetail.aspx?applyID={0}")%>'><i class="ace-icon fa fa-search-plus bigger-130" title="详细信息" ></i></asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="btnClear" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>' CommandName="Clear"><i class="ace-icon fa fa-trash-o bigger-130 red" title="清除"></i></asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="btnRecover" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>' CommandName="Recover"><i class="ace-icon glyphicon glyphicon-share grey" title="撤销删除"></i></asp:LinkButton>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:BoundColumn DataField="webId" HeaderText="webId" Visible="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="dbId" HeaderText="dbId" Visible="False"></asp:BoundColumn>
                                <asp:BoundColumn DataField="destinationPath" HeaderText="destinationPath" Visible="False"></asp:BoundColumn>
                            </Columns>
                        </asp:DataGrid>
                        <div class="clearfix">
                            <div class="col-xs-12">
                                <asp:Label ID="lblPage" runat="server"></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            
        </div>
    </div>
    <!--#include file = "../assets/foot.htm" -->
    <script language="javascript" type="text/javascript">
        //function showDetail(id) {
        //    showModalDialog("WebDetail.aspx?applyID=" + id, window, "dialogWidth:760px;dialogHeight:500px;help:no;scroll:no;status:no");
        //}
        jQuery(function ($) {
            //编辑：打开弹出层
            $(".FBox").click().fancybox({
                autoSize: false,
                'width': 1000,
                'height': 630,
                'hideOnOverlayClick': false,
                'type': 'iframe',
                'padding': '0'
            });

        });
    </script>
</body>
</html>
