####
$tmpl_results->param
(
RESULTS => \@results,
SESSION => $config{USE_SESSION_HACK} eq "Y" ? $self->param("session")->id : "",
SCRIPT => $request->url,
SORT => $sort,
PARCEL_DIR => (($sort eq "parcel" and $dir eq "ASC" ) ? "DESC" : "ASC"),
PARCEL_ASC => (($sort eq "parcel" and $dir eq "ASC" ) ? "Y" : ""),
PARCEL_DESC => (($sort eq "parcel" and $dir eq "DESC") ? "Y" : ""),
NAME_DIR => (($sort eq "name" and $dir eq "ASC") ? "DESC" : "ASC"),
NAME_ASC => (($sort eq "name" and $dir eq "ASC" ) ? "Y" : ""),
NAME_DESC => (($sort eq "name" and $dir eq "DESC" ) ? "Y" : ""),
DIR => $dir,
TIME => sprintf("%$config{FORMAT_TIME}", $time),
NUM_RESULTS => $rows,
START => $first,
END => $last,
FIRST => ($first == 1 ? "" : "first=1&last=$config{INCREMENT}"),
PREV => ($first == 1 ? "" : "first=" . ($first - $config{INCREMENT}) . "&last=" . ($last - $config{INCREMENT})),
NEXT => ($last >= $rows ? "" : "first=" . ($first + $config{INCREMENT}) . "&last=" . ($last + $config{INCREMENT})),
LAST => ($last >= $rows ? "" : "first=" . ($rows - $config{INCREMENT}) . "&last=$rows"),
);