RodrigoMoreira9 Posted April 3, 2015 Report Share Posted April 3, 2015 How to show only flights from the airport? For example, a pilot flies to SBGR the next flight it should be starting from SBGR Quote Link to comment Share on other sites More sharing options...
Fernando Posted April 3, 2015 Report Share Posted April 3, 2015 Rodrigo, In its schedule_searchform.tpl page delete any information and place the script below. <?php /* * Coding by Luiz Fernando * www.voegolv.net * Verion 1.0 * Dated: 15/01/2014 */ $pilotid = Auth::$userinfo->pilotid; $last_location = PIREPData::getLastReports($pilotid, 1); if(!$last_location) $last_location->arricao = Auth::$userinfo->hub; $last_name = OperationsData::getAirportInfo($last_location->arricao); $equipment = OperationsData::GetAllAircraftSearchList(true); $airlines = OperationsData::getAllAirlines(true); ?> <div class="menu clearfix"> <!-- Page Dropdown Menu --> <!-- Page title --> <div> <div align="center"></div> </div> <div class="cr_pass"></div> </div> <div class="clearfix content"> <!-- Page content --> <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" /> <p align="center"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script> </p> <form id="form" action="<?php echo actionurl('/schedules/view');?>" method="post"> <input id="depicao" name="depicao" value="<?php echo $last_location->arricao?>" type="hidden" /> <center><input type="submit" name="submit" class="butDef" value="Voos Partindo de <?php echo $last_location->arricao?>" /></center> <p> <input type="hidden" name="action" value="findflight" /> </p> </form> <script type="text/javascript"> </script> Take a test and verify that meets your needs, Hugs You Quote Link to comment Share on other sites More sharing options...
RodrigoMoreira9 Posted April 3, 2015 Author Report Share Posted April 3, 2015 Rodrigo, In its schedule_searchform.tpl page delete any information and place the script below. <?php /* * Coding by Luiz Fernando * www.voegolv.net * Verion 1.0 * Dated: 15/01/2014 */ $pilotid = Auth::$userinfo->pilotid; $last_location = PIREPData::getLastReports($pilotid, 1); if(!$last_location) $last_location->arricao = Auth::$userinfo->hub; $last_name = OperationsData::getAirportInfo($last_location->arricao); $equipment = OperationsData::GetAllAircraftSearchList(true); $airlines = OperationsData::getAllAirlines(true); ?> <div class="menu clearfix"> <!-- Page Dropdown Menu --> <!-- Page title --> <div> <div align="center"></div> </div> <div class="cr_pass"></div> </div> <div class="clearfix content"> <!-- Page content --> <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css')?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING');?>" /> <p align="center"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js');?>"></script> </p> <form id="form" action="<?php echo actionurl('/schedules/view');?>" method="post"> <input id="depicao" name="depicao" value="<?php echo $last_location->arricao?>" type="hidden" /> <center><input type="submit" name="submit" class="butDef" value="Voos Partindo de <?php echo $last_location->arricao?>" /></center> <p> <input type="hidden" name="action" value="findflight" /> </p> </form> <script type="text/javascript"> </script> Take a test and verify that meets your needs, Hugs You Thank You ! this worked 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.