<%@ Page Title="" Language="C#" MasterPageFile="~/EmptyAjaxMaster.Master" AutoEventWireup="true" CodeBehind="NewCredentialsPage.aspx.cs" Inherits="MKinsight.Online.UIServices.NewCredentialsDetails.NewCredentialsPage" %>
<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">
    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>
    <script type="text/javascript" src="../scripts/jquery/jquery.box-min.js"></script>
    <link rel="stylesheet" type="text/css" href="../scripts/jquery/jqbox.css" />

    <script type="text/javascript">

        function cb() {
            parent.$.colorbox.close();
            window.parent.location.href = window.parent.location.href;
        }

        function cb2() {
            parent.$.colorbox.close();

        }

    </script>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">
    <asp:UpdatePanel ID="ptr" runat="server">
        <ContentTemplate>
            
            <uc1:Header ID="u_h" runat="server" />
            <uc2:MessageBox ID="u_m" runat="server" />

            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:RadioButtonList ID="rbl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="OnSelectedIndexChanged">
                        </asp:RadioButtonList>


                    </td>
                </tr>

                <tr>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <asp:Label ID="lbl_UserName" runat="server"></asp:Label>
                                </td>

                                <td>
                                    <asp:TextBox ID="txt_UserName" runat="server"></asp:TextBox>
                                </td>

                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btn_SelectADAccount" runat="server" OnClientClick="$.colorbox({ transition: 'none', width: '95%', height: '98%', iframe: true,href:'ADImportPage.aspx?type=false&convert=true',onClosed:function(){ window.parent.location.href = window.parent.location.href; } });" />
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <asp:Label ID="lbl_Password1" runat="server"></asp:Label>
                                </td>

                                <td>
                                    <asp:TextBox ID="txt_Password1" TextMode="Password" AutoCompleteType="None" runat="server"></asp:TextBox>
                                </td>

                            </tr>
                            
                            <tr>
                                <td>
                                    <asp:Label ID="lbl_Password2" runat="server"></asp:Label>
                                </td>

                                <td>
                                    <asp:TextBox ID="txt_Password2" TextMode="Password" AutoCompleteType="None" runat="server"></asp:TextBox>
                                </td>

                            </tr>
                            
                        </table>

                    </td>
                </tr>

                <tr>
                    <td>
                        <asp:Button ID="btn_OK" runat="server" OnClick="OnOK" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>

    <asp:UpdateProgress ID="prz" runat="server" AssociatedUpdatePanelID="ptr" DisplayAfter="20">
        <ProgressTemplate>
            <div class="UpdateProgressBackground">
                <center>
                    <div class="UpdateProgressContent">
                        <h3>
                            <asp:Label ID="lbl_Wait" runat="server"></asp:Label></h3>
                        <br />
                        <img src="../images/ajax.gif" alt="" />
                    </div>
                </center>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

</asp:Content>
