By: donatello
Date: 2006-12-14
Time: 09:56
|
results nav bar
Hi,
i've used tbs to build a multipage nav bar for multipage db results display an dit works very well.
The nav bar is on the top of the page. I'd like to add the same nav bar to the bottom of the page. So i just copy/paste the nav bar code but doesn't work. Can u tell me what's wrong?
Here is my code, cheers.
<div id="res_multipages"> [var.RecCnt] resultats</div>
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.first;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.prev;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.page;block=td;navsize=5;navpos=centred]">[nv.page]</a></td>
<td width="16"><strong>[nv.page;block=td;currpage]</strong></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.next;endpoint;magnet=a;mtype=m+m]">></a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.last;endpoint;magnet=a;mtype=m+m]">></a></td>
</tr>
</table>
|
By: sheepy
Date: 2006-12-14
Time: 10:36
|
Re: results nav bar
If you want two bar, you have to name then differently. Say, instead of [nv. , replace them with [nv2. and change code accordingly.
|
By: donatello
Date: 2006-12-14
Time: 14:36
|
Re: results nav bar
thanks!
|
By: donatello
Date: 2006-12-20
Time: 10:05
|
Re: results nav bar
Hi, i have changed the name of the second navbar to nv2.
The first navbar still works, but not the second. Instead of having page numbers, i've got hte following:
< < [nv2.page] [nv2.page;block=td;currpage] > >
Here is the code in the php file:
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('occasions.htm') ;
$RecCnt = $TBS->MergeBlock('ann', 'mysql', $query, $PageSize, $PageNum, $RecCnt);
$TBS->MergeNavigationBar('nv,nv2','',$PageNum,$RecCnt,$PageSize) ;
$TBS->Show() ;
And in the html file :
*first navbar
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.first;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.prev;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.page;block=td;navsize=5;navpos=centred]">[nv.page]</a></td>
<td width="16"><strong>[nv.page;block=td;currpage]</strong></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.next;endpoint;magnet=a;mtype=m+m]">></a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv.last;endpoint;magnet=a;mtype=m+m]">></a></td>
</tr>
</table>
*second navbar( where the problem is)
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv2.first;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv2.prev;endpoint;magnet=a;mtype=m+m]"><</a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv2.page;block=td;navsize=5;navpos=centred]">[nv2.page]</a></td>
<td width="16"><strong>[nv2.page;block=td;currpage]</strong></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv2.next;endpoint;magnet=a;mtype=m+m]">></a></td>
<td width="16"><a class="multipages" href="index.php?page=occasions&crit=[var.crit]&marques=[var.marques]&energie=[var.energie]&PageNum=[nv2.last;endpoint;magnet=a;mtype=m+m]">></a></td>
</tr>
</table>
Thanks for the help
|
By: sheepy
Date: 2006-12-21
Time: 12:15
|
Re: results nav bar
Are you using version 2.x? Because in TBS 3 the navbar is moved into a plugin and I merged it like
$tbs->PlugIn(TBS_NAVBAR,'nav,nav2','',$page,$count,60); |
|
|
Posting in progress.
Please wait...
|