CarlosEduardo2409 Posted October 30, 2017 Report Share Posted October 30, 2017 (edited) Is it possible to let all pilots book only one flight? Because, as you may know, pilots can book as many flights as he wants, as far as I know, so let's book only 1 flight? Example: Same as other VAs, when you book a flight, it blocks where you are searching for the flight and switches to my bids - Using Fltbook And I'm also trying to map the route on the bids, how is it possible? Ex: http://prntscr.com/h42z1s Thanks, Carlos Edited November 5, 2017 by CarlosEduardo2409 Quote Link to comment Share on other sites More sharing options...
CarlosEduardo2409 Posted November 2, 2017 Author Report Share Posted November 2, 2017 Someone? Quote Link to comment Share on other sites More sharing options...
mischka Posted November 2, 2017 Report Share Posted November 2, 2017 What you can do is use the function SchedulesData::getBids($pilotid) for example $bids=SchedulesData::getBids($pilotid); if (isset($bids)) { (code to display bid info) } else { (code to display search results) } Quote Link to comment Share on other sites More sharing options...
CarlosEduardo2409 Posted November 2, 2017 Author Report Share Posted November 2, 2017 (edited) Many thanks, working perfectly. But do you know a way, other than that, that it changes in the dropdown? Ex: When you book a flight, the dropdown changes the link to go to the reservations and changes the name Edited November 2, 2017 by CarlosEduardo2409 Quote Link to comment Share on other sites More sharing options...
mischka Posted November 3, 2017 Report Share Posted November 3, 2017 8 hours ago, CarlosEduardo2409 said: But do you know a way, other than that, that it changes in the dropdown? Ex: When you book a flight, the dropdown changes the link to go to the reservations and changes the name What do you mean? Quote Link to comment Share on other sites More sharing options...
CarlosEduardo2409 Posted November 3, 2017 Author Report Share Posted November 3, 2017 So, look at this image: https://prnt.sc/h5rr2a When you book a flight, where it says "Schedules", it changes to "View my Flights", that is, it takes the flight search page and changes it to the reports Quote Link to comment Share on other sites More sharing options...
mischka Posted November 3, 2017 Report Share Posted November 3, 2017 I don't know what this template is... but maybe look in the profile_main.php? 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.