
{if $error}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="box_inner">
  <tr>
    <td nowrap="nowrap" class="box_innerhead">{$sname}</td>
  </tr>
  <tr>
    <td width="10%" class="row_first"><div align="center">{$error}<br />
      <br />
      <input onclick="window.close();" type="button" class="button" value="{$lang.winclose}" />
    </div></td>
  </tr>
</table>
{else} {if $smarty.request.mailsend==1}
<table width="100%"  border="0" cellpadding="4" cellspacing="1" class="box_inner">
  <tr>
    <td nowrap="nowrap" class="box_innerhead">{$sname}</td>
  </tr>
  <tr>
    <td width="10%" class="row_first"><div align="center">{$lang.user_sendemail_ok}<br />
        <br />
        <input onclick="window.close();" type="button" class="button" value="{$lang.winclose}" />
    </div></td>
  </tr>
</table> 
{else}
<form action="index.php?p=misc&amp;do=EMAIL" method="post">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="box_inner">
    <tr>
      <td colspan="2" nowrap="nowrap" class="box_innerhead">{$sname}</td>
    </tr>
    <tr>
      <td width="10%" nowrap="nowrap" class="row_first">{$lang.topic_t}</td>
      <td class="row_second"><input name="subject" type="text" class="inputfield" id="subject" style="width:100%" /></td>
    </tr>
    <tr valign="top">
      <td width="10%" nowrap="nowrap" class="row_first">{$lang.message_t}</td>
      <td class="row_second"><textarea name="body" rows="8" id="body" style="width:100%"></textarea></td>
    </tr>
    <tr valign="top">
      <td nowrap="nowrap" class="row_first">&nbsp;</td>
      <td class="row_second"><input type="submit" class="button" value="{$lang.user_sendemail}" />
        <input name="uid" type="hidden" id="uid" value="{$smarty.request.uid}" />
        <input name="mailsend" type="hidden" id="mailsend" value="1" /></td>
    </tr>
  </table>
</form>
{/if} {/if} 