<table width="415"  border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><table width="410"  border="1" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="center"><?php echo $html->image('/img/products/'.$img.'_disp.jpg', array('border' => '0')); ?></td>
  </tr>
</table>
</td>
  </tr>
  <tr><td height="10">&nbsp;</td></tr>
  <tr>
    <td> <?php 
		$imarrk	=	base64_decode($imarr);
		$imarrj	=	explode("%^&$",$imarrk);
							   if(isset($imarrj)){
							   for($i=0;$i < sizeof($imarrj); $i++){
							   ?>
							  <?php if($i==$j){ ?>
							  <font color="#0000FF" ><span style="font-style:italic; background-color:#CCCCCC"><?php echo $ajax->link($i+1, array( 'controller' => 'products', 'action' => 'shwajximg/'.$imarrj[$i].'/'.$imarr.'/'.$i , 1 ), array( 'update' => 'pimg'),NULL,true ); ?> </span>&nbsp;&nbsp;</font>
							  <?php }else{ ?>
							   <?php echo $ajax->link($i+1, array( 'controller' => 'products', 'action' => 'shwajximg/'.$imarrj[$i].'/'.$imarr.'/'.$i , 1 ), array( 'update' => 'pimg'),NULL,true ); ?> &nbsp;&nbsp;
							   <?php
							   }
							   }
							   }
							   ?></td>
  </tr>
</table>