<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="System_Settings_System_MultiLingual, App_Web_i1ngvku3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <script language="javascript" type="text/javascript">
        var SelectLanguage = "Select Language";
        var Currentlanguage = "Selected language already set as current language";
        var ChangeLanguage = "Are you sure to change the Language?";
        function SetAlertMessages(selectLanguage, currentlanguage, changeLanguage) {
            SelectLanguage = selectLanguage;
            Currentlanguage = currentlanguage;
            ChangeLanguage = changeLanguage;
        }
        function MultiLingualValidation() {
            if (document.getElementById('ctl00_BodyContentPH_ddlLanguage').selectedIndex == 0) {
                alert(SelectLanguage);
                return false;
            }
            else {
                if (document.getElementById('ctl00_BodyContentPH_hdnLanguage').value == document.getElementById('ctl00_BodyContentPH_ddlLanguage').selectedIndex) {
                    alert(Currentlanguage);
                    return false;
                }
                else {
                    return confirm(ChangeLanguage)
                }
            }
        }
    </script>

    <div class="content-header">
        <h1 style="background-image: url('../dist/img/Language.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <div class="inr-ftr">
            <div class="row">
                <div class="col-sm-6 col-xs-5">
                </div>
                <div class="col-sm-6 col-xs-7">
                    <div class="leave-manda">
                        <span>|</span>
                        <asp:Label ID="lbl_IndicatesMandatoryFields" Visible="True" runat="server" Text="Mandatory"
                            ForeColor="black"></asp:Label>
                        (1 No.)
                    </div>
                </div>
            </div>
        </div>
        <div class="emp-filter">
            <div class="row">
                <div class="col-md-12">
                    <div class="form-horizontal">
                        <div class="row form-group">
                            <div class="col-md-3">
                                <asp:Label ID="lbl_Language" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:HiddenField ID="hdnLanguage" runat="server" />
                                <asp:DropDownList ID="ddlLanguage" runat="server" CssClass="form-control select2 Man-dat">
                                    <asp:ListItem Value="0" Text="-Select-"></asp:ListItem>
                                    <asp:ListItem Value="1">English_US</asp:ListItem>
                                    <asp:ListItem Value="2">Arabic</asp:ListItem>
                                    <asp:ListItem Value="3">French</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-3" align="left">
                            </div>
                            <div class="col-md-3">
                                <div class="pull-right-button">
                                    <asp:LinkButton ID="btn_Save" CssClass="btn save-btn fa-floppy-o" runat="server"
                                        OnClick="btn_Save_Click" Style="margin-left: 0px" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
