Jump to content

Default Schedule/Briefing Re-Vamped


Heritage1

Recommended Posts

I have recently re-vamped the default Modules with some neat Embedded links, pop-up windows that are "Live" and full of cool Features for everyone. it took a little while, but if using this, PAY ATTENTION to it !! I have included a live Metar...Live Map section that is embedded if paying attention to each Arr/Dep... you will see brackets that will throw you into an instant PDF downloadable file.

There are a TON of embedded features in this Pilot Brief section, below is the code, the file name is ;

schedule_briefing.php

Backup your original by just re-naming it, pretty simple.

there is also a IFR link directly to flightaware for the Live route. All I can say is this, move your mouse around this page very slowly and as you move, your mouse will do the rest. I have created a direct Nav Bar menu link in the navigation menu, here is what the link should look like; <a href="<?php echo url('/schedules') ?>">Flight Search</a>

Hope this helps everyone with the boring old default Pilot Brief !!

<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<style>
.bg{
background-color: #EDEDED;
}
a{
color:#FFFFFF;
}
</style>
<div class="bg">
<p><b>VA Flight Briefing</b></p>
<script src="http://skyvector.com/linkchart.js"></script>
<table width="98%" align="center" cellpadding="0">
<!-- Flight ID -->
<tr style="background-color: #4A4A4A">
<td colspan="2"><center><h4 style="color:white">Operator-Flight Number</h4></center></td>
</tr>
<tr style="background-color: #DEDEDE">
<td colspan="2">
<center><h4><b><?php echo $schedule->code.$schedule->flightnum; ?></b></h4>
<!--	 <img src="http://heritageva.net/hva/images2/barplane1.png"width="1100" /></center> --> </td>
</tr>

<tr style="background-color: #333">
<td><p style="color:white"><b>Departure</b></p></td>
<td><p style="color:white"><b>Arrival</b></p></td>
</tr>
<tr style="background-color:#DEDEDE">
<td><p><b>-<?php echo $schedule->depicao?></b></p></td>
<td><p><b>-<?php echo $schedule->arricao?></b></p></td>
</tr>

<!-- Times Row -->
<tr style="background-color:#333333">
<td><p style="color:white"><b>Departure Time</b></p></td>
<td><p style="color:white"><b>Arrival Time</b></p></td>
</tr>
<tr>
<td width="50%" ><b><?php echo "{$schedule->deptime}"; ?></b></td>
<td width="50%" ><b><?php echo "{$schedule->arrtime}"; ?></b></td>
</tr>

<!-- Aircraft and Distance Row -->
<tr style="background-color: #444444; color: #FFF;">
<td><p style="color:white"><b>Aircraft</b></p></td>
<td><p style="color:white"><b>Distance</b></p></td>
 </tr>
 <tr style="background-color: #DDDDDD">
<td width="50%" ><p style="color:black"><b><?php echo "{$schedule->aircraft}"; ?></b></p></td>
<td width="50%" ><p style="color:black"><b><?php echo "{$schedule->distance}"; ?></b></p></td>
</tr>

<td>
<h2 style="color:#193B51"><b>METARS-Weather-Depature-<?php echo $schedule->depicao?></b></h2>
<button onclick="tadsdep()"><h5 style="color:#004400"><b>METARS Departure.(click me)</button></b></h5>
	 <script>
function tadsdep() {
window.open("http://new.aviationweather.gov/metar/board?ids=<?php echo $schedule->depicao?>&format=expanded", "_blank", "toolbar=no, scrollbars=yes, resizable=yes, top=30, left=40, width=1170, height=580");
}
</script> </td>
<td>
<h2 style="color:#193B51"><b>METARS-Weather-Arrival-<?php echo $schedule->arricao?></b></h2>
<button onclick="tadsarr()"><h5 style="color:#004400"><b>METARS Arrival..(click me)</button></b></h5>
	 <script>
function tadsarr() {
window.open("http://new.aviationweather.gov/metar/board?ids=<?php echo $schedule->arricao?>&format=expanded", "_blank", "toolbar=no, scrollbars=yes, resizable=yes, top=30, left=40, width=1170, height=580");
}
</script> </td>

<h1 style="color:red"><b><i>Terminal Procedures</b></i></h1>
<table width="98%" align="center">
<tr style="background-color: #AFBBC2; color: #FFF;">
<tr style="background-color: #AFBBC2; color: #FFF;">
<td><p style="color:black"><b>Terminals for <?php echo $schedule->depicao?></b></p></td>
<td><p style="color:black"><b>Terminals for <?php echo $schedule->arricao?></b></p></td>	
</tr>
<tr align="center">
<td width="50%" valign="top">
<object data="http://vfrmap.com/fe?req=get_afd&q=<?php echo $schedule->depicao?>"width="597" height="748"/></td>
 <td width="50%" valign="top">
<object data="http://vfrmap.com/fe?req=get_afd&q=<?php echo $schedule->arricao?>"width="597" height="748"/></td>



</tr>
</table>


<!-- Route -->
<tr style="background-color: #333; color: #000000;">
<td colspan="2"><h4>Route</h4></td>
</tr>
<tr>
<td colspan="2">
<?php
# If it's empty, insert some blank lines
if($schedule->route == '')
{
echo '<br /> <br /> <br />';
}
else
{
echo strtoupper($schedule->route);
}
?>
</td>
</tr>

<!-- Notes -->
<tr style="color: #000000;">
<td colspan="2"><h4>Notes</h4></td>
</tr>
<tr>
<td colspan="2" style="padding: 6px;">
<?php
# If it's empty, insert some blank lines
if($schedule->notes == '')
{
echo '<br /> <br /> <br />';
}
else
{
echo "{$schedule->notes}";
}
?>
</td>
</tr>


</table>
<table width="98%" align="center" padding="2">
<tr style="background-color: #333; color: #FFF; padding: 5px;">
<td><p style="color:#FFFFFF; font-size:112%; "><b><i>Additional Data</i></b></p></td>
</tr>
<tr style="background-color:#003300">

<td><a href="http://flightaware.com/analysis/route.rvt?origin=<?php echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>"target="_blank"><p style="font-size:112%"><u>View IFR Routes data from FlightAware for this PIREP (click me)</p></u></a></td>
</tr>
</table>
<center><h3><b>Chart Procedures and Information ( click desired chart for download ) This opens another Tab</b></h3></center>
<center><h4><b>Thank You AirNav for the use of your Charts & Downloads</b></h4></center>
<table width="98%" align="center">
<tr style="background-color: #333;">
<td><h3 style="color:white"><b>Charts for <?php echo $schedule->depicao?></b></h3></td>
<td><h3 style="color:white"><b>Charts for <?php echo $schedule->arricao?></b></h3></td>
</tr>
<tr align="center">
<td width="50%" valign="top">
<a href="http://www.airnav.com/airport/<?php echo $schedule->depicao?>#ifr" target="_blank">
<img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->depicao?>/APD/AIRPORT+DIAGRAM/png"
width="437px" height="654px" alt="No chart available" /></a>
</td>
<td width="50%" valign="top">
<a href="http://www.airnav.com/airport/<?php echo $schedule->arricao?>#ifr" target="_blank">
<img border="0" src="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/APD/AIRPORT+DIAGRAM/png"
width="437px" height="654px" alt="No chart available" /></a>
</td>

</tr>
</table>
<div align="center">

</div>
<div align="right" style="font-size: small; font-color: black; ">Copyright 2009-2017 <a href="http://heritageva.net" target="_blank"><b>Heritage VA</b></a></div>
<br />
</div>

This works with every Skin I've tested it with, (over 12), have fun.

See ya in duh Air !

Jim callsign "Jungle"

Link to comment
Share on other sites

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