This topic is locked

records per page

7/10/2007 3:01:27 AM
PHPRunner General questions
K
kjp author

Bonjour

I made a searchbefore, but didn't found...
I'd modified my list view to see 20 records per page.
All is working fine, but the "window" records per page is

(by default) tagged on "10".

Is there a way to force it to display the number I've choice?
Ex:
Details found: 16

Page1of1 Records Per Page:

10

J
Jane 7/10/2007

Hi,
to change Records per page dropdown box proceed to the Visual Editor tab, click on the Records per page dropdown box, switch to HTML mode, then find this code:

<select

onChange="java script: document.location='products_list.php?pagesize='+this.options[this.selectedIndex].value;">

<option value="10" {$rpp10_selected}>10</option>

<option value="20" {$rpp20_selected}>20</option>

<option value="30" {$rpp30_selected}>30</option>

<option value="50" {$rpp50_selected}>50</option>

<option value="100" {$rpp100_selected}>100</option>

<option value="500" {$rpp500_selected}>500</option>

</select>



and replace it with this one:

<select

onChange="java script: document.location='products_list.php?pagesize='+this.options[this.selectedIndex].value;">

<option value="20" {$rpp20_selected}>20</option>

<option value="30" {$rpp30_selected}>30</option>

<option value="50" {$rpp50_selected}>50</option>

<option value="100" {$rpp100_selected}>100</option>

<option value="500" {$rpp500_selected}>500</option>

</select>