{if isset($is_q_plan) && $is_q_plan === true}
    {include file='r_forms/editable_popform.tpl' id="mailoutbox" type="form"}
            {include file='Mailinoutbox/edit_popform_outbox.tpl'}
        </div>
    </form>   
{/if}

{include file='r_forms/filter_main.tpl' form_class="no_update_defaults"}

{include file='r/hidden.tpl' name="mailoutbox_order_by" default=$basic_filter.global.order_by}
{include file='r/hidden.tpl' name="mailoutbox_order_by_dir" default=$basic_filter.global.order_by_dir}
{include file='r/hidden.tpl' name="mailoutbox_page" default="1"}
{include file='r/hidden.tpl' name="mailoutbox_mode" default="1"}

<div id='filter_mailoutbox_bcc' style='display:none'>
    {include file='r_forms/filter_main.tpl' basic_filter=$bcc_filter}
</div>