-
Notifications
You must be signed in to change notification settings - Fork 2
/
functions.tpl
29 lines (26 loc) · 1006 Bytes
/
functions.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{function name=button href="" text=" " width="" admin="" relative=TRUE}
{if $width ne ""}
{$width=" width=\"$width\""}
{/if}
{if $admin}
{$admin="_admin"}
{else}
{$admin=""}
{/if}
{if $relative}
{$href = "$zendTOURL$href"}
{/if}
<table{$width} class="UD_textbutton">
<tr valign="middle">
<td class="UD_textbutton_left{$admin}"><a class="UD_textbuttonedge" href="{$href}"> </a></td>
<td class="UD_textbutton_content{$admin}" align="center"><a class="UD_textbutton{$admin}" href="{$href}">{$text}</a></td>
<td class="UD_textbutton_right{$admin}"><a class="UD_textbuttonedge" href="{$href}"> </a></td>
</tr>
</table>
{/function}
{function name=footerButtons}
<table border="0" cellpadding="4"><tr>
<td>{call name=button href="{$zendToURL}" text="Return to the {#ServiceTitle#} main menu"}</td>
{if $isAuthorizedUser}<td>{call name=button href="{$zendToURL}?action=logout" text="Logout"}</td>{/if}</tr>
</table>
{/function}