Jump to content

Rev 778 - Finances only tally accepted PIREPs, charts field for airport


Recommended Posts

  • Administrators
Posted
Rev 778 - Finances only tally accepted PIREPs, charts field for airport23 October 2009, 2:59 pmRev 778 - nabeel (9 file(s) modified)Finances only tally accepted PIREPs, charts field for airport~ /trunk/admin/modules/Operations/Operations.php~ /trunk/admin/templates/ops_airportform.tpl+ /trunk/admin/templates/pilots_viewallbids.tpl~ /trunk/changelog.htm~ /trunk/core/common/FinanceData.class.php~ /trunk/core/common/OperationsData.class.php~ /trunk/core/common/PIREPData.class.php~ /trunk/install/install.sql~ /trunk/install/update.sqlSource: phpVMSDownload from http://downloads.phpvms.net (phpvms.beta.zip)
  • Administrators
Posted

I'll check it, it should be for new bids.

I just caught myself staring at your avatar for a few minutes. Dammit! Haha

Posted

I know most of you would get this working yourself, but for you who dont here is a sample of the code I use to display custom chart snapshots and links in the pilot briefing page. Also included are the links we use for weather:

First of all I gathered all the links for the airports we fly to, based the charts on the lokal vacc at vatsim because many AIP sites require you to log in:

I placed snaphost of the ground layout with format ICAO.gif in folder named images/charts . It is a bit of work, but I think the result is good. HAve only received possitve feedback so far ;D

Links placed in the airporttable under 'chartlink' and added a row for link to local VACC aswell('vacc'):

From schedule_briefing.tpl starting at line 108(Procedures and Information):

<h3>Procedures and Information</h3>
<table width="98%" align="center">

<tr style="background-color: #333; color: #FFF;">
	<td>Charts for <?php echo $schedule->depicao?></td>
	<td>Charts for <?php echo $schedule->arricao?></td>
</tr>
<tr align="center">
	<td width="50%" valign="top">
		<a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->chartlink; ?>" target="_blank">
		<img border="0" src="http://www.yoursite.com/images/charts/<?php echo $schedule->depicao?>.gif"
			width="387px" height="594px" alt="No chart available" /></a><br>
		<a href="<?php $data = OperationsData::GetAirportInfo($schedule->depicao); echo $data->vacc; ?>" target="_blank">Local VACC</a>	
	</td>
	<td width="50%" valign="top">
		<a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->chartlink; ?>" target="_blank">
		<img border="0" src="http://www.yoursite.com/images/charts/<?php echo $schedule->arricao?>.gif" 
			width="387px" height="594px" alt="No chart available" /></a><br>
			<a href="<?php $data = OperationsData::GetAirportInfo($schedule->arricao); echo $data->vacc; ?>" target="_blank">Local VACC</a>	
	</td>

</tr>
</table>

and here our weather stuff:

<h3>Weather</h3>
<div align="center">
<B>Weather chart: 24hr Surface Prognosis</B>
<p><img src="http://131.54.120.150/gifImages/21OWS_EUROPE_FITL_PROG-BRIEFING_24.gif" /></p>
<B>Forecast significant WX for time 12Z:</B>  <a href="http://www.flyingineurope.be/aviation_weather_maps.htm" target="_blank">For other times</a>
<p><img src="https://www.aro.lfv.se/fpc/Tor/SWC_1200.gif" width="826px" height="583px" alt="No chart available" /></p>
<B>Europe FL100 Wind, Temp and Icing Forecast</B>  <a href="http://www.jetplan.com/jeppesen/weatherServlet?&action=show&graphicType=wxMapWT&img=euwt100m" target="_blank">For other times</a>
<p><img src="http://www.jetplan.com/weather/data/maps/euwt10024.gif" /></p>
<B>Winds @ FL340  12hrZ: </B>
<p><img src="http://ows.public.sembach.af.mil/gifImages/21OWS_EUROPE_MODEL-DATA_UKMO-GLOBAL_WIND-TEMP_FL340_12_00Z.png" /></p>
<B>Winds @ FL390  12hrZ: </B>
<p><img src="http://ows.public.sembach.af.mil/gifImages/21OWS_EUROPE_MODEL-DATA_UKMO-GLOBAL_WIND-TEMP_FL390_12_00Z.png" /></p>
<B>Precipitation predicts for today:(rain/snow etc)</B>
<p><img src="http://www.usatoday.com/weather/TWC_Images/eur_precip_440_dmy_y.jpg" /></p>
<B>12HR Icing:</B>
<p><img src="http://131.54.120.150/gifImages/21OWS_EUROPE_FITL_ICING-STANDARD_12.gif" /></p>

<a href="http://www.flyingineurope.be" target="_blank">View additional weather graphs</a> or use <a href="http://www.ippc.no" target="_blank">Avinor Internet Pilot Planning Center</a>
</div>
<div align="right" style="font-size: small;">Data Courtesy of <a href="http://www.flyingineurope.be" target="_new">flyingineurope</a></div>
<br />

The weather links are for 12 zulu, but there is link to the other times aswell.

  • Administrators
Posted

Jan, perhaps this is suited for it's own thread in Support or Addons? It'll get lost in here pretty quickly

×
×
  • Create New...