Revision 1336d082
Added by Scott Ullrich almost 15 years ago
usr/local/www/pkg.php | ||
---|---|---|
346 | 346 |
$final_footer .= "<td align='left'>"; |
347 | 347 |
$startingat = $startdisplayingat - $display_maximum_rows; |
348 | 348 |
if($startingat > -1) { |
349 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat={$startingat}'>"; |
|
349 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat={$startingat}&display_maximum_rows={$display_maximum_rows}'>";
|
|
350 | 350 |
} else { |
351 | 351 |
if($startingnat > 1) |
352 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=0'>"; |
|
352 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=0&display_maximum_rows={$display_maximum_rows}'>";
|
|
353 | 353 |
} |
354 | 354 |
$final_footer .= "<font size='2'><< Previous page</a>"; |
355 | 355 |
if($tmppp + $display_maximum_rows > count($evaledvar)) |
... | ... | |
361 | 361 |
$final_footer .= "<font size='2'>Displaying {$tmppp} - {$endingrecord} / " . count($evaledvar) . " records"; |
362 | 362 |
$final_footer .= "</td><td align='right'> "; |
363 | 363 |
if(($i+1) < count($evaledvar)) |
364 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=" . ($startdisplayingat + $display_maximum_rows) . "'>"; |
|
364 |
$final_footer .= "<a href='pkg.php?xml=" . $_REQUEST['xml'] . "&startdisplayingat=" . ($startdisplayingat + $display_maximum_rows) . "&display_maximum_rows={$display_maximum_rows}'>";
|
|
365 | 365 |
$final_footer .= "<font size='2'>Next page >></a>"; |
366 | 366 |
$final_footer .= "</td></tr></table></td></tr>"; |
367 | 367 |
break; |
Also available in: Unified diff
Remember custom rows per page when going to previous and next pages