#25 Add additional feature to pager

open
nobody
None
5
2007-10-15
2007-10-15
faxm0dem
No

The pager does not allow for inheriting extra GET parameters in URL.

Example:

generate pager using code:
$pager = new ADODB_Pager($conn,$sql,'adodb',true);
$pager->htmlSpecialChars = false;
$pager->Render($rows_per_page=10);

will yield links in table looking like:

http://localhost/.../code.php?adodb_next_page=2

The following patch allows for also inheriting GET parameters in url, e.g.:

$pager = new ADODB_Pager($conn,$sql,'adodb',true,true);
$pager->htmlSpecialChars = false;
$pager->Render($rows_per_page=10);

(note additional 'true' parameter)

thus yielding the url in table links:

http://localhost/.../code.php?par1=val1&par2=val2&adodb_next_page=2

patch works for adodb V4.96 24 Sept 2007

Discussion

  • faxm0dem
    faxm0dem
    2007-10-15

    patch for pager for V4.96 24 Sept 2007