Jump to content

ProSkyDesign

Moderators
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ProSkyDesign

  1. Nice but i Think i don't have any variables for schedule jajaja look at my fleet page snippet code: <?php require 'lib/skins/crewcenter/app_top.php' ?> <section class="content-header"> <h1>Flota</h1> </section> <section class="content"> <section class="content"> <div class="row"> <div class="col-lg-16"> <div class="box box-primary"> <div class="box-body table-responsive"> <table id="tabledlist" class="tablesorter table table-hover"> <thead> <tr> <center> <th>Aerol&iacute;nea</th> <th>Tipo</th> <th>Matr&iacute;cula</th> <th>Ubicaci&oacute;n</th> <th>Disponibilidad</th> <th>Estado</th> <th>Detalles</th> </tr> </thead> <tbody> <center> <?php if($aircrafts != null){ foreach($aircrafts as $aircrafts){ ?> <tr> <td><?php $allairlines = OperationsData::GetAllAirlines(true); foreach($allairlines as $airline) if($airline->code == $aircrafts->airline) { echo '<option value="'.$airline->code.'">'.$airline->name.'</option>'; } ?></td> <td><?php echo $aircrafts->fullname; ?></td> <td><?php echo $aircrafts->registration; ?></td> <?php $params = (array('a.registration'=>$aircrafts->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location2 = $pirep[0]->arrname; ?> <td style="font-weight: bolder;"><?php echo $current_location.''.$current_location2; ?></td> <td><?php If($aircrafts->enabled == 1){echo 'Disponible';} elseif($aircrafts->enabled == 0) {echo '<p style="color:red">En Mantenimiento';} ?></td> <td><?php echo AircraftMarketData::getaccond($aircrafts->id);?>%</td> <td><a class="btn btn-primary btn-block" href="<?php echo url('fleet/view/' . $aircrafts->id); ?>">Ver</a></td> </tr> <?php } }?> </tbody> </table> </div> </div> </div> </div> </section> <?php require 'lib/skins/crewcenter/app_bottom.php' ?>
  2. Same error Parse error: syntax error, unexpected '{' in /home1/mcfilmsp/public_html/crewcenter/core/pages/aeropuertos.php on line 2
  3. Phpvms have some problems with free host for the functions that a premium host use (SQL, PHP version, Cronjob, etc.)
  4. I'm using the same version if you don't use a free hosting, I can help you. Mail me: ceo@travelskyalliance.com
  5. Maybe you have installed wrong the phpvms... What version did you install?
  6. It doesn't works I want to put in a simple page (/index.php/pages/aeropuertos) but now the error is: Parse error: syntax error, unexpected '{' in /home1/mcfilmsp/public_html/crewcenter/core/pages/aeropuertos.php on line 2
  7. I have the following error Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /home1/mcfilmsp/public_html/crewcenter/core/pages/aeropuertos.php on line 4
  8. Is possible to get a "Booked" or "Free" State in Fleet page??
  9. Works but with some aircraft... Look at the attached pics! Thanks for your time :D!
  10. Thanks, but i think the code must be on confirmbid.tpl Here's my code: (confirmbid.tpl) <style> .sharp { border-radius: 0; margin-left: 3px; margin-right: 3px; } </style> <div class="container-fluid"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title">Confirmar Reserva<!-- <?php echo $routeid; ?> | <?php echo $airline; ?> | <?php echo $aicao; ?> --></h4> </div> <div class="modal-body"> <h3>Seleccionar Aeronave</h3> <form action="<?php echo url('/schedules/addbid');?>" method="post"> <select class="form-control" name="aircraftid" id="aircraftid"> <option value="" selected disabled>Selecciona Tu Avi贸n</option> <?php $allaircraft = FltbookData::getAllAircraftFltbook($airline, $aicao); foreach($allaircraft as $aircraft) { $icaoairline = "{$aircraft->icao}{$airline}"; if($aircraft->registration == $icaoairline) { echo ''; } else { $sel = ($_POST['aircraft'] == $aircraft->name || $bid->registration == $aircraft->registration)?'selected':''; echo '<option value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->registration.' - '.$aircraft->icao.' - '.$aircraft->name.' ('.(AircraftMarketData::getaccond($aircraft->id)).'%)</option>'; } } ?> </select> <hr /> <input type="hidden" name="routeid" value="<?php echo $routeid; ?>" /> <input type="submit" name="submit" class="btn btn-success" value="Reservar" /> <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button> </form> </div> <!-- <a class="btn btn-success" href="<?php echo url('/schedules/addbid/'.$routeid.'?id='.$aircraft->id);?>">Book</a> --> </div> Where can I add the code above?
  11. Nice Module, do you sell it? or can you share it :O?
  12. And how can I do it by the "Fltbook"? (I guess is your own module)
  13. How can I create a page with airport data? For example: Table with: Airport Name, Airport ICAO, Country, Latitude, Longitude, Fuel Price, Airline Schedules from or to the airport.
  14. I use the following code into my acarsmap.js but my bigmap now is not display... just show a blankpage :(. Any help? (I put 5 folders into inair with airline codes for each airline) if (data[i].flightnum.substring(0,3); == "SKU"){ var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); } else if (data[i].flightnum.substring(0,3); == "IBE"){ var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); } else if (data[i].flightnum.substring(0,3); == "IBS"){ var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); } else if (data[i].flightnum.substring(0,3); == "DAL"){ var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); } else if (data[i].flightnum.substring(0,3); == "SKC"){ var pos = new google.maps.LatLng(lat, lng); flightMarkers[flightMarkers.length] = new google.maps.Marker({ position: pos, map: map, icon: url+"/lib/images/inair/"+data[i].flightnum.substring(0,3);+"/"+data[i].heading+".png", flightdetails: data[i], infowindow_content: detailed_bubble }); } Thanks!
  15. Hi everyone... The " acars_map_bubble " is editable? and where can I find the css to edit it?... Thanks
  16. 5.3 (version of php)= 2.1 (version of phpvms) regarding admin/maintenance.php Yes is it but still doesn't work
  17. <div id="mainbox"> <h3>Vuelos Reservados</h3> <?php if(!$lastbids) { echo '<p align="center">No hay vuelos reservados</p>'; return; } ?> <table class="table table-striped"> <thead> <tr bgcolor=""> <th height="25" width="15%"><div align="center">Vuelo</div></th> <th height="25" width="13%"><div align="center">Origen</div></th> <th height="25" width="13%"><div align="center">Destino</div></th> <th height="25" width="20%"><div align="center">Piloto</div></th> <th height="25" width="15%"><div align="center">Avión</th> <th height="25" width="12%"><div align="center">Matrícula</div></th> </tr> </thead> <tbody> <?php foreach($lastbids as $lastbid) { ?> <tr bgcolor=""> <td height="25" width="15%" align="center"><?php echo $lastbid->code . $lastbid->flightnum; ?></a> </td> <td height="25" width="13%" align="center"><span><?php echo $lastbid->depicao; ?></span></td> <td height="25" width="13%" align="center"><span><?php echo $lastbid->arricao; ?></span></td> <?php $params = $lastbid->pilotid; $pilot = PilotData::GetPilotData($params); $pname = $pilot->firstname; $psurname = $pilot->lastname; ?> <td height="25" width="20%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td> <td height="25" width="15%" align="center"><span><?php echo $lastbid->aircraft; ?></span></td> <td height="25" width="12%" align="center"><?php echo $lastbid->registration?></td> </tr> <?php } ?> </tbody> </table> <hr> </div> frontpage_recentbids.tpl
  18. I removed all bids from sql but still continue the problem
  19. Hi I'm a website designer... If you want it yet please mail me:

    jose.bustos@travelskyalliance.com

  20. servetas I have the same issue, I'm using phpvms 5.3, I think it doesn't work because I don't run a cron-job but I don't know how can i do it.
  21. I have the same issue when reject a pirep or when delete a pirep... I haven't modify any admin document. Any solution?
  22. No, I can't.... The bids aren't in bids admin center when a pilot delete it from SmartCARS
×
×
  • Create New...