7.1

Table Of Contents
The template file
The Template.php file contains the main outline of the PrintShop Mail Web web site, it contains HTM code with a few snippets
of PHP. It is invoked for each page request and outputs the final page contents. The PHP snippets control the rendering of Print-
Shop Mail Web function blocks on a page by page basis. Examples of functions blocks are: the menu bar, sub menus, the user
info bar, the main content area.
A sample PrintShop Mail Web web page showing various function blocks
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 PrintShop Mail 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>
<div id="viewport">
<div id="header"><h1>Hello World</h1></div>
©2010 Objectif Lune Inc - 217 -