HI Brian,
"Brian T. Allen" wrote:
Has anyone
implemented this? I would like a next and previous button on the
flypage so that when I search for something and say 10 results are found
and I click on the first one, that from there I could click on next to
see the next one that was listed in the results page. Just like on
Deja News (www.dejanews.com) Any
ideas or recommendations? Thanks
and Merry Christmas!Brian T. Allenbrian@purenetfx.com
Well, yes (for a flypage with one item). What I have is an additional field
"RN" which is just a RowNumber (1,2,3,...). Then you can do something like
this:
<form action="[process-search]" method="POST">
[perl interpolate=1]
if ('[item-field RN]' - 1 > 0) {return '
<input type="hidden" name="mv_searchspec" value="[perl interpolate=1]$next
= '[item-field RN]'-1;return $next;[/perl]">
<input type="hidden" name="mv_search_field" value="RN">
<input type="hidden" name="mv_search_page" value="searchpage_here">
<input type="submit" value="back">
';}
else {
return '';
}
[/perl]
</form>
<form action="[process-search]" method="POST">
[perl interpolate=1]
if ('[item-field RN]' + 1 > 0) {return '
<input type="hidden" name="mv_searchspec" value="[perl interpolate=1]$next
= '[item-field RN]'+ 1;return $next;[/perl]">
<input type="hidden" name="mv_search_field" value="RN">
<input type="hidden" name="mv_search_page" value="searchpage_here">
<input type="submit" value="Vor">
';}
else {
return '';}
[/perl]
</form>
--
Mit freundlichen Grüßen
Marius Schäfer
schaefer@bpaserver.net
black point arts
soft- & webservice
http://www.bpaserver.net
eschersheimer landstr. 471
60431 frankfurt
tel. 069-952-181-50
fax. 069-952-181-41
|