Ephendi Posted July 3, 2012 Report Share Posted July 3, 2012 Can someone help me with this topic? I finished code to show schedules for aircrafts located on airport based on last pirep. Next step and need help with code, probably in Schedule.php and schedule_results.tpl -> when flight is in bid i need to bided aircraft will be hidden from all schedules to time, when flight is in bid. Quote Link to comment Share on other sites More sharing options...
Strider Posted July 4, 2012 Report Share Posted July 4, 2012 Find in schedule_results.tpl : <td><?php echo $route->aircraft; ?></td> and replace with: <?php if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { echo $route->aircraft; }?> Try that, see what happens. Quote Link to comment Share on other sites More sharing options...
Ephendi Posted July 4, 2012 Author Report Share Posted July 4, 2012 Thanks, i work today on it and this works for me: $search1 = (array( 'a.registration' => $route->registration, 's.bidid != 0' )); $schedules = SchedulesData::findSchedules($search1); $disabled = $schedules[0]->registration; if($route->registration==$disabled) { continue; } 1 Quote Link to comment Share on other sites More sharing options...
mseiwald Posted July 4, 2012 Report Share Posted July 4, 2012 that`s great.... i have added it to my schedules in a bit different way by just displaying an image thank you very much for that. Quote Link to comment Share on other sites More sharing options...
Ephendi Posted July 5, 2012 Author Report Share Posted July 5, 2012 Yes, it's close to reality. I have also in search only airplanes (based on pirep) landed on pilot's location only. Now must test Quote Link to comment Share on other sites More sharing options...
pavul0n Posted December 9, 2012 Report Share Posted December 9, 2012 And how's Your work now? Quote Link to comment Share on other sites More sharing options...
Yash Posted November 9, 2016 Report Share Posted November 9, 2016 that`s great.... i have added it to my schedules in a bit different way by just displaying an image thank you very much for that. Can you share the technique you used to do that pls??? Thanks! 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.