<div>
    {$lang_reallocate}
</div>

<div>
    <br />
    {if count($suggestions) > 0}    
        {$i.inoutbox_reallocate_2}
        <br /><br />
        <table>
            <tr>
                <th>&nbsp;</th>
                <th>{$i.inoutbox_date}</th>
                <th>{$i.inoutbox_subject}</th>
                <th>{$i.inoutbox_sender}</th>
                <th>{$i.inoutbox_recipient}</th>
            </tr>
        {foreach from=$suggestions item="suggestion"}
            <tr>
                <td>
                    <span style="cursor: pointer" onclick="mailinoutbox.reallocate_eml({$in_or_outbox}, {$in_or_outbox_id}, {$suggestion->email_cache_id});" class="dialog_make_btn16 ok mobile_big ui-corner-all" title="{$i.inoutbox_reallocate}"></span>
                </td>
                <td>{$suggestion->date->us_date()}</td>
                <td>{$suggestion->subject_utf8}</td>
                <td>{$suggestion->from_cleaned|escape:"html"}</td>
                <td>{$suggestion->to_cleaned|escape:"html"}</td>
            </tr>
        {/foreach}
        </table>
    {else}
        {$i.inoutbox_reallocate_3}
    {/if}
    <br />
    <a class="dialog_make_text_btn ui-corner-all" onclick="mailinoutbox.give_up_eml_import({$in_or_outbox}, {$in_or_outbox_id});"><span style="display: inline-block; float:left; margin-right:10px;" class="ui-corner-all smallbtns dialog_make_btn16 delete"></span><span style="display: inline-block;">{$i.inoutbox_give_up_eml_download}</span></a>
</div>