7.1
Table Of Contents
- Table of Content
- Overview
- Understanding PrintShop Mail Web
- Getting Started
- The PrintShop Mail Web Interface
- Publishing Workflow
- Ordering Workflow
- New Document
- Order Manager
- Checkout
- Companies
- Users
- Publication Types
- Collections
- Settings
- About
- License
- Roles
- Languages
- Web Design
- Maintenance
- Settings
- Currencies
- Tax Rates
- Shipping Rates
- Calendar
- Production Settings
- User Input Field Defaults
- Output Folders
- Job options
- Printers
- E-mail Settings
- E-mail Addressees
- Managing E-mail Templates
- Modules Settings
- Enabling a MIS connector
- Installed modules
- Properties
- Enabling a Print Production connector
- Installed modules
- Properties
- Requirements
- Configuring the module
- The PayPal Sandbox
- Processing orders
- Requirements
- Configuring the Authorize.net module
- Test mode
- AVS and CCV checks
- Payment page
- Requirements
- Requesting a test account
- Configuring the iDEAL test dashboard
- Configuring the iDeal module
- Requirements
- Configuring the Moneris module
- Test mode
- Requesting a live account
- AVS and CVD checks
- Payment page
- Add a new Module
- Configure a module
- Delete a Module
- XML (eXtensible Markup Language)
- Options
- Sample POST receive script
- Interaction With PrintShop Mail Design
- Introduction to Regular Expressions
- Introduction
- Skinning Guide
- Getting started
- Creating your own skin
- The template file
- HMTL Outline
- Styling
- Key Concepts
- Style organization
- Header
- User information
- Menu bar
- Background
- Overview tables
- Edit forms
- Sub menus
- Special variables
- Variables for template files
- Variables for style files
- Creating page exceptions
- Creating a page specific template file
- Modifying a page specific template file
- DOM manipulation using jQuery
- Launching code on Document Ready
- Populating fields with computed values
- Removing elements from the DOM
- Adding information to the DOM
- Customizing the store front
- Storefront class
- Creating a hierarchical tree
- Adding a live search option
- Copyright Information
- Index
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 -