7.1

Table Of Contents
Special variables
In this section we list the special variables you can use in the Template.php and Style.phpfiles.
Variables for template files
These functions can be used in templates files (e.g. Template.php).
setRowsPerPage
The setRowsPerPage function can be used to change the number of rows shown in overview tables. The function can added
to the Template.php file and should be insert before the generateContent function. By default overview tables show 15 rows
per page.
<? setRowsPerPage(25); ?>
<div id="content">
<? if (getFormCount() > 0){ ?>
<? generateContent(); ?>
<? } ?>
</div>
generateString
The generateString function retrieves a language string based on the supplied parameter. It is used to insert language depend-
ent text.
<? generateString(cSystemName); ?>
/* Renders to following text */
PrintShop Web
Custom strings can be added to the language strings. A string is made up of a name and a value, which are seperated by the =
symbol.
cSystemName=PrintShop Mail Web
cAdditionalInfo=PrintShop Mail Web
cFooter=PrintShop Mail Web, www.objectiflune.com
Variables for style files
The PrintShop Mail Web style files (e.g. Style.php) are regular CSS files. Its a PHP file that renders a CSS file. By including the
skin_customization.php line at the beginning of your Style.php file the values entered in the Edit Web Design pages can be
used in your style. Once included special PHP functions can be used to retrieve style information that is entered in the Edit
Web Design page of the companies in PrintShop Mail Web.
©2010 Objectif Lune Inc - 241 -