Jump to content
Message added by Kyle

WARNING: This module is no longer supported from the developer as the developer is shifting their focus on phpVMS v4 Addons.

Recommended Posts

  • Moderators
Posted

That's becasue I have the query set to look for accepted PIREPs, not pending or rejected ones. Are you wanting to change the parameters to have it to look for all PIREPs with the aircraft?

  • 4 weeks later...
  • Moderators
Posted

Do you have another link to the download? The link on this post is dead.

I'm going to try to get all my modules uploaded later tonight. ;)

  • 2 weeks later...
Posted

Just found a little error in the code. When you click into view the details of the aircraft, and at the bottom where it gives available schedules for the aircraft, you have the link to view the details of the schedule linking to the main schedule list. I have fixed it. In schedules.tpl find the following line:

<td><a href="<?php echo url('/schedules/view/'.$flight->id);?>">View Flight Schedule</a></td>

and replace with:

<td><a href="<?php echo url('/schedules/details/'.$flight->id);?>">View Flight Schedule</a></td>

It will not link to the details of the flight, instead of bringing you to the entire schedule list.

Posted

I have also noticed that the last 15 flights, is just taking the last 15 flights from the entire VA, regardless of aircraft used. I have tried changing the code to use the aircraft you selected, but it does not work.

Posted

I have also noticed that the last 15 flights, is just taking the last 15 flights from the entire VA, regardless of aircraft used. I have tried changing the code to use the aircraft you selected, but it does not work.

Same here!

  • 3 weeks later...
Posted

Thank you for great addon...one bug...i have cargo 737-700 and ftracker does count its opassangers not cargo, even if cargo is 0 in sql and in fleet admnin...hm...and somehow codes for tables doesnt apply to this one...im new in coding so any help will be pretiated...even i have also 777F and when i go to details of a/c its normally shows cargo carried...

Thank you very much

  • 2 weeks later...
Posted

Settings in admin panel are all to cargo...for all A/C...And only 737 it shows passangers in dtails not cargo...So i was migrating in the meanwhile on different script but would love to get back to this one if this problem can be solved...somehow script recognize 737 as passangers only , regarding admin settings under fleet...also i would love to have MTOW in table and cargo carried...that would be nice..if i only know how to code, i would make miracles wit this...;)

Thank you for your help...i will learn php online...i hope...

Posted

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

Posted

Sure, flights are set to cargo...in schedule...set to cargo...in aircraft...passengers leave blank or set to zero...everything is like it should be...ill read the posts, i will try to fix that like its writing...thank you...and what about other stuff, total cargo carried? How to put thast inside?

Posted

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

Posted

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

Posted

Need one more thing, on FH of some planes recently added, which were flown on kAcars under charter, FH are ilike 23.0000000001 and 13.00000002 is there any way to suppres this to one decimal?? Only for two planes...

Posted

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>

Posted

No...just few planes were not 23.34 FH, just 23.34000001, or simillar...but i put thru db one pirep to whole number FH instead 1.2 i put 1 and thing solved...maybe just one more flight was needed to fix thing ;)

Posted

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

Posted

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);?>
<h2>Latest 15 Flights Map</h2>
<div class="mapcenter" align="center">
<div id="routemap" style="width: 100%; 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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...