Lines Matching refs:cur
505 $cur = $INPUT->int('p', 1, true);
510 $toshow = [1, 2, $cur, $pages, $pages - 1];
511 if ($cur - 1 > 1) $toshow[] = $cur - 1;
512 if ($cur + 1 < $pages) $toshow[] = $cur + 1;
516 if ($cur < 4) {
517 if ($cur + 2 < $pages && count($toshow) < 7) $toshow[] = $cur + 2;
518 if ($cur + 3 < $pages && count($toshow) < 7) $toshow[] = $cur + 3;
519 if ($cur + 4 < $pages && count($toshow) < 7) $toshow[] = $cur + 4;
521 if ($cur - 2 > 1 && count($toshow) < 7) $toshow[] = $cur - 2;
522 if ($cur - 3 > 1 && count($toshow) < 7) $toshow[] = $cur - 3;
523 if ($cur - 4 > 1 && count($toshow) < 7) $toshow[] = $cur - 4;
530 if ($cur > 1) {
536 'p' => ($cur - 1)
546 if ($toshow[$i] == $cur) {
569 if ($cur < $pages) {
575 'p' => ($cur + 1)