Try putting this where you want the form/add to cart to be:
Code:
<form name=orderform_{%product.index%} method=post action="cart.php?mode=add">
<td align=left>
{if $products[product].avail eq "Y"}
<a href="javascript: document.orderform_{%product.index%}.submit[/i]()">
{include file="buttons/add_to_cart.tpl"}</a>
<input type=hidden name=amount value=1>
<input type=hidden name=mode value=add>
<input type=hidden name=productid value="{$products[product].productid}">
<input type=hidden name=cat value="{$smarty.get.cat}">
<input type=hidden name=page value="{$smarty.get.page}">
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>See Details</a>
{else}
Product Out of stock
{/if}
</td>
</form>
Obviously change the layout etc according to your req's