<tr class="tab" align="left">
  <td  class="{$class}" width="20" height="20">&nbsp;</td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  <!-- from -->
  <td  class="{$class}" width="55">{$r1|smarty:nodefaults}&nbsp;</td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  <!-- to -->
  <td  class="{$class}" width="55">{$r2|smarty:nodefaults}&nbsp;</td>
  <!-- one column added for inituser -->
  {if $calendarid eq "all"}
  	<td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  	<td  class="{$class}" width="55">{$r3|smarty:nodefaults}&nbsp;</td>
  {/if}
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  <!-- description -->
  <td  class="{$class}" width="150" STYLE="background-color:{$r4_color};"><B>{$r4_type}</B><BR>{$r4|smarty:nodefaults}&nbsp;</td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  
  <!-- private -->
  <td  class="{$class}"  VALIGN="center" >
  {if $r4_1=="1"} {* 1 => private *} 
	  <a href="javascript:void(0);" onmouseover="return overlib('{$gentemp_private}',FGCOLOR,'#FFFFDF',STATUS,' ');" onmouseout="return nd();">
	  {include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/private.png" imgsrc="$imgpath/private.png"}
	  </a> 
  {else}
  	  &nbsp;
  {/if}
  </td>
  <!-- <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  -->
  <!-- availaibility -->
  <td  class="{$class}"  VALIGN="middle">
  {if $r4_21=="1" && $r4_22!=""} {* available and a telephone number  *}
	  <a href="javascript:void(0);" onmouseover="return overlib('{$gentemp_can_be_disturbed}<br>{$gentemp_telephone} : {$r4_22|escape:javascript}',FGCOLOR,'#FFFFDF',STATUS,' ');" onmouseout="return nd();">
	  {include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/avail.png" imgsrc="$imgpath/avail.png"}
	  </a>
  {else}
  	{if $r4_21=="1" && $r4_22==""} {* available but no telephone number*}
	  	<a href="javascript:void(0);" onmouseover="return overlib('{$gentemp_can_be_disturbed}',FGCOLOR,'#FFFFDF',STATUS,' ');" onmouseout="return nd();">
	  	{include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/avail.png" imgsrc="$imgpath/avail.png"}
	  	</a>
  	{else}
  		{if $r4_21=="0"} {* => not available *}
	  		<a href="javascript:void(0);" onmouseover="return overlib('{$gentemp_can_not_be_disturbed|smarty:nodefaults}',FGCOLOR,'#FFFFDF',STATUS,' ');" onmouseout="return nd();">
		  	{include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/not_avail.png" imgsrc="$imgpath/not_avail.png"}
		  	</a>
  		{else}
			&nbsp;
		{/if}
 	{/if}
  {/if}
  </td>
  <!-- <td  class="{$class}" width="5" VALIGN="middle"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  -->
  <!-- participants -->
  <td class="{$class}"  VALIGN="middle">
  {if $r4_3!=""}
	  <a href="javascript:void(0);" onmouseover="return overlib('{$r4_3|smarty:nodefaults}',CAPTION,'{$temp_participants} :',FGCOLOR,'#FFFFDF',STATUS,' ');" onmouseout="return nd();">
	  {include file="$gentemplates/_img_png.tpl" localimgsrc="$localimgpath/part.png" imgsrc="$imgpath/part.png"}
	  </a>
  {else}
  	&nbsp;
  {/if}
  </td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
     
  
  <!-- city -->
  <td  class="{$class}" width="100"><B>{$r5_type}</B><BR>{$r5|smarty:nodefaults}&nbsp;</td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
  <!-- action -->
  <td  class="{$class}" width="150">{$r6|smarty:nodefaults}&nbsp;</td>
  <td  class="{$class}" width="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />&nbsp;</td>
</tr>
<tr><td height="1" width="1" bgcolor="#ffffff" colspan="20"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
