From: Steve K. <sk...@ro...> - 2004-11-23 12:00:26
|
I've created a new file called PagingFunctions in the includes directory = with 2 functions called PagingTest and PagingDisplay. PagingTest - checks if the page offset should be reset to 1 and sets if = necessary. PagingDisplay - Displays the paging dropdown, Go, Next, Previous when = called. It passes a result set (e.g. $result) so it can count how many = records were returned in order to know how many pages to list. So, to use an include needs to be near the top. i.e. = include('includes/PagingFunctions.php'); Near the top call PagingTest and then later when wanting to display = paging call PagingDisplay. PagingTest must be called near the top = because the posted PageOffset may need resetting before it is used in = the code to seek to the starting record to display. i.e. The file = calling PagingFunctions uses the posted PageOffset to move to the first = record to display. While the paging can be displayed it doesn't = actually do anything until that PageOffset is used! This should make it easier to put paging into the rest of the areas as = well. I'll be working on that. I'll give to Phil once the lockdown for cleaning up Multilanguage is = complete... Steve |