<table class="editablepop" style="width: 100%;  margin-top:10px;">
    <thead>
        <tr>
            <th style="text-align:left;" colspan="4" class="ui-widget-header">
                <a class="dialog_make_btn16 fees ui-corner-all"
                   onclick="usComm.windowOpen(this.href);
                           return false;"
                   title="{$i.controlpanel_start_honorar_modul}"
                   href="{site_url url="start/open/feeadmin/index/`$xjxcookie`/index_filter_project/p_`$value_project[0]->project_id`"}">
                </a> {$i.controlpanel_fees_planned_debit}
            </th>
        </tr>
        {if $honorarnoten_gepl_all}
            <tr>
                <th>{$i.masterdatamanagement_show_date}</th>
                <th>{$i.controlpanel_purpose}</th>
                <th>{$i.masterdatamanagement_address}</th>
                <th>{$i.controlpanel_value}</th>
            </tr>
        {/if}
    </thead>
    {if $honorarnoten_gepl_all}
        <tbody>
            {foreach item=field name="index" from=$honorarnoten_gepl_all}
                <tr class="{if $smarty.foreach.index.iteration is even}even{/if}">
                    <td>{$field->fee_date->us_date()}</td>
                    <td>{$field->purpose}</td>
                    <td>{$field->address_name}</td>
                    <td style="text-align:right;" class="floatval">{isfloat value=$field->value maxf=2}</td>
                </tr>
            {/foreach}
        </tbody>
        <tfoot>
            <tr>
                <td colspan="3">{$i.basic_total}</td>
                <td style="text-align:right;" class="floatval">{isfloat value=$geplante_honorare_sum maxf=2}</td>
            </tr>
        </tfoot>
    {/if}
</table>
