<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="WLNetworkControl.aspx.cs" Inherits="Admin_WLNetworkControl"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .HeaderFreeze
        {
            height: 40px;
            top: 80px;
        }
    </style>

    <script src="script/ddlevelsmenu.js" type="text/javascript"></script>

    <script src="script/func.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="contentmain">
        <div id="content">
            <div id="detailform">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                        <td colspan="4" style="text-align: right; padding: 10px">
                            <asp:Button ID="btnActiveWl" runat="server" CssClass="button active" Text="For Web"
                                OnClick="btnActiveWlWeb_Click" />&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnDeAcWL" runat="server" CssClass="button active" Text="For SMS"
                                OnClick="btnDeAcWlSms_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: center">
                            <asp:Label ID="Label1" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <div id="WLDetail" runat="server">
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC"
                                    BackColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                    Font-Strikeout="False" Font-Underline="False" DataKeyNames="FLAG" Width="1330px"
                                    BorderStyle="None" BorderWidth="1px" CellPadding="3" ShowHeader="true" CssClass="HeaderFreeze"
                                    AllowPaging="true" PageSize="100" ShowFooter="true">
                                    <PagerSettings Mode="NextPreviousFirstLast" NextPageText="Next" PreviousPageText="Previous" />
                                    <RowStyle HorizontalAlign="Center" ForeColor="#000066" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="S.NO">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chk1" runat="server" />
                                                <%#Container.DisplayIndex+1%>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="" Visible="false">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_LOGINID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LOGINID") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="UPPERLEVEL" HeaderText="Distributor Id" Visible="false" />
                                        <asp:BoundField DataField="DATEOFJOINING" HeaderText="Reg. Date" />
                                        <asp:BoundField DataField="FIRSTNAME" HeaderText="Name" />
                                        <asp:TemplateField HeaderText="WL ID">
                                            <ItemTemplate>
                                                <a href="<%# DataBinder.Eval(Container, "DataItem.DomainName")%>" target="_blank"
                                                    title="<%# DataBinder.Eval(Container, "DataItem.DomainName")%>">
                                                    <%# DataBinder.Eval(Container, "DataItem.USERNAME")%></a>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="EMAILID" HeaderText="E-mail Id" />
                                        <asp:BoundField DataField="MOBILENO" HeaderText="Mobile No." />
                                        <asp:TemplateField HeaderText="WebStatus">
                                            <ItemTemplate>
                                                <asp:Label ID="lblStatusWeb" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FLAG") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="SMSStatus">
                                            <ItemTemplate>
                                                <asp:Label ID="lblStatusSms" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FLAGSMS") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <FooterStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" VerticalAlign="Middle" />
                                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                                    <HeaderStyle BackColor="#DBE4E8" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
                                    <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <AlternatingRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
