OAMS

Page 69

23. SORTING LISTS To help the users make use of the lists within each area of the site; the ability to sort the information by certain criteria can improve the user experience. The users may wish to sort data in both ascending and descending orders, so this ability needs to be implemented also. The user will be able to sort their lists by clicking the heading for each column that has data they may be sorted.

By clicking on an example column, in this case ‘Ratings’ of a client the list will be sorted by the Overall Rating a client has. This is done by sending the list’s contents type along with the field that needs to be sorted to a JavaScript, which uses the jQuery Ajax function to get a new set of results from a PHP script which is sorted.

By clicking on the heading again, the data will be sorted the opposite way round.

All lists can be sorted; this includes Invoices, Estimates, Expenses and Clients. All fields which contain specific data may be sorted; this excludes Notes, Address and Options. 69


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.