<?php
/* Smarty version 3.1.29, created on 2021-07-02 14:45:57
  from "/home/achahost/public_html/account/templates/Five/clientareadomainemailforwarding.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_60df26a5df1571_03154900',
  'file_dependency' => 
  array (
    '85b5ca4e4227ed908f1d6d8c0892aeb160470d91' => 
    array (
      0 => '/home/achahost/public_html/account/templates/Five/clientareadomainemailforwarding.tpl',
      1 => 1499437492,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_60df26a5df1571_03154900 ($_smarty_tpl) {
?>
<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainemailforwarding'];?>
</h3>

<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"info",'msg'=>$_smarty_tpl->tpl_vars['LANG']->value['domainemailforwardingdesc']), 0, true);
?>


<?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, ((string)$_smarty_tpl->tpl_vars['template']->value)."/includes/alert.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('type'=>"error",'msg'=>$_smarty_tpl->tpl_vars['error']->value), 0, true);
?>

<?php }?>

<?php if ($_smarty_tpl->tpl_vars['external']->value) {?>

    <br />
    <br />
    <div class="text-center">
        <?php echo $_smarty_tpl->tpl_vars['code']->value;?>

    </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 $_smarty_tpl->tpl_vars['domainid']->value;?>
" />

        <table class="table table-striped">
            <thead>
                <tr>
                    <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainemailforwardingprefix'];?>
</th>
                    <th></th>
                    <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['domainemailforwardingforwardto'];?>
</th>
                </tr>
            </thead>
            <tbody>
                <?php
$_from = $_smarty_tpl->tpl_vars['emailforwarders']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_emailforwarder_0_saved_item = isset($_smarty_tpl->tpl_vars['emailforwarder']) ? $_smarty_tpl->tpl_vars['emailforwarder'] : false;
$__foreach_emailforwarder_0_saved_key = isset($_smarty_tpl->tpl_vars['num']) ? $_smarty_tpl->tpl_vars['num'] : false;
$_smarty_tpl->tpl_vars['emailforwarder'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['emailforwarder']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['num']->value => $_smarty_tpl->tpl_vars['emailforwarder']->value) {
$_smarty_tpl->tpl_vars['emailforwarder']->_loop = true;
$__foreach_emailforwarder_0_saved_local_item = $_smarty_tpl->tpl_vars['emailforwarder'];
?>
                <tr>
                    <td><input type="text" name="emailforwarderprefix[<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['emailforwarder']->value['prefix'];?>
" class="form-control" /></td>
                    <td class="text-center">@<?php echo $_smarty_tpl->tpl_vars['domain']->value;?>
 => </td>
                    <td><input type="text" name="emailforwarderforwardto[<?php echo $_smarty_tpl->tpl_vars['num']->value;?>
]" value="<?php echo $_smarty_tpl->tpl_vars['emailforwarder']->value['forwardto'];?>
" class="form-control" /></td>
                </tr>
                <?php
$_smarty_tpl->tpl_vars['emailforwarder'] = $__foreach_emailforwarder_0_saved_local_item;
}
if ($__foreach_emailforwarder_0_saved_item) {
$_smarty_tpl->tpl_vars['emailforwarder'] = $__foreach_emailforwarder_0_saved_item;
}
if ($__foreach_emailforwarder_0_saved_key) {
$_smarty_tpl->tpl_vars['num'] = $__foreach_emailforwarder_0_saved_key;
}
?>
                <tr>
                    <td><input type="text" name="emailforwarderprefixnew" class="form-control" /></td>
                    <td class="text-center">@<?php echo $_smarty_tpl->tpl_vars['domain']->value;?>
 => </td>
                    <td><input type="text" name="emailforwarderforwardtonew" class="form-control" /></td>
                </tr>
            </tbody>
        </table>

        <p class="text-center">
            <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareasavechanges'];?>
" class="btn btn-primary" /> <input type="reset" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['clientareacancel'];?>
" class="btn btn-default" />
        </p>

    </form>

<?php }
}
}
