Browse Source

Adicionar filtros nos links de paginação

master
Sesostris Vieira 11 years ago
parent
commit
69e623396e
  1. 17
      index.php

17
index.php

@ -238,6 +238,23 @@ $link = $CFG->wwwroot.'/report/ilbenrol/?course='.$course->id;
if (strlen($sort)) { if (strlen($sort)) {
$link .= '&sort='.$sort; $link .= '&sort='.$sort;
} }
// Add filterform fields
if ($formdata) {
$formvar = '';
foreach ($formdata as $key=>$value) {
if (is_array($value)) {
foreach ($value as $k=>$v) {
$formvar .= "&{$key}[{$k}]={$v}";
}
} else {
$formvar .= "&{$key}={$value}";
}
}
$link .= $formvar;
}
$link .= '&start='; $link .= '&start=';
// Build the the page by Initial bar // Build the the page by Initial bar

Loading…
Cancel
Save