This is the CSS-formatted template page used for this site. It's a simple HTML page that uses division, or div tags, instead of table rows and cells, to structure the space. There's four divisions: top, left, right, and middle. In each division php is inserting, or "including", a fragment of an HTML file, one without the head or body tags. PHP scripting combined with style sheets makes for a quick-loading and consistent design across large sites.
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"
head
?php include("include/head.inc"); ?
/head body div id="top" img src="images/logo.gif" alt="Toronto Association for Community Living" width="497" height="57" border="0" /div div id="left"
?php include(MENU); ?
/div div id="middle"
?php
echo "!-- view area --\n";
if (INCLUDEFLAG)
{
include(PAGECONTENT);
} else {
echo PAGECONTENT;
}
echo "!-- end view area --\n";
?
/div div id="right"
?php include("content/rightmenu.html"); ?
/div /body /html