{if $itemcount > 0}
<table cellspacing="0" class="pagetable">
    <thead>
    <tr>
        <th>{$title_text}</th>
        <th>{$start_date_text}</th>
        <th>{$end_date_text}</th>
        <th>{$registrations_text}</th>
    </tr>
    </thead>
    <tbody>
    
    {foreach from=$items item=entry}
    {if $cycle == 'row1'}
        {assign var='cycle' value='row2'}
    {else}
        {assign var='cycle' value='row1'}
    {/if}
    
    {if $entry->show_action_title}
    <tr class="{$cycle}" onmouseover="this.className='{$cycle}hover';" onmouseout="this.className='{$cycle}';">
        <td><b>{$entry->action_title}</b></td>
        <td><b>{$entry->action_start_date}</b></td>
        <td><b>{$entry->action_end_date}</b></td>
        <td><b>{$entry->action_count}</b></td>  
    </tr>
        {if $cycle == 'row1'}
            {assign var='cycle' value='row2'}
        {else}
            {assign var='cycle' value='row1'}
        {/if}
    {/if}
    
    <tr class="{$cycle}" onmouseover="this.className='{$cycle}hover';" onmouseout="this.className='{$cycle}';">
        <td>{$entry->period_title}</td>
        <td>{$entry->period_start_date}</td>
        <td>{$entry->period_end_date}</td>
        <td>{$entry->period_count}</td>    
   </tr>
   {/foreach}
   </tbody>
</table>
{/if}
