<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEditUser.aspx.cs" Inherits="NikaiDSR.Controls.AddEditUser" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <telerik:RadCodeBlock ID="rb" runat="server">
        <script type="text/javascript">
            function GetRadWindow() {
                var oWindow = null;

                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  

                return oWindow;
            }

            function RefreshParentPage() {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid();
            }
        </script>
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager2" EnableAJAX="true" runat="server">
        </telerik:RadAjaxManager>
        <div class="content_holder" style="margin-top: 10px">
            <asp:HiddenField ID="hdnDsrHeaderID" runat="server" />

            <div class="bg_shadow" style="width: 90%; margin: auto">
                <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
                    <div class="errMsg" id="errMsg" runat="server" style="display: none;">
                        <div class="errMsgText" id="errMsgText" runat="server"></div>
                        <br />
                    </div>
                    <table border="2" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td>Employee Code
                            </td>
                            <td>:
                                <telerik:RadTextBox ID="txtEmployeeCode" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td>Name <span id="label1" class="mand_style">*</span>
                            </td>
                            <td>:
                                <telerik:RadTextBox ID="txtName" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td>Email <span id="Span1" class="mand_style">*</span>
                            </td>
                            <td>:
                            <telerik:RadTextBox ID="txtEmail" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td>Role <span id="Span2" class="mand_style">*</span>
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbRole" runat="server" OnSelectedIndexChanged="cmbRole_SelectedIndexChanged" AutoPostBack="true" />
                            </td>
                        </tr>
                        <tr>
                            <td>Location
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbLocation" runat="server" OnSelectedIndexChanged="cmbLocation_SelectedIndexChanged" AutoPostBack="true" />
                            </td>
                        </tr>
                        <tr>
                            <td>Languages <span id="Span4" class="mand_style">*</span>
                            </td>
                            <td>:
                                <telerik:RadComboBox ID="cmbLanguage" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>Status <span id="Span5" class="mand_style">*</span>
                            </td>
                            <td>:
                                <asp:RadioButtonList ID="rbtStatus" runat="server">
                                    <asp:ListItem Text="Active" Value="1" Selected="True" />
                                    <asp:ListItem Text="In Active" Value="2" />
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">Reportees for Manager <span id="Span6" class="mand_style">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div style="max-height: 100px; border-width: medium; border-color: black; overflow: auto">
                                    <asp:CheckBoxList ID="ChkManagers" runat="server" RepeatColumns="3" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <br />
                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" OnClientClick="this.disabled = true; this.value = 'Submitting...';" />
                            </td>
                        </tr>
                    </table>
                </telerik:RadAjaxPanel>
            </div>
        </div>
    </form>
</body>
</html>
