{if $total_view eq 1}
<fieldset class="borderbottom">
    {include file='r/view.tpl' name="calcexp_externalexpenses_total" title="basic_total" class="t-midsmall" default=$calcexp_externalexpenses_total}
</fieldset>
{/if}

{include file='r_basic/paginate.tpl'
    paginate=$calcexp_externalexpenses_paginate
    tabname="calculateaccordingexpenditure_`$tables_type`_externalexpenses"
    tableconfig_section='calculateaccordingexpenditure_projects'
    tableconfig_xmlfile='Calcexp/table_externalexpenses'
    tableconfig_onsaveaction="calculateaccordingexpenditure_`$tables_type`_externalexpenses.load_new();"}

{include file='Calcexp/table_buttons.tpl' tables_sub='externalexpenses'}
    
{include file='r_forms/tableeditpop.tpl'
    list=$calcexp_externalexpenses_list
    header=$calcexp_externalexpenses_header
    whatview=$calcexp_externalexpenses_whatview
    tabname="calculateaccordingexpenditure_`$tables_type`_externalexpenses"
    group_by=$calcexp_externalexpenses_group_by
    order_by_def=$calcexp_externalexpenses_order_by_def
    order_by_dir_def=$calcexp_externalexpenses_order_by_dir_def
    no_rows_msg=$i.basic_no_result1
    checkbox_action="calculateaccordingexpenditure_`$tables_type`_externalexpenses.change_active"
    hide_edtp_btn=true}

{include file='r_basic/paginate.tpl'
    paginate=$calcexp_externalexpenses_paginate
    hide_select_perpage=TRUE
    tabname="calculateaccordingexpenditure_`$tables_type`_externalexpenses"
    tableconfig_section='calculateaccordingexpenditure_projects'
    tableconfig_xmlfile='Calcexp/table_externalexpenses'
    tableconfig_onsaveaction="calculateaccordingexpenditure_`$tables_type`_externalexpenses.load_new();"}
