session_start();
include ("mysql.php");
if(isset($_GET['Idi'])){$_SESSION['Idi2']=$_GET['Idi']; $Idi=$_GET['Idi'];}else{$Idi=$_SESSION['Idi2'];}
if (!$Idi)$Idi=1;
$Fichero_idioma="idiomas/".$Dim2[$Idi].".php";
include("$Fichero_idioma");
$loc="noticias";
$Cod_not=addslashes($_REQUEST['Cod_not']);
?>
XXII Rally Isla Mallorca
if($Cod_not){
$qf="SELECT A.Cod_not,B.Titulo,B.Texto, A.Fecha from Noticias A, Noticias_idiomas B where A.Cod_not=B.Cod_not AND B.Codid=$Idi AND A.Cod_not=$Cod_not AND A.Activo='Si'";
//echo($qf);
$resf=mysql_query ($qf,$db);
if (mysql_num_rows($resf)>0) {
$Bann=0;
while ($rowf= mysql_fetch_row ($resf)) {
$Bann++;
$Cod_not2=$rowf[0];
$Titulo_not=stripslashes($rowf[1]);
$Texto=stripslashes($rowf[2]);
$Fecha=fechaformat($rowf[3]);
$Texto=str_replace("[N]","",$Texto);
$Texto=str_replace("[/N]"," ",$Texto);
$Texto=str_replace("[C]","",$Texto);
$Texto=str_replace("[/C]"," ",$Texto);
$Texto=str_replace("[A]","",$Texto);
$Texto=str_replace("[URL]","href=\"",$Texto);
$Texto=str_replace("[/URL]","\" target=\"_blank\">",$Texto);
$qf="select A.Foto,B.Titulo from Imagen A, Imagen_idiomas B where A.Foto!='' AND A.Foto!='Nofoto' AND A.Cod_img=B.Cod_img AND B.Codid=$Idi AND A.Cod_not=$Cod_not2 AND A.Activo='Si' AND A.Orden=1";
//echo($qf);
$resf=mysql_query ($qf,$db);
$Tot_img=mysql_num_rows($resf);
if (mysql_num_rows($resf)>0) {$Ban=0;
if($Tot_img==1){
$rowf= mysql_fetch_row ($resf);
$Foto=$rowf[0];
$Tit1=$rowf[1];
}
}
?>
}}}?>
$qf2="select A.Enlace,B.Titulo from Videos A, Videos_idiomas B where A.Enlace!='' AND A.Enlace!='Nofoto' AND A.Cod_vid=B.Cod_vid AND B.Codid=$Idi AND A.Cod_not=$Cod_not2 AND A.Activo='Si' ORDER BY A.Orden";
//echo($qf2);
$resf2=mysql_query ($qf2,$db);
if (mysql_num_rows($resf2)>0) {
while($rowf2= mysql_fetch_row ($resf2)){
$Enlace=$rowf2[0];
$Tit1=stripslashes($rowf2[1]);
?>VIDEO
echo " ";
}
}
?>
}else{?>
}?>
}?>