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

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../css/egen_admin.css" rel="stylesheet" type="text/css" />
    <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">
                    <tr>
                        <td width="27%">
                            &nbsp;
                        </td>
                        <td width="14%">
                            Select User Type
                        </td>
                        <td width="1%">
                            <strong>:</strong>
                        </td>
                        <td width="58%">
                            <asp:DropDownList ID="ddlUserInfo" runat="server" AutoPostBack="true" Style="width: 225px;"
                                OnSelectedIndexChanged="ddlUserInfo_SelectedIndexChanged">
                                <asp:ListItem>Select Type</asp:ListItem>
                                <asp:ListItem>White Label</asp:ListItem>
                                <asp:ListItem>Master Distributor</asp:ListItem>
                                <asp:ListItem>Distributor</asp:ListItem>
                                <asp:ListItem>Agent</asp:ListItem>
                                <asp:ListItem>Advance Search</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="padding: 10px 0;">
                            <div id="c0" style="display: none;">
                            </div>
                            <div id="c1" style="display: ">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                                    <tr>
                                        <td colspan="11" style="text-align: right; padding: 10px">
                                            <asp:Button ID="btnForWeb" CssClass="button active" runat="server" Text="For Web"
                                                OnClick="btnForWeb_Click" />
                                            <asp:Button ID="btnForSms" CssClass="button active" runat="server" Text="For SMS"
                                                OnClick="btnForSms_Click" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align:center">
                                            <asp:Label ID="Label1" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <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" OnPageIndexChanging="GridView1_PageIndexChanging">
                                                <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:BoundField DataField="DATEOFJOINING" HeaderText="Reg. Date" />
                                                    <asp:BoundField DataField="FIRSTNAME" HeaderText="Name" />
                                                    <asp:TemplateField HeaderText="DS ID">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbl_username" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.USERNAME") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="PASSWORD" HeaderText="Password" />
                                                    <asp:BoundField DataField="EMAILID" HeaderText="E-mail Id" />
                                                    <asp:BoundField DataField="MOBILENO" HeaderText="Mobile No." />
                                                    <asp:BoundField DataField="NETAMOUNT" HeaderText="Balance" />
                                                    <asp:BoundField DataField="FLAG" HeaderText="Web Stat" />
                                                    <asp:BoundField DataField="FLAGSMS" HeaderText="SMS Stat" />
                                                    <asp:BoundField DataField="Mpin1" HeaderText="MPIN" />
                                                    <asp:BoundField DataField="usercount" HeaderText="#AG" />
                                                    <asp:BoundField DataField="UPPERLEVEL" HeaderText="MD/WL ID" />
                                                    <asp:TemplateField Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lbl_loginid" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LOGINID") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:TemplateField>
                            <ItemTemplate>
                            <asp:Button ID="btn_flag" runat="server" oncommand="btn_flag_Command" />
                               
                            </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>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
