This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/staff/staff.tpl
2011-05-03 09:49:01 +10:00

99 lines
3.7 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<form id="contact_form" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr>
<td>{t}To contact our staff, you may select their staff nickname below.
If you do not know any staff in the department you wish to correspond with, simply select the recipient department instead, and your message will be forwarded to the appropriate staff member when you send your message.
You do not need to select both a recipient department and recipient staff member; please just select one or the other.{/t}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td width="35%">{t}contact_staff{/t}</td>
<td width="65%">
{if $VAR.mail_staff_id == ''}
{$list->menu('no','mail_staff_id','staff','nickname','','form_menu',true)}
{else}
{$list->menu('no','mail_staff_id','staff','nickname',$VAR.mail_staff_id,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_department{/t}</td>
<td width="65%">
{if $VAR.mail_department_id == ''}
{$list->menu('no','mail_department_id','staff_department','name','','form_menu')}
{else}
{$list->menu('no','mail_department_id','staff_department','name',$VAR.mail_department_id,'form_menu')}
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_name{/t}</td>
<td width="65%"><input type="text" name="mail_name" size="50" value="{$VAR.mail_name}"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}contact_email{/t}</td>
<td width="65%"><input type="text" name="mail_email" size="50" value="{$VAR.mail_email}"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}mail_subject{/t}</td>
<td width="65%"><input type="text" name="mail_subject" value="{$VAR.mail_subject}" size="50"/></td>
</tr>
<tr valign="top">
<td width="35%">{t}mail_message{/t}</td>
<td width="65%"><textarea name="mail_message" {if $mail_message == true}class="form_field_error" {/if} cols="55" rows="6">{$VAR.mail_message}</textarea></td>
</tr>
<!-- static vars -->
{$method->exe('staff','static_var')}
{foreach from=$static_var item=record}
<tr valign="top">
<td width="35%">{$record.name}</td>
<td width="65%">{$record.html}</td>
</tr>
{/foreach}
<tr valign="top">
<td width="35%">{t}mail_priority{/t}</td>
<td width="65%">{$list->bool('mail_priority','')}</td>
</tr>
<tr valign="top">
<td width="35%">&nbsp;</td>
<td width="65%"><input type="image" border="0" name="imageField" src="themes/{$THEME_NAME}/images/icons/mail_32.gif" alt="{t}Submit{/t}"/></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="{$VAR._page}"/>
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
<input type="hidden" name="do[]" value="staff:contact"/>
</div>
</form>