Hi all,
First of all, Thanks for TinyButStrong. I love it.
I taked the 2 files from the downloaded package:
tbs_us_examples_page.php
tbs_us_examples_page.htm
in the file tbs_us_examples_page.php I just add a function called formatLink like this:
function formatLink($b, &$v)
{
$v = "tbs_us_examples_page.php?a=10&b=20&c=baba&NumPage=$v";
}
|
in the file tbs_us_examples_page.htm I just changed these lines:
<tr align="center">
<td width="16"><a href="[sys.script_name]?PageNum=[nv.first;endpoint;friend2=a]">|<</a></td>
<td width="16"><a href="[sys.script_name]?PageNum=[nv.prev;endpoint;friend2=a]"><</a></td>
<td width="16"><a href="[sys.script_name]?PageNum=[nv.page;block=td]">[nv.page]</a></td>
<td width="16" bgcolor="#C4E1E1"><strong>[nv.page;block=td;currpage]</strong></td>
<td width="16"><a href="[sys.script_name]?PageNum=[nv.next;endpoint;friend2=a]">></a></td>
<td width="16"><a href="[sys.script_name]?PageNum=[nv.last;endpoint;friend2=a]">>|</a></td>
</tr>
|
with these lines:
<tr align="center">
<td width="16"><a href="[nv.first;endpoint;friend=a;onformat=formatLink]">|<</a></td>
<td width="16"><a href="[nv.prev;endpoint;friend=a;onformat=formatLink]"><</a></td>
<td width="16"><a href="[nv.page;block=td;onformat=formatLink]">[nv.page]</a></td>
<td width="16" bgcolor="#C4E1E1"><strong>[nv.page;block=td;currpage]</strong></td>
<td width="16"><a href="[nv.next;endpoint;friend=a;onformat=formatLink]">></a></td>
<td width="16"><a href="[nv.last;endpoint;friend=a;onformat=formatLink]">>|</a></td>
</tr>
|
Did I something wrong ? If yes, WHAT ?
Because the result is a stronge:
1- The 'first' and 'prev' links are always there when the PageNum=1
2- The same with the 'next' and 'last' links when the PageNum=4
3- When the PageNum=4 and I click 'next' or last, I get a page containing only the first record