Pager::getPageRangeByPageId | Pager::getPreviousPageID |
Pager | |
PEAR Manual | |
require_once 'Pager.php'; |
array Pager::getPageSelectBox (
array $params
, string $extraAttributes = ''
)
array $params (optional)
'optionText' : text to show in each option. Use '%d' where you want to see the number of the page.
'autoSubmit' : if true, add some js code to submit the form on the onChange event
string $extraAttributes (html attributes) Tag attributes or HTML attributes (id="foo" pairs), will be inserted in the <select> tag.
Returns a string with a XHTML SELECT menu with the page numbers, useful as an alternative to the links
This example shows how you can create a select box to let your users choose the number of the page to go to.
|
return string with the XHTML SELECT menu.
Pager::getPageRangeByPageId | Pager::getPreviousPageID |
Pager | |
PEAR Manual | |