<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="Admin_AvailLeaves, App_Web_fz5gj3qy" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <%--    <link href="../CSS/style.css"type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForButton.css"type="text/css" rel="Stylesheet" />
        <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>

    <link href="../CSS/ForTextBox.css"type="text/css" rel="Stylesheet" /> 
    <script type="text/javascript" src="../js/JScript.js"></script>
--%> 
  <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
   <style type="text/css">
        .style2
        {
            width: 100%;
         
      }
       	 .shadow_five {
        background-color: #B3EBF4;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom: 10px;
    }
        .shadow_five1 {
            background-color: #F2FFC6;
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 3px 3px 5px #B1A59A;
            -webkit-box-shadow: 3px 3px 5px #B1A59A;
            -o-box-shadow: 3px 3px 5px #B1A59A;
            -ms-box-shadow: 3px 3px 5px #B1A59A;
            box-shadow: 3px 3px 5px #B1A59A;
            padding: 10px;
            margin-bottom: 10px;
        }
        
         .contactpanelcss
        {
        	width:98%;
        	  margin: 0px;
         background-color: White;
         border: 0px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }

         .shadow_five2 {
            background-color: #FFF0DB;      
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 0px 0px 0px #B1A59A;
            -webkit-box-shadow: 0px 0px 0px #B1A59A;
            -o-box-shadow: 0px 0px 0px #B1A59A;
            -ms-box-shadow: 0px 0px 0px #B1A59A;
            box-shadow: 0px 0px 0px #B1A59A;
            padding: 10px;
            width: 580px;
        }
          .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 14px;
            color: #660033;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Eurostile LT;
        }
         .p1
        {
       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#ff9966 90%, #bfbfbf);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:35px;
            width:200px;
            margin-top:0px;
        }
     .Label
    {
 /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Opera */ 
background-image: -o-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #FFCE47), color-stop(1, #F2813F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to top, #FFCE47 0%, #F2813F 100%);
}
  
 .font
{
	font-size:12px;
	font-family:Verdana;
	}
	.cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	background-color:White;
          
        	width:300px;
        	height:150PX;
        	 background-color:#ffd699;
        	
        
        } 
  
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdateProgress ID="UpdateProgress1" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Width="1330px">  <%--BorderStyle="Groove"--%>
 <div class="p12" style="float:left; width:150px"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;&nbsp;Leave Request
      </p>
   
           </div> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
             <asp:Button ID="btn_add_leave" runat="server" Text="Add Leave" 
        CssClass="myButton" onclick="btn_add_leave_Click"   />&nbsp;&nbsp;
          
    <asp:Button ID="btn_back_date_reoprt" runat="server" 
        Text="Add previous day Report" CssClass="myButton" 
        onclick="btn_back_date_reoprt_Click"/> &nbsp;&nbsp;
    <asp:Button ID="btn_show_leaves" runat="server" Text="Show Leave" 
        CssClass="myButton" onclick="btn_show_leaves_Click"  />
     
    <table class="style2" >
    
        
        <tr><td></td></tr>
         <tr><td>
       
         <asp:Panel ID="pnlTime" runat="server" CssClass="shadow_five2" Width="97%" >
                 
         <table width="100%">

         <tr>
             <td class="style22" align="right">
                 &nbsp;</td>
             <td >
             <div class="p12" style="float:left; width:140px"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;&nbsp;Add Leave 
      </p>
      </div>
            <br />  <br /> 
             </td>
             <td class="style66">
                 &nbsp;</td>
             <td class="style25">
                 &nbsp;</td>
             <td>
                 
             </td>
         </tr>
        
            
            <tr><td colspan="5" class="style20"></td></tr>
<tr>
<td></td>
<td class="style54">  <asp:RadioButton ID="rbHalf" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Half Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbHalf_CheckedChanged" />   
</td>
<td class="style66">
<asp:RadioButton ID="rbSingle" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Single Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbSingle_CheckedChanged" />   
</td>
<td class="style25">
<asp:RadioButton ID="rbMultiple" runat="server" Font-Bold="True" 
                    Font-Size="Medium" ForeColor="#910000" Text="Multiple Day" 
                     GroupName="A" AutoPostBack="True" 
                    oncheckedchanged="rbMultiple_CheckedChanged" />   
</td>
<td></td>
</tr>
<tr><td colspan="5" class="style21"></td></tr>

    <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlHalf" runat="server" CssClass="shadow_five2" Width="97%" 
             Height="203px" Visible="false">
         <table width="100%" style="height: 167px;" >
         <tr>
                 <td align="right" class="style55">
                     </td>
                 <td align="right" >
                     
                     <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" Date  " ForeColor="Black"></asp:Label>
                 </td>
                 <td class="style57"><a style="color:Red;">*</a>
                     </td>
                 <td class="style58">
                     <asp:TextBox ID="txtDate" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtDate">
                </cc1:CalendarExtender>
                 </td>
                 <td class="style59">
                     &nbsp;</td>
             </tr>
             <tr>
                 <td align="right" class="style60">
                     </td>
                 <td align="right" class="style69">
                     <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" Hours " ForeColor="Black"></asp:Label>
                 </td>
                 <td class="style62"><a style="color:Red;">*</a>
                     </td>
                 <td class="style63">
                 <asp:DropDownList ID="ddl_amPM_list" runat="server" >
                 <asp:ListItem Value="-Select-">-Select-                 
                 </asp:ListItem>
                 <asp:ListItem Value="am">am
                 
                 </asp:ListItem>
                 <asp:ListItem Value="pm">pm
                 
                 </asp:ListItem>
                 </asp:DropDownList>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddl_amPM_list" InitialValue="-Select-" ErrorMessage="select am or pm"
                      ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                     <%--<asp:DropDownList ID="txtHours-pm" runat="server">
                     <asp:ListItem Value="-Select-">-Select-</asp:ListItem>
                     <asp:ListItem Value="am">am                     
                     </asp:ListItem>
                      <asp:ListItem Value="am">pm                     
                     </asp:ListItem>
                     
                     </asp:DropDownList>--%>
                    <%-- <asp:TextBox ID="txtHours" runat="server" Width="170px"></asp:TextBox>--%>
                 </td>
                 <td class="style64">
                     &nbsp;</td>
             </tr>
         <tr>
             <td class="style26" align="right">
                 &nbsp;</td>
             <td align="right" class="style69">
                   <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="12px" 
                       Text=" Purpose " ForeColor="Black"></asp:Label>
            </td>
             <td class="style28">
                 </td>
             <td class="style29">
                  <asp:TextBox ID="txtPurpose" runat="server" Height="55px" 
                      Width="177px" TextMode="MultiLine"></asp:TextBox>
                  </td>
             <td class="style30">
                 &nbsp;</td>
         </tr>
         <tr><td colspan="5">  <b> <a style="color:Red;  padding-right:450px;  float:right;">* Indicates Compulsory Fields</a></b></td></tr>
        </table>
        </asp:Panel>
    </td>
    </tr>
    
    
     <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlSingle" runat="server" CssClass="shadow_five2" Width="97%" Height="148px" Visible="false">
         <table width="100%" >
         <tr>
                 <td align="right" class="style55">
                     </td>
                 <td align="right" class="style68">
                    
                     <asp:Label ID="Label46" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" Date  " ForeColor="Black"></asp:Label>
                 </td>
                 <td class="style57"><a style="color:Red;">*</a>
                     </td>
                 <td class="style58">
                     <asp:TextBox ID="txtDate1" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtDate1_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtDate1">
                </cc1:CalendarExtender>
                 </td>
                 <td class="style59">
                     &nbsp;</td>
             </tr>
           
         <tr>
             <td class="style26" align="right">
                 &nbsp;</td>
             <td align="right" class="style68">
                   <asp:Label ID="Label41" runat="server" Font-Names="Verdana" Font-Size="12px" 
                       Text=" Purpose " ForeColor="Black"></asp:Label>
            </td>
             <td class="style28">
                 </td>
             <td class="style29">
                  <asp:TextBox ID="txtPurpose1" runat="server" Height="55px" 
                      Width="177px" TextMode="MultiLine"></asp:TextBox>
                  </td>
             <td class="style30">
            <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtPurpose1" ErrorMessage="Enter Purpose" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>
                 </td>
         </tr>
         <tr><td colspan="5">  <b> <a style="color:Red;  padding-right:450px;  float:right;">* Indicates Compulsory Fields</a></b></td></tr>
         
        </table>
        </asp:Panel>
    </td>
    </tr>
    
    
     <tr>
    <td colspan="5">
        
         <asp:Panel ID="pnlMultiple" runat="server" CssClass="shadow_five2" Width="97%" Visible="false"
             Height="178px">
         <table width="100%" >
         <tr>
                 <td align="right" class="style55">
                     </td>
                 <td align="right" class="style70">
                   <%--  <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="14px" 
                         Text=" Reqiured Period "></asp:Label>
                     -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                     <asp:Label ID="Label5" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" From  "  ForeColor="Black"></asp:Label>
                 </td>
                 <td class="style57"><a style="color:Red;">*</a>
                     </td>
                 <td class="style58">
                     <asp:TextBox ID="txtFrom" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtFrom_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtFrom">
                </cc1:CalendarExtender>
<%--                <asp:RequiredFieldValidator runat="server" ID="req_field_txt_from"  ></asp:RequiredFieldValidator>
--%>                 </td>
                 <td class="style59">
                <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtFrom" ErrorMessage="Enter 'from date'" 
                    ValidationGroup="1"></asp:RequiredFieldValidator> --%> 
                     </td>
             </tr>
             <tr>
                 <td align="right" class="style60">
                     </td>
                 <td align="right" class="style70">
                     <asp:Label ID="Label47" runat="server" Font-Names="Verdana" Font-Size="12px" 
                         Text=" To " ForeColor="Black"></asp:Label>
                 </td>
                 <td class="style62"><a style="color:Red;">*</a>
                     </td>
                 <td class="style63">
                     <asp:TextBox ID="txtTo" runat="server" Width="170px"></asp:TextBox>
                     <cc1:CalendarExtender ID="txtToDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtTo">
                </cc1:CalendarExtender>
                 </td>
                 <td class="style64">
                 <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                    ControlToValidate="txtTo" ErrorMessage="Enter 'To date'" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>   </td>
             </tr>
         <tr>
             <td class="style26" align="right">
                 &nbsp;</td>
             <td align="right" class="style70">
                   <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="12px" 
                       Text=" Purpose " ForeColor="Black"></asp:Label>
            </td>
             <td class="style28">
                 </td>
             <td class="style29">
                  <asp:TextBox ID="txtPurpose2" runat="server" Height="55px" 
                      Width="177px" TextMode="MultiLine"></asp:TextBox>
                  </td>
             <td class="style30">
              <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtPurpose2" ErrorMessage="Enter Purpose" 
                    ValidationGroup="1"></asp:RequiredFieldValidator>--%>
                 </td>              
         </tr>
         <tr><td colspan="5">  <b> <a style="color:Red;  padding-right:450px;  float:right;">* Indicates Compulsory Fields</a></b></td></tr>
         
        </table>
        </asp:Panel>
    </td>
    </tr>
    <%--<tr><td colspan="5"></td></tr>--%>
            
             <tr>
                 <td align="right" class="style26">
                     &nbsp;</td>
                 <td align="right" class="style54">
                     &nbsp;</td>
                 <td class="style71">
                     <asp:Button ID="btnSubmit" runat="server" CssClass="myButton" Visible="false"
                           
                                UseSubmitBehavior="false" onclick="btnSubmit_Click" Text="Submit" 
                         ValidationGroup="1" Width="100px" />
                     <br />
                     <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="12px" Visible="false"
                         ForeColor="Red"></asp:Label>
                         <br />
                         
                 </td>
                 <td class="style65">
                  <%--       <b> <a style="color:Red;  padding-right:20px; ">* Indicates Compulsory Fields</a></b>--%>
                 
                     <br />
                 </td>
                 <td class="style30">
                     &nbsp;</td>
             </tr>
             
              <tr><td colspan="5">
              <asp:Panel ID="Panel2" runat="server" CssClass="contactpanelcss" Visible="false"> 
            <div style="overflow:scroll;height:300px;">
               <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
                    AutoGenerateColumns="false" 
                    GridLines="Both" Width="590px"
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">
                      <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                     
                  
                   
                    <Columns>
                     <asp:TemplateField Visible="false">
                            <ItemTemplate>
                               <asp:Label ID="lblRowId" Width="5px" runat="server" Text='<%# Eval("RowId")%>' ></asp:Label> 
                            </ItemTemplate>
                     </asp:TemplateField>
                        <asp:TemplateField HeaderText="Purpose" ItemStyle-Width="50px">
                            <ItemTemplate>
                              <asp:Label ID="lblPurpose" runat="server" Text='<%# Eval("Purpose")%>' Height="30px"
                                                Width="300px" ReadOnly="true" CssClass="font"></asp:Label>
                            </ItemTemplate>
                          
                            <ItemStyle Width="50px" />
                          
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="From date" ItemStyle-Width="100px">
                          
                            <ItemTemplate>
                              
                               <asp:Label ID="lblFromDatevar" runat="server" Text='<%# Eval("FromDatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label>  
                              
                            </ItemTemplate>
                        
                            <ItemStyle Width="100px" />
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="To Date" ItemStyle-Width="100px">
                            <ItemTemplate>
                                 <asp:Label ID="lblToDatevar" runat="server" Text='<%# Eval("ToDatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label>  
                             
                            </ItemTemplate>
                        
                            <ItemStyle Width="100px" />
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Days Type" ItemStyle-Width="80px">
                            <ItemTemplate>
                             
                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("Type")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label> 
                             
                            </ItemTemplate>
                           
                            <ItemStyle Width="80px" />
                           
                        </asp:TemplateField>
                                        
                     <asp:TemplateField HeaderText="Approve Status" ItemStyle-Width="80px">
                            <ItemTemplate>
                             
                                <asp:Label ID="lbl_Approve_status" runat="server" Text='<%# Eval("Approve")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label> 
                             
                            </ItemTemplate>
                           
                            <ItemStyle Width="80px" />
                           
                        </asp:TemplateField>
                          
                       
                         
                        </Columns>
                        
                           <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                                 
            
                </asp:GridView>
               </div> 
             </asp:Panel>
             </td></tr>
             
         </table>
         </asp:Panel>
         </td></tr>
    </table>
    
     <asp:Panel ID="pnlPartial" runat="server" CssClass="shadow_five2" Width="97%" 
                Height="190px" >
      <table width="50%" style="height: 142px;">
       
       <tr>
       <td>
       <div class="p12" style="float:left; width:150px"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;&nbsp;Show Leaves 
      </p>
      </div>
     
       </td>
       <td>
       
       </td>
       </tr>
      
          <tr>
              <td align="right" >
                  <asp:Label ID="Label62" runat="server" Text="Select Employee Name" ForeColor="Black"></asp:Label>
              </td>
              <td >
                    <asp:DropDownList ID="ddlEName" runat="server" AutoPostBack="True"  DataTextField="EName" DataValueField="EID"  BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"
                    onselectedindexchanged="ddlEName_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:TextBox ID="txtECode" runat="server" Height="22px" Width="50px" 
                    Enabled="False" Visible="false" ></asp:TextBox>
                    
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                  ControlToValidate="ddlEName" InitialValue="- Select Employee -" ErrorMessage="select employee" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator> 
                   
                    </td>
             
                  
          </tr>
          <tr>
          <td align="right">
              <asp:Label ID="Label4" runat="server" Text="From Date" ForeColor="Black"></asp:Label>
          </td>
          <td>
          
                  <asp:TextBox ID="txtFrom_date" runat="server" Height="20px" Width="150px" BorderColor="Black" BorderWidth="1px" BorderStyle="Solid"></asp:TextBox>
                  <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Enabled="true" 
                      TargetControlID="txtFrom_date">
                  </cc1:CalendarExtender>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                      ControlToValidate="txtFrom_date" ErrorMessage="Enter 'From' Date" ForeColor="Red"
                      ValidationGroup="1"></asp:RequiredFieldValidator>
                  
                 
          </td>
          <td>
          
          </td>
          </tr>
          <tr>
          <td align="right">
              <asp:Label ID="Label7" runat="server" Text="To Date" ForeColor="Black"></asp:Label>
          </td>
          <td>
          
         <asp:TextBox ID="txtTo_date" runat="server" Height="20px" Width="150px"  BorderColor="Black" BorderWidth="1px" BorderStyle="Solid" ></asp:TextBox>
                  <cc1:CalendarExtender ID="CalendarExtender2" runat="server" Enabled="true" 
                      TargetControlID="txtTo_date">
                  </cc1:CalendarExtender>
                
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                      ControlToValidate="txtTo_date" ErrorMessage="Enter 'To' Date" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                  &nbsp;&nbsp;
          </td>
          <td></td>
          </tr>
                <tr>
              <td >
                  &nbsp;</td>
              <td >
                  <asp:Button ID="btnShowLeave" runat="server" CssClass="myButton" 
                         OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false"  onclick="btnShowLeave_Click" Text="Show Leaves" ValidationGroup="1" Width="150px"/>
                  <asp:Label ID="lbl_show_masg" runat="server" Text="" ForeColor="Red"></asp:Label>
              </td>
              <td >
                  &nbsp;</td>
          </tr>
       
       
      
      </table>
      </asp:Panel>
          <asp:Panel ID="Panel3" runat="server" CssClass="contactpanelcss" Width="35%" Visible="false">
            <asp:GridView ID="GridView2" runat="server" CellPadding="4"  
                 GridLines="None" AutoGenerateColumns="false" Width="100%"
                 BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black">
             
                <Columns>
                                            <%--fIRST record--%>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <asp:Label ID="lblRowId" runat="server" Text='<%# Eval("ECode")%>' Visible="false"></asp:Label>
                                                        
                                                </ItemTemplate>
                                       
                                                
                                            </asp:TemplateField>
                                            <%-- 2nd record--%>
                                            <asp:TemplateField HeaderText="From Date" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                 <center>
                                                   <asp:TextBox ID="lblDate" runat="server" Text='<%# Eval("FromDate")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>     
                                                 </center>
                                                </ItemTemplate>
                                               
                                            </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderText="To Date" ItemStyle-Width="100px">
                                                <ItemTemplate>
                                                 <center> 
                                                   <asp:TextBox ID="lblDate1" runat="server" Text='<%# Eval("ToDate")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:TextBox>  
                                               </center>
                                                </ItemTemplate>
                                               
                                            </asp:TemplateField>
                                            <%-- 3rd record--%>
                                            <asp:TemplateField HeaderText="Day Count" ItemStyle-Width="150px">
                                                <ItemTemplate>
                                                <center>   
                                                  <asp:TextBox ID="lblType" runat="server" Text='<%# Eval("Dayscount")%>' Height="30px"
                                                Width="150px" ReadOnly="true" CssClass="font"></asp:TextBox>  
                                                </center>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                           
                                        </Columns>
                    
                     <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
              
            </asp:GridView>
               </asp:Panel>
               
               
               
                 <asp:Panel ID="pnl_back_date_report" runat="server" CssClass="shadow_five2"  Width="97%">
    <table style="width: 948px;" >
    
    <tr>
    <td>
    <div class="p12" style="float:left; width:200px"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;&nbsp;&nbsp;Fill Back date Reoprt
      </p>
      </div>
    </td>
    <td>
    
      </td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td align="right"><asp:Label ID="Label9" runat="server" Text="Select Date:" ForeColor="Black"></asp:Label></td>
    <td>
        <asp:TextBox ID="txt_report_date" runat="server"></asp:TextBox>
          <cc1:CalendarExtender ID="CalendarExtender3" runat="server" Enabled="true" 
                      TargetControlID="txt_report_date" >
                  </cc1:CalendarExtender>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                      ControlToValidate="txt_report_date" ErrorMessage="Select report Date" 
                      ValidationGroup="11" ForeColor="Red"></asp:RequiredFieldValidator>
        
        </td>
    <td></td>
    <td></td>
</tr>
    <tr>
    <td align="right"> <asp:Label ID="Label8" runat="server" Text="Reason Details:" ForeColor="Black"></asp:Label></td>
    <td><asp:TextBox runat="server" ID="txt_report_desc" TextMode="MultiLine" 
            Height="63px" Width="280px" ></asp:TextBox>
    
    
     </td>
    <td></td>
    <td></td>

    </tr>

<tr>

    <td></td>
    <td></td>
    <td></td>
    <td></td>

</tr>
<tr>

    <td></td>
    <td>
     <asp:Button ID="btn_submit_report" runat="server" Text="Submit" 
              OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false"   onclick="btn_submit_report_Click" CssClass="myButton"  ValidationGroup="11" />
            
        <asp:Label ID="lbl_msg_report" runat="server" Text="" ForeColor="Red"></asp:Label>
    </td>
    <td></td>
    <td></td>

</tr>
    </table>
       
    
    
    </asp:Panel>
    

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

