6
Quote:
it seems that '</table>' should not be there.
You're right, my mistake.
le="color: #000000"><?php {if $smarty.capture.column <= 2} </table> {/if}
can be simply
le="color: #000000"><?php </table>
because we will close the table tag anyway at the end.
PS Now the data cells are repeated for the number of columns in the template. I believe further optimization would be possible by using the original template and switching the <tr> and </tr> tags on and off as needed as in:
le="color: #000000"><?php {if $smarty.capture.column == "0"} <tr> {/if} datablock {if $smarty.capture.column == "2"} </tr> {/if}
This would make it more generic.