Project

General

Profile

Bug #14973 » 2ndPatch.diff

Administrator Admin, 2005-09-20 02:56

View differences:

class.tx_indexedsearch.php_new 2005-09-20 02:54:00.134259200 +0200
*/
function pi_list_browseresults($showResultCount=1,$addString='',$addPart='') {
// Initializing variables:
// Initializing variables:
$pointer=$this->piVars['pointer'];
$count=$this->internal['res_count'];
$results_at_a_time = t3lib_div::intInRange($this->internal['results_at_a_time'],1,1000);
......
if ($pointer>0) {
$links[]='<td><p>'.$this->makePointerSelector_link($this->pi_getLL('pi_list_browseresults_prev','< Previous',1),$pointer-1).'</p></td>';
}
for($a=0;$a<$max;$a++) {
$links[]='<td'.($pointer==$a?$this->pi_classParam('browsebox-SCell'):'').'><p>'.$this->makePointerSelector_link(trim($this->pi_getLL('pi_list_browseresults_page','Page',1).' '.($a+1)),$a).'</p></td>';
}
for($a=0;$a<$max;$a++) {
if ($pointer+$a <= ceil($count/$results_at_a_time)-1) {
$links[]='<td'.($pointer==$pointer+$a?$this->pi_classParam('browsebox-SCell'):'').'>'.$this->makePointerSelector_link(trim($this->pi_getLL('pi_list_browseresults_page','Page',1).' '.($pointer+$a+1)),$pointer+$a).'</td>'; }
}
if ($pointer<ceil($count/$results_at_a_time)-1) {
$links[]='<td><p>'.$this->makePointerSelector_link($this->pi_getLL('pi_list_browseresults_next','Next >',1),$pointer+1).'</p></td>';
}
(2-2/2)