define("RUTA_RAIZ","../"); require_once(RUTA_RAIZ."PartesPaginas.php"); include(RUTA_RAIZ."funciones/FuncionesRecursos.php"); /////////////////////////////////////////////////////////////////////////////// //Configuracion de la cabecera (Estilos y JS):::::::::::::::::::::::::::::::::: $MetaTitulo = "Actualidad"; //Javascripts $arrayJs[0] = "niftycube.js"; //CSS $arrayCSS[0] = "niftycorners.css"; $arrayCSS[1] = "estilos.css"; $arrayCSS[2] = "noticias.css"; //Opcion marcada en el menú $SeccMenu = "9"; //GMaps $bGMaps = false; /////////////////////////////////////////////////////////////////////////////// //Obtener la página $strTitulos = ''; $strHtmlFicha = ''; $strHtmlFotoNoticia = ''; $strHtmlFotoGaleria = ''; $strHtmlVideoNoticia = ''; $strHtmlArchivoNoticia = ''; $strHtmlTags = ''; $strHtmlAgregadores = ''; $titleTipoNoticia = ''; ////////////////////////////////////////////////////////// //Recoger parámetros // ////////////////////////////////////////////////////////// $Noticia_ID = intval(parametro("id")); if($Noticia_ID>0){ // Se muestran las noticias que hay en base de datos. $PA = " SELECT tbNoticia.TipoNoticia_ID, tbNoticia.Fecha, "; $PA .= " tbNoticia.Titulo, tbNoticia.Subtitulo, tbNoticia.Texto, tbNoticia.Fuente, tbTipoNoticia.Nombre Tipo "; $PA .= " FROM tbNoticia INNER JOIN tbTipoNoticia ON tbTipoNoticia.TipoNoticia_ID = tbNoticia.TipoNoticia_ID"; $PA .= " WHERE 1 = 1"; $PA .= " AND tbNoticia.bActivo= 1 "; $PA .= " AND tbTipoNoticia.bActivo= 1 "; $PA .= " AND tbNoticia.Noticia_ID = ".$Noticia_ID; $PA .= " LIMIT 1"; $resultado = ExecPA($PA); $NumElementos=mysql_affected_rows(); if($NumElementos>0){ $Fila = 0; // Se obtienen los datos. $TipoNoticia_ID = intval(ValorCelda($resultado, 0, "TipoNoticia_ID")); $FechaInicio = ValorCelda($resultado, 0, "Fecha"); $Titulo = stripslashes(ValorCelda($resultado, 0, "Titulo")); $Subtitulo = stripslashes(ValorCelda($resultado, 0, "Subtitulo")); $Texto = stripslashes(ValorCelda($resultado, 0, "Texto")); $Fuente = stripslashes(ValorCelda($resultado, 0, "Fuente")); $Tipo = stripslashes(ValorCelda($resultado, 0, "Tipo")); $Recursos_Imagenes = SacarRecursos(SECREC_NOTICIA_FOTO,$Noticia_ID); $Recursos_Videos = SacarRecursos(SECREC_NOTICIA_VIDEO,$Noticia_ID); $Recursos_Archivos = SacarRecursos(SECREC_NOTICIA_ARCHIVO,$Noticia_ID); //Componer /* if(strlen($Tipo)>0){ $strTitulos .= "
Tipo: ".$Tipo."
"; }*/ if(strlen($Titulo)>0){ $strTitulos .= ""; if(strlen($Fuente)>0){ $strTitulos .= "".$Fuente." "; } if($FechaInicio!=-1){ $strTitulos .= "".fechaNormalConPuntos($FechaInicio).""; } $strTitulos .= "
"; } if(strlen($Texto)>0){ $Texto = nl2br($Texto); $strHtmlFicha .= "