From d1a31556531e82fc80196685cc3ac64d25a83061 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" <74361521+FatihKoz@users.noreply.github.com> Date: Mon, 7 Dec 2020 01:18:55 +0300 Subject: [PATCH] Fixed EET and ENDURANCE values at IVAO & VATSIM prefile (#954) Fixed wrong EET and ENDURANCE values at IVAO & VATSIM prefile forms with a php function converting seconds to HHmm format. Also added View Route At SkyVector link (uses auto zoom to fpl route on High Enroute Charts) , thx Maco for his idea and original link. --- .../flights/simbrief_briefing.blade.php | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/resources/views/layouts/default/flights/simbrief_briefing.blade.php b/resources/views/layouts/default/flights/simbrief_briefing.blade.php index 28902ff4..82c6141e 100644 --- a/resources/views/layouts/default/flights/simbrief_briefing.blade.php +++ b/resources/views/layouts/default/flights/simbrief_briefing.blade.php @@ -141,8 +141,8 @@

Destination TAF

{{ $simbrief->xml->weather->dest_taf }}

-
-

Alternate METAR

+
+

Alternate METAR

{{ $simbrief->xml->weather->altn_metar }}

Alternate TAF

@@ -181,16 +181,21 @@
 Prefile ATC Flight Plan
-
+
@php - $str = $simbrief->xml->aircraft->equip ; - $wc = stripos($str,"-"); - $tr = stripos($str,"/"); - $wakecat = substr($str,0,$wc); - $equipment = substr($str,$wc+1,$tr-2); - $transponder = substr($str,$tr+1); + $str = $simbrief->xml->aircraft->equip ; + $wc = stripos($str,"-"); + $tr = stripos($str,"/"); + $wakecat = substr($str,0,$wc); + $equipment = substr($str,$wc+1,$tr-2); + $transponder = substr($str,$tr+1); + function secstohhmm($seconds) { + $seconds = round($seconds); + $hhmm = sprintf('%02d%02d', ($seconds/ 3600),($seconds/ 60 % 60)); + echo $hhmm ; + } @endphp -
+ @@ -207,24 +212,27 @@ - + - + -
+
-
+
- +
-
+
+