mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Fix for 'More' and 'Less' paging breakage.
Fix for 'More' and 'Less' paging breakage. Takes into account PerPage and Category retention.
This commit is contained in:
parent
7bad8a8357
commit
aedf2ab6a3
1 changed files with 2 additions and 5 deletions
|
@ -655,7 +655,8 @@ function pkg_search_page($SID="") {
|
||||||
|
|
||||||
# The search form
|
# The search form
|
||||||
#
|
#
|
||||||
print "<form action='/packages.php' method='get'>\n";
|
print "<form action='/packages.php' method='post'>\n";
|
||||||
|
#print "<form action='/packages.php' method='get'>\n";
|
||||||
print "<input type='hidden' name='O' value='".$O."'>\n";
|
print "<input type='hidden' name='O' value='".$O."'>\n";
|
||||||
|
|
||||||
print "<center>\n";
|
print "<center>\n";
|
||||||
|
@ -766,10 +767,8 @@ function pkg_search_page($SID="") {
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
print "</center>\n";
|
print "</center>\n";
|
||||||
print "</form>";
|
|
||||||
print "<br />\n";
|
print "<br />\n";
|
||||||
|
|
||||||
print "<form action='/packages.php' method='post'>\n";
|
|
||||||
# query to pull out package info
|
# query to pull out package info
|
||||||
#
|
#
|
||||||
# $q = "SELECT Packages.*, IF(ISNULL(PackageID), 0, COUNT(*)) AS Votes ";
|
# $q = "SELECT Packages.*, IF(ISNULL(PackageID), 0, COUNT(*)) AS Votes ";
|
||||||
|
@ -881,8 +880,6 @@ function pkg_search_page($SID="") {
|
||||||
$qnext = $q."LIMIT ".($O+$PP).", ".$PP; //next page's worth
|
$qnext = $q."LIMIT ".($O+$PP).", ".$PP; //next page's worth
|
||||||
$q.= "LIMIT ".$O.", ".$PP;
|
$q.= "LIMIT ".$O.", ".$PP;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$result = db_query($q, $dbh);
|
$result = db_query($q, $dbh);
|
||||||
|
|
||||||
print "<center>\n";
|
print "<center>\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue