= $ItemsPerPage); $FastReverseButton = ($JumpDistance > 0) && ($CurrIndex >= $JumpDistance); $ReverseButton = (($CurrIndex - ($ItemsPerPage * 2)) > 0); $AnyForwardButtons = (($CurrIndex + $ItemsPerPage) < $TotalItems); $FastForwardButton = ($JumpDistance > 0) && (($CurrIndex + $JumpDistance) < $TotalItems); $ForwardButton = ($CurrIndex <= ($TotalItems - ($ItemsPerPage * 2))); # generate links for buttons $GoToStartLink = $Link; $FastReverseLink = $Link."&SI=".($CurrIndex - $JumpDistance); $ReverseLink = $Link."&SI=".($CurrIndex - $ItemsPerPage); $GoToEndLink = $Link."&SI=" .($TotalItems - ($TotalItems % $ItemsPerPage)); $FastForwardLink = $Link."&SI=".($CurrIndex + $JumpDistance); $ForwardLink = $Link."&SI=".($CurrIndex + $ItemsPerPage); # determine message alignment $MsgAlign = (!$AnyReverseButtons) ? "left" : ((!$AnyForwardButtons) ? "right" : "center"); ?>

|< << < |  | > >> >|