var ie4 = (document.all) ? true : false; var ns4 = (document.layers) ? true : false; var ns6 = (document.getElementById && !document.all) ? true : false; function poneImgOn(idicono,img) { if (ns4) { eval(\"document.layers['div\"+idicono+\"'].document.img\"+idicono).src = img; } else if (ie4) { eval(\"document.all.img\"+idicono).src = img; } else if (ns6) { eval(\"document.getElementById('img\"+idicono+\"')\").src = img; } } "; //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 "
"; echo ""; if ($V_idmod!="") echo ""; echo ""; echo "Seleccione Plano : ".$TMP_select."
"; CloseTable(); } } $leyenda=""; $result = sql_query("select * from GIE_recursostipos", $RAD_dbi); while($TMP_row=sql_fetch_array($result, $RAD_dbi)) { if ($Aleyenda[$TMP_row[idtipo]]!="") { $leyenda.="\n
\n"; $leyenda.="\n"; $leyenda.=$TMP_row[tipo].":
\n
\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"; $leyenda2.="Agrega Imagen : \n
\n"; else $leyenda2=""; if ($leyendaExiste!="") { $leyenda2.="\n
\n"; $leyenda2.="\n\n"; $leyenda2.="\n"; $leyenda2.="Consulta Imagen :
\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"; $leyenda2.="Agrega Centro : \n
\n"; else $leyenda2=""; if ($leyendaExiste!="") { $leyenda2.="\n
\n"; $leyenda2.="\n\n"; $leyenda2.="\n"; $leyenda2.="Consulta Centro :
\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"; $leyenda2.="Agrega Instalacion : \n
\n"; else $leyenda2=""; if ($leyendaExiste!="") { $leyenda2.="\n
\n"; $leyenda2.="\n\n"; $leyenda2.="\n"; $leyenda2.="Consulta Instalacion :
\n
\n"; } $leyenda.=$leyenda2; $leyenda2=""; // Permite agregar otros recursos a esta imagen $leyenda2="\n\n"; $leyenda2.="\n
\n"; $leyenda2.="Agrega Recurso : \n
\n"; else $leyenda2=""; //x if ($leyendaExiste!="") { //x $leyenda.="\n
\n"; //x $leyenda.="\n"; //x $leyenda.="Consulta Recurso :
\n
\n"; //x } $leyenda.=$leyenda2; } } if ($leyenda!="") echo "\n
".$leyenda."
"; echo "\n
\n"; include_once ("footer.php"); ?>