MDL-19825 Converted calls to print_paging_bar

This commit is contained in:
nicolasconnault 2009-08-07 00:29:44 +00:00
parent 13fb644a09
commit da9ac19f14
2 changed files with 6 additions and 3 deletions

View File

@ -693,7 +693,9 @@
}
echo '</div>';
print_paging_bar($matchcount, intval($table->get_page_start() / $perpage), $perpage, $baseurl.'&amp;', 'spage');
$pagingbar = moodle_paging_bar::make($matchcount, intval($table->get_page_start() / $perpage), $perpage, $baseurl);
$pagingbar->pagevar = 'spage';
echo $OUTPUT->paging_bar($pagingbar);
}
if ($matchcount > 0) {

View File

@ -85,9 +85,10 @@ if ($logcount > 0) {
);
}
echo $OUTPUT->heading(get_string('logsummary', 'portfolio'));
print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?');
$pagingbar = moodle_paging_bar::make($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?');
echo $OUTPUT->paging_bar(clone($pagingbar));
print_table($table);
print_paging_bar($logcount, $page, $perpage, $CFG->wwwroot . '/user/portfoliologs.php?');
echo $OUTPUT->paging_bar(clone($pagingbar));
}