Moderators Parkho Posted June 24, 2012 Moderators Report Share Posted June 24, 2012 Hi there, Searching the forums, I couldn't find anything on this matter, so any help would be appreciated. Thanks Pic: Quote Link to comment Share on other sites More sharing options...
lorlandi Posted July 1, 2012 Report Share Posted July 1, 2012 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 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted July 2, 2012 Author Moderators Report Share Posted July 2, 2012 That's actually for the aircrafts which I don't have any problems. It is for the airline status in which the status wouldn't show correctly but thanks for your help. Quote Link to comment Share on other sites More sharing options...
Jeff Posted July 10, 2012 Report Share Posted July 10, 2012 I brought this subject up 2 years ago as well, but never could get it fixed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.