added sorting.patch from dsa to close bug #4659, sorting error

This commit is contained in:
pjmattal 2006-06-12 02:13:43 +00:00
parent 7495613d59
commit c94000db49

View file

@ -997,6 +997,12 @@ function pkg_search_page($SID="") {
# } # }
print "</tr>\n"; print "</tr>\n";
# Solve the sorting problem, so we can force the
# passage of the sorting params to the next pages.
# Added by: dsa <dsandrade@gmail.com>
print "<input type='hidden' name='SB' value='".$_REQUEST['SB']."' >";
print "<input type='hidden' name='SO' value='".$_REQUEST['SO']."' >";
for ($i=0; $row = mysql_fetch_assoc($result); $i++) { for ($i=0; $row = mysql_fetch_assoc($result); $i++) {
(($i % 2) == 0) ? $c = "data1" : $c = "data2"; (($i % 2) == 0) ? $c = "data1" : $c = "data2";
print "<tr>\n"; print "<tr>\n";