This topic is locked
[SOLVED]

 Aligning pagination

9/8/2012 1:53:14 PM
PHPRunner General questions
P
procheck author

Hi,
I'm trying to left justify the pagination. Currently in $xt->xt_vars, the pagination is set as:
<table rows='1' cols='1' align='center' width='auto' border='0' name='paginationTable1'><tr valign='center'><td align='center'><b>[</b>&nbsp;<b>1</b>&nbsp;<a href="#" pageNum="2" class="pag_n" style="TEXT-DECORATION: none;">2</a>&nbsp;<b>]</b></td></tr></table>
I found a similar post for ASP but I'm have problems with the syntax in PHP.

ASPRunner Solution
Does anyone know the syntax to do this in BeforeShowList?
Thanks
Al
Here is the answer for PHP:
$pagination = xt_getvar($xt,"pagination");

$pagination = str_repalce(" align='center'", " align='left'",$pagination);

$xt->assign("pagination",$pagination);