<div style="max-height:{$max_height}px; pd4ml-display: inline; overflow:auto;">
    <table class="list">
    {foreach item="persapp" from=$personalappointments}
        {if (($persapp->daytime_to >= $current_time || $persapp->fullday)) || !$no_past}
            <tr id="portlet_current_personalappointments_{$persapp->id}" class="portlettooltip smallbtns" onclick="usComm.loadPage('personalappointmentplaner','index', 'view', {$persapp->id})">
                <td>
                    {if (($persapp->daytime_from <= $current_time) && ($persapp->daytime_to >= $current_time) || $persapp->fullday)}
                        <span class="dialog_make_btn14 bullet_rd">1</span>
                    {else}
                        <span class="dialog_make_btn14 bullet">1</span>
                    {/if}
                    {include file='Calendar/_portlet_tooltip.tpl' id="portlet_current_personalappointments_{$persapp->id}" data=$persapp lang=$i}
                </td>
                <td>{isprivate value=$persapp->is_private title=$i.personalapp_private}</td>
                {if $persapp->fullday}
                    <td></td>
                    <td>{if empty($persapp->summary)}{$persapp->comment|truncate:30}{else}{$persapp->summary|truncate:30}{/if}</td>
                    <td>{$persapp->staff_to_name}</td>
                {else}
                    <td style="white-space: nowrap">{$persapp->daytime_from->format('H:i')} - {$persapp->daytime_to->format('H:i')}</td>
                    <td>{if empty($persapp->summary)}{$persapp->comment|truncate:30}{else}{$persapp->summary|truncate:30}{/if}</td> 
                    <td>{$persapp->staff_to_name}</td>
                {/if}
            </tr>
        {/if}
    {/foreach}
    </table>
</div>