Junior Posted February 23, 2014 Report Posted February 23, 2014 Hi mates, thank you for the amazing support! I`m experiencing a problem in my FlightBoard. Im running the site offline, but everything is ok in my comp/setup. But idk what else I can do to fix the problem... I cant see any flight on my flightboard also the "there are no flights" message also disappeared. Can you give me a hand please? Thank you a lot!! My frontpage_main: <style> #innerwrapper{ background:none; border:none; padding:0px; } </style> <img style="border:1px solid lightgrey;"src="<?php echo SITE_URL;?>/lib/skins/Zumeweb.Pacific.V1/images/default/web_banner.png"/> <div class="row-fluid"> <div class="span9"> <h3><center>UM NOVO CONCEITO!</h3> <div class="box"> <p>A Virtual Pilots Alliance é uma Virtual Airline focada em tudo aquilo que os simuladores de vôo podem proporcionar. Não prezamos apenas a diversão mas também uma certa seriedade no que diz respeito a simulação aérea. Contamos com rotas e frotas diversas, servidor de TeamSpeak 3, Grupo no Facebook, Fórum e muito mais! Faça parte desse grande grupo de entusiastas, pilotos reais, pilotos virtuais, colegas e amigos afinal de contas, somos todos apaixonados por aviação!.</p> </div> </div> <div class="span3"> <h3>Navigation</h3><div class="box"><ul class="nav nav-list"> <li class="active"><a href="c:\wamp\www\va\index.php\index.php/"><i class="icon-home icon-white"></i> Home</a></li> <li><a href="c:\wamp\www\va\index.php\"><i class="icon-home"></i> VPA Site</a></li> <li><a href="c:\wamp\www\va\index.php\schedules"><i class="icon-plane"></i> Agendar Vôo</a></li> <li><a href="c:\wamp\www\va\index.php\vFleetTracker"><i class="icon-plane"></i> Rastreio de Frota</a></li> <li><a href="c:\wamp\www\va\index.php\airports"><i class="icon-road"></i> Aeroportos</a></li> <li><a href="c:\wamp\www\va\index.php\timetable"><i class="icon-time"></i> Horários</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\mine"><i class="icon-plane"></i> Minhas PIREPS</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\routesmap"><i class="icon-plane"></i> Meu Mapa de Vôos</a></li> <li><a href="c:\wamp\www\va\index.php\finances"><i class="icon-signal"></i> Finanças da VA</a></li> <li><a href="https://www.facebook.com/groups/vvirtual/"><i class="icon-plane"></i> Grupo no FaceBook</a></li> </ul> </div> <h3><center><strong>Dados </strong>da VPA</h3> <div class="box"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::PilotCount(); ?></div></b></td> <td>Pilotos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalAircraftInFleet(); ?></div></b></td> <td>Aeronaves</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalSchedules(); ?></div></b></td> <td>Vôos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlights(); ?></div></b></td> <td>Vôos Efetuados</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlightsToday(); ?></div></b></td> <td>Vôos de Hoje</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo round(StatsData::TotalFuelBurned(), 0); ?></div></b></td> <td>CombustÃvel Queimado</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalHours(); ?></div></b></td> <td>Horas Voadas</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalMilesFlown(); ?></div></b></td> <td>Milhas Voadas</td> </tr> </table> </div> </div> </div> <div class="row-fluid"> <div class="span9"><h3>Vôos em Andamento</h3><div class="box"> <?php $q = "SELECT * FROM phpvms_acarsdata"; $l = DB::get_results($q); if($l != null){ ?> <table border="0" width="100%" cellspacing="4" class="acarsmap"> <thead> <tr> <td><b>Piloto</b></td> <td><b>Nº do Vôo</b></td> <td><b>Origem</b></td> <td><b>SaÃda</b></td> <td><b>Situação</b></td> <td><b>Altitude</b></td> <td><b>Velocidade</b></td> <td><b>Tempo Restante</b></td> </tr> </thead> <tbody id="pilotlist"> <? foreach($l as $fl) { $lu = strtotime($fl->lastupdate); $min_u = strtotime(date("Y-m-d") - 900); if($lu > $min_u) { echo("<tr>"); echo("<td>".$fl->pilotname."</td>"); echo("<td>".$fl->flightnum."</td>"); echo("<td>".$fl->depicao."</td>"); echo("<td>".$fl->arricao."</td>"); echo("<td>".$fl->phasedetail."</td>"); echo("<td>".$fl->alt." feet</td>"); echo("<td>".$fl->gs." knots</td>"); echo("<td>".$fl->timeremaining."</td>"); echo("</tr>"); } } }else{ ?> <div class="alert alert-danger"> <strong>Looks Like our Pilots are taking a rest!</strong> There is no current flights online. </div> <?php } ?> </tbody> </table> </div> </div> <div class="span3"><h3>Últimas Novidades</h3><div class="box"></div></div> </div> <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>Últimos vôos Realizados (Horários em Zulu)</h3> </div> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <style type="text/css"> table th { text-align: center; color:black; font-weight:bold;} table td { text-align: center; } </style> <thead> <tr> <style type="text/css"> { text-align: center; } </style> <th>Nº do Vôo</th> <th>Piloto</th> <th>Origem</th> <th>Destino</th> <th>Duração do Vôo</th> <th>Aeronave</th> <th>MatrÃcula</th> <th>Data do Vôo</th> <th>Situação</th> </tr> </font> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == '0') $status = 'REJECTED'; if($pirep->accepted == '1') $status = 'ACCEPTED'; else $status = 'PENDING'; /*$aircraft = OperationsData::getAircraftInfo($pirep->aircraft);*/ } ?> <tr> <td class="small"><a href="<?php echo SITE_URL?>/index.php/pireps/view/<?php echo '' . $pirep->pirepid . ''; ?>"><?php echo $pirep->code.$pirep->flightnum; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $pilotinfo->pilotid . ''; ?>"><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->depicao.'">'.$pirep->depicao.'</a>';?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->arricao.'">'.$pirep->arricao.'</a>';?></td> <td class="small"><?php echo $pirep->flighttime; ?> horas</td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->aircraft; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->registration; ?></a></td> <td class="small"><?php echo date(DATE_FORMAT, $pirep->submitdate); ?></td> <td class="small"><?php if($pirep->accepted == PIREP_ACCEPTED) { if($pirep->submitdate+($pirep->flighttime*60*60)>time()) echo '<font color="blue">Em Vôo</font>'; // as long as a single flight duration has not elapsed, show it as in flight else echo '<font color="blue">Pousou</font>'; //more than a flight duration has elapsed, show it as landed } elseif($pirep->accepted == PIREP_REJECTED) echo '<font color="red">Rejected</font>'; elseif($pirep->accepted == PIREP_PENDING) echo '<font color="orange">Aguardando Informações</font>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<font color="blue">In Flight</font>'; ?> <?php if($pirep->accepted == PIREP_ACCEPTED && !($pirep->submitdate+($pirep->flighttime*60*60)>time())): ?><font color="blue">à s <?php echo date('H:i', $pirep->submitdate+($pirep->flighttime*60*60));?>z</font><?php endif; ?> <?php $schedule = SchedulesData::getScheduleByFlight($pirep->code,$pirep->flightnum); $fltime = explode(".", $schedule->flighttime); $minstar = substr($fltime[1],0,1); $minstarmin = substr($fltime[1],1,2); $flmin = $minstar * 10; $flhou = $fltime[0] * 60; $flminu = $flhou + $flmin + $minstarmin; $actfltime = explode(".", $pirep->flighttime); $actminstar = substr($actfltime[1],0,1); $actminstarmin = substr($actfltime[1],1,2); $actflmin = $actminstar * 10; $actflhou = $actfltime[0] * 60; $actflminu = $actflhou + $actflmin + $actminstarmin; if (!($pirep->submitdate+($pirep->flighttime*60*60)>time())) { // new line if(($flminu - 20) > $actflminu) { echo '<font color="blue">and Was Early</font>'; } elseif (($flminu + 15) < $actflminu) { echo '<font color="red">ATRASADO</font>'; } else { echo '<font color="green">SEM ATRASO</font>'; } } // new line ?> </li> </td> </tr> <?php } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </div> </table> <br /> <p><?php MainController::Run('FrontBids', 'RecentFrontPage', 5); ?><font color="yellow"></font></p> </div> Quote
BaRBeR Posted February 23, 2014 Report Posted February 23, 2014 could be something to do with the 3 </div>'s </div> </div> </div> <div class="row-fluid"> <div class="span9"><h3>Vôos em Andamento</h3><div class="box"> <?php $q = "SELECT * FROM phpvms_acarsdata"; $l = DB::get_results($q); if($l != null){ ?> <table border="0" width="100%" cellspacing="4" class="acarsmap"> <thead> <tr> <td><b>Piloto</b></td> <td><b>Nº do Vôo</b></td> <td><b>Origem</b></td> Quote
Junior Posted February 23, 2014 Author Report Posted February 23, 2014 tried already.. when I remove a </div> messes everything edit: now I can see only 1 flight there but still in the wrong place and still 30min outdated Quote
Junior Posted February 27, 2014 Author Report Posted February 27, 2014 Please, someone can help? I can pay.... Quote
Members Vangelis Posted February 27, 2014 Members Report Posted February 27, 2014 can you send me your template folder to info(@)baggelis.com so i can have a look at it ? Quote
Junior Posted February 27, 2014 Author Report Posted February 27, 2014 template or skin folder m8? Quote
Members Vangelis Posted February 27, 2014 Members Report Posted February 27, 2014 the skin folder Quote
magicflyer Posted February 28, 2014 Report Posted February 28, 2014 Hi, I noticed you have a full-length H3 and box on the bottom of that page. I am going to assume you edited a bit of the code, and got confused at how the grid system works. You see...It's based on the Bootstrap 2.0 grid system, which can be found here: http://getbootstrap....tml#gridSystem. In short, you need to start off with a <div class="row"> which contains numerous <div class="spanX"> where X is the width of the column(From X = 1 to X = 12). On top of that, you also need the proper closing </div> after each <div> opened. I know it's somewhat a bit confusing, but just bare with me. When you create a row(class), you're basically creating a new line for whichever elements. That new row, will have each element aligned in one straight line, instead of following the elements top-down. In the Spoiler below, I moved the Flightboard to the first instance of <div class="row"> so that the flightboard follows the row on-top. In addition, I also moved that "Ultimas Novidades" sidebar up to the first row to have it behave a little more smooth. The code below is not tested, it can turn out to be beautiful or disastrous. Just let me know, and Ill fix it up locally and give you a newer version(But the error is still the same). <style> #innerwrapper{ background:none; border:none; padding:0px; } </style> <img style="border:1px solid lightgrey;"src="<?php echo SITE_URL;?>/lib/skins/Zumeweb.Pacific.V1/images/default/web_banner.png"/> <div class="row-fluid"> <div class="span9"> <h3><center>UM NOVO CONCEITO!</h3> <div class="box"> <p>A Virtual Pilots Alliance é uma Virtual Airline focada em tudo aquilo que os simuladores de vôo podem proporcionar. Não prezamos apenas a diversão mas também uma certa seriedade no que diz respeito a simulação aérea. Contamos com rotas e frotas diversas, servidor de TeamSpeak 3, Grupo no Facebook, Fórum e muito mais! Faça parte desse grande grupo de entusiastas, pilotos reais, pilotos virtuais, colegas e amigos afinal de contas, somos todos apaixonados por aviação!.</p> </div> <h3>Vôos em Andamento</h3><div class="box"> <?php $q = "SELECT * FROM phpvms_acarsdata"; $l = DB::get_results($q); if($l != null){ ?> <table border="0" width="100%" cellspacing="4" class="acarsmap"> <thead> <tr> <td><b>Piloto</b></td> <td><b>Nº do Vôo</b></td> <td><b>Origem</b></td> <td><b>SaÃda</b></td> <td><b>Situação</b></td> <td><b>Altitude</b></td> <td><b>Velocidade</b></td> <td><b>Tempo Restante</b></td> </tr> </thead> <tbody id="pilotlist"> <? foreach($l as $fl) { $lu = strtotime($fl->lastupdate); $min_u = strtotime(date("Y-m-d") - 900); if($lu > $min_u) { echo("<tr>"); echo("<td>".$fl->pilotname."</td>"); echo("<td>".$fl->flightnum."</td>"); echo("<td>".$fl->depicao."</td>"); echo("<td>".$fl->arricao."</td>"); echo("<td>".$fl->phasedetail."</td>"); echo("<td>".$fl->alt." feet</td>"); echo("<td>".$fl->gs." knots</td>"); echo("<td>".$fl->timeremaining."</td>"); echo("</tr>"); } } }else{ ?> <div class="alert alert-danger"> <strong>Looks Like our Pilots are taking a rest!</strong> There is no current flights online. </div> <?php } ?> </tbody> </table> </div> </div> <div class="span3"> <h3>Navigation</h3><div class="box"><ul class="nav nav-list"> <li class="active"><a href="c:\wamp\www\va\index.php\index.php/"><i class="icon-home icon-white"></i> Home</a></li> <li><a href="c:\wamp\www\va\index.php\"><i class="icon-home"></i> VPA Site</a></li> <li><a href="c:\wamp\www\va\index.php\schedules"><i class="icon-plane"></i> Agendar Vôo</a></li> <li><a href="c:\wamp\www\va\index.php\vFleetTracker"><i class="icon-plane"></i> Rastreio de Frota</a></li> <li><a href="c:\wamp\www\va\index.php\airports"><i class="icon-road"></i> Aeroportos</a></li> <li><a href="c:\wamp\www\va\index.php\timetable"><i class="icon-time"></i> Horários</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\mine"><i class="icon-plane"></i> Minhas PIREPS</a></li> <li><a href="c:\wamp\www\va\index.php\pireps\routesmap"><i class="icon-plane"></i> Meu Mapa de Vôos</a></li> <li><a href="c:\wamp\www\va\index.php\finances"><i class="icon-signal"></i> Finanças da VA</a></li> <li><a href="https://www.facebook.com/groups/vvirtual/"><i class="icon-plane"></i> Grupo no FaceBook</a></li> </ul> </div> <h3><center><strong>Dados </strong>da VPA</h3> <div class="box"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::PilotCount(); ?></div></b></td> <td>Pilotos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalAircraftInFleet(); ?></div></b></td> <td>Aeronaves</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalSchedules(); ?></div></b></td> <td>Vôos</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlights(); ?></div></b></td> <td>Vôos Efetuados</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalFlightsToday(); ?></div></b></td> <td>Vôos de Hoje</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo round(StatsData::TotalFuelBurned(), 0); ?></div></b></td> <td>CombustÃvel Queimado</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalHours(); ?></div></b></td> <td>Horas Voadas</td> </tr> <tr> <td><b><span class="badge badge-info"><?php echo StatsData::TotalMilesFlown(); ?></div></b></td> <td>Milhas Voadas</td> </tr> </table> </div> <h3>Últimas Novidades</h3><div class="box"></div> </div> </div> <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>Últimos vôos Realizados (Horários em Zulu)</h3> </div> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <style type="text/css"> table th { text-align: center; color:black; font-weight:bold;} table td { text-align: center; } </style> <thead> <tr> <style type="text/css"> { text-align: center; } </style> <th>Nº do Vôo</th> <th>Piloto</th> <th>Origem</th> <th>Destino</th> <th>Duração do Vôo</th> <th>Aeronave</th> <th>MatrÃcula</th> <th>Data do Vôo</th> <th>Situação</th> </tr> </font> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == '0') $status = 'REJECTED'; if($pirep->accepted == '1') $status = 'ACCEPTED'; else $status = 'PENDING'; /*$aircraft = OperationsData::getAircraftInfo($pirep->aircraft);*/ } ?> <tr> <td class="small"><a href="<?php echo SITE_URL?>/index.php/pireps/view/<?php echo '' . $pirep->pirepid . ''; ?>"><?php echo $pirep->code.$pirep->flightnum; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $pilotinfo->pilotid . ''; ?>"><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->depicao.'">'.$pirep->depicao.'</a>';?></td> <td class="small"><?php echo '<a href=" '.SITE_URL.'/index.php/airports/get_airport?icao='.$pirep->arricao.'">'.$pirep->arricao.'</a>';?></td> <td class="small"><?php echo $pirep->flighttime; ?> horas</td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->aircraft; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/vFleetTracker/view/<?php echo '' . $pirep->registration . ''; ?>"><?php echo $pirep->registration; ?></a></td> <td class="small"><?php echo date(DATE_FORMAT, $pirep->submitdate); ?></td> <td class="small"><?php if($pirep->accepted == PIREP_ACCEPTED) { if($pirep->submitdate+($pirep->flighttime*60*60)>time()) echo '<font color="blue">Em Vôo</font>'; // as long as a single flight duration has not elapsed, show it as in flight else echo '<font color="blue">Pousou</font>'; //more than a flight duration has elapsed, show it as landed } elseif($pirep->accepted == PIREP_REJECTED) echo '<font color="red">Rejected</font>'; elseif($pirep->accepted == PIREP_PENDING) echo '<font color="orange">Aguardando Informações</font>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<font color="blue">In Flight</font>'; ?> <?php if($pirep->accepted == PIREP_ACCEPTED && !($pirep->submitdate+($pirep->flighttime*60*60)>time())): ?><font color="blue">à s <?php echo date('H:i', $pirep->submitdate+($pirep->flighttime*60*60));?>z</font><?php endif; ?> <?php $schedule = SchedulesData::getScheduleByFlight($pirep->code,$pirep->flightnum); $fltime = explode(".", $schedule->flighttime); $minstar = substr($fltime[1],0,1); $minstarmin = substr($fltime[1],1,2); $flmin = $minstar * 10; $flhou = $fltime[0] * 60; $flminu = $flhou + $flmin + $minstarmin; $actfltime = explode(".", $pirep->flighttime); $actminstar = substr($actfltime[1],0,1); $actminstarmin = substr($actfltime[1],1,2); $actflmin = $actminstar * 10; $actflhou = $actfltime[0] * 60; $actflminu = $actflhou + $actflmin + $actminstarmin; if (!($pirep->submitdate+($pirep->flighttime*60*60)>time())) { // new line if(($flminu - 20) > $actflminu) { echo '<font color="blue">and Was Early</font>'; } elseif (($flminu + 15) < $actflminu) { echo '<font color="red">ATRASADO</font>'; } else { echo '<font color="green">SEM ATRASO</font>'; } } // new line ?> </li> </td> </tr> <?php } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </div> </table> <br /> <p><?php MainController::Run('FrontBids', 'RecentFrontPage', 5); ?><font color="yellow"></font></p> </div> Quote
Junior Posted February 28, 2014 Author Report Posted February 28, 2014 thank you, now the table is in the right place.. you`re the man! but I still have a little problem.. there are no pilots (my VA is running trhough a LAN btw) and I have no "Looks Like our Pilots are taking a rest! There is no current flights online." message. Also I still have a little bug under "Ultimos Voos Realizados" tab.. Also something is wrong.. because the flightboard is with a 30 minutes delay I mean.. I set parking breaks, file the pirep, exit the sim and the acars and my info remains as "In Flight" for 30 minutes... Quote
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.