0); $AnyForwardButtons = ($CurrIndex < $MaxStartIndex); $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)) { ?>

|< << < |  | > >> $ItemsPerPage) { ?> >|