/** * Returns a string with a XHTML SELECT menu with the page numbers, * useful as an alternative to the links * * @param array $params - 'optionText': text to show in each option. * Use '%d' where you want to see the number * of pages selected. * - 'autoSubmit': if TRUE, add some js code * to submit the form on the onChange event * @param string $extraAttributes (html attributes) Tag attributes or * HTML attributes (id="foo" pairs), will be * inserted in the <select> tag * * @return string xhtml select box * @access public */ function getPageSelectBox($params = array(), $extraAttributes = '') { include_once 'Pager/HtmlWidgets.php'; $widget = new Pager_HtmlWidgets($this); return $widget->getPageSelectBox($params, $extraAttributes); }
/** * Returns a string with a XHTML SELECT menu with the page numbers, * useful as an alternative to the links * * @param array $params - 'optionText': text to show in each option. * Use '%d' where you want to see the number * of pages selected. * - 'autoSubmit': if TRUE, add some js code * to submit the form on the onChange event * @param string $extraAttributes (html attributes) Tag attributes or * HTML attributes (id="foo" pairs), will be * inserted in the <select> tag * * @return string xhtml select box * @access public */ function getPageSelectBox($params = array(), $extraAttributes = '') { $currentdir = dirname(__FILE__); $currentdir = str_replace("\\", "/", $currentdir); $currentdir = realpath($currentdir . '/..'); include_once "{$currentdir}/Pager/HtmlWidgets.php"; $widget = new Pager_HtmlWidgets($this); return $widget->getPageSelectBox($params, $extraAttributes); }