Jump to content

carlosuc99

Members
  • Posts

    46
  • Joined

  • Last visited

Posts posted by carlosuc99

  1. It isn´t finished yet. Don´t use it on your page! We discuss only a way to program a part of an code.... Read all posts before you do something

    And It is possible to deduct condition in the aircraft in the system???? Its possible in other form??

  2. Hi;

    I have FlightBookingSystem by parko. And I have to do two modifications.

    In the schedule_resoults.tpl I have this code:

    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <?php
    if(!$allroutes)
    {
    echo '<tr><td align="center">No routes have been found!</td></tr>';
    return;
    }
    ?>
    <script src="http://skyvector.com/linkchart.js"></script>
    <thead>
    <tr style="height:12px; font-size:14px; font-weight:normal">
    <th width="20%" align="center">N° de Vuelo</th>
    <th width="20%" align="center">Origen</th>
    <th width="20%" align="center">Destino</th>
    <th width="20%" align="center">Avión</th>
    <th width="20%" colspan="2" align="center">Opciones</th>
    </tr>
    <tr>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" colspan="2" align="center">------------</td>
    </tr>
    </thead>
    <tbody>
    
    <?php
    foreach($allroutes as $route)
    {
    if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
    {
    continue;
    }
    if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn())
    {
    if($route->aircraftlevel > Auth::$userinfo->ranklevel)
    {
    continue;
    }
    }
    ?>
    <tr style="height:12px; font-size:14px; font-weight:normal;">
    <td width="20%" align="center" valign="middle"><?php echo $route->code . $route->flightnum?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->depicao;?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->arricao;?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->aircraft;?></td>
    <td width="20%" align="center" valign="middle"><img onmouseover="document.body.style.cursor='pointer';" onmouseout="document.body.style.cursor='default';" class="{button:{icons:{primary:'ui-icon-arrowthick-1-s'}}}" href="#" onclick="$('#details_dialog_<?php echo $route->flightnum;?>').toggle()" src="http://alvandair.com/lib/skins/aqua/images/BookingButt/Preview.png" border="0">
    
    <?php
    if($route->bidid != 0)
     {
     ?>
     <img src="http://alvandair.com/lib/skins/aqua/images/BookingButt/SwissBook.png" border="0">
     <?php
    }
     else
    {
    ?>
     <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>"><img src="http://alvandair.com/lib/skins/aqua/images/BookingButt/BlueBook.png" border="0"></a>
     <?php				
     }
     ?>
    </td>
    </tr>
     <td colspan="5">
    
    <table cellspacing="0" cellpadding="0" border="1" id="details_dialog_<?php echo $route->flightnum;?>" style="display:none" bgcolor="#ADDFFF" width="100%">
    
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Flight Briefing</font></th>
    </tr>
    <tr>
    <td align="left">Origen:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo "{$route->depname} ($route->depicao)"?></b></td>
    <td align="left">Destino:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo "{$route->arrname} ($route->arricao)"?></b></td>
    </tr>
    <tr>
    <td align="left">Avión:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->aircraft; ?></b></td>
    <td align="left">Distancia:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->distance . Config::Get('UNITS') ;?></b></td>
    </tr>
    <tr>
    <td align="left">Hora de Salida:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->deptime?> GMT</b></td>
    <td align="left">Hora de Llegada:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->arrtime?> GMT</b></td>
    </tr>
    <tr>
    <td align="left">Altitud:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->flightlevel; ?> ft</b></td>
    <td align="left">Duración:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->flighttime ;?> h</b></td>
    </tr>
    <tr>
    <td align="left">Ruta:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->route; ?></b></td>
    <td align="left">Precio del Billete:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b> $ <?php echo $route->price ;?>.00</b></td>
    </tr>
    
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Cálculo del Combustible para el <?php echo $route->aircraft ;?></font></th>
    </tr>
    <?php
    	 $fuelflowATR72 = 800;
    $fuelhrATR72 = 2000;
    $flholdingATR72 = 1000;
    $fldiversionATR72 = 1500;
    $flcontingencyATR72 = 200;
    $fltaxiATR72= 500;
    
    
    
    
    
    
    
     if($route->aircraft == 'ATR 72-212')
    	 {
    	 $fuelflow = $fuelflowATR72;
    	 $fuelhr = $fuelhrATR72;
    $fltaxi = $fltaxiATR72;
    $flholding = $flholdingATR72;
    $fldiversion = $fldiversionATR72;
    $flcontingency = $flcontingencyATR72;
    	 }
    	 elseif($route->aircraft == 'ATR 72-202')
    	 {
    	 $fuelflow = $fuelflowATR72;
    	 $fuelhr = $fuelhrATR72;
    $fltaxi = $fltaxiATR72;
    $flholding = $flholdingATR72;
    $fldiversion = $fldiversionATR72;
    $flcontingency = $flcontingencyATR72;
    	 }
    
     $fldis = $route->distance / 100;
    $fuelnm = $fuelflow * $fldis;
    $flndg = $fuelhr * 3/4;
    $result = $fuelnm + $fltaxi + $flholding + $fldiversion;
     ?>
     <tr>
    		 <td align="left" colspan="2">Combustible Requerido hasta el Destino:</td>
     <td align="left" colspan="2"><b><?php echo $fuelnm ;?> lbs</b></td>
     </tr>
     <tr>
     <td align="left" colspan="2">Combustible para el taxi y uso en tierra:</td>
     <td align="left" colspan="2"><b><?php echo $fltaxi ;?> lbs</b></td>
     </tr>
     <tr>
     <td align="left" colspan="2">Esperas:</td>
     <td align="left" colspan="2"><b><?php echo $flholding ;?> lbs</b></td>
     <tr>
     <td align="left" colspan="2">Desvíos:</td>
     <td align="left" colspan="2"><b><?php echo $fldiversion ;?> lbs</b></td>
     </tr>
     </tr>
     <tr>
     <td align="center" colspan="4"><font color="blue" size="4">Combustible para la Ruta:   <?php echo $result ;?> lbs</font></td>
     </tr>
    
    </td>
    </tr>
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Mapa del Vuelo</font></th>
    </tr>
    <tr>
    <td width="100%" colspan="4">
    <?php
    $string = "";
    				 $string = $string.$route->depicao.'+-+'.$route->arricao.',+';
    				 ?>
    				 <img width="100%" src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=680x200&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" />
    </tr>
    </td>
    </table>
     </td>
    </tr>
    
    <?php
    /* END OF ONE TABLE ROW */
    }
    ?>
    </tbody>
    </table>
    

    I want to see only planes there are in my current location and if I book a flight with the aircraft N5666 I can´t book a flight other flight with this plane.

    I fought this code. It is realschedulite_index in the Aircrafts column the code what you can see the planes in this location.

    $aircrafts = OperationsData::getAllAircraft('true');
    $count = 0;
    if(!$aircrafts)
    {
     echo 'La aerolínea no tiene aviones!';
    }
    else
    {
     foreach ($aircrafts as $aircraft)
     {
    	 $location = FlightSchedulesData::get_aircraft_location($aircraft->id);
    	 $airfield = $location->arricao;
    	 if(!$location)
    	 {
    		 $location = FlightSchedulesData::get_aircraft_start($aircraft->id);
    		 $airfield = $location->depicao;
    	 }
    	 else
    	 {
    		 $airfield = $location->arricao;
    	 }
    	 if ($airfield == $airport->icao)
    	 {
    		 if ($count == 0)
    		 {
    			 echo '| ';
    		 }
    		 echo ''.$aircraft->registration.' | ';
    		 $count++;
    	 }
     }
     if ($count == 0)
     {
    	 echo '<font color="#6D7B8D"><i>No hay aviones disponibles</i></font>';
     }
     echo '</td>';
    }
    

    Any Ideas???

    Please help me.

    • Like 1
  3. Hi;

    I have FlightBookingSystem by parko. And I have to do two modifications.

    In the schedule_resoults.tpl I have this code:

    <table width="100%" cellspacing="0" cellpadding="0" border="0">
    <?php
    if(!$allroutes)
    {
    echo '<tr><td align="center">No routes have been found!</td></tr>';
    return;
    }
    ?>
    <script src="http://skyvector.com/linkchart.js"></script>
    <thead>
    <tr style="height:12px; font-size:14px; font-weight:normal">
    <th width="20%" align="center">N° de Vuelo</th>
    <th width="20%" align="center">Origen</th>
    <th width="20%" align="center">Destino</th>
    <th width="20%" align="center">Avión</th>
    <th width="20%" colspan="2" align="center">Opciones</th>
    </tr>
    <tr>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" align="center">------------</td>
    <td width="20%" colspan="2" align="center">------------</td>
    </tr>
    </thead>
    <tbody>
    
    <?php
    foreach($allroutes as $route)
    {
    if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
    {
    continue;
    }
    if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn())
    {
    if($route->aircraftlevel > Auth::$userinfo->ranklevel)
    {
    continue;
    }
    }
    ?>
    <tr style="height:12px; font-size:14px; font-weight:normal;">
    <td width="20%" align="center" valign="middle"><?php echo $route->code . $route->flightnum?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->depicao;?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->arricao;?></td>
    <td width="20%" align="center" valign="middle"><?php echo $route->aircraft;?></td>
    <td width="20%" align="center" valign="middle"><img onmouseover="document.body.style.cursor='pointer';" onmouseout="document.body.style.cursor='default';" class="{button:{icons:{primary:'ui-icon-arrowthick-1-s'}}}" href="#" onclick="$('#details_dialog_<?php echo $route->flightnum;?>').toggle()" src="http://alvandair.com/lib/skins/aqua/images/BookingButt/Preview.png" border="0">
    
    <?php
    if($route->bidid != 0)
     {
     ?>
     <img src="http://alvandair.com/lib/skins/aqua/images/BookingButt/SwissBook.png" border="0">
     <?php
    }
     else
    {
    ?>
     <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>"><img src="http://alvandair.com/lib/skins/aqua/images/BookingButt/BlueBook.png" border="0"></a>
     <?php				
     }
     ?>
    </td>
    </tr>
     <td colspan="5">
    
    <table cellspacing="0" cellpadding="0" border="1" id="details_dialog_<?php echo $route->flightnum;?>" style="display:none" bgcolor="#ADDFFF" width="100%">
    
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Flight Briefing</font></th>
    </tr>
    <tr>
    <td align="left">Origen:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo "{$route->depname} ($route->depicao)"?></b></td>
    <td align="left">Destino:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo "{$route->arrname} ($route->arricao)"?></b></td>
    </tr>
    <tr>
    <td align="left">Avión:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->aircraft; ?></b></td>
    <td align="left">Distancia:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->distance . Config::Get('UNITS') ;?></b></td>
    </tr>
    <tr>
    <td align="left">Hora de Salida:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->deptime?> GMT</b></td>
    <td align="left">Hora de Llegada:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->arrtime?> GMT</b></td>
    </tr>
    <tr>
    <td align="left">Altitud:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->flightlevel; ?> ft</b></td>
    <td align="left">Duración:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->flighttime ;?> h</b></td>
    </tr>
    <tr>
    <td align="left">Ruta:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b><?php echo $route->route; ?></b></td>
    <td align="left">Precio del Billete:</td>
    <td colspan="0" align="left" bgcolor="#ADDFFF"><b> $ <?php echo $route->price ;?>.00</b></td>
    </tr>
    
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Cálculo del Combustible para el <?php echo $route->aircraft ;?></font></th>
    </tr>
    <?php
    	 $fuelflowATR72 = 800;
    $fuelhrATR72 = 2000;
    $flholdingATR72 = 1000;
    $fldiversionATR72 = 1500;
    $flcontingencyATR72 = 200;
    $fltaxiATR72= 500;
    
    
    
    
    
    
    
     if($route->aircraft == 'ATR 72-212')
    	 {
    	 $fuelflow = $fuelflowATR72;
    	 $fuelhr = $fuelhrATR72;
    $fltaxi = $fltaxiATR72;
    $flholding = $flholdingATR72;
    $fldiversion = $fldiversionATR72;
    $flcontingency = $flcontingencyATR72;
    	 }
    	 elseif($route->aircraft == 'ATR 72-202')
    	 {
    	 $fuelflow = $fuelflowATR72;
    	 $fuelhr = $fuelhrATR72;
    $fltaxi = $fltaxiATR72;
    $flholding = $flholdingATR72;
    $fldiversion = $fldiversionATR72;
    $flcontingency = $flcontingencyATR72;
    	 }
    
     $fldis = $route->distance / 100;
    $fuelnm = $fuelflow * $fldis;
    $flndg = $fuelhr * 3/4;
    $result = $fuelnm + $fltaxi + $flholding + $fldiversion;
     ?>
     <tr>
    		 <td align="left" colspan="2">Combustible Requerido hasta el Destino:</td>
     <td align="left" colspan="2"><b><?php echo $fuelnm ;?> lbs</b></td>
     </tr>
     <tr>
     <td align="left" colspan="2">Combustible para el taxi y uso en tierra:</td>
     <td align="left" colspan="2"><b><?php echo $fltaxi ;?> lbs</b></td>
     </tr>
     <tr>
     <td align="left" colspan="2">Esperas:</td>
     <td align="left" colspan="2"><b><?php echo $flholding ;?> lbs</b></td>
     <tr>
     <td align="left" colspan="2">Desvíos:</td>
     <td align="left" colspan="2"><b><?php echo $fldiversion ;?> lbs</b></td>
     </tr>
     </tr>
     <tr>
     <td align="center" colspan="4"><font color="blue" size="4">Combustible para la Ruta:   <?php echo $result ;?> lbs</font></td>
     </tr>
    
    </td>
    </tr>
    <tr>
    <th align="center" bgcolor="#153E7E" colspan="4"><font color="white">Mapa del Vuelo</font></th>
    </tr>
    <tr>
    <td width="100%" colspan="4">
    <?php
    $string = "";
    				 $string = $string.$route->depicao.'+-+'.$route->arricao.',+';
    				 ?>
    				 <img width="100%" src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=680x200&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" />
    </tr>
    </td>
    </table>
     </td>
    </tr>
    
    <?php
    /* END OF ONE TABLE ROW */
    }
    ?>
    </tbody>
    </table>
    

    I want to see only planes there are in my current location and if I book a flight with the aircraft N5666 I can´t book a flight other flight with this plane.

    I fought this code. It is realschedulite_index in the Aircrafts column the code what you can see the planes in this location.

    $aircrafts = OperationsData::getAllAircraft('true');
    $count = 0;
    if(!$aircrafts)
    {
     echo 'La aerolínea no tiene aviones!';
    }
    else
    {
     foreach ($aircrafts as $aircraft)
     {
    	 $location = RealScheduleLiteData::get_aircraft_location->arricao;
    	 if(!$location)
    	 {
    		 $location = RealScheduleLiteData::get_aircraft_start($aircraft->id);
    		 $airfield = $location->depicao;
    	 }
    	 else
    	 {
    		 $airfield = $location->arricao;
    	 }
    	 if ($airfield == $airport->icao)
    	 {
    		 if ($count == 0)
    		 {
    			 echo '| ';
    		 }
    		 echo ''.$aircraft->registration.' | ';
    		 $count++;
    	 }
     }
     if ($count == 0)
     {
    	 echo '<font color="#6D7B8D"><i>No hay aviones disponibles</i></font>';
     }
     echo '</td>';
    }
    

    Any Ideas???

    Please help me.

  4. Hi,

    I pay for a new schedule system only for my VA. In the schedule system you can book a flight in your location and with the planes are in your location. And I put in the admin in a tab in xxx_schedules tab ex: E195, AT72. If you book this flight the Schedule System gives you the option to select Embraers 195 & ATR72 in this location.

    I do this part "And I put in the admin in a tab in xxx_schedules tab ex: E195, AT72" but I pay for the rest of the Schedule System.

  5. I have other problem. When I go to book flights page. It show all flights for this airport for all airplanes. Example: The Plane whith registratrion EC-MHK are in KATL, the Plane EC-MHD are in KJFK. If I am in KATL and I go the book flights page I can book schedules for EC-MHK and for EC-MHD. I want think is better if i can book flights for the airplane are in my location not for all airplanes. It is possible??

  6. I'm not sure that is a good idea as this will bring up every flight available from that airport, and will result in members complaining of a very extended navigation submenu.

    There is, however a better alternative if you use Jeff Kobus' code that shows an option to view flights from your location right from your schedule search. I use this option on my schedule search.

    Ok, but I think is good for my VA. It is possible???

  7. I'm not sure if you have seen the RealScheduleLite add-on by simpilot and that could be a challenging experience to fix the bugs that add-on has right now as it's not supported by simpilot anymore. Here is the link:

    RealScheduleLite

    ;)

    It´s a good idea, but I think is better create a schedules system similar to RealScheduleLite but if I am in KLAX and there are 10 flights avaliables, in RealScheduleLite I cant book all because in RealScheduleLite you only can book a looping routes:

    flight 1 - KBOS - KATL

    flight 2 - KATL - KDEN

    flight 3 - KDEN - KORD

    flight 4 - KORD - KBOS

    But I think if I am in KATL and there are schedules KDEN and to KBOS I can book both not only one.

    Please, Can you do this Addon? I think will is a GREAT ADDON!

  8. Hi,

    When a pilot resgistered form my VA the phpvms sent a mail. I want to see spaces in the final mail.

    This is the final mail:

    Nacho Lopez, Bienvenido a IberiaVA! Tu solicitud para formar parte de Iberia VA ha sido aprobada. Su licencia es (IBE1002), y su contraseña es la que determinó en la Solicitud de Alta. Desde IberiaVA le recomendamos que lea la Guia de Bienvenida disponible en

    http://iberiava.com/lib/manuales/guia_bienvenida.pdf Atentamente, El Departamento de Recursos Humanos

    But I want and I put in the email_registrationaceppted.tpl this:

    Nacho Lopez,

    Bienvenido a IberiaVA! Tu solicitud para formar parte de Iberia VA ha sido aprobada. Su licencia es (IBE1002), y su contraseña es la que determinó en la Solicitud de Alta. Desde IberiaVA le recomendamos que lea la Guia de Bienvenida disponible en

    http://iberiava.com/lib/manuales/guia_bienvenida.pdf

    Atentamente,

    El Departamento de Recursos Humanos

    How can I see the spaces in the final mail?

    Any Ideas?

  9. Hi,

    I found a flight board at his forum but because the post are SOLVED I put here my error. The flight board it is OK, but for refreh the information we need to go the browser. The code is this:

    <style type="text/css">
    <!--
    th {
    color: #FFFFFF;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: 14px;
    }
    td {
    color: #FFFFFF;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: normal;
    }
    -->
    </style>
    <h2 align="center">Vuelos Activos</h2><br>
    <table style="border:1px solid grey;" cellspacing="0" cellpadding="0" bgcolor="#1F1F1F">
     <tr>
       <th align="center" style="background-color: #D2232A; width: 3.5%;"> </th>
    <th width="10%" align="center" style="background-color: #D2232A;">Piloto</th>
       <th width="10%" align="center" style="background-color: #D2232A;">Flight</th>
       <th width="30%" align="center" style="background-color: #D2232A;">Departure</th>
       <th width="30%" align="center" style="background-color: #D2232A;">Arrival</th>
       <th width="5%" align="center" style="background-color: #D2232A;">Aircraft</th>
       <th width="18.5%" align="center" style="background-color: #D2232A;">Status</th>
    </tr>
    <?php
    $results = ACARSData::GetACARSData();
    if (count($results) > 0)
      {
      foreach($results as $flight)
      {
    
    	 ?>
      <tr>
    	  <td align="center"><?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src='http://localhost/helittva/lib/images/dots_blink.gif'>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src='http://localhost/helittva/lib/images/dots.gif'>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src='http://localhost/helittva/lib/images/dots_yellow.gif'>"; } ?></td>
    	  <td align="center">HTH<?php echo $flight->pilotid;?></td>
       <td align="center"><?php echo $flight->flightnum;?></td>
    	  <td align="center"><?php echo $flight->depname;?></td>
    	  <td align="center"><?php echo $flight->arrname;?></td>
    	  <td align="center"><?php echo $flight->aircraftname;?></td>
    	  <td align="center"><?php if($flight->phasedetail
       != 'Paused') { echo $flight->phasedetail; }
       else { echo "Cruise"; }?></font></td>
      </tr>
     <?php		 
    		    }
    	    } else { ?>
    		    <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #FFFFFF;">No Hay Vuelos Activos!</td></tr>
    	    <?php
    	    }
    	    ?>
    </table>
    

    I want to put a automatic refresh for the table.

    Any Idea??

  10. Open core_navigation.tpl and go to line 14 after this:

    // Show these items only if they are logged in
    

    Insert this:

    $pilotid = Auth::$userinfo->pilotid;
    $last_location = RealScheduleLiteData::get_pilot_location($pilotid, 1);
    $last_name = OperationsData::getAirportInfo($last_location->arricao);
    $curlocation = $last_location->arricao;
    

    Make sure you copy that before this:

    ?>
    

    Now on line 21 copy this:

    <li>
    <?php
    
    echo '<a href="'.SITE_URL.'/index.php/RealScheduleLite/get_airport?icao='.$curlocation.'">'.$curlocation.'</a>';
    
    ?></li>
    

    That should give you your current location and when you click on it it'll take you to realschedulelite airport page for bookings.

    It is perfect!!!!!! Thanks!!!

  11. And what was the result? I think you're trying to by pass the first page of RealScheduleLite where the airports are listed with available aircrafts with this.

    The resoult is http://localhost/hel...fo->pilotid);?> And Not Found. But if I go to realschedulelite_index.tpl in line 67 an change:

    echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_airport?icao='.$airport->icao.'">'.$airport->icao.'</a></td>';
    

    to

    echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_airport?icao='.$curlocation->icao.'">'.$airport->icao.'</a></td>';
    

    When I click to airport ICAO (any ICAO) his open a new page with the airport where I. Exemple: If I select KATL ICAO but I am in KJFK. Open a new page to book schedules at KJFK. And I want to create a link in core_navigation.tpl to show the page of the airport where I.

  12. Okay! are you using the realschedulelite or the default? and please explain what exactly you need to do.If possible with pictures.

    I want to use for routes RealScheduleLite, but I want to create a menu to book schedules with RealScheduleLite. I test this:

    <li><a href="<?php echo url('/RealScheduleLite/get_airport?icao=<?php

    $location = RealScheduleLiteData::get_pilot_location($userinfo->pilotid);?>'); ?>">Book Schedules</a></li>

    Are you know me???

×
×
  • Create New...