{if $target}
    {$target_string =", '`$target`'"}
{else}
    {$target_string =", undefined"}
{/if}

{if $connection_data}
    {$connection_data_string =", '`$connection_data`'"}
{else}
    {$connection_data_string =", undefined"}
{/if}



<div id ="mbox_select_breadcrumbs">
    {assign var='mboxstring' value=''}
    {assign var='a_current_mbox' value=explode($mbox_delimiter,$current_mbox)}
    <a class="dialog_make_text_btn ui-corner-all" onclick="basicForm.email_filter.update_mbox_select({$current_account_id}, {$current_imap_in_out_value}, '', true {$target_string} {$connection_data_string});">..</a>
    {foreach from=$a_current_mbox item="item" name="current_mboxes"}
        {assign var='mboxstring' value="$mboxstring$item"}
        {$mbox_delimiter}
        {if empty($item) === false}
        <a class="dialog_make_text_btn ui-corner-all" onclick="basicForm.email_filter.update_mbox_select({$current_account_id}, {$current_imap_in_out_value}, '{$mboxstring}', true {$target_string} {$connection_data_string});">
        {$item}
        </a>
        {/if}
        {if $smarty.foreach.current_mboxes.last == FALSE}{assign var='mboxstring' value="$mboxstring$mbox_delimiter"}{/if}
    {/foreach}
</div>

<div class ="mbox_select_mboxes" style="margin-top:15px">
    {if count($mboxes) > 0}    
        {foreach from=$mboxes item="item"}
            {assign var='a_x' value=explode($mbox_delimiter,$item)}
            {assign var='a_x_count' value=count($a_x)-1}
            {if $target}
                <span class="dialog_make_btn16 ok smallbtns ui-corner-all" onclick="basicForm.email_filter.select_mbox('{$item}', '{$target}');"></span>
            {else}
                <span class="dialog_make_btn16 ok smallbtns ui-corner-all" onclick="basicForm.email_filter.select_mbox('{$item}');"></span>
            {/if}
            <a class="dialog_make_text_btn ui-corner-all" onclick="basicForm.email_filter.update_mbox_select({$current_account_id}, {$current_imap_in_out_value}, '{$item}', true {$target_string} {$connection_data_string});">
            {$a_x.$a_x_count}
            </a>
            <br />
        {/foreach}
    {else}
        KEINE WEITEREN MAILBOXEN
    {/if}
</div>