davehardy Posted January 8, 2009 Report Share Posted January 8, 2009 When i add a very long route it breaks the table in the Schedules page check the attachment. The other problem is the search engine when using "By Aircraft Type" it only finds one flight per type. Plus i would like to have all the search boxes showing for better searches. broketable.jpg Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 8, 2009 Administrators Report Share Posted January 8, 2009 You'll have to adjust the table CSS to fix that. Same with the search.To have them all showing, mess with the HTML in the schedule_searchform.tpl As for the aircraft flight, that's a known bug and been fixed in the next version. Quote Link to comment Share on other sites More sharing options...
davehardy Posted January 8, 2009 Author Report Share Posted January 8, 2009 OK Ive figured out the 1st problem, here is the fix. schedule_results.tpl [b]<td nowrap>[/b] <p><a href="<?php echo SITE_URL?>/index.php/schedules/details/<?php echo $route->id?>"><?php echo $route->code . $route->flightnum?> <?php echo $leg?> <?php echo '('.$route->depicao.' - '.$route->arricao.')'?></a> <br /> <strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br /> <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?> <br /> </p> <?php echo ($route->route=='')?'':'<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='')?'':'<strong>Notes: </strong>'.$route->notes.'<br />' ?> </td> <td nowrap> should be <td wrap> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 8, 2009 Administrators Report Share Posted January 8, 2009 Yeah, wrap is good. The aircraft, that's a bug in the backend. Quote Link to comment Share on other sites More sharing options...
davehardy Posted January 8, 2009 Author Report Share Posted January 8, 2009 okies thanks Quote Link to comment Share on other sites More sharing options...
maxwaldorf Posted January 8, 2009 Report Share Posted January 8, 2009 Ok, Go to the teplate files in /core/templates/ "schedule_results.tpl". On lines 30 and 40 search : <td nowrap> by <td> And that's it... I don't know if this change will create some other issues... but still, corrects the problem ! PS: WOW, issue solved wile writing the post... lol 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.