Jump to content

carlosuc99

Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by carlosuc99

  1. Yeah!! But I only want to know if it put a lot of point that you flight or use other way.
  2. Ok, but What column it use? And How is the content of this column?
  3. Hi, I see that http://greatairways.net/index.php/pireps/viewreport/7977. It every 5 minutes a postion report. It is a default value of FSACARS or it airline develop this option only for their? If it is a default function, What column it use? And How is the content of this column?
  4. And It is possible to deduct condition in the aircraft in the system???? Its possible in other form??
  5. 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.
  6. 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.
  7. The aircraft condition is similar when I bought the aircraft and I have four flights with this aircraft. Any Ideas???
  8. How Can I use this module?? What files I need to modify or create?
  9. 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.
  10. 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??
  11. Ok, but I think is good for my VA. It is possible???
  12. It is possible to create a menu in core_navigation wll show the schedules avaliables at my location???
  13. 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!
  14. Hi, When I book a schedule from RealScheduleLite other pilot can book the same schedule. It is possible to book only one time the schule. Example: if I book a schedule other pilot can´t book the same schedule. Any Idea?
  15. 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: But I want and I put in the email_registrationaceppted.tpl this: How can I see the spaces in the final mail? Any Ideas?
  16. Hi, If I go to the pilots list I can change in the pilot callsign and I show pilot information. I want restric this acces. I want to ONLY can see this information the pilots are online or login. If I am not logued I cant see this information. Any Idea?
  17. 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??
  18. Hi, I want to create a menu in core_navigation.tpl when I click it opened a new page in other tab. Any Idea??
  19. Hi, I want to change the name what you see at tab of the browser. Example: In Home Page at the tab you can see Welcome but in the pilots page you can see Pilots. I think it is the name of the module but Is posibble to change this name??
  20. Hi, When I finish a fly I close FSACARS but when I go to Live Map Page I see this: Pilot Flight Number Departure Arrival Status Altitude Speed Distance/Time Remain HTH1001 - Carlos HTH132 LEMG GEML FSACARS Closed 29 0 373 nm / I wait 5 hours but the messege not change. Any Ideas???
  21. 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.
  22. Hi, I send the FSACARS pirep to phpvms, but when I go to View my PIREPs I see the flight but I can´t see the FSACARS Log. How I can see the FSAcats Log??
  23. 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???
  24. Ok, I create a module content. But How Can I include a php file in a tpl file??
×
×
  • Create New...