issue59, fixed margin for thumbnails
[phpfspot.git] / themes / default / templates / photo_index.tpl
index 9ceb0dc9f10a97851d15453c9cedeb14b08f867e..1ca25b831e195164ef0060db4f3bf9e4aeeb16e9 100644 (file)
  <tr>
   <td colspan="3" style="width: 100%;">
    <div id="adinfo"></div>
-   <table class="matrix" id="matrix">
    {section name="row" loop=$rows step=1}
-    <tr>
     {section name="col" loop=$columns step=1}
       {if $images[row][col] }
-      <td class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');">
+      <div class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');" style="width: { $thumb_container_width }px; height: { $thumb_container_height }px;">
        <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);" title="{$img_title[row][col]}">
         <img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&amp;width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" />
         <br />
         {$img_name[row][col]}
        </a>
       </div>
-      {else}
-       <td>&nbsp;</td>
       {/if}
     {/section}
-    </tr>
    {/section} 
-   </table>
+   <br class="clearboth" />
   </td>
  </tr>
  <tr>