Skip to content

Commit

Permalink
v1.3.1 - Rounding up the numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vansers committed Jul 19, 2013
1 parent 276fe91 commit 4750a40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/templates/vFleetTrack/flights.tpl
Expand Up @@ -40,7 +40,7 @@ foreach($flights as $flight)
<td><?php echo $flight->code . $flight->flightnum; ?></td>
<td><?php echo $flight->depicao; ?></td>
<td><?php echo $flight->arricao; ?></td>
<td><?php echo $flight->flighttime; ?></td>
<td><?php echo round($flight->flighttime); ?></td>
<td><?php echo date(DATE_FORMAT, $flight->submitdate); ?></td>
<td><?php echo $flight->landingrate; ?></td>
<td><a href="<?php echo url('/pireps/view/'.$flight->pirepid);?>">View</a></td>
Expand Down
4 changes: 2 additions & 2 deletions core/templates/vFleetTrack/index.tpl
Expand Up @@ -72,8 +72,8 @@ foreach($allaircrafts as $aircraft)
<td><?php echo $last;?></td>
<td><?php echo $lastlocation;?></td>
<td><?php echo vFleetTrackData::countFlights($aircraft->id);?></td>
<td><?php echo vFleetTrackData::countHours($aircraft->id);?></td>
<td><?php echo vFleetTrackData::countMiles($aircraft->id);?></td>
<td><?php echo round(vFleetTrackData::countHours($aircraft->id));?></td>
<td><?php echo round(vFleetTrackData::countMiles($aircraft->id));?></td>
<td><a href="<?php echo url('/vFleetTracker/view/'.$aircraft->registration);?>">View Aircraft</a></td>
<?php
}
Expand Down
6 changes: 3 additions & 3 deletions core/templates/vFleetTrack/view.tpl
Expand Up @@ -44,9 +44,9 @@ else
<strong>Cargo: </strong><?php echo $aircraft->maxcargo;?>
<br />
<h3>Aircraft Stats</h3>
<strong>Total Miles: </strong><?php echo vFleetTrackData::countMiles($aircraft->id);?>
<strong>Total Miles: </strong><?php echo round(vFleetTrackData::countMiles($aircraft->id));?>
<br />
<strong>Total Hours: </strong><?php echo vFleetTrackData::countHours($aircraft->id);?>
<strong>Total Hours: </strong><?php echo round(vFleetTrackData::countHours($aircraft->id));?>
<br />
<strong>Total Flights: </strong><?php echo vFleetTrackData::countFlights($aircraft->id);?>
<br />
Expand All @@ -60,7 +60,7 @@ else
else
{
?>
<strong>Total Cargo Carried: </strong><?php echo vFleetTrackData::countPassengers($aircraft->id);?>
<strong>Total Cargo Carried: </strong><?php echo round(vFleetTrackData::countPassengers($aircraft->id));?>
<br />
<?php
}
Expand Down

1 comment on commit 4750a40

@Patpico
Copy link

@Patpico Patpico commented on 4750a40 Feb 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good morning. I do not know if you'll have this message .... I have a worry on my website:
http://legendaryracefriends.us/phpvms/index.php/vFleetTracker

I can not know or does this PHP error.
Would you have an idea?

Thank you in advance for your answer

Patrice

My email:
patrice.pico @ yesss-fr.com

Please sign in to comment.