<!--Start pical_coming_schedule-->
<{if $block.num_rows == 0}>
<p><{$block.lang_PICAL_MB_NOEVENT}></p>
<{/if}>
  <ul class='piCalComingBlock'>
    <{foreach item=event from=$block.events}>
      <li>
        <{if $event.distance == 0}>
          <img src='<{$block.images_url}>/<{$event.dot_gif}>' alt='Event' /><{$block.lang_PICAL_MB_CONTINUING}> - <{$event.end_desc}>
        <{elseif $event.distance == 1}>
          <img src='<{$block.images_url}>/<{$event.dot_gif}>' alt='Event' /><{$event.start_desc}> - <{$event.end_desc}>
        <{elseif $event.distance == 2}>
          <img src='<{$block.images_url}>/<{$event.dot_gif}>' alt='Event' /><{$event.start_desc}>
        <{else}>
          <img src='<{$block.images_url}>/<{$event.dot_gif}>' alt='Event' /><{$event.start_desc}>
        <{/if}>
        <a href='<{$block.get_target}>?smode=Daily&amp;action=View&amp;event_id=<{$event.id}>&amp;caldate=<{$block.caldate}>' class='calsummary'><{$event.summary}></a>
      </li>
    <{/foreach}>
  </ul>

  <{if $block.num_rows_rest > 0}>
    <p class='picalInfo'><{$block.lang_PICAL_MB_RESTEVENT_PRE}> <{$block.num_rows_rest}> <{$block.lang_PICAL_MB_RESTEVENT_SUF}></p>
  <{/if}>

  <{if $block.insertable <> false}>
    <p class='piCalAdd'><a href='<{$block.get_target}>?smode=Daily&amp;action=Edit&amp;caldate=<{$block.caldate}>'><img src='<{$block.images_url}>/addevent.gif' width='14' height='12' /><{$block.lang_PICAL_MB_ADDEVENT}></a></p>
  <{/if}>
<!--End pical_coming_schedule-->