<?php /* Smarty version 2.6.28, created on 2017-04-05 00:24:01
         compiled from /home/solusito/public_html/templates/eco-net-v3-5/clientareadomainemailforwarding.tpl */ ?>
		<div class="bigheader">
			<h2><?php echo $this->_tpl_vars['LANG']['domainemailforwarding']; ?>
</h2>
		</div><!-- .bigheader --> 

<div class="table-responsive table-grey">
<table>

<tr>
	<td width="20%"><strong><?php echo $this->_tpl_vars['LANG']['domainname']; ?>
</strong></td>
	<td><?php echo $this->_tpl_vars['domain']; ?>
</td>
</tr>

</table>
</div>

<p><?php echo $this->_tpl_vars['LANG']['domainemailforwardingdesc']; ?>
</p>


<?php if ($this->_tpl_vars['error']): ?>
	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['error']; ?>
</p>
		</div>
	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['external']): ?>
	<div class="notice notice-error">
		<div class="inside">
			<p><?php echo $this->_tpl_vars['code']; ?>
</p>
		</div>
	</div>

<?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']; ?>
" />
  
  <div class="table-responsive table-grey">
  <table>
    <tr>
      <th><?php echo $this->_tpl_vars['LANG']['domainemailforwardingprefix']; ?>
</th>
      <th></th>
      <th><?php echo $this->_tpl_vars['LANG']['domainemailforwardingforwardto']; ?>
</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>
  </div>
  
  <p class="center">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareasavechanges']; ?>
" class="button1 color2" />
  </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']; ?>
" />
  <div class="floatleft">
    <input type="submit" value="<?php echo $this->_tpl_vars['LANG']['clientareabacklink']; ?>
" class="button1 color1" />
  </div>
  <div class="clear">&nbsp;</div>
</form>