This class can be used to browse database query results split between pages using AJAX to switch between the listing without page reloading.
It can execute an SQL query using the PEAR DB API and return records to be displayed in the page.
The class also generates navigation links that to go to the first, last, previous, next or any intermediate pages.
When the user clicks on the links, an AJAX request is triggered to retrieve the respective page content and update only the listing container, thus without reloading the whole page.
It is possible to configure the limit number of records and the limit of page links to show per page. |