The idea of themes is to separate content from the presentation. So the PHP script should provide the content and all the presentational stuff should be in the template file.
You shouldn't have any hard-coded HTML in your script. What if you want to present your content in a list instead of in a table at some later point? What if you wanted to use XHTML instead of HTML some day? Etc.
bye, Dirk