//MENU texto
$principal=opendir("galeria");
while($direcs=readdir($principal)){
if(($direcs!=".")AND($direcs!="..")AND(is_dir("galeria/".$direcs))){
echo " ".$direcs." ";
}
}
//Menu videos
echo "";
echo " ";
echo " VIDEOS";
echo "";
echo " Loading of machining center on special transport usin Hydraulic Gentry LS-500 ";
echo " Introduction of Yankee roller into the paper production line ";
echo " Assembly of the 6 hydraulic press line. 2000 tn head press, followed by 1600 tn anx 4 x 1000 tn ";
echo " Real project simulation ";
echo " Simulation of Fagor press dismantling. Seat ";
echo " Simulation of 90º rotation and dismantling of WEINGARTEN Press-OPEL ";
echo " Simulation of crown movement and dismantling of WEINGARTEN Press ";
echo " Simulation of movement and dismantling of WEINGARTEN Press-OPEL ";
echo " | ";
//abrir directorios//
closedir($principal);
$dir=$_GET["dir"];
if(!$dir){
$dir="Montaje_Pesado_Prensa_800t";
}
$directorio=opendir("galeria/".$dir);
$imagen=$_GET["imagen"];
if(!$imagen){
$imagen="g1.jpg";
}
echo "";
echo "";
$aux=1;
while($fichero=readdir($directorio)){
//menú fotos pequeñas//
if((is_file("galeria/".$dir."/".$fichero))AND(substr($fichero,-2,2)!="db")){
if($aux==1){
echo "";
}
//no mostrar fotos grandes en el menú//
if((is_file("galeria/".$dir."/".$fichero))AND(substr($fichero,0,1)!="g")){
echo "";
echo "";
//fotitos//
echo " | ";
if($aux==5){
echo " ";
$aux=0;
}
$aux++;
}
}
}
if($aux!=1){
echo "";
}
echo " ";
echo " ";
echo "";
//reemplazar letra del nombre del fichero por la primera letra del lnombre de las fotos grandes//
$imagen=EREGI_REPLACE("m","g",$imagen);
//mostrar imágenes grandes//
echo " | ";
closedir($directorio);
?> |