Sitellite Application Framework
Class Tree         Index         All Elements

Procedural File: Pager.php

Source Location: Program_Root/GUI/Pager.php



Classes:

Pager
Pager is a list paging package (ie. " Previous Page | 1 | 2 | 3 | Next Page >>").


Page Details:








PAGER_TEMPLATE_FROM_TO [line 32]

PAGER_TEMPLATE_FROM_TO = '{if not pager.total} {intl No items} {end if} {if pager.total} {intl Displaying} <strong>{pager/from}</strong> {intl to} <strong>{pager/to}</strong> {intl of} <strong>{pager/numrows}</strong> {end if}'
Template to display "Displaying 11 to 20 of 57". Displays "No items" if there are none.


[ Top ]



PAGER_TEMPLATE_NEXT [line 12]

PAGER_TEMPLATE_NEXT = '{if pager.total}{if pager.next !== false}<a href="{pager/url}&amp;offset={pager/next}">{intl Next} {pager/remain}</a>{end if} {if pager.next === false}{intl Next}{end if}{end if}'
Template to display "Next" link. If there is no subsequent page, displays "Next" as unlinked text.


[ Top ]



PAGER_TEMPLATE_NEXT_PREV [line 27]

PAGER_TEMPLATE_NEXT_PREV = '{if not pager.total} {intl No items} {end if} {if pager.total} {spt PAGER_TEMPLATE_PAGES} {spt PAGER_TEMPLATE_PREV} {spt PAGER_TEMPLATE_NEXT} {end if}'
Template to display "Page 3 of 5. Previous Next". Displays "No items" if there are none.


[ Top ]



PAGER_TEMPLATE_PAGES [line 22]

PAGER_TEMPLATE_PAGES = '{if pager.total}{intl Page} <strong>{pager/current}</strong> {intl of} <strong>{pager/numpages}</strong>.{end if}'
Template to display string of the form "Page 1 of 5.". Displays nothing if there are no items.


[ Top ]



PAGER_TEMPLATE_PAGE_LIST [line 7]

PAGER_TEMPLATE_PAGE_LIST = '{if not pager.total} {intl No items} {end if} {if pager.total} {loop pager.getPages (true)} {if loop[current]}<strong>{loop/page}</strong>{end if} {if not loop[current]} <a href="{pager/url}&amp;offset={loop/offset}">{loop/page}</a>{end if}{if loop[separator]} &nbsp; {end if}{end loop}{end if}'
Template to display page list (ie. "1 2 3 4"). Displays "No items" if there are none.

Displays the current page unlinked and with an HTML strong tag around it.



[ Top ]



PAGER_TEMPLATE_PREV [line 17]

PAGER_TEMPLATE_PREV = '{if pager.total}{if pager.prev !== false}<a href="{pager/url}&amp;offset={pager/prev}">{intl Previous} {pager/limit}</a>{end if} {if pager.prev === false}{intl Previous}{end if}{end if}'
Template to display "Previous" link. If there is no previous page, displays "Previous" as unlinked text.


[ Top ]



PAGER_TEMPLATE_PREV_PAGE_LIST_NEXT [line 37]

PAGER_TEMPLATE_PREV_PAGE_LIST_NEXT = '{spt PAGER_TEMPLATE_PREV}{if pager.total} &nbsp; {end if}{spt PAGER_TEMPLATE_PAGE_LIST}{if pager.total} &nbsp; {end if}{spt PAGER_TEMPLATE_NEXT}'
Template to display "Previous 1 2 3 Next". Displays "No items" if there are none.


[ Top ]




Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:18:30 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2