| 1 |
<?php
|
| 2 |
|
| 3 |
// this script illustrates how to output a pager when you aren't directly
|
| 4 |
// executing a query. for example, you are calling taxonomy_get_tree()
|
| 5 |
// also useful if you are listing files from a filesystem, for example
|
| 6 |
|
| 7 |
include_once('./includes/bootstrap.inc');
|
| 8 |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
|
| 9 |
|
| 10 |
$GLOBALS['pager_page_array'][] = 1; //what page you are on
|
| 11 |
$GLOBALS['pager_total'][] = 3; // total number of pages
|
| 12 |
$items_per_page = 50;
|
| 13 |
print theme('pager', NULL, $items_per_page);
|
| 14 |
|
| 15 |
?>
|