User's Manual

You are able to add Smarty template functions and blocks to your code. These act as placeholders to be
substituted when the template is actually used.
See "Smarty Template Syntax" on page 480 for further information on Smarty template syntax.
You can use an {if} statement to define a single print template that caters to multiple situations. For example, if
you want to customize the print template to display different content depending on the action that has been
taken, the following code could be used:
{if $action == "create"}
<p>
Your guest account has been created and is now ready to use!
</p>
<ul>
{if $site_ssid}
<li>Connect to the wireless network named: <b>{$site_ssid}</b></li>
{/if}
<li>Make sure your network adapter is set to 'DHCP - Obtain an IP address
Automatically'.</li>
<li>Open your Web browser.</li>
<li>Enter your username and password in the spaces provided.</li>
</ul>
{elseif $action == "edit"}
<p>
Your guest account has been updated.
</p>
{elseif $action == "delete"}
{/if}
<table {$table_class_content} width="500">
<tbody>
{if $u.guest_name}
<tr>
<th class="nwaLeft">guest name</th>
<td class="nwaBody">{$u.guest_name}</td>
</tr>
{/if}
If this code is placed in the User Account HTML section, it will cater to the create, edit, and delete options.
Print Template Wizard
The Create new print template using wizard link on the Configuration >Receipts >Templates page
provides a simplified way to create print templates by selecting a basic style and providing a logo image, title
and content text, and selecting the guest account fields to include.
A real-time preview allows changes made to the design to be viewed immediately.
To use the Print Template Wizard, first select a style of print template from the Style list. Small thumbnail
images are shown to indicate the basic layout of each style. There are four built-in styles:
l Table – Best for square or nearly square logo images, and well suited for use with scratch card” guest
accounts.
l Simple – Best for wide or tall logo images and for situations where an operator will print a page with guest
account details.
l Centered – Best for wide logo images; less formal design.
l Label Printer These print template styles are designed for small thermal printers in various widths. On-
screen assistance is provided when printing to ensure that a consistent result can be obtained.
Click the Preview at right or Preview at bottom link at the top of the page to move the real-time
preview of the print template.
Dell Networking W-ClearPass Guest 6.4 | User Guide Configuration | 293