<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_Reseller_SignupRequests, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="CC" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content6" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Ltrl_Heading" runat="server" Text="<%$ Resources:Content, USM0202 %>"></asp:Literal></h3>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_Btn_Search" runat="server" CssClass="row" DefaultButton="Btn_Search">
                    <div class="panel-group search-panel" id="RSR_Search_Header" role="tablist" aria-multiselectable="true">
                        <div class="col-xs-12" role="tab" id="RSR_Search_Tab">
                            <div class="card">
                                <div class="header">
                                    <a role="button" data-toggle="collapse" data-parent="#RSR_Search_Header" href="#RSR_Search_Body" aria-expanded="false" aria-controls="RSR_Search_Tab">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </a>
                                </div>
                                <div id="RSR_Search_Body" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="RSR_Search_Tab" aria-expanded="false">
                                    <div class="row">

                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Name" runat="server" MaxLength="200"></asp:TextBox>
                                                    <asp:Label ID="Lbl_Name" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000170%>" class="form-label"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Email" runat="server" MaxLength="128"></asp:TextBox>
                                                    <asp:Label ID="Lbl_Email" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>" class="form-label"></asp:Label>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Company" runat="server"></asp:TextBox>
                                                    <asp:Label ID="Lbl_Company" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <div class="form-group form-float">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Phone" runat="server"></asp:TextBox>
                                                    <asp:Label ID="Lbl_Phone" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" class="form-label"></asp:Label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <div class="form-group form-float">
                                                <asp:DropDownList ID="Ddl_ResellerType" runat="server"></asp:DropDownList>
                                            </div>
                                        </div>

                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                    Text="<%$ Resources:Content,String289 %>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>

                <asp:GridView CssClass="table table-bordered table-striped table-hover"
                    EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                    ID="GV_List" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False" DataKeyNames="ResellerType,CustomerId">
                    <Columns>
                        <asp:TemplateField HeaderStyle-CssClass="col-sm-2 col-xs-3" ItemStyle-CssClass="col-sm-2 col-xs-3" SortExpression="ResellerType" HeaderText="Reseller Type">
                            <ItemTemplate>
                                <asp:Literal ID="Ltrl_ResellerModel" runat="server" Text='<%# Eval("ResellerType")%>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-sm-2 col-xs-3" ItemStyle-CssClass="col-sm-2 col-xs-3" SortExpression="CompanyName" HeaderText="Company Name">
                            <ItemTemplate>
                                <asp:LinkButton ID="Lbtn_CompanyName" runat="server" CommandName="Details" CommandArgument='<%# Eval("CustomerId")%>' Text='<%# Eval("CompanyName")%>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-sm-2 col-xs-3" ItemStyle-CssClass="col-sm-2 col-xs-3" SortExpression="FirstName" HeaderText="Name">
                            <ItemTemplate>
                                <asp:Literal ID="Ltrl_FullName" runat="server" Text='<%# Eval("FirstName") & " " & Eval("LastName")%>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-sm-2 col-xs-3 hidden-xs" ItemStyle-CssClass="col-sm-2 col-xs-3 hidden-xs" HeaderText="Login">
                            <ItemTemplate>
                                <asp:Literal ID="Ltrl_Login" runat="server"></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-sm-2 col-xs-3 hidden-xs" ItemStyle-CssClass="col-sm-2 col-xs-3 hidden-xs" HeaderText="Phone">
                            <ItemTemplate>
                                <asp:Literal ID="Ltrl_PhoneCountryCode" runat="server" Text='<%# Eval("PhoneCountryCode")%>'></asp:Literal>
                                <asp:Literal ID="Ltrl_Phone" runat="server" Text='<%# Eval("Phone") %>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2 col-sm-1" ItemStyle-CssClass="col-xs-2 col-sm-1" HeaderText="Signup Status">
                            <ItemTemplate>
                                <asp:Literal ID="Ltrl_SignupStatus" runat="server" Text='<%# Eval("SignupStatus")%>'></asp:Literal>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                            <ItemTemplate>
                                <div id="div_options" runat="server">
                                    <ul class="option-menu">
                                        <li class="dropdown">
                                            <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                <i class="material-icons">menu</i>
                                            </a>
                                            <ul class="dropdown-menu pull-right">
                                                <li>
                                                    <asp:LinkButton ID="Lbtn_Approve" runat="server" CommandName="approve" CommandArgument='<%# Eval("RequestId")%>' Text="Approve" CssClass="btnAction"></asp:LinkButton>
                                                    <AjaxToolkit:ConfirmButtonExtender ID="CBE_Approve" runat="server"
                                                        ConfirmText='<%# Resources.Content.strResellerRequestSignupApproveConfirmText.Replace("%company%", Eval("CompanyName"))%>' TargetControlID="Lbtn_Approve">
                                                    </AjaxToolkit:ConfirmButtonExtender>
                                                </li>
                                                <li>
                                                    <asp:LinkButton ID="Lbtn_Decline" runat="server" CommandName="decline" CommandArgument='<%# Eval("RequestId")%>' Text="Decline" CssClass="btnAction"></asp:LinkButton>
                                                    <AjaxToolkit:ConfirmButtonExtender ID="CBE_Decline" runat="server" ConfirmText='<%# Resources.Content.strResellerRequestSignupDeclineConfirmText.Replace("%company%", Eval("CompanyName"))%>' TargetControlID="Lbtn_Decline"></AjaxToolkit:ConfirmButtonExtender>
                                                </li>
                                                <li>
                                                    <asp:LinkButton ID="LB_Delete" runat="server" CommandName="deleterequest" CommandArgument='<%# Eval("RequestId")%>' Text="<%$ Resources:Content,GN0000377%>" CssClass="btnAction"></asp:LinkButton>
                                                    <AjaxToolkit:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText='<%# Resources.Content.strResellerRequestSignupDeleteConfirmText.Replace("%company%", Eval("CompanyName"))%>' TargetControlID="LB_Delete"></AjaxToolkit:ConfirmButtonExtender>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <%--PagerTemplate Start--%>
                    <PagerTemplate>
                        <CC:Pager ID="Pager1" runat="server" />
                    </PagerTemplate>
                    <%--PagerTemplate End--%>
                </asp:GridView>

                <asp:Button ID="Btn_Dummy" runat="server" CausesValidation="false" CssClass="btn-dummy mp-hide" />
                <asp:Panel ID="Pnl_RequestUpdateComments" runat="server" CssClass="width-modal-popup-auto" Style="display: none">

                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left">
                                <asp:Literal ID="Ltrl_CommentsHeading" runat="server" Text="<%$ Resources:Content,GN000148 %>"></asp:Literal></h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_RequestUpdateComments.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <div class="form-group">
                                        <asp:HiddenField ID="HF_Action" runat="server" />
                                        <asp:HiddenField ID="HF_RequestId" runat="server" />
                                        <asp:HiddenField ID="HF_ResellerType" runat="server" />
                                        <asp:HiddenField ID="HF_CustomerId" runat="server" />
                                        <asp:TextBox ID="TxBx_UpdateComments" runat="server" TextMode="MultiLine" Rows="5"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-offset-2 col-xs-8 col-sm-offset-3 col-sm-6 col-md-offset-4 col-md-4">
                                    <asp:Button ID="Btn_Update" runat="server" Text="<%$ Resources:Content,GN0000654%>" class="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />

                                </div>
                            </div>
                        </div>
                    </div>

                </asp:Panel>
                <AjaxToolkit:ModalPopupExtender runat="server" ID="MPE_RequestUpdateComments" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_RequestUpdateComments" TargetControlID="Btn_Dummy" CancelControlID="Btn_Cancel">
                </AjaxToolkit:ModalPopupExtender>

                <asp:Button ID="Btn_Dummy2" runat="server" CausesValidation="false" CssClass="btn-dummy mp-hide" />
                <asp:Panel ID="Pnl_Details" runat="server" CssClass="width-modal-popup-auto" Style="display: none">

                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left">
                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,strDetails %>"></asp:Literal></h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_Details.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">

                            <div class="row">


                                <div class="col-xs-12">

                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal42" runat="server" Text="<%$ Resources:Content,GN00001517%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Login" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,GN0000268%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAName" runat="server">
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltl_CompanyNameD" runat="server" Text="<%$ Resources:Content,GN00001077%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_CompanyName" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltl_CAddressD" runat="server" Text="<%$ Resources:Content,GN0000878%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAAddress1" runat="server">
                                            </div>
                                        </div>
                                        <div class="row" runat="server" id="PAAddress2">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Ltl_CAddress2D" runat="server" Text="<%$ Resources:Content,GN00001136%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAAddress2" runat="server">
                                            </div>
                                        </div>
                                        <div class="row" runat="server" id="dvHouseNo" visible="false">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal126" runat="server" Text="<%$ Resources:Content,HouseNumber%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_HouseNo" runat="server">
                                            </div>
                                        </div>
                                        <div class="row" runat="server" id="dvHouseNoAdd" visible="false">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal127" runat="server" Text="<%$ Resources:Content,HouseNumberAddition%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_HouseNoAddition" runat="server">
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal29" runat="server" Text="<%$ Resources:Content,GN0000880%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PACity" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal216" runat="server" Text="<%$ Resources:Content,GN00001313%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAState" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal217" runat="server" Text="<%$ Resources:Content,GN0000882%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PACountry" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal218" runat="server" Text="<%$ Resources:Content,GN00001522%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAZip" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal219" runat="server" Text="<%$ Resources:Content,GN00012%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAPhone" runat="server">
                                            </div>
                                        </div>

                                        <div id="Div_TaxSettingsView" runat="server">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal97" runat="server" Text="<%$ Resources:Content,strVATNumber%>" />:
                                                </div>
                                                <div class="col-sm-9 col-xs-12" id="Td_PAVATNumber" runat="server">
                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal122" runat="server" Text="<%$ Resources:Content,ChamberOfCommerceNumber%>" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="TD_ChamberOfCommerceNumber" runat="server">
                                            </div>
                                        </div>
                                       <%-- <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal129" runat="server" Text="<%$ Resources:Content,GN0000886%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="TdPAFax" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal128" runat="server" Text="<%$ Resources:Content,GN00001524%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PAMobile" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal130" runat="server" Text="<%$ Resources:Content,GN00001526%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_PASEmail" runat="server">
                                                <p></p>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal131" runat="server" Text="<%$ Resources:Content,GN0000952%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Currency" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal132" runat="server" Text="<%$ Resources:Content,GN00001527%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Locale" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal133" runat="server" Text="<%$ Resources:Content,Lync179%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_TimeZone" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal34" runat="server" Text="<%$ Resources:Content,GN00003000%>"
                                                    EnableViewState="false" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Language" runat="server">
                                            </div>
                                        </div>--%>
                                    </div>

                                </div>

                            </div>

                        </div>
                    </div>

                </asp:Panel>
                <AjaxToolkit:ModalPopupExtender runat="server" ID="MPE_Details" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_Details" TargetControlID="Btn_Dummy2">
                </AjaxToolkit:ModalPopupExtender>

            </div>
        </div>
    </div>

</asp:Content>
