<%@ Page Language="C#" MasterPageFile="~/Flight/MasterPages/MasterPageOutSide.master" AutoEventWireup="true" EnableViewStateMac="false"  CodeFile="Fltbookingdetails.aspx.cs" Inherits="User_booking" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script>
    
   <%-- <link rel="stylesheet" href="/resources/demos/style.css" />--%>
    

    
<script type="text/javascript">

    function showad() {

        $("#dialog").dialog();
        $(".ui-dialog-titlebar").hide();
        $("#dialog").dialog({ position: { my: "left+3 bottom-3", of: event, collision: "fit"} });
    }

    function showbtn() {


        
        $("#btnStatus").dialog();
        $(".ui-dialog-titlebar").hide();
        $("#btnStatus").dialog({ position: { my: "left-10 bottom+10", of: event, collision: "fit"} });
    

}

function closebtn() {

   
    $("#btnStatus").dialog("close");

}
    function closead() {

        $("#dialog").dialog("close");
        $("#btnStatus").dialog("close");

    }

    

        $(function() {
            $("#ctl00_ContentPlaceHolder1_txtFlightfrom").datepicker({ dateFormat: 'yy-mm-dd' });
            $("#ctl00_ContentPlaceHolder1_txtFlightto").datepicker({ dateFormat: 'yy-mm-dd' });
        });


      


    function HideContent(d) {
        d = d.replace('messag', 'message');
        if (d.length < 1) { return; }
        document.getElementById(d).style.display = "none";
    }

    function ShowContent(d) {
        d = d.replace('messag', 'message');
        if (d.length < 1) { return; }
        var dd = document.getElementById(d);
        //AssignPosition(dd);
        dd.style.display = "block";
    }
</script>



<style type="text/css">
.no-close .ui-dialog-titlebar-close {
  display: none;
}


</style>
<style type="text/css">
.message{width:370px; height:90px; border:darkgray 2px solid; position:absolute; display:none; margin:0; padding-top:20px; text-align:center; background-color:White; color:black;font-size::13px}

.tabs{font-size:13px;font-weight:bold;background:rgb(235,235,235); padding:5px 10px 5px 10px;box-shadow:0 0 3px #bbb inset,0 0 3px #333;
border-radius:5px;text-align:center; margin:0 25px 0 25px; border:none;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div id="dialog" style="display:none;"><br />
        <p>
           <b> Departure : </b>11:00 AM,Tuesday, December 24, 2013 DEL(DEL)</p><br />
        <p>
            <b> Arrival : </b>12:00 PM,Tuesday, December 24, 2013 JDH(JDH)</p>
    </div>
   
    <a href="#" onclick="closebtn()" style="" class="hide" id="btnStatus">Find Ticket Status</a>
   
   
    
                      <!--start of middle part-->
           
                <!--start of middle_login_contain-->
                <div class="login_wrap_container box_shadow1">
                    <div class="login_wrp1">
                        <!--statr of tab header-->
                      <%--  <div  style="border:0px solid red; text-align:center; padding:10px;">
                            
                            <asp:Button ID="btnflight" runat="server" Text="Flight" CssClass="tabs"  onclick="btnflight_Click"/>
                                
                            
                                <asp:Button ID="btnhotel" runat="server" Text="Hotel" CssClass="tabs" onclick="btnhotel_Click" />
                                
                            
                                <asp:Button ID="btnbus" runat="server" Text="Bus" CssClass="tabs" 
                                onclick="btnbus_Click"  />
                                
                        </div>--%>
                        <!--end of header tab-->
                        <div class="clear">
                        </div>
                        <!--Start Of Flight Saksham-->
                        <div class="login_confull flight_tbs_v box_shadow1">
                            <div class="login_form_wrp1" ID="div_1" runat="server">
                                <br />
                                <table style="width: 600px; margin-left:300px; float:left;">
                                    <tr>
                                        <td>
                                            <b>From</b>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtFlightfrom" Style="width: 170px" class="fild_wrap calimg"
                                                value="YYYY/MM/DD" onblur="if(this.value==''){ this.value='YYYY/MM/DD'; this.style.color='#666666'}"
                                                onfocus="if(this.value =='YYYY/MM/DD' ) this.value=''" onkeypress="this.style.color='#202020'"></asp:TextBox>
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                            <b>To</b>
                                        </td>
                                        <td>
                                            <asp:TextBox runat="server" ID="txtFlightto" Style="width: 170px" class="fild_wrap calimg"
                                                value="YYYY/MM/DD" onblur="if(this.value==''){ this.value='YYYY/MM/DD'; this.style.color='#666666'}"
                                                onfocus="if(this.value =='YYYY/MM/DD' ) this.value=''" onkeypress="this.style.color='#202020'"></asp:TextBox>
                                        </td>
                                        <td>&nbsp;
                                        </td>
                                        <td>
                                            <asp:Button runat="server" ID="btnFltsbtn" Text="Submit" class="btn_sign" Style="color: #FFF;
                                                font-weight: bold; cursor: pointer" onclick="btnFltsbtn_Click" />
                                            
                                        </td>
                                        
                                    </tr>
                                </table>
                                         <%--<div style="float:right;">   <asp:Button runat="server" ID="btnFltdwnld" Text="Download" class="btn_sign" Style="color: #FFF;
                                                font-weight: bold; margin-left: 26px; cursor: pointer;" Visible="false" /></div>--%>
                                            
                                        
                                <br />
                                <br />
                                <br />
                                
                                
                                
                                <asp:GridView ID="gridview_completed_trip" runat="server" AutoGenerateColumns="false" EmptyDataText="No record found" RowStyle-HorizontalAlign="Center" Width="100%" RowStyle-Height="27px" OnRowCommand="gridview_completed_trip_RowCommand">
                                    <Columns>
                                    <asp:TemplateField HeaderText="Booking Date" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_bookingdate" Text='<%#Convert.ToDateTime(Eval("bookingdate")).ToString("dd-MM-yyyy")  %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Particulars" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblparticular" Text="Flight Booking"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="PNR" ItemStyle-Width="9%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_Pnr" Text='<%#Eval("Confirmationid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Travel Date" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_traveldate_upcoming" Text='<%#Convert.ToDateTime(Eval("JDate")).ToString("dd-MM-yyyy")  %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Trip ID" ItemStyle-Width="12%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_tripid_upcoming" Text='<%#Eval("partnerrefid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField HeaderText="Completed Trip Details" ItemStyle-Width="27%">
                                        <ItemTemplate>
                                                                                  <asp:Image runat="server" ID="image" ImageUrl='<%# Eval("Jtype").Equals("Depart")? "../images/product_icon_f.gif":"../images/product_icon_f_return.gif" %>' />

                                           <asp:LinkButton runat="server" ID="link_details_upcoming"  CommandArgument='<%# Eval("partnerrefid") %>' CommandName="details" Text='<%#Eval("Origin")+" - "+Eval("Destination")+"  "+Eval("Jtype")  %>'></asp:LinkButton>
                                    <br />
                                       <asp:Label runat="server" ID="lbl_passdetails" Text='<%# Convert.ToInt16(Eval("totalnoofpass"))-Convert.ToInt16(Eval("incancel")) +" of "+Eval("totalnoofpass")+" Passenger Flown" %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>--%>
                                    <asp:TemplateField HeaderText="Flight Carrier" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lblFlightCarrier" Text='<%#Eval("airLineName") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                     <%--<asp:TemplateField HeaderText="Flight Timing" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                        
                                       <a onmouseover="javascript:ShowContent(this.id); return true;" onmouseout="javascript:HideContent(this.id); return true;"  id="messag" runat="server">  <asp:Label runat="server" ID="lblFlightTiming" Text="Dep./Arr."></asp:Label></a>
                                        
                                         <div class="message" id="message" runat="server">
      <table style=" font-size:12px; font-family:Trebuchet MS; font-weight:bold;">
      <tr>
      <td style=" font-size:12px; font-family:Trebuchet MS; font-weight:bold; width:100px;"> Departure :  </td> <td style=" font-size:12px; font-family:Trebuchet MS; font-weight:bold;">
      <asp:Label ID="lbldeparttime" runat="server" Text='<%# Eval("DepartureDateTime") %>'></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lbldepartcode" runat="server" Text='<%# Eval("DepartureAirportCode") %>'></asp:Label>&nbsp;(<asp:Label ID="lblorigincode" runat="server" Text='<%# Eval("Origin") %>'></asp:Label>)
      </td>
          
      </tr>
      <tr><td colspan="2">&nbsp;</td></tr>
       <tr>
      <td style=" font-size:12px; font-family:Trebuchet MS; font-weight:bold; width:100px;"> Arrival :  </td> <td style=" font-size:12px; font-family:Trebuchet MS; font-weight:bold;">
      <asp:Label ID="lblArrivalTime" runat="server" Text='<%# Eval("ArrivalDateTime") %>'></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblarrivalcode" runat="server" Text='<%# Eval("ArrivalAirportCode") %>'></asp:Label>&nbsp;(<asp:Label ID="lbldestination" runat="server" Text='<%# Eval("Destination") %>'></asp:Label>)
      </td>
      </tr>
      
      </table>
      </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>--%>
                                     <asp:TemplateField HeaderText="Journey Type" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lbljtype" Text='<%#Eval("Jtype") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Amount" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                        <asp:Label runat="server" ID="lbl_price_upcoming" Text='<%#Eval("Jtype").Equals("Depart")? "Rs. "+Convert.ToString( Convert.ToDecimal( Eval("TicketPrice"))):"Rs. "+ Convert.ToString(Convert.ToDecimal(Eval("TicketPrice")))%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Status" ItemStyle-Width="9%">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lbl_status_upcoming" Text='<%#Eval("Status") %>'></asp:Label>
                                            <asp:Button ID="btnpending" runat="server" class="btn_sign" Style="color:#FFF; font-weight: bold;margin-left: 11px;" Text="Find Status" CommandArgument='<%#Eval("partnerrefid") %>' CommandName="findstatus" Visible="false" />
                                            
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    
                                    <asp:TemplateField HeaderText="Action" ItemStyle-Width="16%">
                                        <ItemTemplate>
                                        <%--'<%#Eval("Jtype").Equals("Depart")? "Rs. "+Convert.ToString( Convert.ToDecimal( Eval("TicketPrice"))+Convert.ToDecimal( Eval("other_tax") )):"Rs. "+ Convert.ToString(Eval("TicketPrice","{0:F}") )%>'--%>
                                        <%--<asp:Label runat="server" ID="lbl_action" Text="Print / Cancel"></asp:Label>--%>
                                        <asp:LinkButton runat="server" ID="linkprint"  CommandArgument='<%# Eval("partnerrefid") %>' CommandName="print" Text="Print"></asp:LinkButton>&nbsp;/&nbsp;<asp:LinkButton runat="server" ID="linkcancel"  CommandArgument='<%# Eval("partnerrefid") %>' CommandName="cancelreq" Text="Cancel"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                 
                                </Columns>
                                <HeaderStyle BackColor="#CADAE8" Height="41px"></HeaderStyle>
                                
                                </asp:GridView>
                               




                            </div>
                     
                        </div>
                        <!--end of login_con-->
                    </div>
                   
                </div>
                <!--end of middle_login_contain-->
                <div class="clear">
                </div>
                <!--end of marquess text-->
    
</asp:Content>


