     <table width="100%"  border="0" cellspacing="1" cellpadding="1">
      <tr>
        <td class="verddeu"><p><img src="img/titol4.gif" width="465" height="27"></p></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="31%" bgcolor="#EEEFF1" class="docegrana"><a href="inicio.php?page=event1"><div class="docegrana"><img src="img/icon.gif" width="12" height="8" border="0">&Uacute;ltims actes</div></a></td>
            <td width="20%" bgcolor="#EEEFF1" class="docegrana">&nbsp;</td>
            <td width="26%" bgcolor="#EEEFF1" class="docegrana">&nbsp;</td>
            <td width="23%" bgcolor="#EEEFF1" class="docegrana"><a href="inicio.php?page=event1">Mes activitats&gt;&gt; </a></td>
          </tr>
          <tr>
            <td colspan="4" valign="top"><table width="100%" cellpadding="2" cellspacing="2" class="tabbajo">
<?php
  if($grupo!="") {
    $result=mysql_query("select * from groups where tipo='evento' and estado='1' and id='".$grupo."'",$link);
    $row=mysql_fetch_array($result);
?>
              <tr>
                <td colspan="3" class="verddeu"><div align="center"><strong><?php echo $row["titulo"]; ?></strong></div></td>
              </tr>
              <tr>
                <td colspan="3" class="verddeu"><div align="justify"><?php echo $row["descripcion"]; ?></div></td>
              </tr>
<?php
    mysql_free_result($result);
  }
?>
              <tr>
                <td width="33%" valign="top" class="verddeu"><p align="justify"><a href="javascript:history.back();">&lt;&lt;Tornar</a></p></td>
                <td width="33%" valign="top" class="verddeu"></td>
                <td width="33%" valign="top" class="verddeu"></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="364" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" class="tabbajo"><tr><td class="verddeu">
<br>
<?php
  $months = array('GENER', 'FEBRER', 'MAR&Ccedil;', 'ABRIL', 'MAIG', 'JUNY', 'JULIOL', 'AGOST', 'SETEMBRE', 'OCTUBRE', 'NOVEMBRE', 'DESEMBRE');
  $result=mysql_query("select * from events where estado='1' and (tipo_contenido='2' or tipo_contenido='".$current_valid."') and grupo='".$grupo."' order by fecha",$link);
  $lastmonth=-1;
  while($row=mysql_fetch_array($result)) {
    $curmonth=substr($row["fecha"],5,2);
    if($curmonth!=$lastmonth) {
      $lastmonth=$curmonth;
?>
  <div class="verddeu">&nbsp;&nbsp;<strong><?php echo $months[$curmonth-1]; ?></strong></div>
  </td></tr></table>
  <table width="100%" cellpadding="0" cellspacing="0" class="tabbajo"><tr><td class="verddeu">
  <br>
<?php
    }
?>
        <table width="100%"  border="0" cellpadding="1" cellspacing="1" bgcolor="#EEEFF1">
          <tr>
            <td width="99%" height="19"><a href="inicio.php?page=event2&id=<?php echo $row["id"]; ?>"><span class="docegrana"><img src="img/icon4.gif" width="12" height="8" border="0"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><?php echo string_date($row["fecha"]); ?></font> - <strong><?php echo $row["titulo"]; ?></strong></span></a></td>
            <td nowrap width="1%"><a href="inicio.php?page=event2&id=<?php echo $row["id"]; ?>" class="verddeu">llegir mes</a></td>
          </tr>
        </table>
          <br>
<?php
  }
  mysql_free_result($result);
?>
          <a href="javascript:history.back();" class="verddeu">&lt;&lt;Tornar</a>
  </td></tr></table>
</td>
      </tr>
    </table>
