your problem is that the if statement on line 442 is not closed.
you need to add
<?php } ?>
in an appropriate place,
(possibly around line 481)
not critical but you also have lots of duplicate code on your page
eg
@session_start() is declared several times
the php block on lines 26-56 is repeated at 73-103