<%@ Page Title="Landing Customize" Language="C#" MasterPageFile="~/SunMaster.Master" AutoEventWireup="true" CodeBehind="LandingCustomize.aspx.cs" Inherits="SUNWEB.LandingCustomize" %>
<%@ Register Assembly="AjaxControlToolkit" TagPrefix="asp" Namespace="AjaxControlToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 <script type="text/javascript">
     function validateFileSize() {
         var uploadControl = document.getElementById('<%= FileploadLogo.ClientID %>');
         //alert(uploadControl.files[0].size);
         if (uploadControl.files[0].size > 200000) {
             document.getElementById('dvMsg').style.display = "block";
             return false;
         }
         else {
             document.getElementById('dvMsg').style.display = "none";
             return true;
         }
     }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<asp:UpdatePanel runat="server" ID="updatepanel1" UpdateMode="Conditional">
  <ContentTemplate>
            <div class="section-block">
                <h5 class="section-title">
                     LANDING PAGE CUSTOMIZE
                </h5>
            </div>
    

      <div class="row">
                 
                          <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="card">
                                                    
                                <div class="card-body">
                                 
                                
                                 <div class="form-row">
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <caption>
                                                    <label for="validationCustom03">
                                                      FROM DATE
                                                   </label>
                                                   <asp:TextBox ID="txtStartDt"  class="form-control" runat="server"  ></asp:TextBox>
                                                   <asp:CalendarExtender ID="calFirstDueDate"  Format="yyyy-MM-dd" runat="server"  TargetControlID="txtStartDt"  PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>                         
                                                     
                                                </caption>
 
                                                    
                                                
                                            </div>
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <label for="validationCustom03"> TO DATE
                                                 </label>

                                                 <asp:TextBox ID="txtEndDt" class="form-control" runat="server" ></asp:TextBox>
                                                <asp:CalendarExtender ID="CalendarExtender1" Format="yyyy-MM-dd" runat="server"  TargetControlID="txtEndDt"  PopupPosition="BottomLeft" FirstDayOfWeek="Sunday"></asp:CalendarExtender>                         
                                                
                                           

                                            </div>
                                            <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                            <label for="validationCustom03">
                                            <asp:Label ID="lblBranchAliasName"  ForeColor="Gray" runat="server" Text="Branch Name"></asp:Label></label>
                                            <asp:DropDownList ID="cmbBranches" CssClass="custom-select"  
                                            runat="server" AutoPostBack="true" 
                                            onselectedindexchanged="cmbBranches_SelectedIndexChanged"></asp:DropDownList>
                                            </div>

                                               <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                                                <asp:Button ID="btnGetReports" runat="server" Text="Apply"  
                                                CssClass="btn btn-primary" onclick="btnGetReports_Click" OnClientClick="return validate()" />
   
                                         </div>
                                        </div>
                                
                                 </div>
                                 
                                
                                                         
                                </div>
                            </div>
                        </div>
 
   
       <div>
       <h4>&nbsp;<asp:Label ID="lblGreeting" runat="server"></asp:Label></h4>
           <%--<asp:Button ID="btnPdf" runat="server" Text="PDF" 
            ToolTip="To Export  the Report Click Here"  CssClass="btn btn-secondary" 
            onclick="btnPdf_Click"/>--%> 
            
            
            
            
            
              <div class="row">
                 
               <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                <div class="card">
                <h5 class="card-header" style="background-color: #4c4c4c; color: White; font-size: 14px;">
                LANDING PAGE CUSTOMIZATION 
               </h5>                           
                <div class="card-body">
              
                      <div class="form-row">
                       <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                       <label for="validationCustom03">
                      Logo Image</label>
                       <asp:FileUpload ID="FileploadLogo" class="form-control" runat="server" onchange="return validateFileSize();" />
                       <br />
                       <asp:Label ID="lblImageError" runat="server" ForeColor="Gray"></asp:Label>
                       <div id="dvMsg" style="background-color: Red; color: White; width: 280px; padding: 2px;
                       display: none;">
                       Image size Not Exceeds More than 200 KB</div>
                       </div>


                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                       <label for="validationCustom03">
                        Banner Image</label>
                       <asp:FileUpload ID="FileUploadbanner" class="form-control" runat="server" onchange="return validateFileSize();" />
                       <br />
                       <asp:Label ID="Label1" runat="server" ForeColor="Gray"></asp:Label>
                       <div id="Div1" style="background-color: Red; color: White; width: 280px; padding: 2px;
                       display: none;">
                       Image size Not Exceeds More than 200 KB</div>
                       </div>
                       </div>

                     <div class="form-row">
                            
                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Contend Header1</label>
                      <asp:TextBox ID="txtContendHeader1" runat="server" class="form-control"> </asp:TextBox>
                      </div>

                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Sub Contend1</label>
                      <asp:TextBox ID="txtSubContend1" runat="server" class="form-control"> </asp:TextBox>
                      </div>
              
                     </div>

                      <div class="form-row">
                            
                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Contend Header2</label>
                      <asp:TextBox ID="txtContendHeader2" runat="server" class="form-control"> </asp:TextBox>
                      </div>

                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Sub Contend2</label>
                      <asp:TextBox ID="txtSubcontend2" runat="server" class="form-control"> </asp:TextBox>
                      </div>
              
                     </div>

                      <div class="form-row">
                            
                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Contend Header3</label>
                      <asp:TextBox ID="TextBox1" runat="server" class="form-control"> </asp:TextBox>
                      </div>

                      <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <label for="validationCustom03">
                      Sub Contend3</label>
                      <asp:TextBox ID="TextBox2" runat="server" class="form-control"> </asp:TextBox>
                      </div>

                      
              
                     </div>

                      <div class="form-row">

                     <div class="col-xl-4 col-lg-4 col-md-12 col-sm-12 col-12 mb-2">
                      <asp:Button ID="btnSave" runat="server" Text="Save"  
                      CssClass="btn btn-primary" onclick="btnSave_Click" OnClientClick="return validate()" />
                      </div> 
                      
                     </div>
               </div>
               </div>
            </div>
              
     </div>
     </ContentTemplate>
     </asp:UpdatePanel>

</asp:Content>
