Jump to content

Flights from airport


RodrigoMoreira9

Recommended Posts

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

Link to comment
Share on other sites

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

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