{title}{tr}Contact us{/tr}{/title}

{if $prefs.feature_messages eq 'y' and $tiki_p_messages eq 'y'}
	{if $message}<br />
		<div class="simplebox highlight">{if $sent ne '1'}{icon _id=exclamation style="vertical-align:middle" alt="{tr}Error{/tr}"}{else}{icon _id=accept alt="{tr}OK{/tr}" style="vertical-align:middle;"}{/if} {$message}</div>
		<br />
	{/if}
	{if $sent ne '1'}
	<h2>{tr}Send a message to us{/tr}</h2>
		<form method="post" action="tiki-contact.php">
			<input type="hidden" name="to" value="{$prefs.contact_user|escape}" />
			<table class="normalnoborder">
				<tr>
					<td class="form">{tr}Priority{/tr}:</td><td class="form" style="width:99%">
						<select name="priority">
							<option value="1" {if $priority eq 1}selected="selected"{/if}>1 -{tr}Lowest{/tr}-</option>
							<option value="2" {if $priority eq 2}selected="selected"{/if}>2 -{tr}Low{/tr}-</option>
							<option value="3" {if $priority eq 3}selected="selected"{/if}>3 -{tr}Normal{/tr}-</option>
							<option value="4" {if $priority eq 4}selected="selected"{/if}>4 -{tr}High{/tr}-</option>
							<option value="5" {if $priority eq 5}selected="selected"{/if}>5 -{tr}Very High{/tr}-</option>
						</select>
					</td>
				</tr>

				{if $prefs.feature_antibot eq 'y' && $user eq ''}
					{include file="antibot.tpl" td_style="form"}
				{/if}

				<tr>
					<td class="form">{tr}Subject{/tr}:</td>
					<td class="form">
						<input type="text" name="subject" value="{$subject}" maxlength="255" style="width:99%" />
					</td>
				</tr>
				<tr>
					<td class="form">{tr}Message{/tr}:</td>
					<td class="form">
						{textarea rows="20" name="body" cols="80" _enlarge="y"}{$body}{/textarea}
					</td>
				</tr>
				<tr>
					<td class="form"></td>
					<td class="form">
						<input type="submit" name="send" value="{tr}Send{/tr}" />
					</td>
				</tr>
			</table>
		</form>
	{/if}
	
	{if strlen($email)>0}
		<h2>{tr}Contact us by email{/tr}</h2>
		{tr}Click here to send us an email{/tr}: {mailto address="$email" encode="javascript" extra='class="link"'}
	{else}
		<p><a class="link" href="tiki-contact.php">{tr}Send another message{/tr}</a></p>
	{/if}
{/if}
