7.0

Table Of Contents
3.1 HMTL Outline
The Template.php file contains regular HTML code combined with PHP. The main structure of the file contains
the standard HTML elements like <html>, <head> and <body>. Custom HTML code can be added to insert
information/content to the pages and to change the positioning of the elements.
The design and positions of the function blocks can be changed by altering the Style.php file or by adding
inline styles.
Typically function blocks are placed inside HTML <div> tags. The following sections describe the main function
blocks. Please note that the structure of the Template.php will probably be different for each skin. The
following code snippets are derived from the default PSM Web skin.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><? generateSystemName(); ?>: <? generateTitle(); ?></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<? generateCSSIncludes(); ?>
<? generateJavaScriptIncludes(false); ?>
</head>
<body class="<? generatePageID(); ?>">
<div id="viewport">
<div id="header"><h1>Hello World</h1></div>
<? if(function_exists("generateUserInfo")) { ?>
<div id="userinfo">
<div>
<h3><? generateAdditionalInfo(); ?></h3>
<? generateUserInfo(); ?>
</div>
</div>
<? } ?>
<? if(function_exists("generateMenu")) { ?>
<div id="menu">
<div>
<? generateMenu(); ?>
</div>
</div>
<? } ?>
<? if(function_exists("generateCrumbs")) { ?>
<div id="crumbs">
<? generateCrumbs(); ?>
</div>
<? } ?>
<? if(function_exists("generateMessages")) { ?>
<div id="messages">
<? generateMessages(); ?>
</div>
<? } ?>
<div id="content">
<? if (getFormCount() > 0){ ?>
<? generateContent(); ?>
<? } ?>
Objectif Lune Inc. © 2010 10