There is at least one error in your code: If you use an foreach statement to loop through an array, you do not use a : to refer to the item within the loop. So instead of $:element you just use $element within the foreach loop.
You also have an error in your html code, the last </td> must come before the closing {/if}
BTW: If you post code here please try to format it a bit better, especially try to remove the empty lines in between as they make it hard to read. Also try to give us more information about what is not working, a simple 'it is not working' is seldom helpful. You can often get additional information about problems by looking at the debug output and even the fact that you do not get any debug errors might be useful to us.
Greetings from Luxembourg
Claudia
You must be logged in to post messages in this topic!