<%@ Page Title="" Language="C#" MasterPageFile="~/Application.Master" AutoEventWireup="true" CodeBehind="CompanyMaster.aspx.cs" Inherits="ICDAS_3_0_Web_App.ICDAS_3_0.Administrator.Company" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            font-family: Arial;
        }

        .loadingmodal {
            position: fixed;
            z-index: 999 !important;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: white;
            filter: alpha(opacity=60);
            opacity: 0.8;
            -moz-opacity: 1;
        }

        .loadingcenter {
            z-index: 1000 !important;
            width: 200px;
            height: 100px;
            position: absolute;
            left: 45%;
            top: 60%;
            margin-left: -150px;
            margin-top: -150px;
            opacity: 1;
            /*-moz-opacity: 1;*/
            background: url("Images/loading.gif") no-repeat;
        }
    </style>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlwzCompanyMaster">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzCompanyMaster" UpdateMode="Always" runat="server">
        <ContentTemplate>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">
                            <asp:HiddenField ID="hdnRecordId" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnRecordIds" Value="" runat="server" />
                            <asp:HiddenField ID="hdnRowIndex" Value="0" runat="server" />
                            <asp:HiddenField ID="hdnBeforeCompanyName" Value="" runat="server" />
                            <asp:HiddenField ID="hdnBeforeCompanyAddress" Value="" runat="server" />
                            <div class="x_title">
                                <h4>
                                    <asp:Label ID="lblFormTitle" runat="server"></asp:Label></h4>
                                <div class="clearfix"></div>
                            </div>
                            <div class="col-xs-12 col-sm-12 col-lg-12">
                                <asp:UpdatePanel ID="upnlwzCompanyMasterChild" runat="server">
                                    <ContentTemplate>
                                        <div class="row">
                                            <div class="col-xs-12 col-sm-12 col-lg-9">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Name*&nbsp;&nbsp;</span>
                                                    <asp:TextBox ID="txtCompanyName" MaxLength="100" runat="server" class="form-control" AutoCompleteType="Disabled" autocomplete="off"
                                                        placeholder="Enter Name" required  onkeypress="return blockSpecialChar(event)" />
                                                </div>
                                            </div>
                                            <div class="col-xs-12 col-sm-12 col-lg-4">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12 col-sm-12 col-lg-9">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Address</span>
                                                    <textarea maxlength="255" rows="2" class="form-control" runat="server" id="txtAddress" placeholder="EnterAddress" onkeypress="return blockSpecialChar(event)"></textarea>
                                                </div>
                                            </div>
                                            <div class="col-xs-12 col-sm-12 col-lg-4">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12 col-sm-12 col-lg-6">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Logo&nbsp;&nbsp;&nbsp;&nbsp;<br />
                                                    </span>
                                                    <ajaxToolkit:AjaxFileUpload ID="fuplLogosmall" MaximumNumberOfFiles="1" AllowedFileTypes="gif,png,jpg" runat="server" OnUploadComplete="fuplLogosmall_UploadComplete"  />
                                                </div>
                                            </div>
                                            <div class="col-xs-12 col-sm-12 col-lg-6">
                                                <div>
                                                    <p><b>(Note:- Image file should be .jpg or .jpeg and size should be maximum 100 width x 70 height in pixel.)</b></p>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12 col-sm-12 col-lg-6">
                                                <div class="input-group">
                                                    <span class="input-group-addon">Logo&nbsp;&nbsp;&nbsp;&nbsp;
                                                            <br />
                                                        <br />
                                                        <asp:LinkButton runat="server" CssClass="btn btn-info" ID="btnLogoRefresh" OnClick="btnLogoRefresh_Click" ToolTip="CLICK REFRESH INCASE IMAGE IS NOT UPDATED"><i class="fa fa-refresh"></i></asp:LinkButton></span>
                                                    <asp:Image ID="imgLogosmall" runat="server" Height="80px" Width="150px" CssClass="form-control" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12 col-sm-12 col-lg-8">
                                                <div class="text-center">
                                                    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn btn-primary btn-sm" OnClick="btnSave_Click" ToolTip="SAVE RECORD" />
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:PostBackTrigger ControlID="fuplLogosmall" />
                                    </Triggers>
                                </asp:UpdatePanel>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
