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


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
 
      <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;
        }
         .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;
        }
     .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%);
}
 .contactpanelcss
        {
        	width:98%;
        	  margin: 0px;
         background-color: White;
         border: 0px solid #8AE2FF;
         padding: 0px;
         margin-top: 0px;
        	     	   	
        }


.font
{
	font-size:12px;
	font-family:Verdana;
	}
	
	 .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:320px;
        }
         .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	   
        	width:300px;
        	height:20%;
        	background-color:#ffebcc;
        	display:inline;
            z-index:999;
            margin-top:200px;
            align:center;
        	
        
        }

 
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

     <asp:UpdateProgress ID="UpdateProgress2" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1111" 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="100%" >  <%--BorderStyle="Groove"--%>
    <div class="p1"  >
      <p style="font-family:Verdana; font-size:16px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Blue;">&nbsp;&nbsp;&nbsp;&nbsp;Approve Leaves
      </p>
           </div>
           
    <table class="style2">
    
        <tr><td></td></tr>
        
     
        
        <tr><td>
         <asp:Panel ID="Panel4" runat="server" CssClass="contactpanelcss" Width="90%">
            <asp:GridView ID="GridView1" runat="server" CellPadding="4" GridLines="Both" 
                 AutoGenerateColumns="false" Width="100%"
                 BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                 onrowdatabound="GridView1_RowDataBound">
                   <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                <Columns>
                                            <%--fIRST record--%>
                                            <asp:TemplateField Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblRowId" runat="server" Text='<%# Eval("RowId")%>' Visible="false"></asp:Label>
                                                        <asp:Label ID="lbl_eid_val" runat="server" Text='<%# Eval("EID")%>' Visible="false"></asp:Label>
                                                        
                                                </ItemTemplate>
                                       
                                                
                                            </asp:TemplateField>
                                            <%-- 2nd record--%>
                                            <asp:TemplateField HeaderText="Employee Name" HeaderStyle-Width="100">
                                                <ItemTemplate>
                                                   <asp:Label ID="lblEname" runat="server" Text='<%# Eval("EName")%>' Height="30px"
                                                Width="160px" ReadOnly="true" CssClass="font"></asp:Label>     
                                                 
                                                </ItemTemplate>
                                               
                                            </asp:TemplateField>
                                           
                                            <%-- 3rd record--%>
                                           <%-- <asp:TemplateField HeaderText="From" ItemStyle-Width="80px" HeaderStyle-Width="100">
                                                <ItemTemplate>
                                                <center>    
                                                   <asp:Label ID="lblFrom" runat="server" Text='<%# Eval("fromdatevar")%>' Height="30px"
                                                Width="120px" ReadOnly="true" CssClass="font"></asp:Label>     
                                                </center>
                                                </ItemTemplate>
                                              
                                                <ItemStyle Width="80px" />
                                              
                                            </asp:TemplateField>--%>
                                            <%--  4th--%>
                                            <asp:TemplateField HeaderText="Date" ItemStyle-Width="200px" HeaderStyle-Width="100">
                                                <ItemTemplate>
                                                <asp:Label ID="lblFrom" runat="server" Text='<%# Eval("fromdatevar")%>' Height="30px"
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:Label>  
                                                
                                                  <asp:Label ID="lblTo" runat="server" Text='<%# Eval("Todatevar")%>' Height="30px"
                                                Width="200px" ReadOnly="true" CssClass="font" Visible="false"></asp:Label>     
                                               <asp:Label ID="lblType" runat="server" Text='<%# Eval("Type") %>' Visible="false"></asp:Label>
                                                </ItemTemplate>
                                              
                                                <ItemStyle Width="100px" />
                                              
                                            </asp:TemplateField>
                                            
                                             <asp:TemplateField HeaderText="Days" HeaderStyle-Width="50">
                                                <ItemTemplate>
                                                 <center>
                                                  <asp:Label ID="lblDayscount" runat="server" Text='<%# Eval("Dayscount")%>' Height="30px"
                                                Width="50px" ReadOnly="true" CssClass="font"></asp:Label>     
                                              </center>
                                                </ItemTemplate>
                                               
                                            </asp:TemplateField>
                                            
                                            <%--5th--%>
                                            <asp:TemplateField HeaderText="Purpose" ItemStyle-Width="200px" HeaderStyle-Width="100">
                                                <ItemTemplate>
                                                <center>   
                                                 <asp:Label ID="lblPurpose" runat="server" Text='<%# Eval("Purpose")%>' Height="30px"
                                                Width="200px" ReadOnly="true" CssClass="font"></asp:Label>   
                                               </center>
                                                </ItemTemplate>
                                                
                                             
                                                
                                            </asp:TemplateField>
                                           
                                            <asp:TemplateField HeaderStyle-Width="50px" HeaderText="Approve" 
                                                ItemStyle-Width="30px">
                                             <ItemTemplate>
                                                    <asp:CheckBox ID="chk_all" runat="server" />
                                               </ItemTemplate>
                                                <ControlStyle Width="40px" />
                                                <HeaderStyle HorizontalAlign="Left" Width="40px" />
                                                <ItemStyle Width="40px" />
                                            </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderStyle-Width="150px" HeaderText="Not Approve" 
                                                ItemStyle-Width="40px">
                                             <ItemTemplate>
                                                    <asp:CheckBox ID="chk_all_Not" runat="server" />
                                               </ItemTemplate>
                                                <ControlStyle Width="40px" />
                                                <HeaderStyle HorizontalAlign="Left" Width="40px" />
                                                <ItemStyle Width="40px" />
                                            </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>
            
             <table width="100%">
             <tr><td colspan="2"></td></tr>
                                <tr><td colspan="2">
                                <asp:Label ID="lblMsg" runat="server" 
                                    Text="Select employees for approval and click 'Submit' button." 
                                    Font-Bold="True" Font-Size="Medium" ForeColor="#CC3300"></asp:Label> 
                                   <br />
                                    </td></tr>
                                
                               
                             <tr><td>
                             </td>
   
                                    <td align="right">
                                    <asp:Button ID="btnApprove" runat="server"  Text="Submit"  CssClass="myButton" onclick="btnApprove_Click" Width="100px" />
                                        &nbsp;&nbsp;          
                                    <br /></td></tr> 
                                           
                                     
                                    <tr><td colspan="2" align="right"> <asp:Label ID="lblTestChk" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label></td></tr>
                                </table>
          </asp:Panel>  
      
        
        </td></tr>
        

    </table>
        </b>
    </asp:Panel>


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

