<?php
/* Smarty version 3.1.33, created on 2023-04-28 15:53:19
  from '/data/www/PostfixAdmin/templates/list-virtual.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_644b7b6fa223f5_94220977',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1f4524fd333585484b25c80db279d22da172b950' => 
    array (
      0 => '/data/www/PostfixAdmin/templates/list-virtual.tpl',
      1 => 1614889642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:list-virtual_alias_domain.tpl' => 1,
    'file:list-virtual_alias.tpl' => 1,
    'file:list-virtual_mailbox.tpl' => 1,
  ),
),false)) {
function content_644b7b6fa223f5_94220977 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/data/www/PostfixAdmin/lib/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
$_smarty_tpl->_assignInScope('file', $_smarty_tpl->smarty->ext->configload->_getConfigVariable($_smarty_tpl, 'url_list_virtual'));?>
<div id="overview" class="panel panel-default">
    <div class="panel-heading">
        <div class="row">
            <div class="col-md-5">
                <form name="frmOverview" method="get" action="<?php echo $_smarty_tpl->smarty->ext->configload->_getConfigVariable($_smarty_tpl, 'url_list_virtual');?>
">
                    <?php echo smarty_function_html_options(array('name'=>'domain','class'=>'form-control','output'=>$_smarty_tpl->tpl_vars['domain_list']->value,'values'=>$_smarty_tpl->tpl_vars['domain_list']->value,'selected'=>$_smarty_tpl->tpl_vars['domain_selected']->value,'onchange'=>"this.form.submit();"),$_smarty_tpl);?>

                    <input type="hidden" name="limit" value="0"/>
                    <noscript><input class="button" type="submit" name="go" value="<?php echo $_smarty_tpl->tpl_vars['PALANG']->value['go'];?>
"/></noscript>
                </form>
            </div>
            <div class="col-md-5 col-md-offset-2 text-right"><?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'form_search');?>
</div>
        </div>
    </div>
    <div class="panel-body">
        <div class="text-center">
            <?php if (isset($_smarty_tpl->tpl_vars['search']->value['_'])) {?>
                <h4><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pSearch_welcome'];?>
 <?php echo $_smarty_tpl->tpl_vars['search']->value['_'];?>
</h4>
            <?php } else { ?>
                <h4><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_welcome'];
echo $_smarty_tpl->tpl_vars['fDomain']->value;?>
 :</h4>
                <ul>
                    <li><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['aliases'];?>
: <?php echo $_smarty_tpl->tpl_vars['limit']->value['alias_count'];?>
 / <?php echo $_smarty_tpl->tpl_vars['limit']->value['aliases'];?>
</li>
                    <li><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['mailboxes'];?>
: <?php echo $_smarty_tpl->tpl_vars['limit']->value['mailbox_count'];?>
 / <?php echo $_smarty_tpl->tpl_vars['limit']->value['mailboxes'];?>
</li>
                </ul>
            <?php }?>
        </div>
        <hr/>
        <div class="row">
            <div class="col-md-12 text-center"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['show'];?>

                <?php if (isset($_smarty_tpl->tpl_vars['search']->value['_'])) {?>
                    <?php $_smarty_tpl->_assignInScope('searchsuffix', "&search[_]=".((string)$_smarty_tpl->tpl_vars['search']->value['_']));?>
                <?php } else { ?>
                    <?php $_smarty_tpl->_assignInScope('searchsuffix', '');?>
                <?php }?>

                <?php if ($_smarty_tpl->tpl_vars['tab']->value == 'all') {?><span class='active'><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['all'];?>
</span>
                <?php } else { ?><a href="?domain=<?php echo $_GET['domain'];?>
&amp;tab=all<?php echo $_smarty_tpl->tpl_vars['searchsuffix']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['all'];?>
</a><?php }?>
                <?php if ($_smarty_tpl->tpl_vars['tab']->value == 'mailbox') {?><span class='active'><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_mailbox_title'];?>
</span>
                <?php } else { ?><a
                    href="?domain=<?php echo $_GET['domain'];?>
&amp;tab=mailbox<?php echo $_smarty_tpl->tpl_vars['searchsuffix']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_mailbox_title'];?>
</a><?php }?>
                <?php if ($_smarty_tpl->tpl_vars['tab']->value == 'alias') {?><span class='active'><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_alias_title'];?>
</span>
                <?php } else { ?><a
                    href="?domain=<?php echo $_GET['domain'];?>
&amp;tab=alias<?php echo $_smarty_tpl->tpl_vars['searchsuffix']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_alias_title'];?>
</a><?php }?>
                <?php if ($_smarty_tpl->tpl_vars['boolconf_alias_domain']->value) {?>
                    <?php if ($_smarty_tpl->tpl_vars['tab']->value == 'alias_domain') {?><span class='active'><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_alias_domain_title'];?>
</span>
                    <?php } else { ?><a
                        href="?domain=<?php echo $_GET['domain'];?>
&amp;tab=alias_domain<?php echo $_smarty_tpl->tpl_vars['searchsuffix']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_alias_domain_title'];?>
</a><?php }?>
                <?php }?>
            </div>
        </div>
    </div>
</div>
<div class="clearfix"></div><br/>
<?php if ($_smarty_tpl->tpl_vars['boolconf_alias_domain']->value) {?>
    <?php if ($_smarty_tpl->tpl_vars['tab']->value == 'alias_domain' || $_smarty_tpl->tpl_vars['tab']->value == 'all') {?>
        <?php $_smarty_tpl->_subTemplateRender("file:list-virtual_alias_domain.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
    <?php }
}
if ($_smarty_tpl->tpl_vars['tab']->value == 'all') {?>
    <div class="clearfix"></div>
    <br/>
<?php }
if ($_smarty_tpl->tpl_vars['tab']->value == 'alias' || $_smarty_tpl->tpl_vars['tab']->value == 'all') {?>
    <?php echo $_smarty_tpl->tpl_vars['nav_bar_alias']->value['top'];?>

    <?php $_smarty_tpl->_subTemplateRender("file:list-virtual_alias.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
    <?php echo $_smarty_tpl->tpl_vars['nav_bar_alias']->value['bottom'];?>

<?php }
if ($_smarty_tpl->tpl_vars['tab']->value == 'all') {?>
    <div class="clearfix"></div>
    <br/>
<?php }
if ($_smarty_tpl->tpl_vars['tab']->value == 'mailbox' || $_smarty_tpl->tpl_vars['tab']->value == 'all') {?>
    <div id="overview" class="panel panel-default">
        <?php echo $_smarty_tpl->tpl_vars['nav_bar_mailbox']->value['top'];?>

        <?php $_smarty_tpl->_assignInScope('colspan', 9);?>
        <?php if ($_smarty_tpl->tpl_vars['CONF']->value['vacation_control_admin'] === 'YES') {
$_smarty_tpl->_assignInScope('colspan', ((string)($_smarty_tpl->tpl_vars['colspan']->value+1)));
}?>
        <?php if ($_smarty_tpl->tpl_vars['CONF']->value['alias_control_admin'] === 'YES') {
$_smarty_tpl->_assignInScope('colspan', ((string)($_smarty_tpl->tpl_vars['colspan']->value+1)));
}?>
        <table class="table table-hover" id="mailbox_table">
            <thead>
            <tr>
                <th style="text-align:center;" colspan="<?php echo $_smarty_tpl->tpl_vars['colspan']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pOverview_mailbox_title'];?>
</th>
            </tr>
            </thead>
            <?php if ($_smarty_tpl->tpl_vars['tMailbox']->value) {?>
            <?php $_smarty_tpl->_subTemplateRender("file:list-virtual_mailbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
            <?php } else { ?></table>
        <?php }?>
        <div class="panel-footer">
            <div class="btn-toolbar" role="toolbar">
                <div class="btn-group pull-right">
                    <?php echo $_smarty_tpl->tpl_vars['nav_bar_mailbox']->value['bottom'];?>

                    <?php if ($_smarty_tpl->tpl_vars['tCanAddMailbox']->value) {?>
                        <a href="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'url_create_mailbox');?>
&amp;domain=<?php echo rawurlencode($_smarty_tpl->tpl_vars['fDomain']->value);?>
" role="button"
                           class="btn btn-default"><span class="glyphicon glyphicon-plus-sign"
                                                         aria-hidden="true"></span> <?php echo $_smarty_tpl->tpl_vars['PALANG']->value['add_mailbox'];?>
</a>
                    <?php }?>
                    <a role="button" class="btn btn-default" href="list.php?table=mailbox&amp;output=csv&amp;domain=<?php echo $_smarty_tpl->tpl_vars['domain_selected']->value;?>
"><span
                                class="glyphicon glyphicon-export" aria-hidden="true"></span> <?php echo $_smarty_tpl->tpl_vars['PALANG']->value['download_csv'];?>
</a>
                </div>
            </div>
        </div>
    </div>
<?php }
if ($_smarty_tpl->tpl_vars['CONF']->value['show_status'] === 'YES' && $_smarty_tpl->tpl_vars['CONF']->value['show_status_key'] === 'YES') {?>
    <br/>
    <br/>
    <?php if ($_smarty_tpl->tpl_vars['CONF']->value['show_undeliverable'] === 'YES') {?>
        &nbsp;
        <span style='background-color:<?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_undeliverable_color'];?>
;'><?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_status_text'];?>
</span>
        =<?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pStatus_undeliverable'];?>

    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['CONF']->value['show_popimap'] === 'YES') {?>
        &nbsp;
        <span style='background-color:<?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_popimap_color'];?>
;'><?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_status_text'];?>
</span>
        =<?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pStatus_popimap'];?>

    <?php }?>
    <?php if (count($_smarty_tpl->tpl_vars['CONF']->value['show_custom_domains']) > 0) {?>
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['CONF']->value['show_custom_domains'], 'item', false, 'i');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['item']->value) {
?>
            &nbsp;
            <span style='background-color:<?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_custom_colors'][$_smarty_tpl->tpl_vars['i']->value];?>
;'><?php echo $_smarty_tpl->tpl_vars['CONF']->value['show_status_text'];?>
</span>
            =<?php echo $_smarty_tpl->tpl_vars['PALANG']->value['pStatus_custom'];
echo $_smarty_tpl->tpl_vars['item']->value;?>

        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    <?php }
}
}
}
