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

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

    <script type="text/javascript">
        var SuretoDelete = "Are you sure, to Delete?";
        var Unabletodelete = "No image found, unable to delete";
        function SetAlertMessages(suretoDelete, unabletodelete) {
            SuretoDelete = suretoDelete;
            Unabletodelete = unabletodelete;
        }
        function validationDelete() {
            if (document.getElementById("ctl00_BodyContentPH_hdnLogo").value == "1") {
                return confirm(SuretoDelete);
            }
            else {
                alert(Unabletodelete);
                return false;
            }
        }
    </script>

    <div class="content-header">
        <h1 style="background-image: url('../dist/img/branding.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lblHeader_Branding" 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="Label1" 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" style="display: none">
                            <div class="col-md-12">
                                <span style="color: red">*</span>
                                <asp:Label ID="lbl_IndicatesMandatoryFields" Visible="True" runat="server" ForeColor="Red"></asp:Label>
                                <asp:Label ID="lbl_Error" runat="server" ForeColor="Red"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <span style="color: Red">|</span>
                                <asp:Label ID="lbl_CusLogo" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-10">
                                <asp:FileUpload ID="fp_Upload" runat="server" onCut="return false" onDrop="return false"
                                    onkeydown="return key_press_nokey(event)" onkeypress="return AcceptTab(event);" />&nbsp;&nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="fp_Upload"
                                    ErrorMessage="Select Customer Logo" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                            </div>
                            <div class="col-md-6">
                                <div class="pull-left-button">
                                    <asp:HiddenField ID="hdnLogo" runat="server" />
                                    <asp:LinkButton ID="btn_Save" runat="server" CssClass="btn save-btn fa-floppy-o mar-right-0px"
                                        OnClick="btn_Upload_Click"/>
                                    <asp:LinkButton ID="btn_Delete" runat="server" CausesValidation="false" CssClass="btn del-btn fa-trash-o"
                                        OnClick="btn_Delete_Click" OnClientClick="return validationDelete();" />
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                        ShowSummary="False" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
