Fixed formatting so that Aptana Studio doesn't have a fit

In Aptana, it doesn't like it if you open curly brackets in PHP, and then stick HTML in there and another block of PHP with a closing curly bracket.

It also doesn't like

$var = mysqli_fetch_row($result)[X];

It must be

$var = mysqli_fetch_row($result);
$var = $var[X];

Otherwise it calls a syntax error.
Initial intro of static header and footer
Moved more stuff to header