<?php
  $result=mysql_query("select * from news where id='".$id."' and (tipo_contenido='2' or tipo_contenido='".$current_valid."') and estado='1'",$link);
  $row=mysql_fetch_array($result) or die();
?>   
    <table width="100%"  border="0" cellspacing="1" cellpadding="1">
      <tr>
        <td class="verddeu"><p><img src="img/titol3.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">&nbsp;</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=notis1">Mes noticies &gt;&gt; </a></td>
          </tr>
          <tr>
            <td colspan="4" valign="top"><table width="100%" cellpadding="2" cellspacing="2" class="tabbajo">
              <tr>
                <td width="31%" valign="top" class="verddeu"><p align="justify"><a href="javascript:history.back();">&lt;&lt;Tornar</a></p></td>
                <td width="69%" valign="top" class="verddeu"><div align="left"></div></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="364" valign="top">          <table cellpadding="2" cellspacing="2" class="tabbajo">
            <tr bgcolor="#EEEFF1">
              <td width="76%" valign="top" class="verddeu"><strong><span class="docegrana"><a href="#"><img src="img/icon4.gif" width="12" height="8" border="0"></a></span><?php echo $row["titulo"]; ?></strong></td>
              <td width="24%" valign="top" class="verddeu"><div align="center"><?php echo convert_date($row["fecha"]); ?></div></td>
            </tr>
            <tr>
              <td colspan="2" valign="top" class="verddeu"><p align="justify"><?php echo html_entity_decode($row["resumen"]); ?></p>
                <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                  <tr>
<?php 
  if($row["foto1"]!="") { 
?>
                    <td class="verddeu" width="46%"><div align="center"><a href="javascript:vent('showimage.php?file=<?php echo $row["foto1"]; ?>',300,300)"><img src="../admin/phpthumb/phpThumb.php?src=../files/<?php echo $row["foto1"]; ?>&w=150&h=100" border="0"></a><br><?php echo $row["piefoto1"]; ?></div></td>
<?php
  }
  if($row["foto2"]!="") {
?>
                    <td class="verddeu" width="46%"><div align="center"><a href="javascript:vent('showimage.php?file=<?php echo $row["foto2"]; ?>',300,300)"><img src="../admin/phpthumb/phpThumb.php?src=../files/<?php echo $row["foto2"]; ?>&w=150&h=100" border="0"></a><br><?php echo $row["piefoto2"]; ?></div></td>
<?php
  }
?>
                  </tr>
                </table>                <p align="justify"><?php echo html_entity_decode($row["noticia_ampliada"]); ?></p>
                </td>
              </tr>
          </table>
<?php 
  mysql_free_result($result);
  showextend($id,"noticia");
?>
          <br>
          <a href="javascript:history.back();" class="verddeu">&lt;&lt;Tornar</a></td>
      </tr>
    </table>
