include("includes-redes/redes-$id_idioma.php"); ?>
//Primera consulta para obtener los hoteles de pamplona tudela y nobles para luego eliminarlos de la posterior consulta
$hotelesMostrados=array();//Variable para no mostrar loshoteles que ya han sido mostrados
$cadenaHoteles='';
$resultado= mysql_query('select
thotelesgrupos.id_hotel
from
thoteles,
thotelestrad,
thotelesgrupos
where
(thotelesgrupos.id_grupo=1
or thotelesgrupos.id_grupo=2
or thotelesgrupos.id_grupo=3)
and thotelestrad.id_hotel=thotelesgrupos.id_hotel
and thoteles.id_hotel=thotelesgrupos.id_hotel
and thotelestrad.id_idioma=0
and thoteles.id_hotel=thotelestrad.id_hotel
and thoteles.id_alojamiento=0;
') or die('error1:'.mysql_error());
while($mostrar=mysql_fetch_array($resultado,MYSQL_ASSOC)){
$hotelesMostrados[$mostrar[id_hotel]]="existe";
}
$resultado= mysql_query('select
thotelesgrupos.id_hotel,
thotelestrad.nombre
from
thoteles,
thotelestrad,
thotelesgrupos
WHERE
thotelesgrupos.id_grupo=4
and thotelesgrupos.id_grupo<>1
and thotelesgrupos.id_grupo<>2
and thotelesgrupos.id_grupo<>3
and thotelestrad.id_hotel=thotelesgrupos.id_hotel
and thoteles.id_hotel=thotelesgrupos.id_hotel
and thotelestrad.id_idioma=0
and thoteles.internacional=1
and thoteles.id_hotel=thotelestrad.id_hotel
and (thoteles.id_alojamiento=1
OR thoteles.id_alojamiento=0);
') or die('error1:'.mysql_error());
while($mostrar=mysql_fetch_array($resultado,MYSQL_ASSOC)){
if($mostrar[id_hotel]!=21){//Evita que se muestre el Camping zzprueba
if($hotelesMostrados[$mostrar[id_hotel]]!='existe'){
if (file_exists("centraldereservas/hoteles/acercade/acercade-".$mostrar[id_hotel]."-".$id_idioma.".txt")){
$lector=fopen("centraldereservas/hoteles/acercade/acercade-".$mostrar[id_hotel]."-".$id_idioma.".txt", "r");
// echo "centraldereservas/hoteles/acercade/acercade-".$mostrar[id_hotel]."-".$id_idioma.".txt";
echo "
\r\n";
echo "
$mostrar[nombre]
\r\n";
echo "
".fread($lector,filesize("centraldereservas/hoteles/acercade/acercade-".$mostrar[id_hotel]."-".$id_idioma.".txt"))."
";
echo "
\r\n";
echo "
\r\n";
echo "
\r\n";
}
}
}//end if
}//end while
?>