-
Posts
182 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Görlitz Germany
Recent Profile Visitors
7999 profile views
Industrialshadow's Achievements
Newbie (1/14)
4
Reputation
-
To get the pagination for the schedules to work
Industrialshadow replied to Strider's topic in Skinning
solved. pagination now working -
HA thats work.... why i have given them 776.. so many hours to resolve this and them so easy...... Many thanks for the Info its solved now
-
Oh my god.. i hope the system will be run. some times i see new errors and will locate the but here with this failure i doesnt have a idea to resolve this. Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getType(): Lstat failed for /www/htdocs/w01501e7/lausitzair/core/cache/..' in /www/htdocs/w01501e7/lausitzair/admin/modules/Maintenance/Maintenance.php:240 Stack trace: #0 /www/htdocs/w01501e7/lausitzair/admin/modules/Maintenance/Maintenance.php(240): SplFileInfo->getType() #1 [internal function]: Maintenance->clearcache() #2 /www/htdocs/w01501e7/lausitzair/core/classes/MainController.class.php(218): call_user_func_array(Array, Array) #3 /www/htdocs/w01501e7/lausitzair/admin/index.php(83): MainController::RunAllActions() #4 {main} thrown in /www/htdocs/w01501e7/lausitzair/admin/modules/Maintenance/Maintenance.php on line 240 this is my php. I use php 5.5.2 from simpilot <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Maintenance extends CodonModule { /** * Maintenance::HTMLHead() * * @return */ public function HTMLHead() { $this->set('sidebar', 'sidebar_maintenance.php'); } /** * Maintenance::index() * * @return */ public function index() { CodonModule::checkPermission(MAINTENANCE); $this->options(); } /** * Maintenance::options() * * @return */ public function options() { CodonModule::checkPermission(MAINTENANCE); $this->render('maintenance_options.php'); } /** * Maintenance::resetdistances() * * @return */ public function resetdistances() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Updating and Calculating Distances</h3>'; # Update all of the schedules echo '<p><strong>Updating schedules...</strong></p>'; //$allschedules = SchedulesData::GetSchedulesNoDistance(); $allschedules = SchedulesData::findSchedules(array()); if (!$allschedules) { echo 'No schedules to update'; $allschedules = array(); } # Check 'em foreach ($allschedules as $sched) { $distance = SchedulesData::distanceBetweenPoints($sched->deplat, $sched->deplng, $sched->arrlat, $sched->arrlng); $distance = sprintf("%.6f", $distance); echo "$sched->code$sched->flightnum - $sched->depname to $sched->arrname " . "is $distance " . Config::Get('UNIT') . '<br />'; SchedulesData::updateScheduleFields($sched->id, array('distance' => $distance)); } # Update all of the PIREPS echo '<p><strong>Updating PIREPs...</strong></p>'; $allpireps = PIREPData::findPIREPS(array()); if (!$allpireps) { echo 'No PIREPs need updating!'; $allpireps = array(); } foreach ($allpireps as $pirep) { # Find the schedule, and the distance supplied by the schedule: $distance = SchedulesData::distanceBetweenPoints($pirep->deplat, $pirep->deplng, $pirep->arrlat, $pirep->arrlng); $distance = sprintf("%.2f", $distance); echo "PIREP Number $pirep->pirepid ($pirep->code$pirep->flightnum) " . "$pirep->depname to $pirep->arrname is $distance " . Config::Get('UNIT') . '<br />'; PIREPData::editPIREPFields($pirep->pirepid, array('distance' => $distance)); } echo '<p>Completed!</p><br />'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset distances'); } /** * Maintenance::resetpirepcount() * * @return */ public static function resetpirepcount() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Reset PIREP Counts</h3>'; $all_pilots = PilotData::findPilots(array()); foreach ($all_pilots as $pilot) { $pireps = PIREPData::getReportsByAcceptStatus($pilot->pilotid, PIREP_ACCEPTED); $total = count($pireps); unset($pireps); $code = PilotData::getPilotCode($pilot->code, $pilot->pilotid); echo "{$code} - {$pilot->firstname} {$pilot->lastname} - {$total} pireps<br />"; # Update the pireps table PilotData::updateProfile($pilot->pilotid, array('totalflights' => $total)); } echo 'Completed!'; } /** * Maintenance::changepilotid() * * @return */ public function changepilotid() { CodonModule::checkPermission(MAINTENANCE); CodonModule::checkPermission(EDIT_PILOTS); echo '<h3>Change Pilot ID</h3>'; if (isset($this->post->submit)) { $error = false; if (!is_numeric($this->post->new_pilotid)) { $error = true; $this->set('message', 'The pilot ID isn\'t numeric!'); $this->render('core_error.php'); return; } if ($this->post->new_pilotid < 1) { $error = true; $this->set('message', 'You cannot have an ID less than 1'); $this->render('core_error.php'); return; } if (empty($this->post->new_pilotid)) { $error = true; $this->set('message', 'The pilot ID is blank!'); $this->render('core_error.php'); return; } if (empty($this->post->old_pilotid) || $this->post->old_pilotid == 0) { $error = true; $this->set('message', 'No pilot selected'); $this->render('core_error.php'); return; } $pilot = PilotData::getPilotData($this->post->new_pilotid); if (is_object($pilot)) { $error = true; $this->set('message', 'This ID is already used!'); $this->render('core_error.php'); return; } if ($error === false) { PilotData::changePilotID($this->post->old_pilotid, $this->post->new_pilotid); $this->set('message', "Pilot ID changed from {$this->post->old_pilotid} to {$this->post->new_pilotid}"); $this->render('core_success.php'); } } $this->set('allpilots', PilotData::findPilots(array())); $this->render('maintenance_changepilotid.php'); } /** * Maintenance::optimizetables() * * @return */ public function optimizetables() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Optimizing Tables...</h3>'; $results = MaintenanceData::optimizeTables(); foreach ($results as $row) { echo "{$row->Table} - {$row->Msg_text}<br />"; } } /** * Maintenance::resetacars() * * @return */ public function resetacars() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>ACARS Reset</h3>'; ACARSData::resetFlights(); } /** * Maintenance::clearcache() * * @return */ public function clearcache() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Clearing Cache</h3>'; $dir_iterator = new RecursiveDirectoryIterator(CACHE_PATH); $iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); foreach ($iterator as $file) { if ($file->getType() != 'file') { continue; } $file_name = $file->getBaseName(); if ($file_name === 'index.php') continue; echo "Removing \"{$file_name}\"<br />"; unlink($file); } echo 'Cache cleared!'; } /** * Maintenance::calculateranks() * * @return */ public function calculateranks() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Resetting Ranks</h3>'; RanksData::CalculatePilotRanks(); echo 'Done!'; LogData::addLog(Auth::$userinfo->pilotid, 'Recalculated ranks'); } /** * Maintenance::resetpilotpay() * * @return */ public function resetpilotpay() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Resetting Pilot Pay</h3>'; $allpilots = PilotData::GetAllPilots(); foreach ($allpilots as $p) { #$total = PilotData::resetPilotPay($p->pilotid); $total = PilotData::resetLedgerforPilot($p->pilotid); #$total = PilotData::fillMissingLedgerForPIREPS(); echo "{$p->firstname} {$p->lastname} - total $ {$total}<br />"; } echo 'Done'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset pilot pay'); } /** * Maintenance::resetsignatures() * * @return */ public function resetsignatures() { CodonModule::checkPermission(MAINTENANCE); $allpilots = PilotData::GetAllPilots(); echo '<h3>Regenerating signatures</h3> <strong>Generating signatures...</strong><br />'; foreach ($allpilots as $pilot) { echo "Generating signature for $pilot->firstname $pilot->lastname<br />"; PilotData::GenerateSignature($pilot->pilotid); } echo "Done"; LogData::addLog(Auth::$userinfo->pilotid, 'Reset signatures'); } /** * Maintenance::resethours() * * @return */ public function resethours() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Updating Total Hours Count</h3>'; $total = 0; echo '<p>Calculating hours for all pilots: <br />'; $allpilots = PilotData::GetAllPilots(); foreach ($allpilots as $pilot) { $hours = PilotData::UpdateFlightHours($pilot->pilotid); $total = Util::AddTime($total, $hours); echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid) . " - found {$hours} flight hours for number <br />"; } echo "Pilots have a total of <strong>$total hours</strong><br /><br />"; echo "<strong>Now counting from PIREPS</strong><br />"; StatsData::UpdateTotalHours(); echo 'Found ' . StatsData::TotalHours() . ' total hours, updated<br /></p>'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset hours'); } /** * Maintenance::resetpirepfinance() * * @return */ public function resetpirepfinance() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Reset PIREP Data</h3> Resetting PIREPs...<br />'; //PIREPData::PopulateEmptyPIREPS(); echo 'Complete'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset PIREP finances'); } /** * Maintenance::resetscheduleroute() * * @return */ public function resetscheduleroute() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Reset cached schedule routes</h3> Resetting... <br />'; SchedulesData::deleteAllScheduleDetails(); echo 'Completed!'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset cached schedule route details'); } /** * Maintenance::resetpireproute() * * @return */ public function resetpireproute() { CodonModule::checkPermission(MAINTENANCE); echo '<h3>Reset cached PIREP routes</h3> Resetting... <br />'; PIREPData::deleteAllRouteDetails(); echo 'Completed!'; LogData::addLog(Auth::$userinfo->pilotid, 'Reset cached pirep route details'); } }
-
-
Notam Display in Schedule Briefing
Industrialshadow replied to Industrialshadow's topic in Support Forum
yep <?php NOTAMSData::GetNotam($icao,4);?> this code i have put in to my schedule briefing. The NotamClassData.php i have put into my common Structure on the Webserver. But the i become this failure message see above.. -
Notam Display in Schedule Briefing
Industrialshadow replied to Industrialshadow's topic in Support Forum
Hi Vangelis i have put the code inside my Schedule briefing and the Notam Data Class in the common Area but e become this Failure Can you help me please Warning: file_get_contents(http://api.vateud.net/notams/.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /www/htdocs/w01501e7/lausitzair/core/common/NOTAMSData.class.php on line 18 Warning: Invalid argument supplied for foreach() in /www/htdocs/w01501e7/lausitzair/core/common/NOTAMSData.class.php on line 22 -
yep i will also use the normal Flighttime.. where can the section to change it again back to the old format?
-
Hello Guys, i use the Codeshare module to display my flights. I have set in the admin Area the Aricraft Rank Level. But i can book a Flight where the Rank level if higher as mine.. If there a Solution to resolve this so only Pilots with corrects Ranks can book the Flight A Sample Second Flight Officer C208 oer another airplane from teh database with ther ranklevel so im now Second Flight Oficer and i can book a flight with a 777. In the admin aerea i have set the level to Captain. But its not working. here is my code of Codeshare <style type="text/css"> <!-- body,td,th { color: #000; -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 15px; } --> </style> <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css" type="text/css" /> <script type="text/javascript"> $(function (){ $('a.ajax').click(function() { var url = this.href; // show a spinner or something via css var dialog = $('<div style="display:none" class="loading"></div>').appendTo('body'); // open the dialog dialog.dialog({ // add a close listener to prevent adding multiple divs to the document close: function(event, ui) { // remove div with all data and events dialog.remove(); }, modal: true, height: 600, width: 800, position: ['center',80], title: "Schedule details" }); // load remote content dialog.load( url, {}, // omit this param object to issue a GET request instead a POST request, otherwise you may provide post parameters within the object function (responseText, textStatus, XMLHttpRequest) { // remove the loading class dialog.removeClass('loading'); } ); //prevent the browser to follow the link return false; }); }); </script> <script type="text/javascript"> $(document).ready(function() { $('#Codeshare').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> <h3 align="center">Codeshare Flights</h3> <table id="Codeshare" width="600" border="3" align="center" cellpadding="5" cellspacing="5" bordercolor="#FF0000" class="ui-corner-all"> <tr> <td bgcolor="#99FF00" > </td> <th bgcolor="#99FF00"><div align="center">Airline Information<br /> <img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/sonstiges/departure.jpg" width="632" height="194" /></div></th> <td bgcolor="#99FF00"> </td> </tr> <tr> <td> </td> <td><p align="center"><strong>!!Attention!!</strong></p> <p align="center"><strong>The Codeshare is under Development. All Flights can be booked as well.</strong></p> <p align="center"> </p> <p align="center"><strong>Airline Information</strong></p> <p align="center"><strong>LAX = Lausitz Aircargo /Cargo</strong></p> <p align="center"><strong>LAP= Lausitz Aircargo Business Line</strong></p> <p align="center"><strong>LAJ= Internation Line</strong></p></td> <td> </td> </tr> </table> <p align="center"> </p> <?php if(!$codeshares) { echo '<span style="color:red;">No Codeshares</span>'; } else {?> <table align="center" width="100%" border="3" bordercolor="#FF0000" cellpadding="5" cellspacing="5" class="ui-corner-all"> <thead> <tr> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Flight Number<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Departure<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Arrival<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Airline<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Aircraft<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Details<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> <th bgcolor="#99FF00"><div align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" width="25" height="25" />Book<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></div></th> </tr> </thead> <tbody> <?php foreach($codeshares as $codeshares){ $codeshare_details = SchedulesData::getScheduleDetailed($codeshares->schedid); ?> <tr> <td align="center" bgcolor="#CCCCCC"><a class="ajax" href="<?php echo SITE_URL?>/action.php/schedules/details/<?php echo $codeshare_details->id;?>"><span class="btn"><strong><?php echo $codeshare_details->code; ?><?php echo $codeshare_details->flightnum; ?></strong></span></a></td> <td bgcolor="#CCCCCC"><div align="center"><?php echo $codeshare_details->depicao; ?></div></td> <td bgcolor="#CCCCCC"><div align="center"><?php echo $codeshare_details->arricao; ?></div></td> <td bgcolor="#CCCCCC"><div align="center"><img src="<?php echo $codeshares->image; ?>" alt="<?php echo $codeshares->airline; ?>" /></div></td> <td bgcolor="#CCCCCC"><div align="center"><span class="label label-info"><?php echo $codeshare_details->aircraft; ?></span></div></td> <td bgcolor="#CCCCCC"><div align="center"><a href="<?php echo SITE_URL ?>/index.php/schedules/brief/<?php echo $codeshare_details->id; ?>"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/Details.png" width="75" height="25" /></a></div></td> <td bgcolor="#CCCCCC"><div align="center"> <?php if(Auth::LoggedIn()) {?> <?php } else { echo 'Login first!'; } ?> <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $codeshare_details->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Book Flight</a> <?php } else { if(Auth::LoggedIn()) { if($route->aircraftlevel > Auth::$userinfo->ranklevel) { ?> <b><font color="#FF0000">Above your rank!</font></b> <?php } else { ?> <a id="<?php echo $codeshare_details->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Book Flight</a> <?php } } } ?> </div></td> </tr> <?php } ?></tbody> </table> <?php } ?> <hr /> <div align="center">module contributed under © Strider. Codeshare V1.3 </div>
-
I have searched the full Forum here for codes or ather Things to bring the Notam to work. Nothing is working. SO if there an actually Way to Display the latest 4 Notam´s in the Schedule Brief Site? Many Thanks
-
yep i saw the code. Now its corrected and its working very fine.... Thanks for your Support
-
wooohaaaaa. that´s works ..... Many Thanks i have tried 1 hour to bring it up... and now i see the code an i see what i have forgot ^^ You can see this working now here http://lausitz-aircargo.de/index.php/schedules/brief/65 Cheers
-
i have put this into my schedule briefing site. you can look here in teh schedule briefing http://lausitz-aircargo.de/index.php/schedules/brief/65 <style type="text/css"> <!-- body,td,th,tr { color: #000; -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 15px; } --> </style><br /><br /> <script src="http://skyvector.com/linkchart.js"></script> <table width="98%" border="3" bordercolor="#FF0000" align="center" cellpadding="5" cellspacing="5"> <!-- Flight ID --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><h2 align="center"><strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Flugnummer</strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td colspan="2"> <div align="center"><strong><font color="#FF0000"><h2><?php echo $schedule->code.$schedule->flightnum; ?></h2></font></strong></div></td> </tr> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><h2 align="center"><strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />geplante Flugzeit</strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td colspan="2"> <div align="center">wird demnächst angezeigt <?php echo "{$schedule->depname} ($schedule->depicao)"; ?></div></td> </tr> <tr style="background-color: #0075DB; color: #eeeeee;"> <th bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Abflug<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> <th bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Ankunft<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td width="50%" ><div align="center"><?php echo "{$schedule->depname} ($schedule->depicao)"; ?><br /> <a href="https://pilotweb.nas.faa.gov/PilotWeb/" target="_blank">Click to view NOTAMS</a></div></td> <td width="50%" ><div align="center"><?php echo "{$schedule->arrname} ($schedule->arricao)"; ?><br /> <a href="https://pilotweb.nas.faa.gov/PilotWeb/" target="_blank">Click to view NOTAMS</a></div></td> </tr> <!-- Times Row --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th bgcolor="#99FF00"><div align="center"> <h2><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Abflugszeit<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></th> <th bgcolor="#99FF00"><div align="center"> <h2><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Ankunftszeit<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></th> </tr> <tr> <td width="50%" ><div align="center"><?php echo "{$schedule->deptime}"; ?></div></td> <td width="50%" ><div align="center"><?php echo "{$schedule->arrtime}"; ?></div></td> </tr> <!-- Aircraft and Distance Row --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th bgcolor="#99FF00"><div align="center"> <h2><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Flugzeugmuster<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></th> <th bgcolor="#99FF00"><div align="center"> <h2><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Distanz<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></th> </tr> <tr> <td width="50%" ><div align="center"><strong><?php echo "{$schedule->aircraft}"; ?></strong></div></td> <td width="50%" ><div align="center"><?php echo "{$schedule->distance}"; ?> nm</div></td> </tr> <tr style="background-color: #0075DB; color: #eeeeee;"> <th bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Abflug METAR<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> <th bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Ankunft METAR<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> [b][color=#ff0000] <td width="50%" > <div align="center">Getting Airport METAR</div> </div> <div align="center"> <p><br /> <?php[/color][/b] [b][color=#ff0000]getMETAR($schedule->depicao); getMETAR($schedule->arricao);[/color][/b] [b][color=#ff0000]function getMETAR($icao){ $data = "http://metar.vatsim.net/$icao"; $metar = file_get_contents($data); return $metar; } ?></p> </div></td>[/color][/b] <td width="50%" ><div id="<?php echo $schedule->arricao; ?>" class="metar"> <div align="center">Getting Airport METAR</div> </div> <div align="center"><br /> <a href="http://flightaware.com/resources/airport/<?php echo $schedule->arricao?>/weather" target="_blank"> View Weather Details</a></div></td> </tr> <!-- Route --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><div align="center"> <h2><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Route<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></th> </tr> <tr> <td colspan="2"> <div align="center"> <?php # If it's empty, insert some blank lines if($schedule->route == '') { echo '<br /> <br /> <br />'; } else { echo strtoupper($schedule->route); } ?> </div></td> </tr> <!-- Fuel --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Kerosin Berechnung<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td colspan="2" style="padding: 6px;"> <div align="center"> <?php Template::Show('fuel.php');?> </div></td> </tr> <!-- Notes --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Notes<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td colspan="2" style="padding: 6px;"> <div align="center"> <?php # If it's empty, insert some blank lines if($schedule->notes == '') { echo '<br /> <br /> <br />'; } else { echo "{$schedule->notes}"; } ?> </div></td> </tr> <!-- Notes --> <tr style="background-color: #0075DB; color: #eeeeee;"> <th colspan="2" bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Flugroute<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td colspan="2" style="padding: 6px;"> <div align="center"><div class="mapcenter" align="center"> <div id="routemap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div> <?php /** * * This is the new Google Maps v3 code. Be careful of changing * things here, only do something if you know what you're doing. * * These are some options for the map, you can change here. * * This map is used for schedules and PIREPS * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. * * If you want to adjust the size of the map - Look at the above * "routemap" div with the CSS width/height parameters. You can * easily adjust it from there. * * And for reference, you want to tinker: * http://code.google.com/apis/maps/documentation/v3/basics.html */ if(isset($pirep)) $mapdata = $pirep; if(isset($schedule)) $mapdata = $schedule; ?> <?php /* This is a small template for information about a navpoint popup Variables available: <%=nav.title%> <%=nav.name%> <%=nav.freq%> <%=nav.lat%> <%=nav.lng%> <%=nav.type%> 2=NDB 3=VOR 4=DME 5=FIX 6=TRACK */ ?> <script type="text/html" id="navpoint_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <strong>Name: </strong><%=nav.title%> (<%=nav.name%>)<br /> <strong>Type: </strong> <?php /* Show the type of point */ ?> <% if(nav.type == 2) { %> NDB <% } %> <% if(nav.type == 3) { %> VOR <% } %> <% if(nav.type == 4) { %> DME <% } %> <% if(nav.type == 5) { %> FIX <% } %> <% if(nav.type == 6) { %> TRACK <% } %> <br /> <?php /* Only show frequency if it's not a 0*/ ?> <% if(nav.freq != 0) { %> <strong>Frequency: </strong><%=nav.freq%> <% } %> </span> </script> <?php /* Below here is all the javascript for the map. Be careful of what you modify!! */ ?> <script type="text/javascript"> var options = { mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("routemap"), options); var dep_location = new google.maps.LatLng(<?php echo $mapdata->deplat?>,<?php echo $mapdata->deplng;?>); var arr_location = new google.maps.LatLng(<?php echo $mapdata->arrlat?>,<?php echo $mapdata->arrlng;?>); var bounds = new google.maps.LatLngBounds(); bounds.extend(dep_location); bounds.extend(arr_location); var depMarker = new google.maps.Marker({ position: dep_location, map: map, icon: depicon, title: "<?php echo $mapdata->depname;?>" }); <?php /* Populate the route */ if(is_array($mapdata->route_details)) { $list = array(); foreach($mapdata->route_details as $route) { if($route->type == NAV_VOR) $icon = fileurl('/lib/images/icon_vor.png'); else $icon = fileurl('/lib/images/icon_fix.png'); /* Build info array for the bubble */ ?> var v<?php echo $route->name?>_info = { freq: "<?php echo $route->freq ?>", name: "<?php echo $route->name ?>", title: "<?php echo $route->title ?>", type: "<?php echo $route->type ?>", lat: "<?php echo $route->lat ?>", lng: "<?php echo $route->lng ?>" }; var v<?php echo $route->name?>_navpoint_info = tmpl("navpoint_bubble", {nav: v<?php echo $route->name?>_info}); var v<?php echo $route->name?>_coords = new google.maps.LatLng(<?php echo $route->lat?>, <?php echo $route->lng?>); var v<?php echo $route->name?>_marker = new google.maps.Marker({ position: v<?php echo $route->name?>_coords, map: map, icon: "<?php echo $icon; ?>", title: "<?php echo $route->title; ?>", infowindow_content: v<?php echo $route->name?>_navpoint_info }) bounds.extend(v<?php echo $route->name?>_coords); google.maps.event.addListener(v<?php echo $route->name?>_marker, 'click', function() { info_window = new google.maps.InfoWindow({ content: this.infowindow_content, position: this.position }); info_window.open(map, this); }); <?php // For the polyline $list[] = "v{$route->name}_coords"; } } ?> var arrMarker = new google.maps.Marker({ position: arr_location, map: map, icon: arricon, title: "<?php echo $mapdata->arrname;?>" }); var flightPath = new google.maps.Polyline({ path: [dep_location, <?php if(count($list) > 0) { echo implode(',', $list).','; }?> arr_location], strokeColor: "#FF0000", strokeOpacity: 1.0, strokeWeight: 2 }).setMap(map); // Resize the view to fit it all in map.fitBounds(bounds); </script></div></td> </tr> </table> <p> </p> <table width="98%" border="3" bordercolor="#FF0000" align="center" cellpadding="5" cellspacing="5" padding="2"> <tr style="background-color: #0075DB; color: #eeeeee; padding: 5px;"> <th bgcolor="#99FF00"><h2 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Zusätzliche Informationen<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2></th> </tr> <tr> <td><div align="center"><a href="http://flightaware.com/analysis/route.rvt?origin=<?php echo $schedule->depicao?>&destination=<?php echo $schedule->arricao?>">View recent IFR Routes data</a></div></td> </tr> </table> <h3 align="center"> </h3> <h2 align="center">Prozeduren und Karten</h2> <p align="center"> </p> <table width="98%" border="3" bordercolor="#FF0000" align="center" cellpadding="5" cellspacing="5"> <tr style="background-color: #0075DB; color: #eeeeee;"> <th bgcolor="#99FF00"><div align="center"> <h2>Chart für <?php echo $schedule->depicao?></h2> </div></th> <th bgcolor="#99FF00"><div align="center"> <h2>Charts für <?php echo $schedule->arricao?></h2> </div></th> </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="387px" height="594px" 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="387px" height="594px" alt="No chart available" /></a> </td> </tr> </table> <p> </p> <h2 align="center">Wetter</h2> <p> </p> <div align="center"> <p><img src="http://flightaware.com/resources/wx/us_depiction.gif" /></p> <p><img src="http://flightaware.com/resources/wx/surface_analysis.gif" /></p> <p><img src="http://flightaware.com/resources/wx/national_radar.gif" /></p> <p><img src="http://flightaware.com/resources/wx/us_high_level_weather_12z.gif" /></p> <p><img src="http://flightaware.com/resources/wx/severe_outlook_day_1.gif" /></p> <a href="http://flightaware.com/resources/weather_maps/" target="_blank">View additional weather graphs</a> </div> <div align="right" style="font-size: small;">Data Courtesy of <a href="http://flightaware.com" target="_new">FlightAware</a></div> <p align="center"><?php # This will only show this message if it's not a popup window # Ends on line 13-15 if(!isset($_GET['newwindow'])) { ?> <h3 align="center">Requirements for Online Checkin</h3> <p align="center">To proceed through Security Checkpoint, you will need a government-issued photo ID and either a Boarding Pass or Security document. Customers under 18 years of age are not required to show government-issued photo ID.</p> <p align="center"><a href="#" onclick="window.open('<?php echo actionurl('/schedules/boardingpass/'.$schedule->id.'?newwindow');?>'); return false;">Open in new window for printing</a></p> <div align="center"> <?php } ?> <style> /* Some integrated styles here, for the popup */ .boardingpass { font-family: Tahoma, Verdana; font-size: 14px; -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 15px; } .boardingpass h3 { background: none; padding-left: 3px; padding-bottom: 2px; } .boardingpass .thickline { background: #333; height: 2px; } </style> <table width="90%" border="5" bordercolor="#FF0000" cellpadding="5" cellspacing="5" class="boardingpass" > <tr> <td width="1%" bgcolor="#99FF00"><img src="<?php echo SITE_URL?>/lib/images/barcode.png" /></td> <td align="left" bgcolor="#99FF00"><h3 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /><?php echo SITE_NAME;?><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h3></td> </tr> <tr> <td colspan="2" bgcolor="#0099FF"><h3 align="center"><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Boarding Pass<img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h3></td> </tr> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top" bgcolor="#0099FF"> <table class="boardingpass" align="center"> <tr> <td> <strong>Date:</strong> <br /> <strong>Name: </strong> <br /> <strong>Frequent Flier Number: </strong> <br /> <strong>Boarding Pass Number:</strong> </td> <td> <?php echo date('Y-m-d'); ?><br /> <?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname?><br /> <?php echo Auth::$userinfo->code.strtoupper(substr(md5(Auth::$userinfo->pilotid), 0, 6))?><br /> <?php echo $schedule->bidid; ?><br /> </td> </tr> </table> </td> <td valign="top" bgcolor="#0099FF"> <div align="center"><strong>Gate:</strong> <?php # We are gonna get a random gate echo chr(rand(65, 90)); // echo's a random letter between A and Z echo rand(1, 30); // gate # (between 1 and 30) ?><br /> <strong>Confirmation Payment Code:</strong> <?php # Generate a hash from the bid id, and get the first 6 characters # That'll be used for our confirmation number, and upper-case them echo strtoupper(substr(md5($schedule->bidid), 0, 6)); ?> </div></td> </tr> <tr class="thickline"> <td colspan="2"></td> </tr> <tr> <td valign="top" bgcolor="#0099FF"> <div align="center"><strong>Flight: </strong><?php echo $schedule->code.$schedule->flightnum?><br /> <strong>Depart: </strong><?php echo $schedule->deptime; ?><br /> <strong>Arrive: </strong><?php echo $schedule->arrtime;?><br /> </div></td> <td valign="top" bgcolor="#0099FF"> <div align="center"><strong>Aircraft: </strong><?php echo $schedule->aircraft?> <br /> <strong>Departure Airport:</strong> <?php echo "$schedule->depname ($schedule->depicao)";?><br /> <strong>Arrival Airport:</strong> <?php echo "$schedule->arrname ($schedule->arricao)"; ?><br /> </div></td> </tr> </table><br /> </p> </div> <table width="100%" border="3" bordercolor="#FF0000" cellspacing="5" cellpadding="5"> <tr> <td bgcolor="#99FF00"><div align="center"> <h2><strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" />Menü</strong><img src="http://www.lausitz-aircargo.de/lib/skins/ocean_blue/images/buttons/airplane-57-512.gif" alt="" width="25" height="25" /></h2> </div></td> </tr> <tr> <td> <div align="center"></div></td> </table>
-
its doesnt show an Error the Section with this code will be blank. i use the php version from simpilot
-
hi the code will not show the metar. Any Solutions?
-
To get the pagination for the schedules to work
Industrialshadow replied to Strider's topic in Skinning
Hello Guys have anybody Time and can help me to bring the pagiantion up in my Codeshare? Im not sure what i have to do so im not a reday for jquery. The Code so i have put in in my Codeshare but the other files i need Help Thanks