0); $AnyForwardButtons = (($CurrIndex + $ItemsPerPage) < ($MaxStartIndex + 1)); $ReverseButton = (($CurrIndex + 1) >= ($ItemsPerPage * 2)); $ForwardButton = ($CurrIndex < ($MaxStartIndex - $ItemsPerPage)); $FastReverseButton = ($JumpDistance > $ItemsPerPage) && ($CurrIndex >= $JumpDistance); $FastForwardButton = ($JumpDistance > $ItemsPerPage) && (($CurrIndex + $JumpDistance) < $MaxStartIndex); # generate links for buttons $GoToStartLink = $Link; $FastReverseLink = $Link."&SI=".max($MinStartIndex, $CurrIndex - $JumpDistance); $ReverseLink = $Link."&SI=".max($MinStartIndex, $CurrIndex - $ItemsPerPage); $GoToEndLink = $Link."&SI=".$MaxStartIndex; $FastForwardLink = $Link."&SI=".min($MaxStartIndex, $CurrIndex + $JumpDistance); $ForwardLink = $Link."&SI=".min($MaxStartIndex, $CurrIndex + $ItemsPerPage); # determine message alignment $MsgAlign = (!$AnyReverseButtons) ? "left" : ((!$AnyForwardButtons) ? "right" : "center"); if ($AnyReverseButtons || $AnyForwardButtons || strlen($Msg)) { if($AnyReverseButtons || $AnyForwardButtons) { ?>
|< << <
> >> $ItemsPerPage) { ?> >|