This topic is locked

ajax base list of detail table: number of files an language

7/7/2007 6:05:59 AM
PHPRunner General questions
P
punch author

Hello,
i use master and detail tables. Details tables are shown with the ajax function from the main table. But i want to do two changes:
The list allways shows only the first ten files, bu i want to show somethin about 20 (or want to show a scrollbar instead).

The language i use is german, but if i use the list, there ist still the text "displaying first 10".
Where can i change this?
Best regards
Punch

P
punch author 7/8/2007

I found it myself.
In directory \source\ in file "detailspreview.php" i found this code:

##if Fields[bListPage && (strViewFormat==FORMAT_FILE_IMAGE || strViewFormat==FORMAT_DATABASE_IMAGE)].len##

echo ( GetRowCount($strSQL) > 5 ) ? ". display first: <strong>5</strong>.<br /><br />" : "<br /><br />";

else##

echo ( GetRowCount($strSQL) > 10 ) ? ". display first: <strong>20</strong>.<br /><br />" : "<br /><br />";

endif


where i can changes number of rows to show ("> 10") and where i can change the text "display first".
Best regards
Punch

K
kjp 7/8/2007

search

AJAX popup for detail records
27 june


Check detailspreview.php file in the source folder.
These are two lines you want to modify:
echo ( GetRowCount($strSQL) > 10 ) ? ". Displaying first: <strong>10</strong>.<br /><br />" : "<br /><br />";
and
if ( $recordsCounter > 10 ) { break; }

I put it in my "attic"

V
Vladimir 7/9/2007

Hi,
to change Diplaying first phrase with its german translation add this string to C:\Program Files\PHPRunner4.0\lang\English.lng :

<message tag="DISPLAYING_FIRST">Displaying first</message>

and this string (may be with your translation) to C:\Program Files\PHPRunner4.0\lang\German.lng :

<message tag="DISPLAYING_FIRST">Anzeigend erste</message>


Then open C:\Program Files\PHPRunner4.0\source\detailspreview.php file, find this code snippet:

echo ( GetRowCount($strSQL) > 5 ) ? ". Displaying first: <strong>5</strong>.<br /><br />" : "<br /><br />";

else##

echo ( GetRowCount($strSQL) > 10 ) ? ". Displaying first: <strong>10</strong>.<br /><br />" : "<br /><br />";

and replace it with this one:

echo ( GetRowCount($strSQL) > 5 ) ? ". ##message DISPLAYING_FIRST##: <strong>5</strong>.<br /><br />" : "<br /><br />";

else##

echo ( GetRowCount($strSQL) > 10 ) ? ". ##message DISPLAYING_FIRST##: <strong>10</strong>.<br /><br />" : "<br /><br />";



And rebuild your project.