Author Topic: Route Selection Page Result Sort  (Read 40 times)

Andy K

  • Newbie
  • *
  • Posts: 20
    • View Profile
Route Selection Page Result Sort
« on: November 19, 2020, 03:29:41 AM »
I seem to remember an older version of VAM where you could click on the headings in the route selection page to order the results by that group.. i.e clicking on departure time would list the flights in order from 00:00 to 23:59 or clicking on the arrival airport would order the results AAAA to ZZZZ, and so on...

Anybody know how to re-establish that function?

drgullen

  • Full Member
  • ***
  • Posts: 174
    • View Profile
Re: Route Selection Page Result Sort
« Reply #1 on: November 19, 2020, 04:51:28 AM »
It relates to the following line that you will find in the various PHP files:

echo '<thead>';

If you have that present near the top where you are defining your table data, you'll get the special header with the sort options on it.  It is in the route selection by default though, so you must have edited yours?

In any event, if you download the VAM zip file, open vam\route_selection_stage1.php from within that zip file and then go to line 97 of that file, you'll see the reference to it.

Andy K

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Route Selection Page Result Sort
« Reply #2 on: November 19, 2020, 11:55:53 AM »
We have a few additional headers displaying extra variables but the section regarding the header is identical to the original file.