bass Posted December 25, 2015 Report Share Posted December 25, 2015 Hello, I am trying to make a new page view for "frontpage reports" but it is not very (((Can anyone help? This is the original site of the board- http://www.airport.md/homepage-en/ And I get this (((---- This is the file that I was trying to do Quote Link to comment Share on other sites More sharing options...
gio1961 Posted December 26, 2015 Report Share Posted December 26, 2015 http://forum.phpvms.net/topic/2811-request-flight-board/page__st__160 Quote Link to comment Share on other sites More sharing options...
Tato123 Posted December 29, 2015 Report Share Posted December 29, 2015 Hi, my code is <?php $query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC"; $list = DB::get_results($query); echo '<h3>Arrivi</h3><br/>'; echo '<table class="full-online-table" id="online_table">'; echo '<colgroup>'; echo '<col class="col1" />'; echo '<col class="col2" />'; echo '<col class="col3" />'; echo '<col class="col4" />'; echo '<col class="col5" />'; echo '<col class="col6" />'; echo '</colgroup>'; echo '<thead>'; echo '<tr><th>Partenza</th><th>Arrivo</th><th>Orario</th><th>Aereo</th><th>Volo N</th><th>Stato</th></tr>'; echo '</thead>'; $count = 0; foreach($list as $flight) { if(($flight->arrtime + 0) > date('G:i')) { if($count < 5) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tbody><tr lang="0">'; echo '<colgroup>'; echo '<col class="col1" />'; echo '<col class="col2" />'; echo '<col class="col3" />'; echo '<col class="col4" />'; echo '<col class="col5" />'; echo '<col class="col6" />'; echo '</colgroup>'; echo '<td><div class="cfx"><span>'.$flight->depicao.'</span></div></td><td><div class="cfx"><span>'.$flight->arricao.'</span></div></td><td><div class="cfx"><span>'.$flight->arrtime.'</span></div></td><td><div class="cfx"><span>'.$aircraft->fullname.'</span></div></td><td><div class="cfx"><span>'.$flight->flightnum.'</span></div></td>'; echo '<td><div class="cfx"><span>'; if(($flight->arrtime - date('G:i')) <= 1) { echo 'In Arrivo'; } else { echo 'In Volo'; } echo '</span></div></td></tr></tbody>'; $count++; } } } echo '</table>'; ?> Quote Link to comment Share on other sites More sharing options...
bass Posted December 29, 2015 Author Report Share Posted December 29, 2015 Hi, my code is <?php $query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC"; $list = DB::get_results($query); echo '<h3>Arrivi</h3><br/>'; echo '<table class="full-online-table" id="online_table">'; echo '<colgroup>'; echo '<col class="col1" />'; echo '<col class="col2" />'; echo '<col class="col3" />'; echo '<col class="col4" />'; echo '<col class="col5" />'; echo '<col class="col6" />'; echo '</colgroup>'; echo '<thead>'; echo '<tr><th>Partenza</th><th>Arrivo</th><th>Orario</th><th>Aereo</th><th>Volo N</th><th>Stato</th></tr>'; echo '</thead>'; $count = 0; foreach($list as $flight) { if(($flight->arrtime + 0) > date('G:i')) { if($count < 5) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tbody><tr lang="0">'; echo '<colgroup>'; echo '<col class="col1" />'; echo '<col class="col2" />'; echo '<col class="col3" />'; echo '<col class="col4" />'; echo '<col class="col5" />'; echo '<col class="col6" />'; echo '</colgroup>'; echo '<td><div class="cfx"><span>'.$flight->depicao.'</span></div></td><td><div class="cfx"><span>'.$flight->arricao.'</span></div></td><td><div class="cfx"><span>'.$flight->arrtime.'</span></div></td><td><div class="cfx"><span>'.$aircraft->fullname.'</span></div></td><td><div class="cfx"><span>'.$flight->flightnum.'</span></div></td>'; echo '<td><div class="cfx"><span>'; if(($flight->arrtime - date('G:i')) <= 1) { echo 'In Arrivo'; } else { echo 'In Volo'; } echo '</span></div></td></tr></tbody>'; $count++; } } } echo '</table>'; ?> Something I was not very (( Quote Link to comment Share on other sites More sharing options...
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.