This topic is locked

Pagination Question

1/9/2006 11:34:00 AM
PHPRunner General questions
A
Alan4573 author

Hi guys and girls,
I'm pulling my hair out trying to get this to work...
On the pagination display [ 1 2 3 4 5 ]
I want to add the following text "Go to Page:" before the [ 1 2 3 4 5 ]
Anybody got any ideas how I modify the code?
Thanks in advance.
Alan

admin 1/9/2006

You can modify WritePagination function in include /jsfunctions.js file to insert "Go to page" text.

A
Alan4573 author 1/9/2006

You can modify WritePagination function in include /jsfunctions.js file to insert "Go to page" text.


D'oh - why didn't I see that <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=7419&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />
Thanks Sergey

C
cellman 1/11/2006

I would like the same thing although I do not understand what you told him...how do you modify this?

admin 1/12/2006

Open include\jsfunctions.js file from PHPRunner output folder with a text editor, locate the following snippet there:

var counterend = counterstart + 9;

if (counterend > maxpages) counterend = maxpages;



and insert this line just after:

document.write("Go to page");
A
Alan4573 author 1/12/2006

Cellman,
If you've already built your project and you dont want to rebuild it, you could also try this:
in file include/jsfunctions.js, locate this code: (Look under function WritePagination(mypage,maxpages))

if (counterstart != 1) document.write(GetGotoPageUrlString(1,TEXT_FIRST)+" : "+GetGotoPageUrlString(counterstart - 1,TEXT_PREVIOUS)+" ");



document.write("<b>[</b>");


and change it to this.

if (counterstart != 1) document.write(GetGotoPageUrlString(1,TEXT_FIRST)+" : "+GetGotoPageUrlString(counterstart - 1,TEXT_PREVIOUS)+" ");



document.write("Go to page: <b>[</b>");


Hope this helps <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=7504&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Alan