aarbee Posted November 2, 2012 Report Share Posted November 2, 2012 I wonder what happens if you have 100 flights in a airline. I guess that will be represented in a long list. I also saw that if I added a second airliner, that the flights of that airline will be attached to the same list. so one list of 200 records for 2 airliners. I guess the pilots will loose the overview. Is there a way to create more pages? Like schedule for airline one schedule2 for airline two etc I also wonder if I could make seperate blocks or pages per category of planes. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 2, 2012 Moderators Report Share Posted November 2, 2012 Yes you can do that for sure but it requires a knowledge of php and html coding. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 2, 2012 Author Report Share Posted November 2, 2012 I have knowledge of html. Yet no knowledge of php, except for reading and changing some things. So I guess I need a couple of schedule.tpl and then in code somewhere an where statement. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 3, 2012 Moderators Report Share Posted November 3, 2012 Well to start off, you need to set up a module with tpl files. if you have let's say 2 airlines you'll need schedule_results.tpl and another tpl to show to your pilots at first when they open the booking page with airline selection. Then pass the value of selected airline to a function to filter out the schedules. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 11, 2012 Author Report Share Posted November 11, 2012 I understand that. Yet, I wonder how I could do a select statement, like select * from database where airline is xxxx. Like I said, I am not a developer. I am only a designer. With good knowledge of html/css. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 12, 2012 Moderators Report Share Posted November 12, 2012 Install the attached .ZIP file in the order of the folders. Access it by " www.yoursite.com/index.php/airliner" Screenshot: AirlineSelect.zip 1 Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 12, 2012 Author Report Share Posted November 12, 2012 Thank you. But I miss something I guess. The AS folder is empty. What should I put in there? /core/templates\/AS/AS_Select.tpl" doesn't exist in \core\classes\TemplateSet.class.php on line 248 Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 13, 2012 Moderators Report Share Posted November 13, 2012 Okay. The AS folder is now uploaded. Please download again. 1 Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 13, 2012 Author Report Share Posted November 13, 2012 Thank you. I will check it out tonight. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 Thanks. It works. I only need to create something like I have done for my regular schedules, and I am a happy person. Would be nice to get blocks of flights. block cat1 block cat 2. but that is something for the future. BTW watch the postman, he is bringing Kudos. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 I only wonder why not all info got through. Instead of the Aircraftname in the standard Schedules, I am getting a number 1 (I guess the recordnumber). I cannot see the Registrationnumber or depname Example: I do not see <?php echo ''.$route->depname.''?> I do see <?php echo ''.$route->depicao.''?> Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2012 Moderators Report Share Posted November 14, 2012 I only wonder why not all info got through. Instead of the Aircraftname in the standard Schedules, I am getting a number 1 (I guess the recordnumber). I cannot see the Registrationnumber or depname Example: I do not see <?php echo ''.$route->depname.''?> I do see <?php echo ''.$route->depicao.''?> That's because the DB has raw data (ex. 1 would be aircraft ID in the aircraft table). If you want to show like A/C registration or departure airport name then you'll have to use other functions that meant to do that for you. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 And where do I add/change these functions? Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2012 Moderators Report Share Posted November 14, 2012 Okay. give me some time I'll change the code for you in the tpl and upload it. Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 If you can tell me, what I need to change, where, I might be able to do that. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2012 Moderators Report Share Posted November 14, 2012 Download and re install the attached. Overwrite if asked: AirlineSelect.zip Screenshot: Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 here is the uploaded code from me. RB upload.zip Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2012 Moderators Report Share Posted November 14, 2012 I changed the code of the file you uploaded as attached. Screenshot: update.zip 1 Quote Link to comment Share on other sites More sharing options...
aarbee Posted November 14, 2012 Author Report Share Posted November 14, 2012 Wow. You are really gifted with your knowledge. And I say for the how many time? Thank you. More kudos are on the way. So I guess you need to extend the cellar. How did you know that the name was $aip1->name. and not this as in the other code arrname. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted November 14, 2012 Moderators Report Share Posted November 14, 2012 It's pretty complicated to explain but the original code was written in a way that shows arrname as name but mine is slightly different. 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.