Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
517ac744
Commit
517ac744
authored
Jan 20, 2011
by
Lukas Fleischer
Browse files
Implemented "First" and "Last" link for search results (fixes FS#15690).
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
ec0dfc27
Changes
1
Show whitespace changes
Inline
Side-by-side
web/template/pkg_search_results.php
View file @
517ac744
...
...
@@ -131,6 +131,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
$O
=
0
;
}
?>
<a
class=
"page_num"
href=
"packages.php?
<?php
print
mkurl
(
"O=0"
)
?>
"
>
<?php
echo
__
(
'First'
)
?>
</a>
<a
class=
"page_num"
href=
"packages.php?
<?php
print
mkurl
(
"O=
$O
"
)
?>
"
>
<?php
echo
__
(
'Previous'
)
?>
</a>
<?php
endif
;
?>
...
...
@@ -171,6 +172,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
<?php
if
(
$total
-
$_GET
[
'PP'
]
-
$_GET
[
'O'
]
>
0
)
:
?>
<a
class=
"page_num"
href=
'packages.php?
<?php
print
mkurl
(
'O='
.
(
$_GET
[
'O'
]
+
$_GET
[
'PP'
]))
?>
'
>
<?php
echo
__
(
'Next'
)
?>
</a>
<a
class=
"page_num"
href=
'packages.php?
<?php
print
mkurl
(
'O='
.
(
$total
-
$_GET
[
'PP'
]))
?>
'
>
<?php
echo
__
(
'Last'
)
?>
</a>
<?php
endif
;
?>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment