Código HTML:
 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="5" class="menucde">
<tr>
<td height="18"><strong>Grupo:</strong></td>
          </tr>
          <tr>
            <td height="18"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="8%" height="18" bgcolor="0052a0"> <span class="Estilo2"><strong>Código</strong></span></td>
                <td width="40%" bgcolor="0052a0"><span class="Estilo1">Actividad</span></td>
                <td width="42%" bgcolor="0052a0"><span class="Estilo2"><strong>Descripción</strong></span></td>
                <td width="1%"> </td>
                <td width="9%" bgcolor="ff7171"><div align="center"><input type="checkbox" name="chkinact" id="chkinact<? echo $t;?>" onClick="javascript:All(this.checked, this.id)"></div></td>
              </tr>
              <tr>
            <td>Codigo Actividad</td>
            <td>Nombre Actividad</td>
            <td>Descripcion</td>
            <td> </td>
            <td ><div align="center"> 
                <input name="checkingact<? echo $tact;?>" type="checkbox" id="chkinact<? echo $t;?>">
              </div></td>
          </tr>
          </table></td>
          </tr>
          <tr>
            <td height="18"> </td>
          </tr>
        </table>  
Y las cantidad de checkbox dentro de los grupos es diferente ya que cada grupo no posee la misma cantidad de actividades