Aye like daffys says - just follow that..
PHP Code:
<?php
if ($CURUSER)
{
}
Would become
PHP Code:
<?php
if ($CURUSER)
{
?>
<table><tr><td>......
<?php
}
^^ Means any php/html within the if curuser is hidden unless logged into the site.
Now remember to use php tags to break in and out otherwise whitey screens and syntax errors unless your aware of that scenario.
PHP Code:
?>
<html shits here>
<?php