if (eregi(basename(__FILE__), $PHP_SELF)) {
Header("Location: ../../index.php");
die();
}
// Falta que muestre elementos en una imagen segun la latitud y longitud desde-hasta
// y la latitud-longitud de los elementos
global $leyenda, $Aleyenda;
$footeroff="x";
$TMPmod_instalaciones="instalaciones";
$TMPmod_centro="centros";
if ($headeroff=="" && $blocksoff=="") {
// $TMP_posbasex=160;
// $TMP_posbasey=70;
} else {
// $TMP_posbasex=20;
// $TMP_posbasey=50;
}
$TMP_posbasex=0;
$TMP_posbasey=0;
include_once ("functions.php");
$user=base64_decode($HTTP_SESSION_VARS["SESSION_user"]);
if ($dbname=="") $dbname=_DEF_dbname;
include_once ("header.php");
include_once ("modules/$V_dir/func.showrecimg.php");
echo "
";
//if ($headeroff!=""&&$bodyoff=="") echo "
\n";
echo "
\n";
if ($escala=="") $escala=1;
if ($id=="" && $defaultid!="") $id=$defaultid;
if ($id!="") {
echo F_showrecimg($id, $escala);
} else {
$TMP_select="";
if ($TMP_cont==1) {
$id=$TMP_id;
echo F_showrecimg($id, $escala);
} else {
OpenTable();
echo "\n";
}
}
if ($noadm=="") {
$leyenda2="";
if (is_admin() || is_modulepermitted("", $V_dir, "recursosimagenes")) {
$TMP_URL=$PHP_SELF."?".$SESSION_SID."V_dir=$V_dir&V_idmod=$V_idmod&V_mod=$V_mod&id=$id";
if ($nolink=="") $leyenda.="Oculta Enlaces";
else $leyenda.="Muestra Enlaces";
$leyenda.=" | Visualiza como Usuario ";
$result = sql_query("select * from GIE_recursosimagenes WHERE idimagenpadre='$id'", $RAD_dbi);
while($TMP_row=sql_fetch_array($result, $RAD_dbi)) {
if ($TMP_row[idimagen]>0) $A_imagen[$TMP_row[idimagen]]=$TMP_row[idimagen];
if ($TMP_row[idcentro]>0) $A_centro[$TMP_row[idcentro]]=$TMP_row[idimagen];
if ($TMP_row[idinstalacion]>0) $A_inst[$TMP_row[idinstalacion]]=$TMP_row[idimagen];
if ($TMP_row[idrecurso]>0) $A_rec[$TMP_row[idrecurso]]=$TMP_row[idimagen];
}
// Permite agregar otras imagenes a esta
$TMP_URL=$PHP_SELF."?".$SESSION_SID."V_dir=$V_dir&V_mod=recursosimagenes&func=new&subfunc=browse&headeroff=x&footeroff=X&V_roi=".urlencode("idimagenpadre='$id'");
$leyenda2.="\n\n";
$leyenda2.="\n\n";
else $leyenda2="";
if ($leyendaExiste!="") {
$leyenda2.="\n\n";
}
$leyenda.=$leyenda2; $leyenda2="";
// Permite agregar otros centros a esta imagen
$TMP_URL=$PHP_SELF."?".$SESSION_SID."V_dir=$V_dir&V_mod=recursosimagenes&func=new&subfunc=browse&headeroff=x&footeroff=X&V_roi=".urlencode("idimagenpadre='$id'");
$leyenda2.="\n\n";
$leyenda2.="\n\n";
else $leyenda2="";
if ($leyendaExiste!="") {
$leyenda2.="\n\n";
}
$leyenda.=$leyenda2; $leyenda2="";
// Permite agregar otras instalaciones a esta imagen
$TMP_URL=$PHP_SELF."?".$SESSION_SID."V_dir=$V_dir&V_mod=recursosimagenes&func=new&subfunc=browse&headeroff=x&footeroff=X&V_roi=".urlencode("idimagenpadre='$id'");
$leyenda2.="\n\n";
$leyenda2.="\n\n";
else $leyenda2="";
if ($leyendaExiste!="") {
$leyenda2.="\n\n";
}
$leyenda.=$leyenda2; $leyenda2="";
// Permite agregar otros recursos a esta imagen
$leyenda2="\n\n";
$leyenda2.="\n\n";
else $leyenda2="";
//x if ($leyendaExiste!="") {
//x $leyenda.="\n\n";
//x }
$leyenda.=$leyenda2;
}
}
if ($leyenda!="") echo "\n