<h1><a class="pagetitle" href="tiki-contact.php">{tr}Contact us{/tr}</a></h1>
{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">
    <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}
{/if}
  
  <tr>
    <td class="form">{tr}Subject{/tr}:</td><td class="form"><input type="text" name="subject" value="{$subject}" size="80" maxlength="255" /></td>
  </tr>
  <tr><td class="form">{tr}Message{/tr}:</td>
      <td class="form"><textarea rows="20" cols="80" name="body">{$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">Send another message.</a></p>
{/if}
{/if}
