Txmmy83
-
Posts
493 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Txmmy83
-
-
Red line into yellow or white...
Thank you
<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
-
Great wow, thank you, any chance to change color to white or yellow? something...where is that ...?
sure what would you like to change?
-
I just cant get it worked, heres my code can anyone edited for me, i just cant get it normnal ...
<?php /** Module Created By Vansers This module is only use for phpVMS (www.phpvms.net) - (A Virtual Airline Admin Software) @Created By Vansers @Copyrighted @ 2011 @Under CC 3.0 @http://creativecommons.org/licenses/by-nc-sa/3.0/ // Version 1.0 (September 7.12) - Module Created **/ ?> <h3><?php echo SITE_NAME?>'s Fleet Tracker For <?php echo $aircraft->fullname;?> (<?php echo $aircraft->registration;?>)</h3> <br /> <h2>Aircraft General Info</h2> <center> <?php if(!empty($aircraft->imagelink)) { echo '<img src="'.$aircraft->imagelink.'" /><br /><br />'; } else { echo 'No Aircraft Image Yet!'; } ?> </center> <br /> <strong>ICAO: </strong><?php echo $aircraft->icao;?> <br /> <strong>Name: </strong><?php echo $aircraft->name;?> <br /> <strong>Fullname: </strong><?php echo $aircraft->fullname;?> <br /> <strong>Registration: </strong><?php echo $aircraft->registration;?> <br /> <strong>Range: </strong><?php echo $aircraft->range;?> <br /> <strong>Weight: </strong><?php echo $aircraft->weight;?> <br /> <strong>Cruise: </strong><?php echo $aircraft->cruise;?> <br /> <strong>Passengers: </strong><?php echo $aircraft->maxpax;?> <br /> <strong>Cargo: </strong><?php echo $aircraft->maxcargo;?> <br /> <h2>Aircraft Stats</h2> <strong>Total Miles: </strong><?php echo vFleetTrackData::countMiles($aircraft->id);?> <br /> <strong>Total Hours: </strong><?php echo vFleetTrackData::countHours($aircraft->id);?> <br /> <strong>Total Flights: </strong><?php echo vFleetTrackData::countFlights($aircraft->id);?> <br /> <?php if(count(vFleetTrackData::CargoAircraft($aircraft->id)) > 0) { ?> <?php echo vFleetTrackData::countPassengers($aircraft->id);?> kg <?php } else { ?> <?php echo vFleetTrackData::countPassengers($aircraft->id);?> kg <?php } ?> <h2>Latest 15 Flights List</h2> <?php MainController::Run('vFleetTracker', 'buildLastFlightTable', $aircraft->id, 15);?> <h3>Latest 15 Flights Map</h3> <?php //There are two different types of maps you can use. The GCMap or the Google Map. //To use Google Map, uncomment the google map part and comment in the GCMap. ?> <?php $pirep_list = vFleetTrackData::getLastNumFlightsAircraft($aircraft->id, 15); $gcstrg = ""; foreach($pirep_list as $pirep) { $gcstrg = $gcstrg.$pirep->depicao.'+-+'.$pirep->arricao.',+'; } ?> <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 /> Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a> <?php /* <div class="mapcenter" align="center"> <div id="routemap" style="width: 960px; height: 520px;"></div> </div> <script type="text/javascript"> var options = { mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("routemap"), options); var flightMarkers = []; <?php $shown = array(); $pirep_list = vFleetTrackData::getLastNumFlightsAircraft($aircraft->id, 15); foreach($pirep_list as $pirep) { // Dont show repeated routes if(in_array($pirep->code.$pirep->flightnum, $shown)) continue; else $shown[] = $pirep->code.$pirep->flightnum; if(empty($pirep->arrlat) || empty($pirep->arrlng) || empty($pirep->deplat) || empty($pirep->deplng)) { continue; } ?> dep_location = new google.maps.LatLng(<?php echo $pirep->deplat?>, <?php echo $pirep->deplng?>); arr_location = new google.maps.LatLng(<?php echo $pirep->arrlat?>, <?php echo $pirep->arrlng?>); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: dep_location, map: map, title: "<?php echo "$pirep->depname ($pirep->depicao)";?>" }); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: arr_location, map: map, title: "<?php echo "$pirep->arrname ($pirep->arricao)";?>" }); var flightPath = new google.maps.Polyline({ path: [dep_location, arr_location], geodesic: true, strokeColor: "#FF0000", strokeOpacity: 0.5, strokeWeight: 2 }).setMap(map); <?php } ?> if(flightMarkers.length > 0) { var bounds = new google.maps.LatLngBounds(); for(var i = 0; i < flightMarkers.length; i++) { bounds.extend(flightMarkers[i].position); } } map.fitBounds(bounds); </script> */ ?> <h2>Available Flights</h2> <?php MainController::Run('vFleetTracker', 'buildFlightsAvbTable', $aircraft->id);?>
Thank you very much
thats your code I have comment out the google map and replaced it with the GCMAP
-
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
-
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
-
thanks works great
-
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>
-
i dont know where i can put that code, i know in the schedules_results.tpl. But and than?
I hop that you can help?
$today = date("Y-m-d");
if($route->lastflown == $today)
{
..................
}
I am also Interested where that code need to be placed?
think we have to wait til mseiwald or Parviz answer!
-
@ Tommy, it´s a Dream but not impossible with an "Global Database" for this i think
Interesting idea
-
I sloved my thing and i must say again, nice add-on amazing One thing, is it possible to have great circle map, not google, for showing last airplane flights? thank you
I double your request as I dont like that googlemap
-
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
-
Hi,
i have a question, is it possible that when a pilot make en charter that the charter will be create in de airliner "charter?" and not in the main airliner?
i think that i must change this code?
$charter
= Auth::$userinfo->code;
Greets
Michael Kraan
You use Simpilot Charter Center?
-
First of all Nighthawk thanks for the news
What´s my future Features, if possible:-When u add an aircraft u can choose the type of plane you want and all other data is set automaticaly.
You only write the Registration in it - done.... ( An Global Database where all Admins can add aircrafts???? Or sell it to another VA????? Auctions???? Make PHPVMS GLobal to communicate with other VA??? mmmmmmhhhhhhh)
but I think some features would need a phpVMS version with Airline Networking abilities (codeshares,aircraftsharing,sharedfinances?,etc) which seems nearly impossible!
-
That's what screenshots are for.
Think about it this way; would a real world pilot for airline A be allowed to fly an aircraft belonging to airline B?
good point
-
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
-
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
-
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
-
shiljo,
what does it exactly show?
what have you set in admin panel?
PAX
Cargo
best regards,
Thomas
-
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
-
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
-
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?
-
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
-
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 :-(
-
thank you very much
Delayed on Time fights done
in Code Snippets
Posted
if you can share the code when you are on your PC again please
because I dont know how to convert the values