Index: openacs-4/packages/acs-templating/www/doc/TclDocs/pagination.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/TclDocs/pagination.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/doc/TclDocs/pagination.adp 27 Oct 2014 16:40:17 -0000 1.2 +++ openacs-4/packages/acs-templating/www/doc/TclDocs/pagination.adp 7 Aug 2017 23:48:02 -0000 1.3 @@ -1,33 +1,41 @@ -{/doc/acs-templating {Templating}} {} +{/doc/acs-templating {ACS Templating}} {} +

Namespace pagination

+
Procedures for paginating a datasource
+

Method Summary

- -

Namespace pagination

Procedures for paginating a datasource

Method Summary

-Listing of public methods:
+Listing of public methods:
+
pagination::get_total_pages
pagination::page_number_links
pagination::paginate_query
-

Method Detail

-* indicates required

Public Methods:
+ +

Method Detail

+

+* indicates required

+Public Methods: +
+
-
-pagination::get_total_pages
  by Michael Pih +pagination::get_total_pages
  by Michael Pih
Gets the number of pages returned by a query PRE: requires {$sql}
-Parameters: +Parameters:
db* A database handle
+
+ -
-pagination::page_number_links
  by Michael Pih +pagination::page_number_links
  by Michael Pih
Generate HTML for navigating pages of a datasource
-Parameters: +Parameters:
page* @@ -40,12 +48,13 @@
+
+ -
-pagination::paginate_query
  by Michael Pih +pagination::paginate_query
  by Michael Pih
Paginates a query
-Parameters: +Parameters:
sql* @@ -58,23 +67,26 @@

-Private Methods:
-

+
+

+Private Methods:
+

+ -
pagination::get_rows_per_page
Returns the number of rows per page
+
+ -
-pagination::ns_set_to_url_vars
  by Michael Pih +pagination::ns_set_to_url_vars
  by Michael Pih
Converts an ns_set into a list of url variables
-Parameters: +Parameters:
set_id* The set id

+ +

* indicates required

-