<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Request_Approval, App_Web_susspz30" %>
<%@ 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">
    
     .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;
           width:65%;
        }
 .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:250px;
        }
        
        .p2
        {
       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:350px;
        }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel runat="server" ID="pnl_date_request" >
         <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;Request Approval Date  </b>
      </p>
           </div>
           
           <br />
           <br />
    
    <div runat="server" id="div_request_data" visible="false">
<asp:GridView runat="server" ID="gv_show_request_data" AutoGenerateColumns="false" 
            ForeColor="#333333" GridLines="Both" 
 Font-Names="Verdana" Font-Size="12px" CellSpacing="5" CellPadding="5" 
            onrowcommand="gv_show_request_data_RowCommand" >
   <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
<Columns>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Employee Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_req_id" Text='<% #Eval("req_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_subemp_name" Text='<% # Eval("EName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Project Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_project_name" Text='<% # Eval("PName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Activity name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_main_stagename" Text='<% # Eval("Mainstage_name") %>'></asp:Label>
<asp:Label runat="server" ID="lbl_mainStage_id" Text='<% #Eval("main_stage_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_substage_id" Text='<% #Eval("sub_stage_id")%>' Visible="false"></asp:Label>



</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Sub stage name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stagename" Text='<% # Eval("sub_stage_desc") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Existing completion date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stageexistingdate" Text='<% # Eval("exist_comp_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Proposed completion date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stage_proposed_date" Text='<% # Eval("proposed_comp_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="200px" HeaderText="Reason For Delay">
<ItemTemplate>

<asp:Label runat="server" ID="lbl_reason" Text='<% # Eval("reason") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sent date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_request_date" Text='<% # Eval("request_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>

 <asp:TemplateField>
<ItemTemplate>
<%--    <asp:LinkButton ID="lnk_Notapproved" runat="server"  CommandName="NotApprove" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>
--%>
    <asp:LinkButton ID="lnk_Notapproved" runat="server"  CommandName="NotApprove" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField >
<ItemTemplate>
    <asp:LinkButton ID="lnk_approved" runat="server"  CommandName="Approve" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" >Approve</asp:LinkButton>
</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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button runat="server" ID="btn_approval" Text="Approve" onclick="btn_approval_Click" CssClass="myButton" Visible="false" />
</div>


 <div runat="server" id="div_sub_sub_stage" visible="false">
<asp:GridView runat="server" ID="gv_sub_sub_stage" AutoGenerateColumns="false" 
            ForeColor="#333333" GridLines="Both" 
 Font-Names="Verdana" Font-Size="12px" CellSpacing="5" CellPadding="5" 
            onrowcommand="gv_sub_sub_stage_RowCommand" >
   <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
<Columns>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Employee Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stage_req_id" Text='<% #Eval("req_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_sub_sub_stage_subemp_name" Text='<% # Eval("EName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Project Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stageproject_name" Text='<% # Eval("PName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Activity name <br/> Sub Stage">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stagemain_stagename" Text='<% # Eval("Mainstage_name") %>' ForeColor="#cc00ff"></asp:Label>
<br />
<asp:Label runat="server" ID="lbl_stage_sub_a_name" Text='<% # Eval("sub_stage_desc") %>'></asp:Label>

<asp:Label runat="server" ID="lbl_sub_sub_stagemainStage_id" Text='<% #Eval("main_stage_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_sub_sub_stagesubstage_id" Text='<% #Eval("sub_stage_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_subsubstage_id_val" Text='<% #Eval("subsubstage_id")%>' Visible="false"></asp:Label>


</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Task name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stagesub_stagename" Text='<% # Eval("sub_Sub_stage_desc") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Existing completion date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stagesub_stageexistingdate" Text='<% # Eval("exist_comp_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Proposed completion date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stagesub_stage_proposed_date" Text='<% # Eval("proposed_comp_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="200px" HeaderText="Reason For Delay">
<ItemTemplate>

<asp:Label runat="server" ID="sub_sub_stagelbl_reason" Text='<% # Eval("reason") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sent date" HeaderStyle-Width="80px">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_sub_stagerequest_date" Text='<% # Eval("request_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>

 <asp:TemplateField>
<ItemTemplate>
<%--    <asp:LinkButton ID="lnk_Notapproved" runat="server"  CommandName="NotApprove" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>
--%>
    <asp:LinkButton ID="lnk_sub_sub_stageNotapproved" runat="server"  CommandName="NotApprove" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField >
<ItemTemplate>
    <asp:LinkButton ID="lnk_sub_sub_stageapproved" runat="server"  CommandName="Approve" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" >Approve</asp:LinkButton>
</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>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button runat="server" ID="btn_sub_sub_stage" Text="Approve" onclick="btn_sub_sub_stage_Click" CssClass="myButton" Visible="false" />
</div>



</asp:Panel>
    <asp:Panel ID="pnl_percentages_requset" runat="server">
    
     <div class="p2"  >
      <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;Request Approval for Percentages  </b>
      </p>
           </div>
           
           <br />
           <br />
    
    <div runat="server" id="div1">
<asp:GridView runat="server" ID="gv_percentages_approval" AutoGenerateColumns="false"
 ForeColor="#333333" GridLines="Both"  Font-Names="Verdana" Font-Size="12px" 
            CellSpacing="5" CellPadding="5" 
            onrowcommand="gv_percentages_approval_RowCommand" >
   <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
<Columns>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Employee Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_subemp_name1" Text='<% # Eval("EName") %>'></asp:Label>

<asp:Label runat="server" ID="lbl_task_id" Text='<% # Eval("task_id") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Project Name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_project_name_percentages" Text='<% # Eval("PName") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Main stage name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_main_stagename1" Text='<% # Eval("Mainstage_name") %>'></asp:Label>
<asp:Label runat="server" ID="lbl_req_id1" Text='<% #Eval("req_per_id")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_mainStage_id1" Text='<% #Eval("Mainstage_ID")%>' Visible="false"></asp:Label>
<asp:Label runat="server" ID="lbl_substage_id1" Text='<% #Eval("sub_stage_id")%>' Visible="false"></asp:Label>



</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="150px" HeaderText="Sub stage name">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stagename1" Text='<% # Eval("sub_stage_desc") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Percentages">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stagepercentages" Text='<% # Eval("total_per") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="200px" HeaderText="Reason">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_sub_stage_reason" Text='<% # Eval("reason_for_delay") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Sent date">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_request_dateaa" Text='<% # Eval("request_date") %>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<%--<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="chk_approval_request1" />
</ItemTemplate>
</asp:TemplateField>--%>


 <asp:TemplateField>
<ItemTemplate>
    <asp:LinkButton ID="lnk_Notapproved_per" runat="server"  CommandName="NotApprove1" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField >
<ItemTemplate>
    <asp:LinkButton ID="lnk_approved_per" runat="server"  CommandName="Approve1" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" >Approve</asp:LinkButton>
</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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button runat="server" ID="Button1" Text="Approve"  CssClass="myButton" 
            onclick="Button1_Click" Visible="false" />
</div>
    </asp:Panel>
    
    
    
    
    <div>

      <asp:Button ID="btn_show_popup" runat="server"  style="display:none;" />
    <cc1:ModalPopupExtender runat="server" ID="popup_for_date_approval" CancelControlID="img_btn" TargetControlID="btn_show_popup" 
    PopupControlID="pnl_show_link"></cc1:ModalPopupExtender>
        <asp:Panel ID="pnl_show_link" runat="server" CssClass="shadow_five2" Width="400px" Height="200px" BorderColor="Green" BorderWidth="2" BorderStyle="Solid">
          
         <table width="400px" style="height:200px">   
        
          
         <tr>
         <td>
            
         </td>
         <td align="center">
      <asp:Label ID="Label1" runat="server" Text="Reason for not approved" Font-Bold="true"></asp:Label>
             <asp:HiddenField ID="hf_row_id" runat="server" />
         </td>
         <td align="right">
         <asp:ImageButton ID="img_btn" runat="server" ImageUrl="~/images/Close_Box_Red12.png" />
         </td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:TextBox ID="txt_reason" runat="server" TextMode="MultiLine" Width="250px" Height="100px"></asp:TextBox>
             <br />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Reason"
              ControlToValidate="txt_reason" ValidationGroup="gp1" ForeColor="Red"></asp:RequiredFieldValidator>
         </td>
          <td></td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:Button ID="btn_submit_reason" runat="server" Text="Submit" 
                 CssClass="myButton" onclick="btn_submit_reason_Click" ValidationGroup="gp1" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <%-- <asp:Button ID="Button1" runat="server" Text="Close" CssClass="myButton" />--%>
         </td>
          <td></td>
         </tr>
         </table>
          
            
           
             
          
        </asp:Panel>  
</div>




 <div>

      <asp:Button ID="btn_per_approvl" runat="server"  style="display:none;" />
    <cc1:ModalPopupExtender runat="server" ID="ModalPopupEx_per_approval" CancelControlID="img_btn_per_approval" TargetControlID="btn_per_approvl" 
    PopupControlID="pnl_per_approval"></cc1:ModalPopupExtender>
        <asp:Panel ID="pnl_per_approval" runat="server" CssClass="shadow_five2" Width="400px" Height="200px" BorderColor="Green" BorderWidth="2" BorderStyle="Solid">
          
         <table width="400px" style="height:200px">   
        
          
         <tr>
         <td>
            
         </td>
         <td align="center">
      <asp:Label ID="Label2" runat="server" Text="Reason for not approved" Font-Bold="true"></asp:Label>
             <asp:HiddenField ID="hf_per_id" runat="server" />
         </td>
         <td align="right">
         <asp:ImageButton ID="img_btn_per_approval" runat="server" ImageUrl="~/images/Close_Box_Red12.png" />
         </td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:TextBox ID="txt_per_not_ap_reason" runat="server" TextMode="MultiLine" Width="250px" Height="100px"></asp:TextBox>
             <br />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Enter Reason"
              ControlToValidate="txt_per_not_ap_reason" ValidationGroup="gp11" ForeColor="Red"></asp:RequiredFieldValidator>
         </td>
          <td></td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:Button ID="btn_percentages_not_approve" runat="server" Text="Submit" 
                 CssClass="myButton"  ValidationGroup="gp11" 
                 onclick="btn_percentages_not_approve_Click" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <%-- <asp:Button ID="Button1" runat="server" Text="Close" CssClass="myButton" />--%>
         </td>
          <td></td>
         </tr>
         </table>
          
            
           
             
          
        </asp:Panel>  
</div>
    
   
</asp:Content>
