<table class="editablepop" style="width: 100%;  margin-top:10px;">
    <thead>
        <tr>
            <th style="text-align:left;" colspan="7" class="ui-widget-header">{$i.masterdatamanagement_entries_travel}</th>
        </tr>
        {if $stdc_travels_detail}
            <tr>
                <th>{$i.masterdatamanagement_show_date}</th>
                <th>{$i.controlpanel_routes}</th>
                <th>{$i.basic_staff}</th>
                <th>{$i.controlpanel_type}</th>
                <th>{$i.controlpanel_count}</th>
                <th>{$i.controlpanel_cost_per_unit}</th>
                <th>{$i.controlpanel_costs}</th>
            </tr>
        {/if}
    </thead>
    {if $stdc_travels_detail}
        {$sum_travels = 0}
        <tbody>
            {foreach item=field name="index" from=$stdc_travels_detail}
                <tr class="{if $smarty.foreach.index.iteration is even}even{/if}">
                    <td>{$field->date->us_date()}</td>
                    <td>{$field->route}</td>
                    <td>{$field->staff_name}</td>
                    <td>{$field->type}</td>
                    <td style="text-align:right;" class="floatval">{isfloat value=$field->number maxf=2}</td>
                    <td style="text-align:right;" class="floatval">{isfloat value=$field->cost_per_unit maxf=2}</td>
                    {$travels = $field->number * $field->cost_per_unit}
                    {$sum_travels = $sum_travels + $travels}
                    <td style="text-align:right;" class="floatval">{isfloat value=$travels maxf=2}</td>
                </tr>
            {/foreach}
        </tbody>
        <tfoot>
            <tr>
                <td colspan="6">{$i.basic_total}</td>
                <td style="text-align:right;" class="floatval">{isfloat value=$sum_travels maxf=2}</td>
            </tr>
        </tfoot>
    {/if}
</table>