WARNING: _smarty_include(/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%CC/CC4/CC4BC2E3%%inc_head.tpl.php.php) [function.-smarty-include]: failed to open stream: Stale NFS file handle (on line 1868 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/Smarty.class.php')
Oxyscripts - PHP Development, tutorials, articles, news, programming, scripts and forums.
OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts

WARNING: _smarty_include(/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%D3/D3C/D3CC9D33%%inc_leftbar.tpl.php.php) [function.-smarty-include]: failed to open stream: No such file or directory (on line 1868 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/Smarty.class.php')

WARNING: _smarty_include(/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%D3/D3C/D3CC9D33%%inc_leftbar.tpl.php.php) [function.-smarty-include]: failed to open stream: No such file or directory (on line 1868 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/Smarty.class.php')

WARNING: _smarty_include() [function.include]: Failed opening '/home/users/web/b372/ipw.oxyscrip/public_html/public/templates_c///%%D3/D3C/D3CC9D33%%inc_leftbar.tpl.php.php' for inclusion (include_path='.:/usr/local/lib/php-4.4.7/lib/php') (on line 1868 of file '/hermes/bosweb/web037/b372/ipw.oxyscrip/public_html/3rdparty/Smarty-2.6.11/libs/Smarty.class.php')

Search This Site :     PHP Function Reference :
 
Pager::getperpageselectbox

Pager::getperpageselectbox()

Pager::getperpageselectbox() -- Returns a string with a XHTML SELECT menu, to choose how many items per page should be displayed.

Parameter

  • integer $start - Min. number of items per page (optional)

  • integer $end - Max. number of items per page (optional)

  • integer $step - Increment between two options (optional)

  • boolean $showAllData - If true, perPage is set equal to totalItems (optional)

  • string $optionText - text to show in each option. (optional) Use '%d' where you want to see the number of pages selected.

Description

Returns a string with a XHTML SELECT menu, useful for letting the user choose how many items per page should be displayed. If parameter useSessions is TRUE, this value is stored in a session var. The string isn't echoed right away so you can use it with template engines.

Example

This example shows how you can create a select box to let your users choose the number of items to display on each page.
include 'Pager/Pager.php';



$params = array(
    'mode'       => 'Jumping',
    'perPage'    => 3,
    'delta'      => 2,
    'itemData'   => array('a','b','c','d','e',[...omissis...],'z')
);

$pager = & Pager::factory($params);



$selectBox = $pager->getPerPageSelectBox();

echo '<form action="'.$_SERVER['PHP_SELF'].'" method="GET">';
echo $selectBox;
echo '<input type="submit" value="submit" />';
echo '</form>';

Return value

return string with the XHTML SELECT menu.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting

Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005