
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
    <td class="subnavback" width="100%"><div align="center">{$dates}</div></td>
    <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
<tr>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="100%"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
<tr class="tab">






  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="tab" Valign="top">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr class="tab"><td class="tab" colspan="4">&nbsp;</td></tr>	
			{assign var=firstline value="true"}
			{section name=monat loop=$cm}
			{if $firstline=="false"}
			<tr>
				<td class="category" width="2" colspan=4><img src="{$imgpathmaster}/space.gif" width="2" height="1"></td>
			</tr>
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
			{/if}
			{assign var=firstline value="false"}
			<tr class="tab">
				<td class="tab" width="10"><img src="{$imgpathmaster}/space.gif" width="10" height="1"></td>
				<td valign="top" class="tab" ALIGN="left" nowrap>{$cm[monat].date}&nbsp;</td>
				<td class="tab" width="10"><img src="{$imgpathmaster}/space.gif" width="10" height="1"></td>
				<td valign="top" class="tab" ALIGN="left" width="100%">{$cm[monat].subject|smarty:nodefaults|truncate:100:"..."}&nbsp;</td>
			</tr>
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
			{/section}
		</table>  
		
		{if $appt_subj_to_me == "" && $appt_subj_by_me == "" && $cm == ""}
		<table border="0" cellpadding="0" cellspacing="0">
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
			<tr class="tab">
				<td class="tab" width="10"><img src="{$imgpathmaster}/space.gif" width="10" height="1"></td>
				<td valign="top" class="tab" ALIGN="left" colspan="3" width="100%" nowrap>{$no_appt_today|smarty:nodefaults}&nbsp;</td>
			</tr>
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
		</table>
		{/if}
		
		{if ($appt_subj_to_me != "" || $appt_subj_by_me != "") && $cm != ""}
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td class="category" width="100%"  height="1" colspan=4><img src="{$imgpathmaster}/space.gif" width="2" height="1"></td>
		</tr>
		<tr class="tab"><td class="tab" colspan="4">&nbsp;</td></tr>
		</table>
		{/if}
		
		{if $appt_subj_by_me != ""}
		<table border="0" cellpadding="0" cellspacing="0">
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
			<tr class="tab">
				<td class="tab" width="10"><img src="{$imgpathmaster}/space.gif" width="10" height="1"></td>
				<td valign="top" class="tab" ALIGN="left" colspan="3" width="100%" >{$appt_subj_by_me|smarty:nodefaults}&nbsp;</td>
			</tr>
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
		</table>
		{/if}
		
		{if $appt_subj_to_me != ""}
		<table border="0" cellpadding="0" cellspacing="0">
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
			<tr class="tab">
				<td class="tab" width="10"><img src="{$imgpathmaster}/space.gif" width="10" height="1"></td>
				<td valign="top" class="tab" ALIGN="left" colspan="3" width="100%" >{$appt_subj_to_me|smarty:nodefaults}&nbsp;</td>
			</tr>
			<tr class="tab">
				<td class="tab" height="5"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
			</tr>
		</table>
		{/if}
		
	</td>
	<td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
<tr>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
  <td class="category" width="1"><img src="{$imgpathmaster}/space.gif" width="1" height="1"></td>
</tr>
</table>
