<?php /* Smarty version 2.6.28, created on 2014-11-05 02:08:22
         compiled from /home/vinhostm/public_html/order/templates/portal/clientareadomainemailforwarding.tpl */ ?>
<h2><?php echo $this->_tpl_vars['LANG']['domainemailforwarding']; ?>
</h2>
<p><?php echo $this->_tpl_vars['LANG']['domainemailforwardingdesc']; ?>
</p>
<p><?php echo $this->_tpl_vars['LANG']['domainname']; ?>
: <strong><?php echo $this->_tpl_vars['domain']; ?>
</strong></p>
<?php if ($this->_tpl_vars['error']): ?>
<div class="errorbox"><?php echo $this->_tpl_vars['error']; ?>
</div>
<br />
<?php endif; ?>
<?php if ($this->_tpl_vars['external']): ?>
<br /><br />
<div align="center">
<?php echo $this->_tpl_vars['code']; ?>

</div>
<br /><br /><br /><br />
<?php else: ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domainemailforwarding">
  <input type="hidden" name="sub" value="save" />
  <input type="hidden" name="domainid" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
  <table class="data" width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
    <tr>
      <th align="center"><strong><?php echo $this->_tpl_vars['LANG']['domainemailforwardingprefix']; ?>
</strong></th>
      <th></th>
      <th align="center"><strong><?php echo $this->_tpl_vars['LANG']['domainemailforwardingforwardto']; ?>
</strong></th>
    </tr>
    <?php $_from = $this->_tpl_vars['emailforwarders']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['emailforwarder']):
?>
    <tr>
      <td><input type="text" name="emailforwarderprefix[<?php echo $this->_tpl_vars['num']; ?>
]" value="<?php echo $this->_tpl_vars['emailforwarder']['prefix']; ?>
" size="15" /></td>
      <td>@<?php echo $this->_tpl_vars['domain']; ?>
 => </td>
      <td><input type="text" name="emailforwarderforwardto[<?php echo $this->_tpl_vars['num']; ?>
]" value="<?php echo $this->_tpl_vars['emailforwarder']['forwardto']; ?>
" size="35" /></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    <tr>
      <td><input type="text" name="emailforwarderprefixnew" size="15" /></td>
      <td>@<?php echo $this->_tpl_vars['domain']; ?>
 => </td>
      <td><input type="text" name="emailforwarderforwardtonew" size="35" /></td>
    </tr>
  </table>
  <p align="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="button" />
  </p>
</form>
<?php endif; ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
?action=domaindetails">
  <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['domainid']; ?>
" />
  <p align="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareabacklink']; ?>
" />
  </p>
</form><br />