This topic is locked

Number of records per page...

6/30/2007 7:49:38 AM
PHPRunner General questions
M
michaelmac author

Good Morning Everyone...
I hope everyone is getting ready for a great summer holiday weekend...
Here is my issue:
On the list page, we can chose the number of records to display per page. I have customer who want to display more that 500 records per page. I did the following simple changes:
<TD class=bl><STRONG>&nbsp;Records Per Page: <select

onChange="java script: document.location='titles_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>

<option value="1000" {$rpp1000_selected}>1000</option>

<option value="1500" {$rpp1500_selected}>1500</option>

</select>

</STRONG></TD>
It displays the 1000 or 1500 if I chose them, but the selector box shows it the chose, but after the page refreshes, the selector box goes to "10" instead of staying at 1000 or 1500 when I selected it. I mean the page will continue to display that number of records per page that I chose, but the record selector just keeps displaying "10".
Can anyone help me?
Thanks
Mike

Sergey Kornilov admin 7/2/2007

Mike,
you cannot define new $rpp variables. You can only change the value of existing ones.

O
osluk 10/28/2007

I want to add a 600 or 1000 record option.

Where do I do this to avoid in being overwritten when rebuilt.
Cheers Chris
PS

I do 2 version of the database one admin version with edit and a login page

1 version for users to browse no login no edit - same database.
Is there a way to avoid having to manally changing the upload location and browse path

I toggle between these 2 upload locations all the way through development.

I seem to recall something to address this being discussed.

J
Jane 10/30/2007

Chris,
to add 600 and 1000 options edit C:/Program Files/PHPRunner4.1/source/list.php and C:/Program Files/PHPRunner4.1/templates/layouts/selected layout/list.htm files.
Regarding the second question.

As workaround you can create two FTP locations: one for admin project and one for user project on the Upload to FTP server dialog.