Thats pretty straight forward.
Put the <tr>...</tr> in the ditto template and place it like this:
<table>
[[Ditto? &tpl=`tplname` ..... ]]
</table>
Ofcourse, fill in the necessary parameters and placeholders.
Hope this helps. Feel free to post here if u get stuck somewhere.