Skip to content

Commit

Permalink
MDL-19806 Converted calls to print_paging_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 7, 2009
1 parent 2591186 commit 406286c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/data/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
if (!empty($search)) {
$baseurl .= 'filter=1&';
}
print_paging_bar($totalcount, $page, $nowperpage, $baseurl, $pagevar='page');
echo $OUTPUT->paging_bar(moodle_paging_bar::make($totalcount, $page, $nowperpage, $baseurl));

if (empty($data->singletemplate)){
notify(get_string('nosingletemplate','data'));
Expand All @@ -626,7 +626,7 @@

data_print_template('singletemplate', $records, $data, $search, $page);

print_paging_bar($totalcount, $page, $nowperpage, $baseurl, $pagevar='page');
echo $OUTPUT->paging_bar(moodle_paging_bar::make($totalcount, $page, $nowperpage, $baseurl));

} else { // List template
$baseurl = 'view.php?d='.$data->id.'&';
Expand All @@ -638,7 +638,7 @@
//pass variable to allow determining whether or not we are paging through results.
$baseurl .= 'paging='.$paging.'&';

print_paging_bar($totalcount, $page, $nowperpage, $baseurl, $pagevar='page');
echo $OUTPUT->paging_bar(moodle_paging_bar::make($totalcount, $page, $nowperpage, $baseurl));

if (empty($data->listtemplate)){
notify(get_string('nolisttemplate','data'));
Expand All @@ -648,7 +648,7 @@
data_print_template('listtemplate', $records, $data, $search, $page);
echo $data->listtemplatefooter;

print_paging_bar($totalcount, $page, $nowperpage, $baseurl, $pagevar='page');
echo $OUTPUT->paging_bar(moodle_paging_bar::make($totalcount, $page, $nowperpage, $baseurl));
}

}
Expand Down

0 comments on commit 406286c

Please sign in to comment.