
<table border="0" class="table table-striped" cellspacing="0">
    <tr class="row0">
        <td colspan="3" class="overviewinfo">[% $user->gettext("Termine werden angezeigt ab") %] [% $dates->_german_date($last) %]</td>
    </tr>
[% foreach from=$overview item=day key=date %]
    <tr>
        <th valign="top">[% $user->gettext($dates->_weekday($date)) %]</th>
        <th valign="top"><a href="[% $action %]&amp;event=day&amp;date=[% $date %]">[% $dates->_day($date) %]. [% $user->gettext($dates->_month($date)) %]</a></th>
        <td width="100%">
            <table width="100%" border="0">
                [% foreach from=$day item=daytime key=time %]
                    [% foreach from=$daytime item=event %]
                        <tr>
                            [% if $event.caleventtype == "Device" %]
                                <td colspan="3" width="100%">
                                    <div class="device" onmouseover="this.className='device_hover'" onmouseout="this.className='device'" onclick="window.location.href='index.php?module=calendar&event=details&id=[% $event.caleventid %]';" style="cursor:pointer;">
                                        <div class="device_img device_[% $event.filename %]"><img src="images/blank.gif" height="48" width="48" alt=""></div>
                                        <div class="device_name">[% $event.hostname %] ([% $event.typename %])</div>
                                        [% $event.domainname %]<br />
                                        <b>[% $user->gettext('Reseviert von:') %]</b> [% $event.name %] ([% $event.username %])                                        
                                    </div>
                                </td>
                            [% else %]
                                <td><span class="[% $event.caleventtype %][% if $event.caleventownerid != $user->UserID && $event.caleventtype == "EventDate" %]guest[% /if %]">&nbsp;</span></td>
                                <td>
                                    [% if $event.caleventtype == "DesireDate" %]
                                        <img src="images/escalation[% $event.escalationlevel %].gif" width="57" height="13" alt="" />
                                    [% else %]
                                        <img src="images/blank.gif" width="57" height="13" alt="" />
                                    [% /if %]
                                </td>
                                <td width="100%">
                                    [% if $event.showevent %]
                                        <a href="[% if $event.caleventtype == "DesireDate" || $event.caleventtype == "DesireDateClosed" || $event.caleventtype == "OnHoldDate" %]index.php?module=ticket&amp;event=show&amp;id=[% $event.caleventid %][% else %][% $action %]&amp;class=event&amp;id=[% $event.caleventid %][% /if %]" class="[% $event.caleventtype %][% if $event.caleventownerid != $user->UserID && $event.caleventtype == "EventDate" %]guest[% /if %] ">[% $event.caleventname %]</a>
                                    [% else %]
                                        &nbsp;
                                    [% /if %]
                                </td>
                            [% /if %]
                        </tr>
                    [% /foreach %]
                [% /foreach %]
            </table>
        </td>
    </tr>
[% foreachelse %]
    <tr class="row1"><td colspan="3" class="overviewempty">[% $user->gettext('Keine Termine im Zeitraum vorhanden') %]</td></tr>
[% /foreach %]
    <tr class="row0">
        <td colspan="3" class="overviewinfo">
            [% $user->gettext("Termine werden angezeigt bis") %] [% $dates->_german_date($next) %]
            <br /><br /><br /><br /><br /><br /><br /><br /><br />
        </td>
    </tr>

</table>