Jump to content

Txmmy83

Members
  • Posts

    493
  • Joined

  • Last visited

Posts posted by Txmmy83

  1. think we need else if statements here

    if it has something to return echo the pilots in Hub

    else echo we have no pilots in this Hub! or something similar

    but unsure how the statement has to look exactly;)

  2. To get it working in the nav bar use the following code:

    <?php $hubs = HubData::get_hub();
    foreach($hubs as $hub)
    {
    ?>
    <li><a href="<?php echo url('/Hub/HubView/');?><?php echo $hub->id;?>"><?php echo $hub->icao .' - '. $hub->name;?></a></li>
    <?php }?>
    
    

    where exactly does that need to be?

  3. Right so I think the Trick would be to go by the flightnumber since the First three characters are the Airline Code

    But did not know exactly how to get the first 3 characters and how the conditions need to look like

  4. discovered one thing now with

    var pos = new google.maps.LatLng(lat, lng);
    flightMarkers[flightMarkers.length] = new google.maps.Marker({
    position: pos,
    map: map,
    icon: url+"/lib/images/inair/"+data[i].code+"/"+data[i].heading+".png",
    flightdetails: data[i],
    infowindow_content: detailed_bubble
    });
    

    which works great ;)

    but one problem if you have 2 Airlines VLI and FEV (in my case) and Pilot assigned to FEV fly a VLI flight it show the FEV inair image instead of VLI

    so is there a possibility to go over the flightnumber if flightcode starts with VLI* force use of VLI inair image?

    best regards,

    Thomas

×
×
  • Create New...