Jump to content

Airline Status Report Not Showing Correctly


Parkho

Recommended Posts

Well i had the same problem you can see in http://forum.phpvms.net/topic/7428-total-flight-time-in-aircraft-reports/ i made some changes in the fleet table.tpl adding a formula to make some correction to total hours like this:

<?php foreach ($fleet as $aircraft)

{

?>

<?php

$h=(int)(round($aircraft->totaltime*100)/100);

$p=(round($aircraft->totaltime*100)/100);

$m=($p-$h)*60;

$o=(int)($m);

$s=(int)(($m-$o)*60);

?>

<tr style="text-align:center">

<td><img src="<?php echo $aircraft->imagelink; ?>"width="80" height="50" ></td>

<td><?php echo $aircraft->name; ?> </td>

<td><?php echo $aircraft->registration; ?></td>

<td><?php echo $h.":".$o.":".$s."<br>"; ?></td>

Maby can help.you.

Reagrds

Link to comment
Share on other sites

  • 2 weeks later...

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...