<tr class="tab" align="center">
  <td class="tab"  width="150" height="20" align="center"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r1|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td class="tab" width="90" STYLE="background-color:{$bg_klass2};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r2|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass3};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r3|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass4};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r4|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass5};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r5|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass6};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r6|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass7};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r7|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  <td class="tab" width="90" STYLE="background-color:{$bg_klass8};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" />{$r8|smarty:nodefaults}&nbsp;</td>
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
</tr>
<tr class="tab">
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {if $r2==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass2};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r3==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass3};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r4==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass4};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r5==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass5};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r6==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass6};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r7==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass7};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
  {if $r8==""}
  <td colspan="2" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  {else}
  <td class="tab"  width="90" height="1" align="center" STYLE="background-color:{$bg_klass8};"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>	
  <td width="1" class="lines"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  {/if}
</tr>