{if !is_q_plan()}
    <h2>{$i.projectadmin_view_open_calcexp_for_offer}</h2>
{/if}

<div style="position:relative; padding: 10px 5px 20px 0">
    <table class="editablepop">
        <thead>
            <tr>
                <th>{$i.fees_fee_no}</th>
                <th class="floatval">{$i.fees_value}</th>
                <th>{$i.fees_purpose}</th>
                <th>{$i.fees_reminder_level}</th>
                <th>{$i.fees_address_name}</th>
            </tr>
        </thead>
        <tbody>
            {$sum_value = 0}
            {foreach item=field from=$open_calcexps name=foo}
                {$sum_value = $sum_value + $field->value}
                <tr class="{if $smarty.foreach.foo.index is odd}even{/if}">
                    <td>{$field->fee_no}</td>
                    <td class="floatval">{isfloat value=$field->value maxf=2}</td>
                    <td>{$field->purpose}</td>
                    <td>{$field->reminder_level}</td>
                    <td>{$field->address_name}</td>
                </tr>
            {/foreach}
        </tbody>
        <tfoot>
            <tr>
                <th></th>
                <th class="floatval">{isfloat value=$sum_value maxf=2}</th>
                <th colspan="3"></th>
            </tr>
        </tfoot>
    </table>
    
    {if !is_q_plan()}
        <p>
            <a class="dialog_make_text_btn ui-corner-all" onclick="window.close();">
                <span class="dialog_make_btn16 close ui-corner-all"></span>
                {$i.basic_close}
            </a>                
        </p>
    {/if}
</div>