use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<ul class=\"pagination\">\n\n\n");if ( $C->{Pager}{enabled} ) {$this->out("\n");$C->{goPageCmd} ||= "var form = document.forms[\'Lister\']; form.Page.value = \'\%s\'; form.submit();";$this->out("\n");if ( $C->{Pager}{hasPV} ) {$this->out("");$C->{go} = sprintf($C->{goPageCmd}, $C->{Pager}{posPV});$this->out("      <a class=atkControl href=\"javascript:$C->{go}\">...</a>\n      <li class=\"paginate_button page-item previous disabled\" id=\"dataTable_previous\">\n        <a href=\"#\" data-dt-idx=\"0\" tabindex=\"0\" class=\"page-link\">Previous</a>\n      </li>\n");}$this->out("\n");my $in = $C->{Pager}{Pages};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{p} = -1;for my $f (@$loop) {$C->{ITERATION}{p}++;$C->{p} = $f;$this->out("");$C->{go} = sprintf($C->{goPageCmd}, $C->{p}{pos});$this->out("");if ( $C->{p}{this} ) {$this->out("        <li class=\"paginate_button page-item active\">\n");} else {$this->out("        <li class=\"paginate_button page-item\">\n");}$this->out("        <a href=\"javascript:$C->{go}\" data-dt-idx=\"1\" tabindex=\"0\" class=\"page-link\">$C->{p}{numP}</a>\n      </li>\n");}$this->out("\n");if ( $C->{Pager}{hasNV} ) {$this->out("");$C->{go} = sprintf($C->{goPageCmd}, $C->{Pager}{posNV});$this->out("        <li class=\"paginate_button page-item next\" id=\"dataTable_next\">\n          <a href=\"javascript:$C->{go}\" data-dt-idx=\"7\" tabindex=\"0\" class=\"page-link\">Next</a>\n        </li>\n");}$this->out("\n");}$this->out("</ul>");}