Jump to content

Txmmy83

Members
  • Posts

    493
  • Joined

  • Last visited

Everything posted by Txmmy83

  1. if you can share the code when you are on your PC again please because I dont know how to convert the values
  2. <img src="http://www.gcmap.com/map?P=<?php echo $gcstrg ?>&MS=bm&MR=30&MX=720x360&PM=b:disc4:red%2b%22%25i%25+%28N%2210:yellow&PC=%23ffffff" /><br /> yellow text ,white path line, and red point
  3. sure what would you like to change?
  4. thats your code I have comment out the google map and replaced it with the GCMAP
  5. thanks alot I am using it with <img src="http://www.gcmap.com/map?P=<?php echo $gcstrg ?>&MS=bm&MR=30&MX=720x360&PM=b:disc4%2b%22%25U%25+%28N%2210" /><br /> which suits my needs more gives airport ICAO and Location Name
  6. that can be a reason! and I would try to echo $schedules->flighttime for testing! since I have the strong feeling that it returns nothing (when it have no return) the PIREP flightime is always greater and jumps directly into the echo "Delayed" Kyle, like you said the logical part is correct TESTED! with values I will try to find out what is wrong tonight
  7. you mean it like that http://www.flyeurope...p/vfleettracker I have trimmed the hours! in view.tpl I using this: this is right after the first php tag $number= vFleetTrackData::countHours($aircraft->id); $english_format_number = number_format($number, 2, '.', ''); and that how I call it <strong>Total Hours: </strong><?php echo $english_format_number;?> thats is the important part of my index.tpl <?php foreach($allaircrafts as $aircraft) { $lastflight = vFleetTrackData::getLastFlightAircraft($aircraft->id); if($lastflight) { $last = '<a href="'.url('/pireps/view/'.$lastflight->pirepid).'">'.$lastflight->code.$lastflight->flightnum.' ('.$lastflight->depicao.' - '.$lastflight->arricao.')</a>'; } else { $last = 'No Flights Yet!'; } $location = vFleetTrackData::getLastFlightAircraft($aircraft->id); if($location) { $lastlocation = $location->arricao; } else { $lastlocation = 'N/A'; } $number= vFleetTrackData::countHours($aircraft->id); $english_format_number = number_format($number, 2, '.', ''); ?> <tr> <td><?php echo $aircraft->icao;?></td> <td><?php echo $aircraft->name;?></td> <td><?php echo $aircraft->fullname;?></td> <td><?php echo $aircraft->registration;?></td> <td><?php echo $last;?></td> <td><?php echo $lastlocation;?></td> <td><?php echo vFleetTrackData::countFlights($aircraft->id);?></td> <td><?php echo $english_format_number;?></td> <td><?php echo vFleetTrackData::countMiles($aircraft->id);?></td> <td><a href="<?php echo url('/vFleetTracker/view/'.$aircraft->registration);?>">View Aircraft</a></td>
  8. I am also Interested where that code need to be placed? think we have to wait til mseiwald or Parviz answer!
  9. I double your request as I dont like that googlemap
  10. I tried with that variable but not come to a good result maybe I initialized with wrong type think I have to look into DB to see what field type CODE returns
  11. First of all Nighthawk thanks for the news but I think some features would need a phpVMS version with Airline Networking abilities (codeshares,aircraftsharing,sharedfinances?,etc) which seems nearly impossible!
  12. the only point that comes to my mind is advertising! with a good public available livery you can maybe attract new pilots best regards, Thomas
  13. if you modify like written in post #15 the Total Passengers will Change to Total Cargo as soon the plane found to be a Cargo Aircraft
  14. ok read post #15 - #17 in this topic the answer is there one thing did you set a Flight in Admin for the 737 marked as Cargo as Flighttype? as soon it find a flight marked as Cargo it jumps to Cargo instead of Passengers
  15. shiljo, what does it exactly show? what have you set in admin panel? PAX Cargo best regards, Thomas
  16. I have a simple question but think not exactly on topic how can I include simpilots flightboard into acarsmap.tpl to show it below and refreshing with Acars? thanks in advance, Thomas
  17. UTR only works if your VA is on IVAO and or VATSIM the UTR liveboard Payware should work with offline flights too as far I can find out form description and there is Simpilot Group Payware flight board I personally use the Simpilot board best regards, Thomas
  18. Tom that code work very well <li><strong>Last Login: </strong><?php echo date(DATE_FORMAT, strtotime($pilot->lastlogin));?></li> I have changed it to <li><strong>Last Pirep: </strong><?php echo date(DATE_FORMAT, strtotime($pilot->lastPirep));?></li> which also work great but a pilot without Pirep would be shown as 12/31/1969 can that be catched by an else if? so that if that value is found it echo 00/00/0000 in my case?
  19. pagination works now http://www.flyeurope-va.org/index.php/schedules/view idiot error: my datatables.js was not there where it should have been so it could never be reached
  20. how should the entries look like is this right: in core_htmlhead <script type="text/javascript" src="<?php echo SITE_URL?>/lib/js/jquery.dataTables.js"></script> below my full schedule_result.tpl <style type="text/css"> artarticle th, .artarticle td { padding: 0px; text-align: center; vertical-align: middle; border:none; border-bottom: 1px dashed #5A7796; } .artarticle th { padding: 2px; text-align: center; vertical-align: middle; border:none; } .artarticle table, table.artarticle { border:none; border-collapse: collapse; margin: 1px; } .artarticle img, img.artarticle, .artblock img, .artfooter img { margin: 0px; } </style> <?php ini_set('date.timezone', 'Europe/Vienna'); if(!$allroutes) { echo '<p align="center">No routes have been found!</p>'; return; } ?> <script type="text/javascript"> $(document).ready(function() { $('#schedule').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> <div> <table border="none" class="display" id="schedule" width="1100px"> <thead> <tr id="tablehead"> <th>Flight No.</th> <th>Dep. Time</th> <th>Dep. Airport</th> <th>Su</th> <th>Mo</th> <th>Tu</th> <th>We</th> <th>Th</th> <th>Fr</th> <th>Sa</th> <th>Arr. Time</th> <th>Arr. Airport</th> <th>Distance</th> <th>Aircraft</th> <th>Options</th> </tr> </thead> <tbody> <?php foreach($allroutes as $route) { /* Uncomment this code if you want only schedules which are from the last PIREP that pilot filed */ /*if(Auth::LoggedIn()) { $search = array( 'p.pilotid' => Auth::$userinfo->pilotid, 'p.accepted' => PIREP_ACCEPTED ); $reports = PIREPData::findPIREPS($search, 1); // return only one if(is_object($reports)) { # IF the arrival airport doesn't match the departure airport if($reports->arricao != $route->depicao) { continue; } } }*/ /* Skip over a route if it's not for this day of week Left this here, so it can be omitted if your VA doesn't use this. Comment out these two lines if you don't want to. */ /* Check if a 7 is being used for Sunday, since PHP thinks 0 is Sunday */ $route->daysofweek = str_replace('7', '0', $route->daysofweek); if(strpos($route->daysofweek, date('w')) === true) continue; /* END DAY OF WEEK CHECK */ /* This will skip over a schedule if it's been bid on This only runs if the below setting is enabled If you don't want it to skip, then comment out this code below by adding // in front of each line until the END DISABLE SCHEDULE comment below If you do that, and want to show some text when it's been bid on, see the comment below */ if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { continue; } /* END DISABLE SCHEDULE ON BID */ /* Skip any schedules which have aircraft that the pilot is not rated to fly (according to RANK), only skip them if they are logged in. */ if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { /* This means the aircraft rank level is higher than what the pilot's ranklevel, so just do "continue" and move onto the next route in the list */ if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td class="center"> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?></a> <td><?php echo $route->deptime;?></td> <td class="centre"><?php echo $route->depicao;?></td> <?php // We are gonna loop each day of the week for($dayofweek = 0; $dayofweek < 7; $dayofweek++) { // echo our column opening echo '<td class="centre">'; // Check if $i (the current day of week) exists if(substr_count($route->daysofweek, $dayofweek) > 0) { // there is a flight for sunday , so echo that plane icon out echo '<img src="http://www.flyeurope-va.org/lib/images/inair.png" height="24px" width="24px">'; } // Close that column echo '</td>'; } ?> <td><?php echo $route->arrtime;?></td> <td class="center"><?php echo $route->arricao;?></td> <td><?php echo $route->distance . Config::Get('UNITS');?></td> <td><?php echo $route->aircraft; ?></td> <td nowrap> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br /> <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> <?php } } ?> </td> <?php /* END OF ONE TABLE ROW */ } ?> </tbody> </table> </div> <div class="spacer"></div> <hr> does not work yet :-(
×
×
  • Create New...