<%@ Page Language="c#" Inherits="WebApp.Admin.WebOperate" CodeBehind="WebOperate.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>网站清除恢复控制</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/adminCssEdit.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");
			}
    </script>

</head>
<body>
<div class="list-func-box func-box">
  <div class="hd">
             网站列表</div>
    <form id="frmWebControl" method="post" runat="server">
<div class="bd">
<%-- <div class="function-hd">
                <div class="search-box fr">
                </div>
                <!--/search-box-->
                <div class="action-field">
                    
                </div>
                <!--/action-field-->
            </div>--%>
                <asp:DataGrid ID="webList" CssClass="list-table" 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>
                                <asp:LinkButton ID="btnDetail" runat="server" CommandName="Detail">详细信息</asp:LinkButton>
                                <asp:LinkButton ID="btnClear" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>'
                                    CommandName="Clear">清除</asp:LinkButton>&nbsp;
                                <asp:LinkButton ID="btnRecover" runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.schoolName") %>'
                                    CommandName="Recover">撤销删除</asp:LinkButton>&nbsp;
                            </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>
      <div  class="ft">
            <div class="pagination">
       <asp:Label ID="lblPage" runat="server"></asp:Label>
            </div>
        </div>          
           
    </form>
</div>
</body>
</html>
