include("./mantenimiento/includes/config.php");
include("./mantenimiento/includes/conex.php");
include("./mantenimiento/libs/dbaccess_mysql.php");
$id=$_GET['news'];
$sql="SELECT id,DATE_FORMAT(fecha,'%d/%m/%Y') as fecha,titular_en,cabecera_en,cuerpo_en,enlace FROM noticias WHERE id=$id";
if (!$noticia=@GetSqlRow($conn,$sql))
header('Location: press_area.html');
$imagen=" ";
if (file_exists('./mantenimiento/uploads/small_noticia_'.$id.'_1.jpg'))
$imagen='';
$enlace='';
if ($noticia['enlace']){
if(!strpos(','.$noticia['enlace'],'http://')>0){
$noticia['enlace']='http://'.$noticia['enlace'];
}
$enlace='
Enlace relacionado';
}
$adjunto='';
if (file_exists($adj='./mantenimiento/uploads/noticia_'.$id.'_1.pdf'))
$adjunto='
Archivo adjunto';
if (file_exists($adj='./mantenimiento/uploads/noticia_'.$id.'_1.ppt'))
$adjunto='
Archivo adjunto';
if (file_exists($adj='./mantenimiento/uploads/noticia_'.$id.'_1.pps'))
$adjunto='
Archivo adjunto';
if (file_exists($adj='./mantenimiento/uploads/noticia_'.$id.'_1.doc'))
$adjunto='
Archivo adjunto';
?>
|