
<table>
<tr>
<{foreach item=cat from=$lcats}>
<td>
<center><DIV><SPAN style="FONT-SIZE: 24pt; COLOR: #bcb947; FONT-FAMILY: 'Bernard MT Condensed'; language: en-US"><{$cat.name}>SPAN>DIV>center>
td>
tr>
<tr>
<td>
<table class="item">
<tr>
<{foreach item=prod key=count from=$allprod}>
<{if $cat.id == $prod.catid}>
<td style='margin:0px;padding:5px 0px;'>
<table><tr><td>
<DIV><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #bcb947; FONT-FAMILY: Constantia; language: en-US"><{$prod.p_name}>SPAN>DIV>
<br />
<DIV><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #bcb947; FONT-FAMILY: Constantia; language: en-US"><{$prod.p_desc_long}>SPAN>DIV>
td>
<td align="right"><{if $spec.special eq 1}>
<span style="text-decoration:line-through; color:#FF0000">$<{$prod.p_price}>span><br />$<{$prod.p_sp_price}>
<{else}>
<DIV><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #bcb947; FONT-FAMILY: Constantia; language: en-US">$<{$prod.p_price}>SPAN>DIV>
<{/if}>
span>
<br />
<form method="post" action="add_to_cart.php?id=<{$prod.id}>">
<input type="text" name="qty" value="1" size="3" maxlength="4" title="quantity">
<br />
<input type="submit" value="AddToCart">
form>
td>
tr>table>
td>
<{if $count is div by $colnum}>
tr>
<tr>
<{/if}>
<{/if}>
<{/foreach}>
tr>
table>
td><tr>
<{/foreach}>
<br />
tr>
table>
thanks!