		<div class="bigheader">
			<h2>{$LANG.domainemailforwarding}</h2>
		</div><!-- .bigheader --> 

<div class="table-responsive table-grey">
<table>

<tr>
	<td width="20%"><strong>{$LANG.domainname}</strong></td>
	<td>{$domain}</td>
</tr>

</table>
</div>

<p>{$LANG.domainemailforwardingdesc}</p>


{if $error}
	<div class="notice notice-error">
		<div class="inside">
			<p>{$error}</p>
		</div>
	</div>
{/if}

{if $external}
	<div class="notice notice-error">
		<div class="inside">
			<p>{$code}</p>
		</div>
	</div>

{else}

<form method="post" action="{$smarty.server.PHP_SELF}?action=domainemailforwarding">
  <input type="hidden" name="sub" value="save" />
  <input type="hidden" name="domainid" value="{$domainid}" />
  
  <div class="table-responsive table-grey">
  <table>
    <tr>
      <th>{$LANG.domainemailforwardingprefix}</th>
      <th></th>
      <th>{$LANG.domainemailforwardingforwardto}</th>
    </tr>
    {foreach key=num item=emailforwarder from=$emailforwarders}
    <tr>
      <td><input type="text" name="emailforwarderprefix[{$num}]" value="{$emailforwarder.prefix}" size="15" /></td>
      <td>@{$domain} => </td>
      <td><input type="text" name="emailforwarderforwardto[{$num}]" value="{$emailforwarder.forwardto}" size="35" /></td>
    </tr>
    {/foreach}
    <tr>
      <td><input type="text" name="emailforwarderprefixnew" size="15" /></td>
      <td>@{$domain} => </td>
      <td><input type="text" name="emailforwarderforwardtonew" size="35" /></td>
    </tr>
  </table>
  </div>
  
  <p class="center">
    <input type="submit" value="{$LANG.clientareasavechanges}" class="button1 color2" />
  </p>
</form>
{/if}
<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindetails">
  <input type="hidden" name="id" value="{$domainid}" />
  <div class="floatleft">
    <input type="submit" value="{$LANG.clientareabacklink}" class="button1 color1" />
  </div>
  <div class="clear">&nbsp;</div>
</form>