modificando e testando...eccolo
// build the html select list
if(!$_REQUEST[elenco]){
if (empty($link)) {
$html = ps_html::selectList( 'limit', $this->limit, $limits, 1, '', 'onchange="this.form.submit();"' );
} else {
$current = vmRoute($link.'&limit='.$this->limit);
$html = ps_html::selectList( 'limit', $current, $limits, 1, '', 'onchange="location.href=this.value"' );
}
}else{
$html = "<input type=\"hidden\" name=\"limit\" value=\"5\" />";
}
$html .= "<input type=\"hidden\" name=\"limitstart\" value=\"$this->limitstart\" />";
return $html;
}
function writePagesCounter() {
echo $this->getPagesCounter();
}