<%@ page language="C#" autoeventwireup="true" inherits="html_ProjectPlanningsheet, App_Web_qsmgnciu" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
     .Label
    {

       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#55002b 90%, #55002b);
-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:25px;

}
 .myButton {
        
        -moz-box-shadow:inset 0px 1px 0px 0px #54a3f7;
        -webkit-box-shadow:inset 0px 1px 0px 0px #54a3f7;
        box-shadow:inset 0px 1px 0px 0px #54a3f7;
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #007dc1), color-stop(1, #0061a7));
        background:-moz-linear-gradient(top, #007dc1 5%, #0061a7 100%);
        background:-webkit-linear-gradient(top, #007dc1 5%, #0061a7 100%);
        background:-o-linear-gradient(top, #007dc1 5%, #0061a7 100%);
        background:-ms-linear-gradient(top, #007dc1 5%, #0061a7 100%);
        background:linear-gradient(to bottom, #007dc1 5%, #0061a7 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7',GradientType=0);
        
        background-color:#007dc1;
        
        -moz-border-radius:3px;
        -webkit-border-radius:3px;
        border-radius:3px;
        
        border:1px solid #124d77;
        
        display:inline-block;
        color:#ffffff;
        font-family:arial;
        font-size:13px;
        font-weight:bold;
        padding:6px 10px;
        text-decoration:none;
        
        text-shadow:0px 1px 0px #154682;
        
    }
    
    
    </style>
    
    
    
       <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    
    
       <script type="text/javascript">
           var tableToExcel = (function() {

           $("#testTable tbody tr.Class_stages").show();
           $("#testTable tbody tr.aaaabb").show();
                     
               var uri = 'data:application/vnd.ms-excel;base64,'
                , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'
                , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }
                , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) }
               return function(table, name) {
                   if (!table.nodeType) table = document.getElementById(table)
                   var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML }
                   window.location.href = uri + base64(format(template, ctx))
               }
           })()
    </script>
  
  
  
 <script type="text/javascript">
     $().ready(function() {

       
     });
  
  </script>
  
  
  
  
   

 <script type="text/javascript">
     $().ready(function() {

         var hfYes = $('input[id$=hf_project_selected]').val();
         if (hfYes == "Yes") {

             $("#testTable tbody tr.Class_stages").hide();
             $("#testTable tbody tr.aaaabb").hide();
         }
         else {
         }




         $("#testTable tbody a").live('click', function(event) {

             var id = event.target.id;

             var Type = event.target.title;
             if (Type == "View Task") {

                 $("#testTable tbody tr").each(function() {

                     var valI = $(this).closest('tr').attr('id');

                     var ppp = $(this).closest('tr').css('display');

                     if (valI == id) {

                         if (ppp == 'none') {
                             $(this).show();
                         }
                         else {
                             $(this).hide();
                         }

                     }


                 });


             } else if (Type == "View Stage") {


                 $("#testTable tbody tr").each(function() {

                     var valI = $(this).closest('tr').attr('id');

                     var ppp = $(this).closest('tr').css('display');

                     if (valI == id) {
                         if (ppp == 'none') {
                             $(this).show();
                         }
                         else {
                             $(this).hide();
                         }

                     }
                 });

             }
         });

     });


 </script>
 
 
 
  
</head>
<body>
    <form id="form1" runat="server">
    
    
    <asp:HiddenField ID="hf_project_selected" runat="server" />
    <div>
    <table width="100%">
    <tr>
    <td>
    <img src="../images/PMS-Header-New1.jpg"
          alt="Project Monitor" width="100%" height="165px" />
    </td>
    </tr>
    </table>
    
   
    <div style="width:100%;" id="showdiv" runat="server"  >
    
      
                <div style="width:15%;float:left;">
                   <asp:Label ID="Label5" runat="server" Text="&nbsp;&nbsp;Project-wise Planning & Status"  CssClass="Label" 
                    Height="25px" Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="Medium"></asp:Label>
                    </div>
                    <div style="margin-right:100px;float:right;margin-left:100px;" align="right" >
                    
                       <input type="button" onclick="tableToExcel('testTable', 'W3C Example Table')" value="Export to Excel"  class="myButton">
                     &nbsp;&nbsp;
                          <asp:Button ID="Button1" runat="server" Text="Back" 
                    CssClass="myButton"  Width="120px" PostBackUrl="~/html/ProjectPlanningM.aspx"  />  
                    &nbsp;&nbsp;
                     <asp:Button ID="Button2" runat="server" Text="Home" 
                    CssClass="myButton"  Width="120px" PostBackUrl="~/html/Home.aspx" />  
                    
                    </div>
                
        
  
      
           </div>
           <br />   <br />
    <asp:Panel ID="pnl_show_project_plan_approval" runat="server" BackColor="White" BorderColor="Blue" BorderStyle="Solid" BorderWidth="2" 
                   >
                    
                       <div style="width:100%;overflow:auto; height:500px;" >          
                       
                   <table id="testTable" width="100%" style="margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;">
                   <tr style="" >
                   <td >
                   <div  >
                       <label for="inputEmail"  style="color:Red; font-size:medium;"><b>Project No:</b></label>
                           <asp:Label runat="server" ID="txt_projno" Text=''  Enabled="false"  ></asp:Label>
                    </div>
                   </td>
                       
                           
                             
                                       <td  >
                                       <div style="width:300px;" >
                                           <label class="col-lg-2 control-label" for="inputEmail" 
                                               style="color:Red; font-size:medium;">
                                           <b>Client Name: </b>
                                           </label>
                                           <asp:Label ID="txt_client" runat="server" CssClass="form-control1" 
                                               Enabled="false" Text=""></asp:Label>
                                               </div>
                                       </td>
                      
                   </tr>
                   
                   <tr>
                      <td >
                                       <label for="inputEmail"   class="col-lg-2 control-label"  style="color:Red; font-size:medium;"><b>Project Name:</b></label>
                        <asp:Label runat="server" ID="txt_Porojname" Text=''  Enabled="false"  CssClass="form-control1"></asp:Label>    
                                          
                                          
                                       </td>
                    <td>
                    
                       <label for="inputEmail"   class="col-lg-2 control-label"  style="color:Red; font-size:medium;"><b>
                           End User:</b></label>
                       
                         <asp:Label runat="server" ID="txt_enduser" Text=''  Enabled="false"  CssClass="form-control1"></asp:Label>
                         
                     
            
                   </td>
                   
                   </tr>
                   <tr>
                   <td > 
                   
                    <label class="col-lg-2 control-label" for="inputEmail" 
                                               style="color:Red; font-size:medium;">
                                           <b>Project Head:</b></label>
                                           <asp:Label ID="txt_projhead" runat="server" CssClass="form-control1" 
                                               Enabled="false" Text=""></asp:Label>
                                               
                    
             
                   </td>
                       <td>
                      <label for="inputEmail"   class="col-lg-2 control-label"  style="color:Red; font-size:medium;"><b>Project Team:</b></label>
                         <asp:Label runat="server" ID="txt_Projteam" Text=''  Enabled="false"  CssClass="form-control1"></asp:Label>
          
                   </td>
                     
                     
                   </tr>
        
                   <tr >
                   <td>
                    <label class="col-lg-2 control-label" for="inputEmail" 
                                               style="color:Red; font-size:medium;">
                                           <b>Start Date:</b>
                                           </label>
                                           <asp:Label ID="txt_startdate" runat="server" CssClass="form-control1" 
                                               Enabled="false" Text=""></asp:Label>
                    
                   </td>
                   <td>
                    <label for="inputEmail"   class="col-lg-2 control-label"  style="color:Red; font-size:medium;"><b>End Date:</b></label>
                        <asp:Label runat="server" ID="txt_enddate" Text=''  Enabled="false"  CssClass="form-control1"></asp:Label>
                   </td>
                   </tr>
                   
                     <tr style="height:5px;">
                   <td>
                    
                     
                   </td>
                   </tr>
                   
                    <%=show_html%>    
                   </table>
                
 
                    
                                       
                      
                   
                        </div> 
                        
                       
                        
                     <br />
                      
                      <input type="button" onclick="tableToExcel('testTable', 'W3C Example Table')" value="Export to Excel"  class="myButton">
                     &nbsp;&nbsp;
                          <asp:Button ID="back" runat="server" Text="Back" 
                    CssClass="myButton"  Width="120px" PostBackUrl="~/html/ProjectPlanningM.aspx"  />  
                    &nbsp;&nbsp;
                     <asp:Button ID="Home" runat="server" Text="Home" 
                    CssClass="myButton"  Width="120px" PostBackUrl="~/html/Home.aspx" />  
              <br /><br />
            
        </asp:Panel>
          <asp:HiddenField ID="hf_mainstage_id" runat="server" />
          <asp:HiddenField ID="hf_count" runat="server" />
            <asp:HiddenField ID="hf_count_month" runat="server" />
     </div>
    </form>
</body>
</html>
