<table class="list">
{foreach item="persapp" from=$personalappointments}
    {if (($persapp->daytime_to >= $current_time || $persapp->fullday)) || !$no_past}
        <tr id="portlet_next_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 && ($persapp->daytime_to <= $current_time)))}
                            <span class="dialog_make_btn14 bullet_rd">1</span>
                        {else}
                            <span class="dialog_make_btn14 bullet">1</span>
                        {/if}
            </td>
            <td>{isprivate value=$persapp->is_private title=$i.personalapp_private}</td>
            <td style="width:10px">
                {$persapp->date->us_date()}
                {include file='Calendar/_portlet_tooltip.tpl' id="portlet_next_personalappointments_{$persapp->id}" data=$persapp lang=$i}
            </td>
            {if $persapp->fullday}
                <td colspan="2" style="width:100%">{if empty($persapp->summary)}{$persapp->comment|truncate:80}{else}{$persapp->summary|truncate:80}{/if}</td>
            {else}
                <td style="width:100%">{if empty($persapp->summary)}{$persapp->comment|truncate:80}{else}{$persapp->summary|truncate:80}{/if}</td>
                <td style="text-align:right; white-space: nowrap">{$persapp->daytime_from->format('H:i')} - {$persapp->daytime_to->format('H:i')}</td>
            {/if}
        </tr>
    {/if}
{/foreach}
</table>