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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script src="script/ddlevelsmenu.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    function SelectAll(CheckBox) {
        TotalChkBx = parseInt('<%= this.gvVendor.Rows.Count %>');
        var TargetBaseControl = document.getElementById('<%= this.gvVendor.ClientID %>');
        var TargetChildControl = "chkSelect";
        var Inputs = TargetBaseControl.getElementsByTagName("input");
        for (var iCount = 0; iCount < Inputs.length; ++iCount) {
            if (Inputs[iCount].type == 'checkbox' && Inputs[iCount].id.indexOf(TargetChildControl, 0) >= 0)
                Inputs[iCount].checked = CheckBox.checked;
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table>
        <tr>
            <td style="text-align:center" >
                Select User Name&nbsp;<asp:DropDownList ID="ddl_selectUserId" runat="server" Width="225px" 
                                onselectedindexchanged="ddl_selectUserId_SelectedIndexChanged" 
                    AutoPostBack="True">
                            </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="text-align:center" >
               <%-- <asp:Label ID="lblMsg" runat="server"></asp:Label>--%>
            </td>
        </tr>
        <tr>
            <td style="text-align:center" >
            <div style="margin:0 0 0 230px">
             <asp:GridView ID="gvVendor" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC"
                    BackColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" Width="830px" BorderStyle="None"
                    BorderWidth="1px" CellPadding="3" ShowHeader="true" CssClass="HeaderFreeze" ShowFooter="true" 
                    DataKeyNames="mobiledthoperatorid">                    
                    <RowStyle HorizontalAlign="Center" ForeColor="#000066" />
                    <Columns>
                        <asp:TemplateField HeaderText="Select">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chkSelectAll" runat="server" Text="Select All" onclick="SelectAll(this);" />
                        </HeaderTemplate>
                    </asp:TemplateField>
                        <asp:BoundField HeaderStyle-Width="230" ItemStyle-Width="150" DataField="operatortype" HeaderText="Service" />
                        <asp:BoundField HeaderStyle-Width="230" ItemStyle-Width="120" DataField="operatorname" HeaderText="Operator" />
                        <asp:BoundField HeaderStyle-Width="230" ItemStyle-Width="120" DataField="flag" HeaderText="Status" />                        
                    </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>
        <tr>
                        <td colspan="6" style="text-align:center">
                            <asp:Button ID="btnAction" runat="server" CssClass="button active" Text="Action" ToolTip="Click here to Block/Active Operator"
                    OnClick="btnAction_Click" />
                        </td>
                    </tr>
        
    </table>
</asp:Content>

