<div style="max-height:220px; pd4ml-display: inline; overflow:auto;">
    <table class="list dashed">
        <thead>
            <tr>
                <td></td>
                <td>{$i.portlet_last_time}</td>
                <td title="{$i.work_input_overtime} {$i.work_input_overtime_absent_full_day1} {$i.work_input_overtime_storage}">{$i.work_input_overtime_absent_full_day}</td>
                <td>{$i.portlet_last_login}</td>
                <td>{$i.basic_active}</td>
                <td>{$i.basic_staff}</td>
            </tr>
        </thead>
        <tbody>
        {foreach item="max_date" from=$max_dates}
            <tr class="smallbtns"
                {if $has_right_staffadmin}class="smallbtns" onclick="usComm.loadPage('staffadmin','index', 'view', {$max_date->staff_id})"{/if}>
                <td style="width:1px">
                    <span class="dialog_make_btn14 bullet">1</span>
                </td>
                <td>{$max_date->max_date->us_date()}</td>
                <td title="{$i.work_input_overtime} {$i.work_input_overtime_absent_full_day1} {$i.work_input_overtime_storage}">{$max_date->last_overtime->us_date()}</td>
                <td>{$max_date->last_login->us_date_time()}</td>
                <td>
                    {if !$max_date->active_last_login->is_null()}
                    <span class="dialog_make_btn16 ok ui-corner-all"></span> {$max_date->active_last_login->us_date_time()}
                    {/if}
                </td>
                <td>{$max_date->staff_name}</td>
            </tr>
        {/foreach}
        </tbody>
    </table>
</div>