Commit 30254d70e15f59fabf96b8c24aa9b8c35d48475b
1 parent
3ac7c6b7
Exists in
master
and in
7 other branches
Alteração no banco de metadados estatísticos para incluir coluna com identificad…
…ores únicos da tabela que armazena os valores das medidas das variáveis
Showing
13 changed files
with
833 additions
and
698 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/estat_variavel.js
| ... | ... | @@ -304,6 +304,7 @@ i3GEOadmin.variaveis = { |
| 304 | 304 | {titulo:"Tabela do banco: <img onclick='i3GEOadmin.variaveis.selTabela(\"Etabela\",\"Ecodigo_estat_conexao\",\"Eesquemadb\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/>",id:"Etabela",size:"50",value:i.tabela,tipo:"text",div:""}, |
| 305 | 305 | {titulo:"Coluna com os valores: <img onclick='i3GEOadmin.variaveis.selColuna(\"Ecolunavalor\",\"Ecodigo_estat_conexao\",\"Eesquemadb\",\"Etabela\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/>",id:"Ecolunavalor",size:"50",value:i.colunavalor,tipo:"text",div:""}, |
| 306 | 306 | {titulo:"Coluna com os IDs da tabela GEO: <img onclick='i3GEOadmin.variaveis.selColuna(\"Ecolunaidgeo\",\"Ecodigo_estat_conexao\",\"Eesquemadb\",\"Etabela\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/>",id:"Ecolunaidgeo",size:"50",value:i.colunaidgeo,tipo:"text",div:""}, |
| 307 | + {titulo:"Coluna com os IDs únicos que identificam cada registro da tabela com os valores: <img onclick='i3GEOadmin.variaveis.selColuna(\"Ecolunaidunico\",\"Ecodigo_estat_conexao\",\"Eesquemadb\",\"Etabela\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/>",id:"Ecolunaidunico",size:"50",value:i.colunaidunico,tipo:"text",div:""}, | |
| 307 | 308 | {titulo:"Filtro adicional:",id:"Efiltro",size:"50",value:i.filtro,tipo:"text",div:""} |
| 308 | 309 | ] |
| 309 | 310 | }; |
| ... | ... | @@ -1018,7 +1019,7 @@ i3GEOadmin.variaveis = { |
| 1018 | 1019 | prog = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=alteraVariavel"; |
| 1019 | 1020 | } |
| 1020 | 1021 | if(tipo == "medidaVariavel"){ |
| 1021 | - campos = new Array("codigo_variavel","codigo_unidade_medida","codigo_tipo_periodo","codigo_tipo_regiao","codigo_estat_conexao","esquemadb","tabela","colunavalor","colunaidgeo","filtro","nomemedida"); | |
| 1022 | + campos = new Array("codigo_variavel","codigo_unidade_medida","codigo_tipo_periodo","codigo_tipo_regiao","codigo_estat_conexao","esquemadb","tabela","colunavalor","colunaidgeo","colunaidunico","filtro","nomemedida"); | |
| 1022 | 1023 | par = "&id_medida_variavel="+id; |
| 1023 | 1024 | prog = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=alteraMedidaVariavel"; |
| 1024 | 1025 | } | ... | ... |
admin/php/classe_metaestat.php
| ... | ... | @@ -644,13 +644,13 @@ class Metaestat{ |
| 644 | 644 | |
| 645 | 645 | Altera uma medida de uma variavel ou cria uma nova |
| 646 | 646 | */ |
| 647 | - function alteraMedidaVariavel($codigo_variavel,$id_medida_variavel="",$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$filtro,$nomemedida){ | |
| 647 | + function alteraMedidaVariavel($codigo_variavel,$id_medida_variavel="",$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$colunaidunico,$filtro,$nomemedida){ | |
| 648 | 648 | try { |
| 649 | 649 | if($id_medida_variavel != ""){ |
| 650 | 650 | if($this->convUTF){ |
| 651 | 651 | $nomemedida = utf8_encode($nomemedida); |
| 652 | 652 | } |
| 653 | - $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_medida_variavel SET codigo_unidade_medida = '$codigo_unidade_medida',codigo_tipo_periodo = '$codigo_tipo_periodo',codigo_tipo_regiao = '$codigo_tipo_regiao',codigo_estat_conexao = '$codigo_estat_conexao',esquemadb = '$esquemadb',tabela = '$tabela',colunavalor = '$colunavalor',colunaidgeo = '$colunaidgeo',filtro = '$filtro',nomemedida = '$nomemedida' WHERE id_medida_variavel = $id_medida_variavel"); | |
| 653 | + $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_medida_variavel SET codigo_unidade_medida = '$codigo_unidade_medida',codigo_tipo_periodo = '$codigo_tipo_periodo',codigo_tipo_regiao = '$codigo_tipo_regiao',codigo_estat_conexao = '$codigo_estat_conexao',esquemadb = '$esquemadb',tabela = '$tabela',colunavalor = '$colunavalor',colunaidgeo = '$colunaidgeo',colunaidunico = '$colunaidunico' ,filtro = '$filtro',nomemedida = '$nomemedida' WHERE id_medida_variavel = $id_medida_variavel"); | |
| 654 | 654 | $retorna = $id_medida_variavel; |
| 655 | 655 | } |
| 656 | 656 | else{ |
| ... | ... | @@ -1231,6 +1231,8 @@ class Metaestat{ |
| 1231 | 1231 | $this->execSQL($sql,"",false); |
| 1232 | 1232 | $sql = "UPDATE i3geoestat_medida_variavel SET colunaidgeo = '$novonome_coluna' WHERE esquemadb = '$nome_esquema' and tabela = '$nome_tabela' and colunaidgeo = '$nome_coluna'"; |
| 1233 | 1233 | $this->execSQL($sql,"",false); |
| 1234 | + $sql = "UPDATE i3geoestat_medida_variavel SET colunaidunico = '$novonome_coluna' WHERE esquemadb = '$nome_esquema' and tabela = '$nome_tabela' and colunaidgeo = '$nome_coluna'"; | |
| 1235 | + $this->execSQL($sql,"",false); | |
| 1234 | 1236 | $sql = "UPDATE i3geoestat_tipo_regiao SET colunageo = '$novonome_coluna' WHERE esquemadb = '$nome_esquema' and tabela = '$nome_tabela' ' and colunageo = '$nome_coluna'"; |
| 1235 | 1237 | $this->execSQL($sql,"",false); |
| 1236 | 1238 | $sql = "UPDATE i3geoestat_tipo_regiao SET colunanomeregiao = '$novonome_coluna' WHERE esquemadb = '$nome_esquema' and tabela = '$nome_tabela' ' and colunanomeregiao = '$nome_coluna'"; |
| ... | ... | @@ -1582,9 +1584,11 @@ class Metaestat{ |
| 1582 | 1584 | //var_dump($c);exit; |
| 1583 | 1585 | $dbh = new PDO('pgsql:dbname='.$c["bancodedados"].';user='.$c["usuario"].';password='.$c["senha"].';host='.$c["host"].';port='.$c["porta"]); |
| 1584 | 1586 | |
| 1585 | - $colunassql[] = $medida["colunavalor"]." as valormedida"; | |
| 1587 | + $colunassql[] = $medida["colunavalor"]." as valormedida, ".$medida["colunaidunico"]." as idunico "; | |
| 1586 | 1588 | $alias[] = $medida["nomemedida"]; |
| 1587 | 1589 | $colunas[] = "valormedida"; |
| 1590 | + $alias[] = $medida["colunaidunico"]; | |
| 1591 | + $colunas[] = "idunico"; | |
| 1588 | 1592 | |
| 1589 | 1593 | $parametros = $this->listaParametro($id_medida_variavel); |
| 1590 | 1594 | foreach($parametros as $p){ | ... | ... |
admin/php/metaestat.php
| ... | ... | @@ -268,11 +268,11 @@ switch (strtoupper($funcao)) |
| 268 | 268 | $filtro = " id_medida_variavel = $id_medida_variavel "; |
| 269 | 269 | } |
| 270 | 270 | if(!empty($nomemedida)){ |
| 271 | - $m->alteraMedidaVariavel("",$id_medida_variavel,$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$filtro,$nomemedida); | |
| 271 | + $m->alteraMedidaVariavel("",$id_medida_variavel,$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$colunaidunico,$filtro,$nomemedida); | |
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | 274 | else{ |
| 275 | - $m->alteraMedidaVariavel("",$id_medida_variavel,$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$filtro,$nomemedida); | |
| 275 | + $m->alteraMedidaVariavel("",$id_medida_variavel,$codigo_unidade_medida,$codigo_tipo_periodo,$codigo_tipo_regiao,$codigo_estat_conexao,$esquemadb,$tabela,$colunavalor,$colunaidgeo,$colunaidunico,$filtro,$nomemedida); | |
| 276 | 276 | } |
| 277 | 277 | //adiciona os parametros de tempo conforme o tipo de periodo escolhido |
| 278 | 278 | if($default == true){ | ... | ... |
admin/sql/metaestat.sql
| ... | ... | @@ -78,10 +78,10 @@ create table i3geoestat_agregaregiao |
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | 80 | |
| 81 | --- tabela com o nome e descrição de uma variável variável | |
| 82 | -create table i3geoestat_variavel | |
| 81 | +-- lista controlada de tipos de período de tempo | |
| 82 | +create table i3geoestat_tipo_periodo | |
| 83 | 83 | ( |
| 84 | - codigo_variavel integer not null unique primary key autoincrement, | |
| 84 | + codigo_tipo_periodo integer not null unique primary key autoincrement, | |
| 85 | 85 | nome text, |
| 86 | 86 | descricao text |
| 87 | 87 | ); |
| ... | ... | @@ -99,10 +99,10 @@ create table i3geoestat_unidade_medida |
| 99 | 99 | ); |
| 100 | 100 | |
| 101 | 101 | |
| 102 | --- lista controlada de tipos de período de tempo | |
| 103 | -create table i3geoestat_tipo_periodo | |
| 102 | +-- tabela com o nome e descrição de uma variável variável | |
| 103 | +create table i3geoestat_variavel | |
| 104 | 104 | ( |
| 105 | - codigo_tipo_periodo integer not null unique primary key autoincrement, | |
| 105 | + codigo_variavel integer not null unique primary key autoincrement, | |
| 106 | 106 | nome text, |
| 107 | 107 | descricao text |
| 108 | 108 | ); |
| ... | ... | @@ -129,16 +129,18 @@ create table i3geoestat_medida_variavel |
| 129 | 129 | filtro text, |
| 130 | 130 | -- titulo da medida |
| 131 | 131 | nomemedida text, |
| 132 | - foreign key (codigo_variavel) | |
| 133 | - references i3geoestat_variavel (codigo_variavel), | |
| 132 | + -- nome da coluna da tabela que contem os dados e que é um identificador único de cada registro | |
| 133 | + colunaidunico text, | |
| 134 | + foreign key (codigo_tipo_periodo) | |
| 135 | + references i3geoestat_tipo_periodo (codigo_tipo_periodo), | |
| 136 | + foreign key (codigo_estat_conexao) | |
| 137 | + references i3geoestat_conexao (codigo_estat_conexao), | |
| 134 | 138 | foreign key (codigo_unidade_medida) |
| 135 | 139 | references i3geoestat_unidade_medida (codigo_unidade_medida), |
| 140 | + foreign key (codigo_variavel) | |
| 141 | + references i3geoestat_variavel (codigo_variavel), | |
| 136 | 142 | foreign key (codigo_tipo_regiao) |
| 137 | - references i3geoestat_tipo_regiao (codigo_tipo_regiao), | |
| 138 | - foreign key (codigo_estat_conexao) | |
| 139 | - references i3geoestat_conexao (codigo_estat_conexao), | |
| 140 | - foreign key (codigo_tipo_periodo) | |
| 141 | - references i3geoestat_tipo_periodo (codigo_tipo_periodo) | |
| 143 | + references i3geoestat_tipo_regiao (codigo_tipo_regiao) | |
| 142 | 144 | ); |
| 143 | 145 | |
| 144 | 146 | |
| ... | ... | @@ -200,10 +202,10 @@ create table i3geoestat_fonteinfo_medida |
| 200 | 202 | ( |
| 201 | 203 | id_medida_variavel integer not null, |
| 202 | 204 | id_fonteinfo integer not null, |
| 203 | - foreign key (id_fonteinfo) | |
| 204 | - references i3geoestat_fonteinfo (id_fonteinfo), | |
| 205 | 205 | foreign key (id_medida_variavel) |
| 206 | - references i3geoestat_medida_variavel (id_medida_variavel) | |
| 206 | + references i3geoestat_medida_variavel (id_medida_variavel), | |
| 207 | + foreign key (id_fonteinfo) | |
| 208 | + references i3geoestat_fonteinfo (id_fonteinfo) | |
| 207 | 209 | ); |
| 208 | 210 | |
| 209 | 211 | ... | ... |
admin/sql/metaestat_basededados.sql
| ... | ... | @@ -21,7 +21,7 @@ INSERT INTO i3geoestat_unidade_medida (codigo_unidade_medida, nome, sigla, permi |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | -- i3geoestat_medida_variavel |
| 24 | -INSERT INTO i3geoestat_medida_variavel (id_medida_variavel, codigo_unidade_medida, codigo_tipo_periodo, codigo_variavel, codigo_tipo_regiao, codigo_estat_conexao, esquemadb, tabela, colunavalor, colunaidgeo, filtro, nomemedida) VALUES ('1', '1', '2', '1', '2', '1', 'dbdemografia', 'tb_demografia', 'nu_populacao', 'co_ibge', '', 'População residente'); | |
| 24 | +INSERT INTO i3geoestat_medida_variavel (id_medida_variavel, codigo_unidade_medida, codigo_tipo_periodo, codigo_variavel, codigo_tipo_regiao, codigo_estat_conexao, esquemadb, tabela, colunavalor, colunaidgeo, filtro, nomemedida, colunaidunico) VALUES ('1', '1', '2', '1', '2', '1', 'dbdemografia', 'tb_demografia', 'nu_populacao', 'co_ibge', '', 'População residente', ''); | |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | -- i3geoestat_parametro_medida |
| ... | ... | @@ -55,3 +55,8 @@ INSERT INTO i3geoestat_fonteinfo_medida (id_medida_variavel, id_fonteinfo) VALUE |
| 55 | 55 | INSERT INTO i3geoestat_fonteinfo (id_fonteinfo, titulo, link) VALUES ('1', 'Ministério da Saúde', 'http://saude.gov.br'); |
| 56 | 56 | |
| 57 | 57 | |
| 58 | +-- i3geoestat_agregaregiao | |
| 59 | +INSERT INTO i3geoestat_agregaregiao (id_agregaregiao, codigo_tipo_regiao, codigo_tipo_regiao_pai, colunaligacao_regiaopai) VALUES ('1', '1', '2', 'co_municipio'); | |
| 60 | +INSERT INTO i3geoestat_agregaregiao (id_agregaregiao, codigo_tipo_regiao, codigo_tipo_regiao_pai, colunaligacao_regiaopai) VALUES ('2', '2', '3', 'co_uf'); | |
| 61 | + | |
| 62 | + | ... | ... |
classesjs/classe_janela.js
classesjs/compactados/classe_janela_compacto.js
| 1 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 2 | 1 | \ No newline at end of file |
| 2 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.body.style.overflow="none";attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 3 | 3 | \ No newline at end of file | ... | ... |
classesjs/i3geo_tudo_compacto47.js
| ... | ... | @@ -360,7 +360,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.tema={TEMPORIZADORESID:{},exc |
| 360 | 360 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.analise={dialogo:{graficoInterativo:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.graficoInterativo()","graficointerativo","graficointerativo")},linhaDoTempo:function(){i3GEO.janela.cria("450px","300px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","Linha do tempo <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=3&idajuda=88' > </a>");atualizaLinhaDoTempo=function(){var doc="";try{if(navn){if($i("wdocai")){doc=$i("wdocai").contentDocument}}else{if(document.frames("wdocai")){doc=document.frames("wdocai").document}}doc.getElementById("tl")?window.parent.wdocai.carregaDados():i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()")}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaLinhaDoTempo()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizaLinhaDoTempo()")}},perfil:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.perfil()","perfil","perfil")},gradePontos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePontos()","gradepontos","gradeDePontos")},gradePol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePol()","gradepol","gradeDePoligonos")},gradeHex:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradeHex()","gradehex","gradeDeHex")},analisaGeometrias:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.analisaGeometrias()","analisageometrias","analisaGeometrias")},pontosdistri:function(){i3GEO.parametros.r==="nao"?alert($trad("x22")):i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri")},pontoempoligono:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontoempoligono()","pontoempoligono","pontoEmPoligono")},centromassa:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centromassa()","centromassa","centromassa")},nptPol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.nptPol()","nptpol","nptpol")},buffer:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.buffer()","buffer","buffer")},distanciaptpt:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.distanciaptpt()","distanciaptpt","distanciaptpt")},centroide:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centroide()","centroide","centroide")},dissolve:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.dissolve()","dissolve","dissolve")},agrupaElementos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.agrupaElementos()","agrupaelementos","agrupaElementos")}},medeDistancia:{inicia:function(){pontosdistobj={xpt:[],ypt:[],dist:[],distV:[],xtela:[],ytela:[],ximg:[],yimg:[],linhas:[],linhastemp:[]};i3GEO.analise.medeDistancia.criaJanela();if(g_tipoacao!=="mede"){if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.analise.medeDistancia.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.analise.medeDistancia.clique()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.analise.medeDistancia.movimento()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.analise.medeDistancia.movimento()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.analise.medeDistancia.fechaJanela()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.analise.medeDistancia.fechaJanela()")}$i("mostradistancia").style.display="block";if(i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.desenho.criaContainerRichdraw();i3GEO.desenho.richdraw.lineColor="black";i3GEO.desenho.richdraw.lineWidth="1px"}g_tipoacao="mede"}else{if(i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.desenho.richdraw.fecha()}var Dom=YAHOO.util.Dom;Dom.setStyle("mostradistancia","display","none");Dom.setStyle("pontosins","display","none")}},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostradistancia")){novoel=document.createElement("div");novoel.id="mostradistancia";ins='<div class="hd" style="font-size:11px"> Distância aproximada <a class=ajuda_usuario target=_blank href="'+i3GEO.configura.locaplic+'/ajuda_usuario.php?idcategoria=6&idajuda=50" > </a></div>'+'<div class="bd" style="text-align:left;padding:3px;" >'+'<div style="text-align:left;padding:3px;" id="mostradistancia_calculo" ></div>'+'<div style="text-align:left;font-size:10px" >'+'<span style="color:navy;cursor:pointer;text-align:left;" >'+'<table class=lista7 ><tr><td><input style="cursor:pointer" type="checkbox" id="pararraios" checked /></td><td>Raios</td><td> </td>'+'<td>'+'<input style="cursor:pointer" type="checkbox" id="parartextos" checked />'+'</td><td>Textos<td>'+'<td> Estilo:</td><td>'+i3GEO.desenho.caixaEstilos()+'</td>'+'<td> <input id=i3GEObotaoPerfil size="22" type="button" value="perfil"></td>'+'</tr></table></span>'+'</div>'+'</div>';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostradistancia",{iframe:true,width:"330px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();YAHOO.util.Event.addListener(janela.close,"click",i3GEO.analise.medeDistancia.fechaJanela)}else{i3GEO.util.defineValor("mostradistancia_calculo","innerHTML","");janela=YAHOO.i3GEO.janela.manager.find("mostradistancia")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);if(navm&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}new YAHOO.widget.Button("i3GEObotaoPerfil",{onclick:{fn:function(){var js=i3GEO.configura.locaplic+"/ferramentas/perfil/index.js";i3GEO.util.scriptTag(js,"i3GEOF.perfil.criaJanelaFlutuante(pontosdistobj)","i3GEOF.perfil_script")}}})},fechaJanela:function(){var janela;i3GEO.Interface.ATUAL!=="googleearth"?i3GEO.desenho.richdraw.fecha():i3GEO.Interface.googleearth.removePlacemark("divGeometriasTemp");i3GEO.util.removeChild("pontosins");if($i("divGeometriasTemp")){i3GEO.desenho.richdraw.fecha()}i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.analise.medeDistancia.clique()");i3GEO.eventos.MOUSEMOVE.remove("i3GEO.analise.medeDistancia.movimento()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.analise.medeDistancia.fechaJanela()");i3GEO.barraDeBotoes.ativaBotoes();janela=YAHOO.i3GEO.janela.manager.find("mostradistancia");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}},clique:function(){var n,d,decimal,dd;if(g_tipoacao==="mede"){n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1),(pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1))}}catch(e){}}if(n>0){d=i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);decimal=0;d=d+"";d=d.split(".");decimal=d[1].substr(0,5);d=d[0]+"."+decimal;d=d*1;pontosdistobj.dist[n]=d+pontosdistobj.dist[n-1];if(navm){i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n]),pontosdistobj.yimg[n])}if($i("pararraios")&&$i("pararraios").checked===true){if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.desenho.aplica("insereCirculo","",n)}if(i3GEO.Interface.ATUAL==="googleearth"){dd=Math.sqrt(((Math.pow((pontosdistobj.xpt[n]-pontosdistobj.xpt[n-1]),2))+(Math.pow((pontosdistobj.ypt[n]-pontosdistobj.ypt[n-1]),2))));i3GEO.Interface.googleearth.insereCirculo(pontosdistobj.xpt[n],pontosdistobj.ypt[n],dd,"","divGeometriasTemp")}}if($i("parartextos")&&$i("parartextos").checked===true){if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.desenho.aplica("insereTexto","",n,d+" km")}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.Interface.googleearth.insereMarca(d+" km",objposicaocursor.ddx,objposicaocursor.ddy,"","divGeometriasTemp")}}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.Interface.googleearth.insereLinha(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],pontosdistobj.xpt[n],pontosdistobj.ypt[n],"","divGeometriasTemp")}}if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeDistancia.paraCalculo,"divGeometriasTemp");i3GEO.desenho.insereCirculo(objposicaocursor.imgx,objposicaocursor.imgy,3)}}},paraCalculo:function(){var botaoPan=$i("pan");g_tipoacao="";botaoPan?botaoPan.onclick.call():i3GEO.barraDeBotoes.ativaBotoes()},movimento:function(){var n,d,r,decimal,da,mostra,texto,calculo=i3GEO.calculo;if(g_tipoacao==="mede"){YAHOO.util.Dom.setStyle("mostradistancia","display","block");n=pontosdistobj.xpt.length;try{if(n>0){d=calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);r=calculo.direcao(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);r=calculo.dd2dms(r,r);r=r[0];d=d+"";d=d.split(".");decimal=d[1].substr(0,5);d=d[0]+"."+decimal;d=d*1;da=d+pontosdistobj.dist[n-1];da=da+"";da=da.split(".");decimal=da[1].substr(0,5);da=da[0]+"."+decimal;da=da*1;mostra=$i("mostradistancia_calculo");if(mostra){texto=" Dist acum.= "+da+" km <br>atual= "+d+" km <br> "+$trad("x23")+" (DMS)= "+r;texto+="<br>"+$trad("x25")+": "+calculo.metododistancia;mostra.innerHTML=texto}if(i3GEO.Interface.ATUAL!=="googleearth"&&navn){i3GEO.desenho.aplica("resizeLinha",pontosdistobj.linhas[n-1],n)}}}catch(e){}}}},medeArea:{inicia:function(){pontosdistobj={xpt:[],ypt:[],dist:[],distV:[],xtela:[],ytela:[],ximg:[],yimg:[],linhas:[],linhastemp:[]};var x,y,ll1,ll2,d,calculo=i3GEO.calculo,montacontainer=function(){var desenho=i3GEO.desenho;$i("mostraarea_calculo").innerHTML="Clique no mapa para desenhar o poligono. Clique duas vezes para concluir";i3GEO.barraDeBotoes.ativaIcone("area");g_tipoacao="area";desenho.criaContainerRichdraw();desenho.richdraw.lineColor="green";desenho.richdraw.lineWidth="2px"};i3GEO.analise.medeArea.criaJanela();if(g_tipoacao!=="area"){$i("mostraarea_calculo").innerHTML="";if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.analise.medeArea.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.analise.medeArea.clique()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.analise.medeArea.movimento()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.analise.medeArea.movimento()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.analise.medeArea.fechaJanela()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.analise.medeArea.fechaJanela()")}if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){x=parseInt(i3GEO.parametros.w/2,10);y=parseInt(i3GEO.parametros.h/2,10);ll1=calculo.tela2dd(x,y,"","");ll2=calculo.tela2dd(x+1,y,"","");d=calculo.distancia(ll1[0],ll1[1],ll2[0],ll2[1]);d=d*1000;g_areapixel=d*d;g_areapixel<0?alert("Nao e possivel calcular a area. Entre em contato com o administrador do sistema."):montacontainer()}}else{i3GEO.desenho.richdraw.fecha()}},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostraarea")){novoel=document.createElement("div");novoel.id="mostraarea";ins='<div class="hd" >Área aproximada <a class=ajuda_usuario target=_blank href="'+i3GEO.configura.locaplic+'"/ajuda_usuario.php?idcategoria=6&idajuda=51" > </a></div>'+'<div class="bd" style="text-align:left;padding:3px;font-size:10px" >'+'Estilo: '+i3GEO.desenho.caixaEstilos()+'<br>'+'<div style="text-align:left;padding:3px;font-size:10px" id="mostraarea_calculo" ></div>'+'</div>';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostraarea",{width:"220px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();YAHOO.util.Event.addListener(janela.close,"click",i3GEO.analise.medeArea.fechaJanela)}else{janela=YAHOO.i3GEO.janela.manager.find("mostraarea")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1])},fechaJanela:function(){var janela;i3GEO.desenho.richdraw.fecha();i3GEO.util.removeChild("pontosArea",document.body);i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.analise.medeArea.clique()");i3GEO.eventos.MOUSEMOVE.remove("i3GEO.analise.medeArea.movimento()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.analise.medeArea.fechaJanela()");i3GEO.barraDeBotoes.ativaBotoes();janela=YAHOO.i3GEO.janela.manager.find("mostraarea");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}},clique:function(){var n,m;if(g_tipoacao==="area"){n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(n===0){try{if(navn){pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1)}}catch(e){}}else{if(navm){i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n-1])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n])}}try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1)}}catch(men){}m=i3GEO.calculo.area(pontosdistobj,g_areapixel);i3GEO.util.defineValor("mostraarea_calculo","innerHTML","<br>m2</b>= "+m.toFixed(2)+"<br><b>km2</b>= "+(m/1000000).toFixed(2)+"<br><b>ha</b>= "+(m/10000).toFixed(2));if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeArea.paraCalculo,"divGeometriasTemp");i3GEO.desenho.insereCirculo(objposicaocursor.imgx,objposicaocursor.imgy,3)}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.util.insereMarca.cria(objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.analise.medeArea.paraCalculo,"divGeometriasTemp","")}}},paraCalculo:function(){var botaoPan=$i("pan");g_tipoacao="";botaoPan?botaoPan.onclick.call():i3GEO.barraDeBotoes.ativaBotoes()},movimento:function(){var n;if(g_tipoacao==="area"){n=pontosdistobj.xpt.length;if(n>0){i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhastemp,1);i3GEO.desenho.aplica("resizeLinha",pontosdistobj.linhas[n-1],n)}}}}}; |
| 361 | 361 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:20,inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='<div class="hd" style="text-align:left;z-index:20;padding-left: 0px;padding-bottom: 3px;padding-top: 1px;">';ins+='<span id=maparefmaismenosZoom style=display:none > ';temp="javascript:if(i3GEO.maparef.fatorZoomDinamico == -1){i3GEO.maparef.fatorZoomDinamico = 1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico + 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();";ins+="<img class=mais onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" />";temp="javascript:if(i3GEO.maparef.fatorZoomDinamico == 1){i3GEO.maparef.fatorZoomDinamico = -1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico - 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();";ins+="<img class=menos onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" /></span> ";if(this.SELETORTIPO){ins+="<select style='font-size:9px;' id='refDinamico' onchange='javascript:i3GEO.parametros.celularef=\"\";i3GEO.maparef.atualiza()'>";ins+="<option value='fixo' select >fixo</option>";ins+="<option value='mapa' >mapa</option>";ins+="<option value='dinamico' >dinâmico</option>";ins+="</select>"}ins+="</div>"}ins+='<div class="bd" style="border:1px solid black;text-align:left;padding:3px;height: 150px;" id="mapaReferencia" onmouseover="this.onmousemove=function(exy){i3GEO.eventos.posicaoMouseMapa(exy)}" >';ins+='<img style="cursor:pointer;display:none" onload="javascript:this.style.display = \'block\'" id="imagemReferencia" src="" onclick="javascript:i3GEO.maparef.click()">';ins+='</div>';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel)}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:"177px",width:"156px",fixedcenter:false,constraintoviewport:true,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.clip="rect(0px, 160px, 185px, 0px)";r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height="150px";$i("i3geo_winRef").style.border="1px solid gray";moveX=pos[0]+i3GEO.parametros.w+153-i3GEO.maparef.RIGHT-300;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){YAHOO.util.Event.removeListener(janela.close,"click");$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};YAHOO.util.Event.addListener(janela.close,"click",escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove",temp)}}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.maparef.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.maparef.atualiza()")}this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width="156px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp,re;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef);if(temp){temp.style.display="inline"}}if(tiporef==="fixo"){if(i3GEO.parametros.utilizacgi.toLowerCase()!=="sim"){if(i3GEO.parametros.celularef===""||$i("imagemReferencia").src===""||forca===true){i3GEO.php.referencia(i3GEO.maparef.processaImagem)}else{i3GEO.maparef.atualizaBox()}if(temp){temp.style.display="none"}}else{re=new RegExp("&mode=map","g");$i("imagemReferencia").src=$i(i3GEO.Interface.IDMAPA).src.replace(re,'&mode=reference')}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef);if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.maparef.atualiza()")}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);boxrefdd=new YAHOO.util.DD("boxref");novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"){i3GEO.Interface.openlayers.pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy);return}try{i3GEO.php.pan(i3GEO.atualiza,i3GEO.parametros.mapscale,"ref",objposicaocursor.refx,objposicaocursor.refy)}catch(e){i3GEO.janela.fechaAguarde("i3GEO.atualiza")}}}; |
| 362 | 362 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.ajuda={ATIVAJANELA:true,DIVAJUDA:"i3geo_ajuda",DIVLETREIRO:"i3geo_letreiro",MENSAGEMPADRAO:$trad("p1"),TRANSICAOSUAVE:true,OPACIDADE:20,abreDoc:function(url){if(!url){url="/documentacao/index.html"}window.open(i3GEO.configura.locaplic+url)},abreJanela:function(){try{var nx,ny,corpo,texto,janela,temp,largura=262,YU=YAHOO.util,pos=[20,i3GEO.parametros.h/2];if(this.ATIVAJANELA===false){return}temp=$i("contemFerramentas");if(temp){largura=parseInt(temp.style.width,10)-5}if(!$i("janelaMenTexto")){corpo=$i(i3GEO.Interface.IDCORPO);if(corpo){pos=YU.Dom.getXY(corpo)}else{corpo=$i(i3GEO.Interface.IDMAPA);if(corpo){pos=YU.Dom.getXY(corpo)}}nx=pos[0]-largura-3;ny=i3GEO.parametros.h-78;texto='<div id="janelaMenTexto" style="text-align:left;font-size:10px;color:rgb(80,80,80)">'+i3GEO.ajuda.MENSAGEMPADRAO+'</div>';if(nx<0){nx=10;ny=ny-50}janela=i3GEO.janela.cria(largura-3,"auto","",nx,ny," ","i3geo_janelaMensagens",false,"hd","","",true);janela[2].innerHTML=texto;YU.Event.addListener(janela[0].close,"click",i3GEO.ajuda.fechaJanela);this.ativaCookie()}}catch(e){}},ativaCookie:function(){var i=i3GEO.util.insereCookie;i("g_janelaMen","sim");i("botoesAjuda","sim")},ativaLetreiro:function(mensagem){var l;if($i(i3GEO.ajuda.DIVLETREIRO)){if(arguments.length===0){mensagem=i3GEO.parametros.mensagens}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.ajuda.ativaLetreiro()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.ajuda.ativaLetreiro()")}try{clearTimeout(i3GEO.ajuda.tempoLetreiro)}catch(e){i3GEO.ajuda.tempoLetreiro=""}l=$i(i3GEO.ajuda.DIVLETREIRO);if(l.style.display==="none"){return}l.style.cursor="pointer";if(mensagem===""){l.value="";return}if(l.size===1){l.size=i3GEO.parametros.w/8}BMessage=mensagem+" ---Clique para parar--- ";l.onclick=function(){l.style.display="none"};if(BMessage!==" ---Clique para parar--- "){BQuantas=0;BSize=l.size;BPos=BSize;BSpeed=1;BSpaces="";i3GEO.ajuda.mostraLetreiro()}i3GEO.ajuda.mostraLetreiro(mensagem)}},desativaCookie:function(){i3GEO.util.insereCookie("g_janelaMen","nao")},fechaJanela:function(){i3GEO.ajuda.desativaCookie();i3GEO.util.removeChild("i3geo_janelaMensagens_c",document.body)},mostraJanela:function(texto){var j=$i(this.DIVAJUDA),k=$i("janelaMenTexto"),jm=$i("i3geo_janelaMensagens"),Dom=YAHOO.util.Dom,h=parseInt(Dom.getStyle(jm,"height"),10);if(j){j.innerHTML=texto===""?"-":texto}else{if(h){Dom.setY("i3geo_janelaMensagens",Dom.getY(jm)+h)}if(k){k.innerHTML=texto}if(this.TRANSICAOSUAVE){texto!==""?Dom.setStyle(jm,"opacity","1"):Dom.setStyle(jm,"opacity",(this.OPACIDADE/100))}h=parseInt(Dom.getStyle(jm,"height"),10);if(h){Dom.setY(jm,Dom.getY(jm)-h)}}},mostraLetreiro:function(){for(var count=0;count<BPos;count+=1){BSpaces+=" "}if(BPos<1){$i(i3GEO.ajuda.DIVLETREIRO).value=BMessage.substring(Math.abs(BPos),BMessage.length);if(BPos+BMessage.length<1){BPos=BSize;BQuantas=BQuantas+1}}else{$i(i3GEO.ajuda.DIVLETREIRO).value=BSpaces+BMessage}BPos-=BSpeed;if(BQuantas<2){i3GEO.ajuda.tempoLetreiro=setTimeout(function(){i3GEO.ajuda.mostraLetreiro()},140)}},redesSociais:function(){i3GEO.janela.cria("400px","400px",i3GEO.configura.locaplic+"/ferramentas/redessociais/index.php","","",$trad("u5c"),YAHOO.util.Dom.generateId(null,"redes"))}}; |
| 363 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 363 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.body.style.overflow="none";attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 364 | 364 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.guias={ATUAL:"temas",ALTURACORPOGUIAS:0,CONFIGURA:{"temas":{icone:"imagens/gisicons/show-layers.png",titulo:$trad("g4a"),id:"guia1",idconteudo:"guia1obj",click:""},"adiciona":{icone:"imagens/gisicons/show-catalog.png",titulo:$trad("g1a"),id:"guia2",idconteudo:"guia2obj",click:function(){var ondeArvore;i3GEO.guias.mostra("adiciona");if(!$i("arvoreAdicionaTema")){try{ondeArvore=objmapa.guiaMenu+"obj"}catch(e){ondeArvore="guia2obj"}}else{ondeArvore="arvoreAdicionaTema"}if(document.getElementById("outrasOpcoesAdiciona")){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.idonde="outrasOpcoesAdiciona";i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore=false}i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,ondeArvore)}},"legenda":{icone:"imagens/gisicons/show-legend.png",titulo:$trad("g3"),id:"guia4",idconteudo:"guia4obj",click:function(){i3GEO.guias.mostra("legenda");i3GEO.mapa.legendaHTML.cria("guia4obj")}},"mapas":{icone:"imagens/gisicons/show-links.png",titulo:"Links",id:"guia5",idconteudo:"guia5obj",click:function(){var pegaMapas=function(retorno){var ins,mapa,ig1lt,ig1,nome,lkd,link,temp;ins="<br><div id='banners' style='overflow:auto;text-align:left'>";mapa=retorno.data.mapas;ig1lt=mapa.length;ig1=0;if(ig1lt>0){do{temp=mapa[ig1];nome=temp.NOME;if(temp.PUBLICADO){if(temp.PUBLICADO.toLowerCase()==="nao"){nome="<s>"+nome+"</s>"}}lkd=temp.LINK;link=i3GEO.configura.locaplic+"/ms_criamapa.php?temasa="+temp.TEMAS+"&layers="+temp.LIGADOS;if(temp.EXTENSAO!==""){link+="&mapext="+temp.EXTENSAO}if(temp.OUTROS!==""){link+="&"+temp.OUTROS}if(lkd!==""){link=lkd}ins+="<div><a href='"+link+"'><img src='"+temp.IMAGEM+"'></a></div><br>";ins+="<div><p style=text-align:center >"+nome+"</p></div><br>";ig1++}while(ig1<ig1lt)}$i(i3GEO.guias.CONFIGURA.mapas.idconteudo).innerHTML=ins+"</div>"};$i(i3GEO.guias.CONFIGURA.mapas.idconteudo).innerHTML="Aguarde...";i3GEO.guias.mostra("mapas");i3GEO.php.pegaMapas(pegaMapas)}}},ORDEM:"",TIPO:"guia",IDGUIAS:"guiasYUI",cria:function(onde){var nguiasreal=0,guiaconteudo,id,guia,g,re,ng,tituloguia,i,ins,altura,temp,CONFIGURA=i3GEO.guias.CONFIGURA,guias=i3GEO.util.listaChaves(CONFIGURA),nguias=guias.length;if(i3GEO.guias.TIPO==="movel"){i3GEO.guias.IDGUIAS="i3GEOguiaMovelConteudo";for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo)){i3GEO.guias.guiaMovel.config.guias.ids.push(i3GEO.guias.CONFIGURA[guias[ng]].id);i3GEO.guias.guiaMovel.config.guias.idsconteudos.push(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo);if(i3GEO.guias.CONFIGURA[guias[ng]].icone!==undefined){i3GEO.guias.guiaMovel.config.guias.icones.push(i3GEO.guias.CONFIGURA[guias[ng]].icone)}else{i3GEO.guias.guiaMovel.config.guias.icones.push("imagens/gisicons/open1.png")}i3GEO.guias.guiaMovel.config.guias.titulos.push(i3GEO.guias.CONFIGURA[guias[ng]].titulo);i3GEO.guias.guiaMovel.config.guias.chaves.push(guias[ng])}}return}try{for(g=0;g<12;g++){tituloguia="";if($i("guia"+g)){tituloguia=$i("guia"+g).innerHTML;re=new RegExp(" ","g");tituloguia=tituloguia.replace(re,'');for(ng=0;ng<nguias;ng++){if(CONFIGURA[guias[ng]].id==="guia"+g){tituloguia=""}}if(tituloguia!==""){i3GEO.guias.CONFIGURA["guia"+g]=[];i3GEO.guias.CONFIGURA["guia"+g].titulo=tituloguia;i3GEO.guias.CONFIGURA["guia"+g].id="guia"+g;i3GEO.guias.CONFIGURA["guia"+g].idconteudo="guia"+g+"obj";if($i('guia'+g).onclick){i3GEO.guias.CONFIGURA["guia"+g].click=$i("guia"+g).onclick}}}}if(i3GEO.guias.ORDEM===""){guias=i3GEO.util.listaChaves(CONFIGURA)}else{guias=i3GEO.guias.ORDEM}nguias=guias.length;if(arguments.length===0){for(ng=0;ng<nguias;ng++){i=$i(i3GEO.guias.CONFIGURA[guias[ng]].id);if(i){onde=i.parentNode}}}else{onde=$i(onde)}if(!onde){return}onde.id=i3GEO.guias.IDGUIAS;onde.className="yui-navset";if(i3GEO.guias.TIPO==="guia"||i3GEO.guias.TIPO==="tablet"){ins='<ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;text-align:center;">';for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){if($i(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo)){ins+='<li><a alt="" title=""><em><div id="'+i3GEO.guias.CONFIGURA[guias[ng]].id+'" >'+i3GEO.guias.CONFIGURA[guias[ng]].titulo+'</div></em></a></li>'}}}ins+="</ul>";onde.innerHTML=ins}if(i3GEO.guias.TIPO==="sanfona"){ins='<dl id=sanfona'+onde.id+' class="accordion" >';if(i3GEO.guias.ORDEM===""){for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){nguiasreal++}}}else{nguiasreal=i3GEO.guias.ORDEM.length}if(navn){altura=i3GEO.parametros.h-(nguiasreal*25)-1}else{altura=i3GEO.parametros.h-(nguiasreal*23)+1}for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){id=i3GEO.guias.CONFIGURA[guias[ng]].idconteudo;temp=$i(id);if(temp){guiaconteudo=temp.innerHTML;temp.innerHTML="";temp.style.display="none";temp.id="";ins+='<dt style=height:17px id="'+i3GEO.guias.CONFIGURA[guias[ng]].id+'" >'+'<table class=accordiontable ><tr><td width="98%" >'+i3GEO.guias.CONFIGURA[guias[ng]].titulo+'</td><td width="2%" ><img id="" src="'+i3GEO.configura.locaplic+'/imagens/branco.gif" style="width:10px;" /></td></tr></table>'+'<dd clas=close >'+'<div class=bd >'+'<div id="'+id+'" >'+guiaconteudo+'</div></div></dd>'}}}ins+="</dl>";onde.innerHTML=ins;onde.style.height=altura+"px";YAHOO.lutsr.accordion.init(true,5,false,"sanfona"+onde.id,altura);i3GEO.guias.ALTURACORPOGUIAS=altura}for(g=0;g<nguias;g++){guia=i3GEO.guias.CONFIGURA[guias[g]];id=guia.id;guiaconteudo=$i(id);if(guiaconteudo){if(guia.click===""||guia.click===undefined){eval('$i("'+id+'").onclick = function(event){i3GEO.guias.mostra("'+guias[g]+'");}')}else{guiaconteudo.onclick=guia.click}YAHOO.util.Event.addListener($i(id),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addListener($i(id),"click",YAHOO.util.Event.stopPropagation);YAHOO.util.Event.addFocusListener($i(id),YAHOO.util.Event.preventDefault);guiaconteudo.onmouseover=function(){};guiaconteudo.onmouseout=function(){};temp=$i(guia.idconteudo);if(temp){temp.style.overflow="auto";if(i3GEO.guias.TIPO==="guia"){if(i3GEO.guias.ALTURACORPOGUIAS===0){temp.style.height=i3GEO.parametros.h+"px"}else{temp.style.height=i3GEO.guias.ALTURACORPOGUIAS+"px"}}else{temp.style.height=onde.style.height}}}}}catch(e){}if(i3GEO.guias.TIPO!=="tablet"){i3GEO.guias.mostra(i3GEO.guias.ATUAL);i3GEO.guias.ativa(i3GEO.guias.ATUAL)}else{i3GEO.guias.escondeGuias()}},ajustaAltura:function(){var guia,guias,nguias,temp,temps,n,i,g,altura=0;if(i3GEO.guias.ALTURACORPOGUIAS!=0){altura=i3GEO.guias.ALTURACORPOGUIAS}guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){guia=$i(this.CONFIGURA[guias[g]].idconteudo);if(guia){guia.style.overflow="auto";if(this.TIPO==="guia"){guia.style.height=altura+"px"}if(this.TIPO==="sanfona"){guia.style.height=altura+"px";temp=$i("guiasYUI");if(temp){temp.style.height=altura+"px";temps=temp.getElementsByTagName("dd");n=temps.length;for(i=0;i<n;i++){if(temps[i].style.visibility=="visible"){temps[i].style.height=altura+"px"}}}YAHOO.lutsr.accordion.properties.altura=altura}}}},escondeGuias:function(){var guias,nguias,g,temp,attributes,anim;guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){temp=$i(this.CONFIGURA[guias[g]].idconteudo);if(temp){if(i3GEO.guias.TIPO==="tablet"&&temp.style.display==="block"){temp.style.overflow="hidden";attributes={height:{to:0},id:this.CONFIGURA[guias[g]].idconteudo};anim=new YAHOO.util.Anim(temp,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){var temp=$i(anim.attributes.id);temp.style.overflow="auto";temp.style.display="none";if(i3GEO.barraDeBotoes.BARRAS[0]){i3GEO.barraDeBotoes.BARRAS[0].show()}});anim.animate()}else{temp.style.display="none"}}if($i(this.CONFIGURA[guias[g]].id)&&i3GEO.guias.TIPO!=="movel"){$i(this.CONFIGURA[guias[g]].id).parentNode.parentNode.style.background="transparent"}}},mostra:function(guia){var guias,nguias,g,temp,attributes,anim;guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;if($i(i3GEO.guias.CONFIGURA[guia].idconteudo).style.display==="block"&&i3GEO.guias.TIPO==="tablet"){i3GEO.guias.escondeGuias();return}if(i3GEO.guias.TIPO!=="movel"){for(g=0;g<nguias;g++){if($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo)){$i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo).style.display="none"}if($i(i3GEO.guias.CONFIGURA[guias[g]].id)){$i(i3GEO.guias.CONFIGURA[guias[g]].id).parentNode.parentNode.style.background="transparent"}}}if(i3GEO.guias.CONFIGURA.toString().search(guia)<0){for(g=0;g<nguias;g++){if(i3GEO.guias.CONFIGURA[guias[g]].id===guia){guia=guias[g]}}}if(i3GEO.guias.CONFIGURA[guia]){temp=$i(i3GEO.guias.CONFIGURA[guia].idconteudo);if(temp){if(i3GEO.guias.TIPO==="tablet"){if(i3GEO.barraDeBotoes.BARRAS[0]){i3GEO.barraDeBotoes.BARRAS[0].hide()}temp.style.left=(i3GEO.parametros.w/2)-150+"px";temp.style.height=0;temp.style.display="block";temp.style.zIndex=9000;temp.style.overflow="hidden";attributes={height:{to:i3GEO.parametros.h-10}};anim=new YAHOO.util.Anim(temp,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){temp.style.overflow="auto";temp.style.display="block"});if(DetectaMobile("DetectAndroid")===true){temp.style.height="";temp.style.overflow="auto"}else{anim.animate()}}else{temp.style.display="block"}if(i3GEO.guias.TIPO!=="movel"){$i(i3GEO.guias.CONFIGURA[guia].id).parentNode.parentNode.style.backgroundColor="white"}i3GEO.guias.ATUAL=guia}}},ativa:function(guia){try{i3GEO.guias.ATUAL=guia;if(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].click!==""){i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].click.call()}}catch(e){}},libera:function(){if(!$i("conteudojanelaguias")){var i,w,pos,a,l,temp;$i(i3GEO.Interface.IDCORPO).style.left="0px";if($i(this.IDGUIAS)){$i(this.IDGUIAS).style.display="none"}i=$i("contemFerramentas");w=parseInt($i("contemFerramentas").style.width,10);$i("contemFerramentas").style.width="0px";pos="px";a=i3GEO.parametros.h;l=i3GEO.parametros.w+w;i3GEO.parametros.h=a;i3GEO.parametros.w=l;i=$i(i3GEO.Interface.IDCORPO);if(i){i.style.width=l+pos;i.style.height=a+pos}i=$i(i3GEO.Interface.IDMAPA);if(i){i.style.width=l+pos;i.style.height=a+pos;i.style.clip='rect('+0+" "+(l*1+2)+" "+(a*1+2)+" "+0+')'}i=$i("mst");if(i){i.style.width=l+1+pos}i3GEO.mapa.ajustaPosicao();temp=function(retorno){var novoel,temp,i,g,guias,nguias,janela;novoel=document.createElement("div");novoel.id="janelaguias";novoel.style.display="block";novoel.innerHTML='<div class="hd">Guias <div onclick ="i3GEO.janela.minimiza(\'conteudojanelaguias\')" id="janelaguias_minimizaCabecalho" class="container-minimiza" ></div></div><div class="bd" id="conteudojanelaguias_corpo" style=padding:0px ></div>';temp=$i("i3geo")?$i("i3geo").appendChild(novoel):document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("janelaguias",{width:"270px",fixedcenter:true,constraintoviewport:false,underlay:"none",close:false,visible:true,draggable:true,modal:false,iframe:true});YAHOO.i3GEO.janela.manager.register(janela);janela.render();janela.show();janela.cfg.setProperty("y",0);i=$i(i3GEO.guias.IDGUIAS);$i("conteudojanelaguias_corpo").appendChild(i);i.style.borderLeft="1px solid black";i.style.borderRight="1px solid black";guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){if($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo)){$i("conteudojanelaguias_corpo").appendChild($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo));temp=$i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo).style;temp.background="white";temp.border="1px solid black";temp.borderTop="0px solid black";temp.width="270px";temp.left="-1px";temp.height=i3GEO.parametros.h-90+"px"}}i3GEO.atualiza("");i.style.display="block";i.style.left="-1px";i.style.width="270px"};i3GEO.php.mudatamanho(temp,a,l)}else{janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop()}},mostraGuiaFerramenta:function(guia,namespace){var g,Dom=YAHOO.util.Dom;if(!namespace){namespace="guia"}for(g=0;g<12;g++){Dom.setStyle(namespace+g+"obj","display","none")}Dom.setStyle(guia+"obj","display","block")},guiaMovel:{ABERTA:false,config:{larguraPuxador:50,alturaPuxador:319,alturaGuiaMovel:0,larguraGuiaMovel:320,topGuiaMovel:0,guias:{icones:[],ids:[],idsconteudos:[],titulos:[],chaves:[]}},left:0,inicia:function(){var posMapa=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)),centroY=posMapa[1]+(i3GEO.parametros.h/2),config=i3GEO.guias.guiaMovel.config,temp;if(i3GEO.guias.ALTURACORPOGUIAS===0&&config.alturaGuiaMovel===0){i3GEO.guias.guiaMovel.config.alturaGuiaMovel=i3GEO.parametros.h}else{i3GEO.guias.guiaMovel.config.alturaGuiaMovel=i3GEO.guias.ALTURACORPOGUIAS}config=i3GEO.guias.guiaMovel.config;temp=$i("i3GEOguiaMovel").style;temp.left=(posMapa[0]+i3GEO.parametros.w-config.larguraPuxador)+"px";i3GEO.guias.guiaMovel.left=parseInt(temp.left,10)+"px";if(config.topGuiaMovel===0){temp.top=(centroY-((config.alturaGuiaMovel-42)/2))+"px"}else{temp.top=config.topGuiaMovel+"px"}temp.width=config.larguraPuxador+"px";temp=$i("i3GEOguiaMovelMolde").style;temp.top="0px";temp.left=config.larguraPuxador+"px";temp.width="0px";temp.height=config.alturaGuiaMovel+"px";temp.backgroundColor="white";temp=$i("i3GEOguiaMovelPuxador").style;temp.top=((config.alturaGuiaMovel-config.alturaPuxador)/2)+"px";temp.left="0px";temp.width=config.larguraPuxador+"px";temp.height=config.alturaPuxador+"px";temp=$i("i3GEOguiaMovelIcones").style;temp.left="1px";temp.top="1px";temp.width=(config.larguraGuiaMovel-1)+"px";temp.height="35px";if(navm){temp.height="37px"}temp.zIndex=5;temp.paddingTop="2px";temp=$i("i3GEOguiaMovelConteudo").style;temp.left="1px";temp.top="38px";temp.height=(config.alturaGuiaMovel-39)+"px";if(navm){temp.width=(config.larguraGuiaMovel-1)+"px"}else{temp.width=(config.larguraGuiaMovel-5)+"px"}temp.paddingLeft="4px";YAHOO.util.Dom.setStyle("i3GEOguiaMovelConteudo","opacity",0.90);YAHOO.util.Dom.setStyle("i3GEOguiaMovelIcones","opacity",0.90);YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.10);$i("i3GEOguiaMovelMolde").onmouseover=function(){if($i("i3GEOguiaMovelConteudo").style.display==="block"){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)}if($i("i3GEOguiaMovelIcones").innerHTML===""){i3GEO.guias.guiaMovel.mostraIcones()}};$i("i3GEOguiaMovelMolde").onmouseout=function(){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.20);if($i("i3GEOguiaMovelIcones").innerHTML===""){i3GEO.guias.guiaMovel.mostraIcones()}};i3GEO.guias.guiaMovel.ativa(i3GEO.guias.ATUAL);if(i3GEO.guias.guiaMovel.ABERTA===true){i3GEO.guias.guiaMovel.abreFecha()}},mostraIcones:function(){if($i("i3GEOguiaMovelIcones").innerHTML!=""){return}var n=i3GEO.guias.guiaMovel.config.guias.icones.length,i,temp=i3GEO.guias.guiaMovel.config.guias,ins="";if(i3GEO.guias.ORDEM!==""){temp.chaves=i3GEO.guias.ORDEM}for(i=0;i<n;i++){if(temp.chaves[i]){ins+="<button title='"+temp.titulos[i]+"' onmouseout='javascript:this.className = \"iconeGuiaMovel iconeGuiaMovelMouseOut\"' onmouseover='javascript:this.className = \"iconeGuiaMovel iconeGuiaMovelMouseOver\"' onclick='i3GEO.guias.guiaMovel.ativa(\""+temp.chaves[i]+"\")' class=iconeGuiaMovel ><img id='"+temp.ids[i]+"' src='"+i3GEO.configura.locaplic+"/"+temp.icones[i]+"' style='cursor:pointer;;' /></button>"}}$i("i3GEOguiaMovelIcones").innerHTML=ins;i3GEO.guias.guiaMovel.desativaIcones();if($i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id)){$i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id).parentNode.style.backgroundColor="#cedff2";$i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id).parentNode.style.boxShadow="none"}},desativaIcones:function(){var ims=$i("i3GEOguiaMovelIcones").getElementsByTagName("button"),n=ims.length,i;for(i=0;i<n;i++){ims[i].style.backgroundColor="white";ims[i].style.boxShadow=""}},ativa:function(chave){if(i3GEO.guias.CONFIGURA[chave].click){i3GEO.guias.CONFIGURA[chave].click.call()}i3GEO.guias.escondeGuias();i3GEO.guias.mostra(chave);i3GEO.guias.ATUAL=chave;i3GEO.guias.guiaMovel.desativaIcones();if($i(i3GEO.guias.CONFIGURA[chave].id)){$i(i3GEO.guias.CONFIGURA[chave].id).parentNode.style.backgroundColor="#cedff2";$i(i3GEO.guias.CONFIGURA[chave].id).parentNode.style.boxShadow="none"}},reposiciona:function(){var temp=$i("i3GEOguiaMovel").style.top;i3GEO.guias.guiaMovel.config.alturaGuiaMovel=0;i3GEO.guias.ALTURACORPOGUIAS=0;$i("i3GEOguiaMovelIcones").style.display="none";$i("i3GEOguiaMovelConteudo").style.display="none";$i("i3GEOguiaMovelMolde").style.display="none";i3GEO.guias.escondeGuias();i3GEO.guias.guiaMovel.inicia();$i("i3GEOguiaMovel").style.top=temp},abreFecha:function(){var molde=$i("i3GEOguiaMovelMolde"),guia=$i("i3GEOguiaMovel"),attributes,anim,anim1;if(molde.style.display==="block"){$i("i3GEOguiaMovelIcones").style.display="none";$i("i3GEOguiaMovelConteudo").style.display="none";attributes={left:{to:parseInt(i3GEO.guias.guiaMovel.left,10)},id:"i3GEOguiaMovel"};anim=new YAHOO.util.Anim(guia,attributes,1,YAHOO.util.Easing.easeNone);attributes={width:{to:0},id:"i3GEOguiaMovelMolde"};anim1=new YAHOO.util.Anim(molde,attributes,1,YAHOO.util.Easing.easeNone);anim.duration=0.5;anim1.duration=0.5;anim.animate();anim1.animate();anim1.onComplete.subscribe(function(){molde.style.display="none"})}else{molde.style.display="block";attributes={left:{to:parseInt(guia.style.left,10)-i3GEO.guias.guiaMovel.config.larguraGuiaMovel},id:"i3GEOguiaMovel"};anim=new YAHOO.util.Anim(guia,attributes,1,YAHOO.util.Easing.easeNone);attributes={width:{to:i3GEO.guias.guiaMovel.config.larguraGuiaMovel},id:"i3GEOguiaMovelMolde"};anim1=new YAHOO.util.Anim(molde,attributes,1,YAHOO.util.Easing.easeNone);anim.duration=0.5;anim1.duration=0.5;anim1.onComplete.subscribe(function(){$i("i3GEOguiaMovelIcones").style.display="block";$i("i3GEOguiaMovelConteudo").style.display="block";i3GEO.guias.guiaMovel.mostraIcones();YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)});anim.animate();anim1.animate()}}}}; |
| 365 | 365 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.arvoreDeCamadas={BARRAPROGRESSO:true,MOSTRALISTAKML:false,FILTRO:"",VERIFICAABRANGENCIATEMAS:true,finaliza:"",EXPANDESOLEGENDA:false,PERMITEEXPANDIRTEMAS:true,ARRASTARORDEM:true,ARRASTARLIXEIRA:true,ALTERAOPACIDADE:true,ANIMAMAPA:true,LIGARDESLIGARTODOS:true,FILTRAR:true,ABRELEGENDA:true,EXPANDIDA:false,LEGENDAEXPANDIDA:false,OPCOESICONES:true,OPCOESTEMAS:true,OPCOESLEGENDA:true,AGUARDALEGENDA:false,ICONETEMA:true,FUNCOES:{farolescala:true,excluir:true,sobe:true,desce:true,fonte:true,zoomtema:true,compartilhar:true,opacidade:true,mudanome:true,procurar:true,toponimia:true,etiquetas:true,filtrar:true,tabela:true,grafico:true,editorlegenda:true,destacar:true,cortina:true,sql:true,comentar:true,temporizador:true,wms:true,tme:true},CAMADAS:"",CAMADASINICIAIS:"",ARVORE:null,IDHTML:"listaTemas",SID:null,LOCAPLIC:null,ATIVATEMA:"",cria:function(onde,temas,g_sid,g_locaplic,funcaoTema){if(!YAHOO.lang.isUndefined(funcaoTema)){i3GEO.arvoreDeCamadas.ATIVATEMA=funcaoTema}var novoel;if(i3GEO.arvoreDeCamadas.BARRAPROGRESSO===true&&i3GEO.Interface.ATUAL==="openlayers"){if(!$i("i3GEOprogressoDiv")){novoel=document.createElement("div");novoel.id="i3GEOprogressoDiv";novoel.style.position="absolute";novoel.style.top="0px";novoel.style.zIndex="50000";novoel.style.left=(i3GEO.parametros.w/2)-75+"px";$i(i3GEO.Interface.IDMAPA).appendChild(novoel);i3GEO.arvoreDeCamadas.progressBar=new YAHOO.widget.ProgressBar({height:5,width:150,minValue:1,maxValue:0,value:0}).render("i3GEOprogressoDiv")}}i3GEO.arvoreDeCamadas.SID=typeof(g_sid)!=='undefined'?g_sid:i3GEO.configura.sid;i3GEO.arvoreDeCamadas.LOCAPLIC=typeof(g_locaplic)!=='undefined'?g_locaplic:i3GEO.configura.locaplic;if(onde!==""){i3GEO.arvoreDeCamadas.IDHTML=onde}if(i3GEO.arvoreDeCamadas.IDHTML===""){return}if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return}if(YAHOO.lang.isUndefined(temas)||temas===""){temas=i3GEO.arvoreDeCamadas.CAMADAS}i3GEO.arvoreDeCamadas.atualiza(temas);if(i3GEO.arvoreDeCamadas.finaliza!==""){eval(i3GEO.arvoreDeCamadas.finaliza)}},atualiza:function(temas,forca){if(arguments.length===0){temas=i3GEO.arvoreDeCamadas.CAMADAS;i3GEO.arvoreDeCamadas.CAMADAS="";forca=false}var estilo,temp,newVal,root,tempNode,titulo,d,c,ltema,temaNode,i,j,n,nk,k,noGrupo,incluidos=[],grupoNode="",grupoLayers=i3GEO.configura.grupoLayers,textoTema="";temp=$i(i3GEO.arvoreDeCamadas.IDHTML);if(temp){if(forca===true){temp.innerHTML=""}if(temp.innerHTML!==""){if(i3GEO.arvoreDeCamadas.comparaTemas(temas,i3GEO.arvoreDeCamadas.CAMADAS)){i3GEO.arvoreDeCamadas.CAMADAS=temas;return}}}else{return}i3GEO.util.defineValor(i3GEO.arvoreDeCamadas.IDHTML,"innerHTML","");i3GEO.arvoreDeCamadas.CAMADAS=temas;if(i3GEO.arvoreDeCamadas.CAMADASINICIAIS===""){i3GEO.arvoreDeCamadas.CAMADASINICIAIS=temas}(function(){function changeIconMode(){var currentIconMode="";newVal=parseInt(this.value,10);if(newVal!==currentIconMode){currentIconMode=newVal}buildTree()}function buildTree(){i3GEO.arvoreDeCamadas.ARVORE=new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML)}buildTree()})();root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();titulo="<table><tr><td><b>"+$trad("a7")+"</b></td><td>";titulo+="</td></tr></table>";tempNode=new YAHOO.widget.HTMLNode({expanded:true,html:titulo,hasIcon:true,enableHighlight:false},root);new YAHOO.widget.HTMLNode({expanded:false,html:i3GEO.arvoreDeCamadas.montaOpcoesArvore(),hasIcon:false,enableHighlight:false},tempNode);estilo=navm?"text-align:left;font-size:11px;vertical-align:middle;display:table-cell;":"text-align:left;font-size:11px;vertical-align:vertical-align:top;padding-top:4px;";if(grupoLayers===""){c=temas.length;for(i=0,j=c;i<j;i+=1){ltema=temas[i];try{if((ltema.escondido).toLowerCase()!=="sim"){textoTema=i3GEO.arvoreDeCamadas.montaTextoTema(ltema);if(textoTema!==""){temaNode=new YAHOO.widget.HTMLNode({expanded:this.EXPANDIDA,html:textoTema,id:ltema.name,tipo:"tema",enableHighlight:false},tempNode);if(this.PERMITEEXPANDIRTEMAS===true){if(this.EXPANDESOLEGENDA===false){temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1)}else{if(ltema.classe!=="NAO"){temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}}}}YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault)}}catch(e){}}}else{nk=temas.length;c=grupoLayers.length;for(i=0;i<c;i+=1){noGrupo="";if(grupoLayers[i].icone&&grupoLayers[i].icone===true){noGrupo+="<p style="+estilo+" ><input class=inputsb style=cursor:pointer onclick='i3GEO.arvoreDeCamadas.ligaDesligaTemas(\""+i3GEO.configura.grupoLayers[i].layers+"\",this.checked)' type=checkbox title='Ligar/desligar temas do grupo' /> "}noGrupo+="<span style="+estilo+";vertical-align:top ><b>"+grupoLayers[i].nome+"</b></span></p>";d=this.EXPANDIDA;if(grupoLayers[i].expandido&&grupoLayers[i].expandido===true){d=true}n=grupoLayers[i].layers.length;for(j=0;j<n;j+=1){for(k=0;k<nk;k+=1){ltema=temas[k];if(ltema.name===grupoLayers[i].layers[j]&<ema.escondido==="nao"){if(noGrupo!==""){grupoNode=new YAHOO.widget.HTMLNode({enableHighlight:false,html:noGrupo,expanded:d},tempNode);noGrupo=""}textoTema=i3GEO.arvoreDeCamadas.montaTextoTema(ltema);if(textoTema!==""){d={enableHighlight:false,expanded:i3GEO.arvoreDeCamadas.EXPANDIDA,html:textoTema,id:ltema.name,tipo:"tema"};if(grupoLayers[i].dinamico&&grupoLayers[i].dinamico===true){temaNode=new YAHOO.widget.HTMLNode(d,grupoNode)}else{temaNode=new YAHOO.widget.HTMLNode(d,tempNode)}temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1);YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault);incluidos.push(ltema.name)}}}}}grupoNode=new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,html:"<b>Outros</b>"},tempNode);c=incluidos.length;for(k=0;k<nk;k+=1){ltema=temas[k];n=false;for(j=0;j<c;j+=1){if(incluidos[j]===ltema.name||ltema.escondido.toLowerCase()==="sim"){n=true}}if(n===false){temaNode=new YAHOO.widget.HTMLNode({enableHighlight:false,expanded:false,html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:ltema.name,tipo:"tema"},grupoNode,i3GEO.arvoreDeCamadas.EXPANDIDA,true);temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1);YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault)}}}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left";i3GEO.arvoreDeCamadas.ARVORE.draw();if(i3GEO.arvoreDeCamadas.ARRASTARORDEM===true||i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){i3GEO.arvoreDeCamadas.ativaDragDrop()}i3GEO.mapa.ativaTema(i3GEO.temaAtivo);i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas();if(i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS===true&&i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()")}i3GEO.eventos.executaEventos(i3GEO.eventos.ATUALIZAARVORECAMADAS)},montaOpcoesArvore:function(){var ins="",imb=i3GEO.util.$im("branco.gif"),estilo=function(i){return" onmouseout='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOut\";' onmouseover='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOver\";' class='"+i+" iconeMini iconeGuiaMovelMouseOut' src='"+imb+"' style='cursor:pointer;text-align:left' "};if(this.ARRASTARLIXEIRA===true){ins+="<img "+estilo("i3geo_lixeira")+" onclick='i3GEO.arvoreDeCamadas.dialogo.excluir();' id='i3geo_lixeira' title='"+$trad("t2")+"' />"}if(this.FILTRAR===true){ins+="<img "+estilo("i3geo_filtro")+" onclick='i3GEO.arvoreDeCamadas.dialogo.filtro();' id='i3geo_filtro' title='"+$trad("t2a")+"' />"}if(this.ABRELEGENDA===true){ins+="<img "+estilo("soltaleg2")+" onclick='i3GEO.mapa.legendaHTML.libera();' id='soltaleg2' title='"+$trad("t2b")+"' />"}if(this.ALTERAOPACIDADE===true){ins+="<img "+estilo("opacidadeMapa")+" onclick='i3GEO.mapa.dialogo.opacidade();' id='opacidadeMapa' title='"+$trad("t20")+"' />"}if(this.ANIMAMAPA===true&&(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps")){ins+="<img "+estilo("animaMapa")+" onclick='i3GEO.mapa.dialogo.animacao();' id='animaMapa' title='"+$trad("p21")+"' />"}if(this.LIGARDESLIGARTODOS===true){ins+=" <img "+estilo("olhoAberto")+" onclick='i3GEO.arvoreDeCamadas.aplicaTemas(\"ligartodos\");' id='olhoAberto' title='"+$trad("t3a")+"' />";ins+=" <img "+estilo("olhoFechado")+" onclick='i3GEO.arvoreDeCamadas.aplicaTemas(\"desligartodos\");' id='olhoFechado' title='"+$trad("t3b")+"' />"}return ins},ligaDesligaTemas:function(lista,status){var c,n,i,aplica=false;lista=lista.split(",");n=lista.length;for(i=0;i<n;i+=1){c=i3GEO.arvoreDeCamadas.capturaCheckBox(lista[i]);if(c){if(c.checked!==status){aplica=true}c.checked=status;if(aplica===true){c.onclick()}}}},ativaDragDrop:function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event;YAHOO.example.DDList="";YAHOO.example.DDApp={init:function(){var i,ltema;if($i("i3geo_lixeira")&&i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){new YAHOO.util.DDTarget("i3geo_lixeira")}i=i3GEO.arvoreDeCamadas.CAMADAS.length-1;if(i3GEO.arvoreDeCamadas.CAMADAS.length-1>=0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if($i("arrastar_"+ltema.name)){new YAHOO.example.DDList("arrastar_"+ltema.name)}}while(i--)}}};YAHOO.example.DDList=function(id,sGroup,config){YAHOO.example.DDList.superclass.constructor.call(this,id,sGroup,config);this.logger=this.logger||YAHOO;YAHOO.util.Dom.setStyle(this.getDragEl(),"opacity",0.67);this.goingUp=false;this.lastY=0};YAHOO.extend(YAHOO.example.DDList,YAHOO.util.DDProxy,{startDrag:function(x,y){var dragEl,clickEl,Dom=YAHOO.util.Dom;this.logger.log(this.id+" startDrag");dragEl=this.getDragEl();clickEl=this.getEl();Dom.setStyle(clickEl,"visibility","hidden");dragEl.innerHTML=clickEl.innerHTML;Dom.setStyle(dragEl,"color",Dom.getStyle(clickEl,"color"));Dom.setStyle(dragEl,"backgroundColor",Dom.getStyle(clickEl,"backgroundColor"));Dom.setStyle(dragEl,"border","4px solid gray");Dom.setStyle(dragEl,"z-index","5000")},endDrag:function(e){var srcEl,proxy,a,thisid,proxyid;srcEl=this.getEl();proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);proxyid=proxy.id;thisid=this.id;a.onComplete.subscribe(function(){var Dom=YAHOO.util.Dom;Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(thisid,"visibility","")});a.animate();YAHOO.util.Dom.setStyle('i3geo_lixeira','border','0px solid blue')},onDragDrop:function(e,id){var pt,region,tema,destEl,els,lista,temp,DDM=YAHOO.util.DragDropMgr,Dom=YAHOO.util.Dom;if(DDM.interactionInfo.drop.length===1){pt=DDM.interactionInfo.point;region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){DDM.refreshCache();if(DDM.getDDById(id).id==="i3geo_lixeira"){if(i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){(new YAHOO.util.Anim("i3geo_lixeira",{opacity:{from:0,to:1}},3,YAHOO.util.Easing.easeOutStrong)).animate();tema=(this.getEl()).id.split("arrastar_")[1];i3GEO.tema.exclui(tema)}}else{if(i3GEO.arvoreDeCamadas.ARRASTARORDEM===true){destEl=Dom.get(id);destEl.appendChild(this.getEl());els=i3GEO.arvoreDeCamadas.listaLigadosDesligados();lista=els[2].join(",");temp=function(retorno){i3GEO.atualiza(retorno);if(i3GEO.Interface.ATUAL==="openlayers"){i3GEO.Interface.openlayers.ordenaLayers()}};i3GEO.php.reordenatemas(temp,lista)}}}}},onDrag:function(e){var y;y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else if(y>this.lastY){this.goingUp=false}this.lastY=y;if(i3GEO.guias.TIPO==="movel"){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)}},onDragOver:function(e,id){var destEl;destEl=YAHOO.util.Dom.get(id);if($i("i3geo_lixeira")&&id==="i3geo_lixeira"){$i("i3geo_lixeira").style.border="1px solid red"}else{destEl.style.textDecoration="underline"}},onDragOut:function(e,id){$i(id).style.textDecoration="none"}});Event.onDOMReady(YAHOO.example.DDApp.init,YAHOO.example.DDApp,true)},montaOpcoes:function(node){var opcoesNode,idtema,ltema,farol,mfarol,tnome="",imb=i3GEO.util.$im("branco.gif"),funcoes=i3GEO.arvoreDeCamadas.FUNCOES;idtema=node.data.id;ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);if(i3GEO.arvoreDeCamadas.OPCOESICONES===true){if(funcoes.farolescala===true){farol="maisamarelo.png";mfarol="";if(ltema.escala*1<i3GEO.parametros.mapscale*1){farol="maisverde.png";mfarol=$trad("t9")}if(ltema.escala*1>i3GEO.parametros.mapscale*1){farol="maisvermelho.png";mfarol=$trad("t10")}if(ltema.escala===0){farol="maisamarelo.png";mfarol=$trad("t11")}tnome+=" <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' />"}if(funcoes.excluir===true){tnome+=" <img id='idx"+ltema.name+"' class='x' src='"+imb+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.sobe===true){tnome+=" <img class='sobe' src='"+imb+"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.desce===true){tnome+=" <img class='desce' src='"+imb+"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.fonte===true){tnome+=" <img class='fonte' src='"+imb+"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if((ltema.zoomtema.toLowerCase()==="sim")&&(funcoes.zoomtema===true)){tnome+=" <img class='extent' src='"+imb+"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node);if(funcoes.compartilhar===true&<ema.permitecomentario.toLowerCase()!=="nao"){temp=i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&temasa="+ltema.name;tnome=i3GEO.social.compartilhar("",temp,temp,"semtotal");iconesNode=new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node)}}if(i3GEO.arvoreDeCamadas.OPCOESTEMAS===true){opcoesNode=new YAHOO.widget.HTMLNode({html:$trad("t18a"),idopcoes:ltema.name,identifica:ltema.identifica,enableHighlight:false,expanded:false},node);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraOpcoes,1)}if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA===true&<ema.classe!=="NAO"){opcoesNode=new YAHOO.widget.HTMLNode({html:$trad("p3"),idlegenda:ltema.name,enableHighlight:false,expanded:i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA},node);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}node.loadComplete()},mostraOpcoes:function(node){var tnome,idtema=node.data.idopcoes,ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema),funcoes=i3GEO.arvoreDeCamadas.FUNCOES;if(funcoes.opacidade===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+" <a class='tic' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' href='#' /a>"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if(funcoes.temporizador===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' > </a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+" <a class='tic' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' href='#' /a>"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' > </a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if(funcoes.mudanome===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","8","")+" <a class='tic' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' href='#' />"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if((ltema.type<3)&&(ltema.connectiontype!==7)){if(funcoes.procurar===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node)}if(funcoes.toponimia===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t24"),$trad("t25"),'i3GEO.tema.dialogo.toponimia(\"'+ltema.name+'\")',node)}if(funcoes.etiquetas===true&&(ltema.identifica.toLowerCase()==="sim"||ltema.identifica==="")){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node)}if(funcoes.filtrar===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node)}if(funcoes.tabela===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node)}if(i3GEO.parametros.versaoms>4&&funcoes.grafico===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t37"),$trad("t37"),'i3GEO.tema.dialogo.graficotema(\"'+ltema.name+'\")',node)}}if((ltema.type<4||ltema.type===8)&&funcoes.editorlegenda===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node)}if(funcoes.destacar===true&&i3GEO.Interface.ATUAL!=="googlemaps"&&i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node)}if(funcoes.sql===true&<ema.editorsql.toLowerCase()==="sim"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t40"),$trad("t41"),'i3GEO.tema.dialogo.editorsql(\"'+ltema.name+'\")',node)}if(funcoes.comentar===true&<ema.permitecomentario.toLowerCase()!=="nao"&&i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t45"),$trad("t45"),'i3GEO.tema.dialogo.comentario(\"'+ltema.name+'\")',node)}if(funcoes.wms===true&<ema.permiteogc.toLowerCase()!=="nao"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema("Getcapabilities",'WMS-OGC','i3GEO.tema.dialogo.mostraWms(\"'+ltema.name+'\")',node)}if(i3GEO.login.verificaCookieLogin()&&i3GEO.parametros.editor.toLowerCase()==="sim"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t44"),"<span style=color:red title='Apenas usuários editores podem ver essa opção' >"+$trad("t44")+"</span>",'i3GEO.tema.dialogo.salvaMapfile(\"'+ltema.name+'\")',node)}if(funcoes.tme===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t49"),$trad("t49"),'i3GEO.tema.dialogo.tme(\"'+ltema.name+'\")',node)}node.loadComplete()},adicionaOpcaoTema:function(dica,titulo,onclick,node){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>";new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node)},mostraLegenda:function(node){var retorna,idtema=node.data.idlegenda;retorna=function(retorno){var original={data:""},i,re,tabela,linhas,linha,colunas,incluir,elementos,nelementos,inputs,desativar,nindices;if(retorno.data.legenda){original=retorno;retorno=retorno.data.legenda;if(retorno[0]){if((navn)&&(!retorno[0].imagem)){tabela=retorno}else{i=retorno[0].imagem;re=new RegExp("tiff","g");i=i.replace(re,'png');tabela="<img src='"+i+"' />"}retorno=""}else{linhas=retorno.split("#");if(linhas.length>1){linhas=retorno.split("|");tabela="<table>";linha=linhas.length-1;if(linha>=0){do{colunas=linhas[linha].split("#");re=new RegExp("'","g");tabela+="<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>"}while(linha--)}tabela+="</table><br>"}else{tabela=retorno}}}else{tabela="<img src='"+retorno.data[0].imagem+"' />"}incluir="<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false},node);node.loadComplete();elementos=document.getElementById(idtema+"verdiv").getElementsByTagName("input");nelementos=elementos.length;inputs=[];i=0;if(nelementos>0){do{if(elementos[i].type==="checkbox"){inputs.push(elementos[i])}i++}while(i<nelementos)}if(original.data.desativar){desativar=original.data.desativar;nindices=desativar.length;i=0;if(nindices>0){do{inputs[desativar[i]].checked=false;i++}while(i<nindices)}}};if(i3GEO.configura.templateLegenda!==""){i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda)}else{i3GEO.php.criaLegendaHTML(retorna,idtema)}},atualizaLegenda:function(idtema){var node;if(document.getElementById(idtema+"verdiv")){node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema);if(node){i3GEO.arvoreDeCamadas.ARVORE.removeChildren(node);this.mostraLegenda(node);if($i("janelaLegenda"+idtema+"_corpo")){i3GEO.tema.mostralegendajanela(idtema,"","abrejanela")}}}},escolheCorClasse:function(leg){var obj,novoel;leg=leg.parentNode.getElementsByTagName("input")[0];if(!$i("tempinputcorclasse")){novoel=document.createElement("input");novoel.id="tempinputcorclasse";novoel.style.display="none";novoel.alt="objeto criado para guardar dados da funcao escolohercorclasse";novoel.onchange="";document.body.appendChild(novoel)}obj=$i("tempinputcorclasse");obj.value="";obj.tema=leg.name;obj.idclasse=leg.value;obj.onchange=function(){var obj=$i("tempinputcorclasse");i3GEO.tema.alteracorclasse(obj.tema,obj.idclasse,obj.value)};i3GEO.util.abreCor("","tempinputcorclasse")},inverteStatusClasse:function(leg){var temp=function(retorno){i3GEO.atualiza();i3GEO.Interface.atualizaTema(retorno,leg.name)};i3GEO.php.inverteStatusClasse(temp,leg.name,leg.value)},montaTextoTema:function(tema){var ck,html,estilo,iu=i3GEO.util;if(tema.status*1===2){ck=' CHECKED '}else{ck=""}if(this.FILTRO!==""){if(this.FILTRO==="desligados"&&ck!==""){return""}if(this.FILTRO==="ligados"&&ck===""){return""}if(this.FILTRO==="selecionados"&&tema.sel.toLowerCase()!=="sim"){return""}if(this.FILTRO==="download"&&tema.download.toLowerCase()!=="sim"){return""}if(this.FILTRO==="wms"&&tema.connectiontype*1!==7){return""}if(this.FILTRO==="raster"&&tema.type*1!==3){return""}if(this.FILTRO==="toponimia"&&tema.type*1!==4){return""}}estilo=navm?"text-align:left;font-size:11px;vertical-align:middle;display:table-cell;":"text-align:left;font-size:11px;vertical-align:top;";html="<p onclick='i3GEO.mapa.ativaTema(\""+tema.name+"\")' id='arrastar_"+tema.name+"' style='"+estilo+"' >";estilo=navm?"cursor:pointer;vertical-align:15%;":"cursor:pointer;";html+="<input class=inputsb style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t3")+"','ligadesliga')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" type='checkbox' name=\"layer\" value='"+tema.name+"' "+ck;if(i3GEO.arvoreDeCamadas.ATIVATEMA!==""){html+="onclick=\""+i3GEO.arvoreDeCamadas.ATIVATEMA+"\""}else{html+="onclick='i3GEO.util.criaBotaoAplicar(\"i3GEO.arvoreDeCamadas.aplicaTemas\",\""+$trad("p14")+"\",\"i3geoBotaoAplicarCamadas\",this)'"}html+=" />";estilo=navm?"cursor:pointer;vertical-align:35%;padding-top:0px;":"cursor:pointer;vertical-align:20%;";if(tema.iconetema!==""&&i3GEO.arvoreDeCamadas.ICONETEMA===true){html+=" <img style='"+estilo+"' src='"+tema.iconetema+"' />"}if(tema.contextoescala.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(tema.sel.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";html+=" <img style='"+estilo+"' src="+iu.$im("zoomsel.gif")+" title='"+$trad("t4a")+"' onclick='i3GEO.tema.zoomsel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','zoomsel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(tema.download.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("down1.gif")+" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t6")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}estilo=navm?"cursor:move;vertical-align:35%;padding-top:0px;color:black;":"cursor:move;vertical-align:20%;color:black;";if(i3GEO.arvoreDeCamadas.AGUARDALEGENDA){html+=" <span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onclick=\"i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','abrejanela');\" onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7a")+"','');i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','ativatimer');\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('');i3GEO.tema.mostralegendajanela('"+tema.name+"','','desativatimer');\" >"+tema.tema+"</span>"}else{html+=" <span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+tema.tema+"</span>"}html+="</p>";if(i3GEO.tema.TEMPORIZADORESID[tema.name]==undefined&&tema.temporizador!=""){i3GEO.tema.temporizador(tema.name,tema.temporizador)}return(html)},atualizaFarol:function(mapscale){var farol,l,ltema,escala,iu=i3GEO.util,im=i3GEO.configura.locaplic+"/imagens/",camadas=i3GEO.arvoreDeCamadas.CAMADAS;farol="maisamarelo.png";l=camadas.length-1;if(l>=0){do{ltema=camadas[l];escala=ltema.escala;if(escala*1<mapscale*1){farol="maisverde.png"}if(escala*1>mapscale*1){farol="maisvermelho.png"}if(escala*1===0){farol="maisamarelo.png"}iu.defineValor("farol"+ltema.name,"src",im+farol)}while(l--)}},aplicaTemas:function(tipo){if(arguments.length===0){tipo="normal"}var t="",temp;if(tipo==="normal"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("mantem")}if(tipo==="ligartodos"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("marca");if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["googleearth","openlayers","googlemaps"])){return}}if(tipo==="desligartodos"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("desmarca");if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["googleearth","openlayers","googlemaps"])){return}}temp=function(){i3GEO.atualiza();i3GEO.janela.fechaAguarde("redesenha")};try{clearTimeout(tempoBotaoAplicar)}catch(erro){}tempoBotaoAplicar="";if(tipo==="normal"){i3GEO.php.ligatemas(temp,t[1].toString(),t[0].toString());return}if(tipo==="ligartodos"){i3GEO.php.ligatemas(temp,"",t[2].toString());return}if(tipo==="desligartodos"){i3GEO.php.ligatemas(temp,t[2].toString(),"")}},listaLigadosDesligados:function(tipo){if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return[[],[],[]]}if(arguments.length===0){tipo="manter"}var no,cs,csn,j,c,nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"),ligados=[],desligados=[],todos=[],n=nos.length,i=0,ATUAL=i3GEO.Interface.ATUAL;do{try{no=nos[i].getEl();cs=no.getElementsByTagName("input");csn=cs.length;for(j=0;j<csn;j+=1){c=cs[j];if(c.name==="layer"){c.checked===true?ligados.push(c.value):desligados.push(c.value);todos.push(c.value);if(tipo==="marca"){c.checked=true;if(i3GEO.util.in_array(ATUAL,["googleearth","openlayers","googlemaps"])){i3GEO.Interface[ATUAL].ligaDesliga(c)}}if(tipo==="desmarca"){c.checked=false;if(i3GEO.util.in_array(ATUAL,["googleearth","openlayers","googlemaps"])){i3GEO.Interface[ATUAL].ligaDesliga(c)}}}}i++}catch(e){i+=1}}while(i<n);return([ligados,desligados,todos])},capturaCheckBox:function(tema){if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return}var nos,n,i,no,cs,csn,j,c;nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");n=nos.length;i=0;do{try{no=nos[i].getEl();cs=no.getElementsByTagName("input");csn=cs.length;for(j=0;j<csn;j+=1){c=cs[j];if(c.name==="layer"&&c.value===tema){return c}}i+=1}catch(e){i+=1}}while(i<n);return(null)},comparaTemas:function(novo,atual){try{var novon=novo.length,i;if(novon!==atual.length){return(false)}for(i=0;i<novon;i+=1){if(novo[i].name!==atual[i].name){return(false)}if(novo[i].tema!==atual[i].tema){return(false)}if(novo[i].sel!==atual[i].sel){return(false)}if(novo[i].status!==atual[i].status){return(false)}}return(true)}catch(e){return true}},pegaTema:function(idtema,camadas){var i;if(!camadas){camadas=i3GEO.arvoreDeCamadas.CAMADAS}i=camadas.length;while(i>0){i-=1;if(camadas[i].name===idtema){return camadas[i]}}return""},filtraCamadas:function(propriedade,valor,operador,camadas){var resultado=[],i=0,temp,nelementos=camadas.length,ltema;if(nelementos>0){do{ltema=camadas[i];if(ltema.escondido.toLowerCase()!=="sim"){temp=ltema[propriedade];if(operador==="igual"){if(temp==valor){resultado.push(ltema)}}if(operador==="diferente"){if(temp!=valor){resultado.push(ltema)}}if(operador==="menor"){if(temp<valor){resultado.push(ltema)}}}i+=1}while(i<nelementos)}return resultado},alteraPropCamadas:function(propriedade,valor,camada){var i=0,nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if(ltema.name===camada){ltema[propriedade]=valor}i+=1}while(i<nelementos)}},verificaAbrangenciaTemas:function(){if(i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS===false){return}try{var i=0,temp,nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];temp=ltema.exttema;if(temp!==""){if(i3GEO.util.intersectaBox(temp,i3GEO.parametros.mapexten)===false){$i("ArvoreTituloTema"+ltema.name).style.color="gray"}else{$i("ArvoreTituloTema"+ltema.name).style.color="black"}}i+=1}while(i<nelementos)}}catch(e){}},verificaAplicaExtensao:function(){var i=0,temp="",nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;try{if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if(ltema.aplicaextensao.toLowerCase()==="sim"){temp=ltema.name}i+=1}while(i<nelementos)}}catch(e){return""}return temp},dialogo:{filtro:function(){i3GEO.util.dialogoFerramenta("i3GEO.arvoreDeCamadas.dialogo.filtro()","filtroarvore","filtroarvore")},excluir:function(){i3GEO.util.dialogoFerramenta("i3GEO.arvoreDeCamadas.dialogo.excluir()","excluirarvore","excluirarvore")}}}; |
| 366 | 366 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.navega={TEMPONAVEGAR:600,FATORZOOM:2,timerNavega:null,centroDoMapa:function(){var xy;switch(i3GEO.Interface.ATUAL){case"openlayers":xy=i3geoOL.getCenter();if(xy){return[xy.lon,xy.lat]}else{return false}break;case"googlemaps":xy=i3GeoMap.getCenter();if(xy){return[xy.lng(),xy.lat()]}else{return false}break;default:return false}},marcaCentroDoMapa:function(xy){if(xy!=false){xy=i3GEO.calculo.dd2tela(xy[0]*1,xy[1]*1,$i(i3GEO.Interface.IDMAPA),i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);i3GEO.util.criaPin("i3GeoCentroDoMapa",i3GEO.configura.locaplic+'/imagens/alvo.png','30px','30px');i3GEO.util.posicionaImagemNoMapa("i3GeoCentroDoMapa",xy[0],xy[1])}},zoomin:function(locaplic,sid){if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomIn();return}if(sid){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.php.aproxima(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomout:function(locaplic,sid){if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomOut();return}if(sid){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.php.afasta(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomponto:function(locaplic,sid,x,y,tamanho,simbolo,cor){if(!simbolo){simbolo="ponto"}if(!tamanho){tamanho=15}if(!cor){cor="255 0 0"}if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}var f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.zoomponto(i3GEO.atualiza,"+x+","+y+","+tamanho+",'"+simbolo+"','"+cor+"');";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},zoompontoIMG:function(locaplic,sid,x,y){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}i3GEO.php.pan(i3GEO.atualiza,'','',x,y)},xy2xy:function(locaplic,sid,xi,yi,xf,yf,ext,tipoimagem){var disty,distx,ex,novoxi,novoxf,novoyf,nex;if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}disty=(yi*-1)+yf;distx=(xi*-1)+xf;ex=ext.split(" ");novoxi=(ex[0]*1)-distx;novoxf=(ex[2]*1)-distx;novoyi=(ex[1]*1)-disty;novoyf=(ex[3]*1)-disty;if((distx===0)&&(disty===0)){return false}else{nex=novoxi+" "+novoyi+" "+novoxf+" "+novoyf;i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,tipoimagem,nex);return true}},localizaIP:function(locaplic,sid,funcao){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}i3GEO.php.localizaIP(funcao)},zoomIP:function(locaplic,sid){try{if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}var mostraIP=function(retorno){if(retorno.data.latitude!==null){i3GEO.navega.zoomponto(locaplic,sid,retorno.data.longitude,retorno.data.latitude)}else{alert("Nao foi possivel identificar a localizacao.")}};i3GEO.navega.localizaIP(locaplic,sid,mostraIP)}catch(e){}},zoomExt:function(locaplic,sid,tipoimagem,ext){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}if(tipoimagem===""){tipoimagem="nenhum"}var f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.mudaext(i3GEO.atualiza,'"+tipoimagem+"','"+ext+"');";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},aplicaEscala:function(locaplic,sid,escala){if(i3GEO.Interface.ATUAL==="googlemaps"){i3GeoMap.setZoom(i3GEO.Interface.googlemaps.escala2nzoom(escala))}if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomToScale(escala,true)}},panFixo:function(locaplic,sid,direcao,w,h,escala){var x=0,y=0,f;if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}if(w===""){w=i3GEO.parametros.w}if(h===""){h=i3GEO.parametros.h}if(escala===""){escala=i3GEO.parametros.mapscale}switch(direcao){case"norte":y=h/6;x=w/2;break;case"sul":y=h-(h/6);x=w/2;break;case"leste":x=w-(w/6);y=h/2;break;case"oeste":x=w/6;y=h/2;break;case"nordeste":y=h/6;x=w-(w/6);break;case"sudeste":y=h-(h/6);x=w-(w/6);break;case"noroeste":y=h/6;x=w/6;break;case"sudoeste":y=h-(h/6);x=w/6;break}if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.pan(x,y);return}f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.pan(i3GEO.atualiza,"+escala+",'',"+x+","+y+");";try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},panFixoNorte:function(){i3GEO.navega.panFixo('','','norte','','','')},panFixoSul:function(){i3GEO.navega.panFixo('','','sul','','','')},panFixoOeste:function(){i3GEO.navega.panFixo('','','oeste','','','')},panFixoLeste:function(){i3GEO.navega.panFixo('','','leste','','','')},mostraRosaDosVentos:function(){var novoel,setas,i;try{if(i3GEO.configura.mostraRosaDosVentos==="nao"){return}if(g_tipoacao==="area"){return}}catch(e){}if(objposicaocursor.imgx<10||objposicaocursor.imgy<10||objposicaocursor.imgy>(i3GEO.parametros.h-10)){return}if(!$i("i3geo_rosa")){novoel=document.createElement("div");novoel.id="i3geo_rosa";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navn){novoel.style.opacity=".7"}else{novoel.style.filter="alpha(opacity=70)"}document.body.appendChild(novoel)}setas="<table id='rosaV' >";setas+="<tr onclick=\"javascript:i3GEO.configura.mostraRosaDosVentos='nao'\"><td></td><td></td><td style=cursor:pointer >x</td></tr><tr>";setas+="<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><table><tr>";setas+="<td><img class='rosamais' title='aproxima' onclick=\"i3GEO.navega.zoomin('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="<td><img class='rosamenos' title='afasta' onclick=\"i3GEO.navega.zoomout('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="</tr></table></td>";setas+="<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr></table>";i=$i("i3geo_rosa");i.innerHTML=setas;i.style.top=objposicaocursor.telay-27+"px";i.style.left=objposicaocursor.telax-27+"px";i.style.display="block";if($i("img")){YAHOO.util.Event.addListener($i("img"),"mousemove",function(){var i=$i("i3geo_rosa");i.style.display="none";YAHOO.util.Event.removeListener(escondeRosa)})}i3GEO.ajuda.mostraJanela('Clique nas pontas da rosa para navegar no mapa. Clique em x para parar de mostrar essa opção.')},autoRedesenho:{INTERVALO:0,ID:"tempoRedesenho",ativa:function(id){if(arguments.length===0){id="tempoRedesenho"}i3GEO.navega.autoRedesenho.ID=id;if(($i(id))&&i3GEO.navega.autoRedesenho.INTERVALO>0){$i(id).style.display="block"}if(i3GEO.navega.autoRedesenho.INTERVALO>0){i3GEO.navega.tempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.redesenha()',i3GEO.navega.autoRedesenho.INTERVALO)}if(($i(id))&&(i3GEO.navega.autoRedesenho.INTERVALO>0)){$i(id).innerHTML=i3GEO.navega.autoRedesenho.INTERVALO/1000;i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},desativa:function(){i3GEO.navega.autoRedesenho.INTERVALO=0;clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.navega.tempoRedesenho="";i3GEO.navega.contaTempoRedesenho="";if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).style.display="none"}},redesenha:function(){clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);switch(i3GEO.Interface.ATUAL){case"openlayers":i3GEO.Interface.openlayers.atualizaMapa();break;case"googlemaps":i3GEO.Interface.googlemaps.redesenha();break;default:i3GEO.atualiza("")}i3GEO.navega.autoRedesenho.ativa(i3GEO.navega.autoRedesenho.ID)},contagem:function(){if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).innerHTML=parseInt($i(i3GEO.navega.autoRedesenho.ID).innerHTML,10)-1}i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},zoomBox:{inicia:function(){if(i3GEO.navega.timerNavega!==null){return}if(g_tipoacao!=='zoomli'){return}if(!$i("i3geoboxZoom")){i3GEO.navega.zoomBox.criaBox()}var i=$i("i3geoboxZoom").style;i.width=0+"px";i.height=0+"px";i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+"px";i.top=objposicaocursor.telay+"px";boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.zoomBox.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.zoomBox.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}},criaBox:function(){if(i3GEO.navega.timerNavega!==null){return}if(!$i("i3geoboxZoom")){var novoel;novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxZoom";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=0.25}novoel.style.backgroundColor="gray";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b,wb,hb;b=$i("i3geoboxZoom").style;wb=parseInt(b.width,10);hb=parseInt(b.height,10);if(navm){if(wb>2){b.width=wb-2+"px"}if(hb>2){b.height=hb-2+"px"}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.navega.zoomBox.termina()};document.body.appendChild(novoel)}},desloca:function(){var bxs,ppx,py;if(i3GEO.navega.timerNavega!==null){return}if(g_tipoacao!=='zoomli'){return}bxs=$i("i3geoboxZoom").style;if(bxs.display!=="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2+"px"}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2+"px"}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2+"px"}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2+"px"}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){var valor,v,x1,y1,x2,y2,f,limpa=function(){};if(g_tipoacao!=='zoomli'){i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");return}try{if(i3GEO.navega.timerNavega!==null){return}valor=i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);v=valor[0];x1=valor[1];y1=valor[2];x2=valor[3];y2=valor[4];limpa=function(){var bxs=$i("i3geoboxZoom");if(bxs){bxs.style.display="none";bxs.style.visibility="hidden";bxs.style.width=0+"px";bxs.style.height=0+"px"}};if((x1===x2)||(y1===y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");if(i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface.googlemaps.zoom2extent(v);return}f="i3GEO.navega.timerNavega = null;i3GEO.navega.zoomExt('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','"+i3GEO.configura.tipoimagem+"','"+v+"')";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)}catch(e){limpa.call();return}}},lente:{POSICAOX:0,POSICAOY:0,ESTAATIVA:"nao",inicia:function(){var novoel,novoimg,temp;if(!$i("lente")){novoel=document.createElement("div");novoel.id='lente';novoel.style.clip='rect(0px,0px,0px,0px)';novoimg=document.createElement("img");novoimg.src="";novoimg.id='lenteimg';novoel.appendChild(novoimg);document.body.appendChild(novoel);novoel=document.createElement("div");novoel.id='boxlente';document.body.appendChild(novoel)}temp=$i('boxlente').style;temp.borderWidth='1';temp.borderColor="red";temp.display="block";$i("lente").style.display="block";i3GEO.navega.lente.ESTAATIVA="sim";i3GEO.navega.lente.atualiza();if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.lente.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.lente.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.lente.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.lente.movimenta()")}},atualiza:function(){var temp=function(retorno){try{var pos,volta,nimg,olente,oboxlente,olenteimg;retorno=retorno.data;if(retorno==="erro"){alert("A lente nao pode ser criada");return}volta=retorno.split(",");nimg=volta[2];olente=$i('lente');oboxlente=$i('boxlente');olenteimg=$i('lenteimg');olenteimg.src=nimg;olenteimg.style.width=volta[0]*1.5+"px";olenteimg.style.height=volta[1]*1.5+"px";olente.style.zIndex=1000;olenteimg.style.zIndex=1000;oboxlente.style.zIndex=1000;pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA));olente.style.left=pos[0]+i3GEO.navega.lente.POSICAOX+"px";olente.style.top=pos[1]+i3GEO.navega.lente.POSICAOY+"px";oboxlente.style.left=pos[0]+i3GEO.navega.lente.POSICAOX+"px";oboxlente.style.top=pos[1]+i3GEO.navega.lente.POSICAOY+"px";oboxlente.style.display='block';oboxlente.style.visibility='visible';olente.style.display='block';olente.style.visibility='visible';i3GEO.janela.fechaAguarde("ajaxabrelente")}catch(e){i3GEO.janela.fechaAguarde()}};if(i3GEO.navega.lente.ESTAATIVA==="sim"){i3GEO.php.aplicaResolucao(temp,1.5)}else{i3GEO.navega.lente.desativa()}},desativa:function(){$i("lente").style.display="none";$i("boxlente").style.display="none";$i('boxlente').style.borderWidth=0;i3GEO.navega.lente.ESTAATIVA="nao";i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.lente.movimenta()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.lente.atualiza()")},movimenta:function(){try{if(i3GEO.navega.lente.ESTAATIVA==="sim"){var pos=[0,0],esq,topo,clipt,i;if($i("lente").style.visibility==="visible"){pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA))}esq=(objposicaocursor.telax-pos[0])*2.25;topo=(objposicaocursor.telay-pos[1])*2.25;clipt="rect("+(topo-120)+"px "+(esq+120)+"px "+(topo+120)+"px "+(esq-120)+"px)";i=$i("lente").style;i.clip=clipt;i.top=pos[1]-(topo-120)+"px";i.left=pos[0]-(esq-120)+"px"}}catch(e){}}},destacaTema:{TAMANHO:75,ESTAATIVO:"nao",TEMA:"",inicia:function(tema){var novoel,novoeli,janela,pos;if(!$i("img_d")){pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA));novoel=document.createElement("div");novoel.id="div_d";novoel.style.zIndex=5000;document.body.appendChild(novoel);$i("div_d").innerHTML="<input style='position:relative;top:0px;left:0px'' type=image src='' id='img_d' />";$i("div_d").style.left=parseInt(pos[0],10)+"px";$i("div_d").style.top=parseInt(pos[1],10)+"px";$i("img_d").style.left=0+"px";$i("img_d").style.top=0+"px";$i("img_d").style.width=i3GEO.parametros.w+"px";$i("img_d").style.height=i3GEO.parametros.h+"px";$i("div_d").style.clip='rect(0 75 75 0)';novoeli=document.createElement("div");novoeli.id="div_di";novoel.appendChild(novoeli);$i("div_di").innerHTML="<p style='position:absolute;top:0px;left:0px'>+-</p>"}i3GEO.navega.destacaTema.TEMA=tema;i3GEO.navega.destacaTema.ESTAATIVO="sim";i3GEO.navega.destacaTema.atualiza();janela=i3GEO.janela.cria(160,0,"","center","center",$trad("x50")+" ","ativadesativaDestaque");YAHOO.util.Event.addListener(janela[0].close,"click",i3GEO.navega.destacaTema.desativa);if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.destacaTema.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.destacaTema.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.destacaTema.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()")}},atualiza:function(){if(i3GEO.navega.destacaTema.ESTAATIVO==="nao"){return}var temp=function(retorno){var m,novoel;retorno=retorno.data;m=new Image();m.src=retorno;$i("div_d").innerHTML="";$i("div_d").style.display="block";novoel=document.createElement("input");novoel.id="img_d";novoel.style.position="relative";novoel.style.top="0px";novoel.style.left="0px";novoel.type="image";novoel.src=m.src;novoel.style.display="block";$i("div_d").appendChild(novoel);i3GEO.janela.fechaAguarde("ajaxdestaca")};i3GEO.php.geradestaque(temp,i3GEO.navega.destacaTema.TEMA,i3GEO.parametros.mapexten)},desativa:function(){i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.destacaTema.atualiza()");i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()");i3GEO.navega.destacaTema.ESTAATIVO="nao";document.body.removeChild($i("div_d"))},movimenta:function(){if(i3GEO.navega.destacaTema.ESTAATIVO==="sim"){$i("div_d").style.clip='rect('+(objposicaocursor.imgy-i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx-10)+" "+(objposicaocursor.imgy-10)+" "+(objposicaocursor.imgx-i3GEO.navega.destacaTema.TAMANHO)+')'}}},barraDeZoom:{cria:function(){var temp="",estilo;if(navn){temp+='<div style="text-align:center;position:relative;left:9px" >'}estilo="top:4px;";if(navm){estilo="top:4px;left:-2px;"}temp+='<div id="vertMaisZoom" style="'+estilo+'"></div><div id="vertBGDiv" name="vertBGDiv" tabindex="0" x2:role="role:slider" state:valuenow="0" state:valuemin="0" state:valuemax="200" title="Zoom" >';temp+='<div id="vertHandleDivZoom" ><img alt="" class="slider" src="'+i3GEO.util.$im("branco.gif")+'" /></div></div>';if(navm){temp+='<div id=vertMenosZoom style="left:-1px;" ></div>'}else{temp+='<div id=vertMenosZoom ></div>'}if(navn){temp+='</div>'}return temp},ativa:function(){var temp;$i("vertMaisZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Amplia o mapa mantendo o centro atual.')};$i("vertMaisZoom").onclick=function(){if(!$i("imgtemp")){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=-1}$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomin';try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout("$i('vertBGDiv').onmouseup.call();",i3GEO.navega.TEMPONAVEGAR);if(g_fatordezoom<-6){$i("vertBGDiv").onmouseup.call()}};$i("vertMenosZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Reduz o mapa mantendo o centro atual.')};$i("vertMenosZoom").onclick=function(){if(!$i("imgtemp")){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=1}$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomout';try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout("$i('vertBGDiv').onmouseup.call();",i3GEO.navega.TEMPONAVEGAR);if(g_fatordezoom>6){$i("vertBGDiv").onmouseup.call()}};verticalSlider=YAHOO.widget.Slider.getVertSlider("vertBGDiv","vertHandleDivZoom",0,70);verticalSlider.onChange=function(offsetFromStart){g_fatordezoom=(offsetFromStart-35)/5};verticalSlider.setValue(35,true);if($i("vertBGDiv")){$i("vertBGDiv").onmouseup=function(){verticalSlider.setValue(35,true);if(g_fatordezoom!==0){temp=i3GEO.navega.TEMPONAVEGAR;i3GEO.navega.TEMPONAVEGAR=0;i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,i3geo_ns);i3GEO.navega.TEMPONAVEGAR=temp}g_fatordezoom=0}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousedown=function(){var iclone,corpo;$i("vertHandleDivZoom").onmouseout=function(e){if(!e){e=window.event}if(g_fatordezoom!==0){$i("vertBGDiv").onmouseup.call()}e.onmouseup.returnValue=false;e.onmouseout.returnValue=false};i3GEO.barraDeBotoes.BOTAOCLICADO='slidezoom';if(!$i("imgtemp")){iclone=document.createElement('IMG');iclone.style.position="absolute";iclone.id="imgtemp";iclone.style.border="1px solid blue";$i("img").parentNode.appendChild(iclone);iclone=$i("imgtemp");corpo=$i("img");if(!corpo){return}iclone.src=corpo.src;iclone.style.width=i3GEO.parametros.w+"px";iclone.style.height=i3GEO.parametros.h+"px";iclone.style.top=corpo.style.top+"px";iclone.style.left=corpo.style.left+"px";$i("img").style.display="none";iclone.style.display="block"}}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousemove=function(){try{var iclone,corpo,nt,nl,velhoh,velhow,nh=0,nw=0,t,l,fatorEscala;iclone=$i("imgtemp");corpo=$i("img");if(!corpo){return}nt=0;nl=0;i3geo_ns=parseInt(i3GEO.parametros.mapscale,10);if((g_fatordezoom>0)&&(g_fatordezoom<7)){g_fatordezoom=g_fatordezoom+1;velhoh=i3GEO.parametros.h;velhow=i3GEO.parametros.w;nh=velhoh/g_fatordezoom;nw=velhow/g_fatordezoom;t=parseInt(corpo.style.top,10);l=parseInt(corpo.style.left,10);nt=t+((velhoh-nh)*0.5);nl=l+((velhow-nw)*0.5);fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala,10)}if((g_fatordezoom<0)&&(g_fatordezoom>-7)){g_fatordezoom=g_fatordezoom-1;velhoh=i3GEO.parametros.h;velhow=i3GEO.parametros.w;nh=velhoh*g_fatordezoom*-1;nw=velhow*g_fatordezoom*-1;t=parseInt(corpo.style.top,10);l=parseInt(corpo.style.left,10);nt=t-((nh-velhoh)*0.5);nl=l-((nw-velhow)*0.5);fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala,10)}if(iclone){iclone.style.width=nw+"px";iclone.style.height=nh+"px";if(iclone.style.pixelTop){iclone.style.pixelTop=nt}else{iclone.style.top=nt+"px"}if(iclone.style.pixelLeft){iclone.style.pixelLeft=nl}else{iclone.style.left=nl+"px"}}if($i("i3geo_escalanum")){$i("i3geo_escalanum").value=i3geo_ns}}catch(e){}}}}},dialogo:{wiki:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.wiki()","wiki","wiki")},metar:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.metar()","metar","metar")},buscaFotos:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.buscaFotos()","buscafotos","buscaFotos")},google:function(coordenadas){i3GEO.navega.dialogo.google.coordenadas=coordenadas;if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")>0){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}i3GEO.util.criaBox();g_operacao="navega";var idgoogle="googlemaps"+Math.random();i3GEO.janela.cria((i3GEO.parametros.w/2)+25+"px",(i3GEO.parametros.h/2)+18+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>",idgoogle);atualizagoogle=function(){try{parent.frames[idgoogle+"i"].panTogoogle()}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()")}},confluence:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.confluence()","confluence","confluence")}}}; | ... | ... |
classesjs/i3geo_tudo_compacto47.js.php
| ... | ... | @@ -360,7 +360,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.tema={TEMPORIZADORESID:{},exc |
| 360 | 360 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.analise={dialogo:{graficoInterativo:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.graficoInterativo()","graficointerativo","graficointerativo")},linhaDoTempo:function(){i3GEO.janela.cria("450px","300px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","Linha do tempo <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=3&idajuda=88' > </a>");atualizaLinhaDoTempo=function(){var doc="";try{if(navn){if($i("wdocai")){doc=$i("wdocai").contentDocument}}else{if(document.frames("wdocai")){doc=document.frames("wdocai").document}}doc.getElementById("tl")?window.parent.wdocai.carregaDados():i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()")}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizaLinhaDoTempo()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizaLinhaDoTempo()")}},perfil:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.perfil()","perfil","perfil")},gradePontos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePontos()","gradepontos","gradeDePontos")},gradePol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePol()","gradepol","gradeDePoligonos")},gradeHex:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradeHex()","gradehex","gradeDeHex")},analisaGeometrias:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.analisaGeometrias()","analisageometrias","analisaGeometrias")},pontosdistri:function(){i3GEO.parametros.r==="nao"?alert($trad("x22")):i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri")},pontoempoligono:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontoempoligono()","pontoempoligono","pontoEmPoligono")},centromassa:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centromassa()","centromassa","centromassa")},nptPol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.nptPol()","nptpol","nptpol")},buffer:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.buffer()","buffer","buffer")},distanciaptpt:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.distanciaptpt()","distanciaptpt","distanciaptpt")},centroide:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centroide()","centroide","centroide")},dissolve:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.dissolve()","dissolve","dissolve")},agrupaElementos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.agrupaElementos()","agrupaelementos","agrupaElementos")}},medeDistancia:{inicia:function(){pontosdistobj={xpt:[],ypt:[],dist:[],distV:[],xtela:[],ytela:[],ximg:[],yimg:[],linhas:[],linhastemp:[]};i3GEO.analise.medeDistancia.criaJanela();if(g_tipoacao!=="mede"){if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.analise.medeDistancia.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.analise.medeDistancia.clique()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.analise.medeDistancia.movimento()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.analise.medeDistancia.movimento()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.analise.medeDistancia.fechaJanela()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.analise.medeDistancia.fechaJanela()")}$i("mostradistancia").style.display="block";if(i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.desenho.criaContainerRichdraw();i3GEO.desenho.richdraw.lineColor="black";i3GEO.desenho.richdraw.lineWidth="1px"}g_tipoacao="mede"}else{if(i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.desenho.richdraw.fecha()}var Dom=YAHOO.util.Dom;Dom.setStyle("mostradistancia","display","none");Dom.setStyle("pontosins","display","none")}},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostradistancia")){novoel=document.createElement("div");novoel.id="mostradistancia";ins='<div class="hd" style="font-size:11px"> Distância aproximada <a class=ajuda_usuario target=_blank href="'+i3GEO.configura.locaplic+'/ajuda_usuario.php?idcategoria=6&idajuda=50" > </a></div>'+'<div class="bd" style="text-align:left;padding:3px;" >'+'<div style="text-align:left;padding:3px;" id="mostradistancia_calculo" ></div>'+'<div style="text-align:left;font-size:10px" >'+'<span style="color:navy;cursor:pointer;text-align:left;" >'+'<table class=lista7 ><tr><td><input style="cursor:pointer" type="checkbox" id="pararraios" checked /></td><td>Raios</td><td> </td>'+'<td>'+'<input style="cursor:pointer" type="checkbox" id="parartextos" checked />'+'</td><td>Textos<td>'+'<td> Estilo:</td><td>'+i3GEO.desenho.caixaEstilos()+'</td>'+'<td> <input id=i3GEObotaoPerfil size="22" type="button" value="perfil"></td>'+'</tr></table></span>'+'</div>'+'</div>';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostradistancia",{iframe:true,width:"330px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();YAHOO.util.Event.addListener(janela.close,"click",i3GEO.analise.medeDistancia.fechaJanela)}else{i3GEO.util.defineValor("mostradistancia_calculo","innerHTML","");janela=YAHOO.i3GEO.janela.manager.find("mostradistancia")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);if(navm&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}new YAHOO.widget.Button("i3GEObotaoPerfil",{onclick:{fn:function(){var js=i3GEO.configura.locaplic+"/ferramentas/perfil/index.js";i3GEO.util.scriptTag(js,"i3GEOF.perfil.criaJanelaFlutuante(pontosdistobj)","i3GEOF.perfil_script")}}})},fechaJanela:function(){var janela;i3GEO.Interface.ATUAL!=="googleearth"?i3GEO.desenho.richdraw.fecha():i3GEO.Interface.googleearth.removePlacemark("divGeometriasTemp");i3GEO.util.removeChild("pontosins");if($i("divGeometriasTemp")){i3GEO.desenho.richdraw.fecha()}i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.analise.medeDistancia.clique()");i3GEO.eventos.MOUSEMOVE.remove("i3GEO.analise.medeDistancia.movimento()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.analise.medeDistancia.fechaJanela()");i3GEO.barraDeBotoes.ativaBotoes();janela=YAHOO.i3GEO.janela.manager.find("mostradistancia");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}},clique:function(){var n,d,decimal,dd;if(g_tipoacao==="mede"){n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1),(pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1))}}catch(e){}}if(n>0){d=i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);decimal=0;d=d+"";d=d.split(".");decimal=d[1].substr(0,5);d=d[0]+"."+decimal;d=d*1;pontosdistobj.dist[n]=d+pontosdistobj.dist[n-1];if(navm){i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n]),pontosdistobj.yimg[n])}if($i("pararraios")&&$i("pararraios").checked===true){if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.desenho.aplica("insereCirculo","",n)}if(i3GEO.Interface.ATUAL==="googleearth"){dd=Math.sqrt(((Math.pow((pontosdistobj.xpt[n]-pontosdistobj.xpt[n-1]),2))+(Math.pow((pontosdistobj.ypt[n]-pontosdistobj.ypt[n-1]),2))));i3GEO.Interface.googleearth.insereCirculo(pontosdistobj.xpt[n],pontosdistobj.ypt[n],dd,"","divGeometriasTemp")}}if($i("parartextos")&&$i("parartextos").checked===true){if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.desenho.aplica("insereTexto","",n,d+" km")}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.Interface.googleearth.insereMarca(d+" km",objposicaocursor.ddx,objposicaocursor.ddy,"","divGeometriasTemp")}}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.Interface.googleearth.insereLinha(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],pontosdistobj.xpt[n],pontosdistobj.ypt[n],"","divGeometriasTemp")}}if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeDistancia.paraCalculo,"divGeometriasTemp");i3GEO.desenho.insereCirculo(objposicaocursor.imgx,objposicaocursor.imgy,3)}}},paraCalculo:function(){var botaoPan=$i("pan");g_tipoacao="";botaoPan?botaoPan.onclick.call():i3GEO.barraDeBotoes.ativaBotoes()},movimento:function(){var n,d,r,decimal,da,mostra,texto,calculo=i3GEO.calculo;if(g_tipoacao==="mede"){YAHOO.util.Dom.setStyle("mostradistancia","display","block");n=pontosdistobj.xpt.length;try{if(n>0){d=calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);r=calculo.direcao(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy);r=calculo.dd2dms(r,r);r=r[0];d=d+"";d=d.split(".");decimal=d[1].substr(0,5);d=d[0]+"."+decimal;d=d*1;da=d+pontosdistobj.dist[n-1];da=da+"";da=da.split(".");decimal=da[1].substr(0,5);da=da[0]+"."+decimal;da=da*1;mostra=$i("mostradistancia_calculo");if(mostra){texto=" Dist acum.= "+da+" km <br>atual= "+d+" km <br> "+$trad("x23")+" (DMS)= "+r;texto+="<br>"+$trad("x25")+": "+calculo.metododistancia;mostra.innerHTML=texto}if(i3GEO.Interface.ATUAL!=="googleearth"&&navn){i3GEO.desenho.aplica("resizeLinha",pontosdistobj.linhas[n-1],n)}}}catch(e){}}}},medeArea:{inicia:function(){pontosdistobj={xpt:[],ypt:[],dist:[],distV:[],xtela:[],ytela:[],ximg:[],yimg:[],linhas:[],linhastemp:[]};var x,y,ll1,ll2,d,calculo=i3GEO.calculo,montacontainer=function(){var desenho=i3GEO.desenho;$i("mostraarea_calculo").innerHTML="Clique no mapa para desenhar o poligono. Clique duas vezes para concluir";i3GEO.barraDeBotoes.ativaIcone("area");g_tipoacao="area";desenho.criaContainerRichdraw();desenho.richdraw.lineColor="green";desenho.richdraw.lineWidth="2px"};i3GEO.analise.medeArea.criaJanela();if(g_tipoacao!=="area"){$i("mostraarea_calculo").innerHTML="";if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.analise.medeArea.clique()")<0){i3GEO.eventos.MOUSECLIQUE.push("i3GEO.analise.medeArea.clique()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.analise.medeArea.movimento()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.analise.medeArea.movimento()")}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.analise.medeArea.fechaJanela()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.analise.medeArea.fechaJanela()")}if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){x=parseInt(i3GEO.parametros.w/2,10);y=parseInt(i3GEO.parametros.h/2,10);ll1=calculo.tela2dd(x,y,"","");ll2=calculo.tela2dd(x+1,y,"","");d=calculo.distancia(ll1[0],ll1[1],ll2[0],ll2[1]);d=d*1000;g_areapixel=d*d;g_areapixel<0?alert("Nao e possivel calcular a area. Entre em contato com o administrador do sistema."):montacontainer()}}else{i3GEO.desenho.richdraw.fecha()}},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostraarea")){novoel=document.createElement("div");novoel.id="mostraarea";ins='<div class="hd" >Área aproximada <a class=ajuda_usuario target=_blank href="'+i3GEO.configura.locaplic+'"/ajuda_usuario.php?idcategoria=6&idajuda=51" > </a></div>'+'<div class="bd" style="text-align:left;padding:3px;font-size:10px" >'+'Estilo: '+i3GEO.desenho.caixaEstilos()+'<br>'+'<div style="text-align:left;padding:3px;font-size:10px" id="mostraarea_calculo" ></div>'+'</div>';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostraarea",{width:"220px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();YAHOO.util.Event.addListener(janela.close,"click",i3GEO.analise.medeArea.fechaJanela)}else{janela=YAHOO.i3GEO.janela.manager.find("mostraarea")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1])},fechaJanela:function(){var janela;i3GEO.desenho.richdraw.fecha();i3GEO.util.removeChild("pontosArea",document.body);i3GEO.eventos.MOUSECLIQUE.remove("i3GEO.analise.medeArea.clique()");i3GEO.eventos.MOUSEMOVE.remove("i3GEO.analise.medeArea.movimento()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.analise.medeArea.fechaJanela()");i3GEO.barraDeBotoes.ativaBotoes();janela=YAHOO.i3GEO.janela.manager.find("mostraarea");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}},clique:function(){var n,m;if(g_tipoacao==="area"){n=pontosdistobj.xpt.length;pontosdistobj.xpt[n]=objposicaocursor.ddx;pontosdistobj.ypt[n]=objposicaocursor.ddy;pontosdistobj.xtela[n]=objposicaocursor.telax;pontosdistobj.ytela[n]=objposicaocursor.telay;pontosdistobj.ximg[n]=objposicaocursor.imgx;pontosdistobj.yimg[n]=objposicaocursor.imgy;pontosdistobj.dist[n]=0;if(n===0){try{if(navn){pontosdistobj.linhastemp=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1)}}catch(e){}}else{if(navm){i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,(pontosdistobj.ximg[n-1])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n])}}try{if(navn){pontosdistobj.linhas[n]=i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode,i3GEO.desenho.richdraw.fillColor,i3GEO.desenho.richdraw.lineColor,i3GEO.desenho.richdraw.lineWidth,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1)}}catch(men){}m=i3GEO.calculo.area(pontosdistobj,g_areapixel);i3GEO.util.defineValor("mostraarea_calculo","innerHTML","<br>m2</b>= "+m.toFixed(2)+"<br><b>km2</b>= "+(m/1000000).toFixed(2)+"<br><b>ha</b>= "+(m/10000).toFixed(2));if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["openlayers","googlemaps"])){i3GEO.util.insereMarca.cria(objposicaocursor.imgx,objposicaocursor.imgy,i3GEO.analise.medeArea.paraCalculo,"divGeometriasTemp");i3GEO.desenho.insereCirculo(objposicaocursor.imgx,objposicaocursor.imgy,3)}if(i3GEO.Interface.ATUAL==="googleearth"){i3GEO.util.insereMarca.cria(objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.analise.medeArea.paraCalculo,"divGeometriasTemp","")}}},paraCalculo:function(){var botaoPan=$i("pan");g_tipoacao="";botaoPan?botaoPan.onclick.call():i3GEO.barraDeBotoes.ativaBotoes()},movimento:function(){var n;if(g_tipoacao==="area"){n=pontosdistobj.xpt.length;if(n>0){i3GEO.desenho.aplica("resizePoligono",pontosdistobj.linhastemp,1);i3GEO.desenho.aplica("resizeLinha",pontosdistobj.linhas[n-1],n)}}}}}; |
| 361 | 361 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:20,inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='<div class="hd" style="text-align:left;z-index:20;padding-left: 0px;padding-bottom: 3px;padding-top: 1px;">';ins+='<span id=maparefmaismenosZoom style=display:none > ';temp="javascript:if(i3GEO.maparef.fatorZoomDinamico == -1){i3GEO.maparef.fatorZoomDinamico = 1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico + 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();";ins+="<img class=mais onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" />";temp="javascript:if(i3GEO.maparef.fatorZoomDinamico == 1){i3GEO.maparef.fatorZoomDinamico = -1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico - 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();";ins+="<img class=menos onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" /></span> ";if(this.SELETORTIPO){ins+="<select style='font-size:9px;' id='refDinamico' onchange='javascript:i3GEO.parametros.celularef=\"\";i3GEO.maparef.atualiza()'>";ins+="<option value='fixo' select >fixo</option>";ins+="<option value='mapa' >mapa</option>";ins+="<option value='dinamico' >dinâmico</option>";ins+="</select>"}ins+="</div>"}ins+='<div class="bd" style="border:1px solid black;text-align:left;padding:3px;height: 150px;" id="mapaReferencia" onmouseover="this.onmousemove=function(exy){i3GEO.eventos.posicaoMouseMapa(exy)}" >';ins+='<img style="cursor:pointer;display:none" onload="javascript:this.style.display = \'block\'" id="imagemReferencia" src="" onclick="javascript:i3GEO.maparef.click()">';ins+='</div>';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel)}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:"177px",width:"156px",fixedcenter:false,constraintoviewport:true,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.clip="rect(0px, 160px, 185px, 0px)";r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height="150px";$i("i3geo_winRef").style.border="1px solid gray";moveX=pos[0]+i3GEO.parametros.w+153-i3GEO.maparef.RIGHT-300;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){YAHOO.util.Event.removeListener(janela.close,"click");$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};YAHOO.util.Event.addListener(janela.close,"click",escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove",temp)}}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.maparef.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.maparef.atualiza()")}this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width="156px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp,re;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef);if(temp){temp.style.display="inline"}}if(tiporef==="fixo"){if(i3GEO.parametros.utilizacgi.toLowerCase()!=="sim"){if(i3GEO.parametros.celularef===""||$i("imagemReferencia").src===""||forca===true){i3GEO.php.referencia(i3GEO.maparef.processaImagem)}else{i3GEO.maparef.atualizaBox()}if(temp){temp.style.display="none"}}else{re=new RegExp("&mode=map","g");$i("imagemReferencia").src=$i(i3GEO.Interface.IDMAPA).src.replace(re,'&mode=reference')}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef);if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.maparef.atualiza()")}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);boxrefdd=new YAHOO.util.DD("boxref");novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"){i3GEO.Interface.openlayers.pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy);return}try{i3GEO.php.pan(i3GEO.atualiza,i3GEO.parametros.mapscale,"ref",objposicaocursor.refx,objposicaocursor.refy)}catch(e){i3GEO.janela.fechaAguarde("i3GEO.atualiza")}}}; |
| 362 | 362 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.ajuda={ATIVAJANELA:true,DIVAJUDA:"i3geo_ajuda",DIVLETREIRO:"i3geo_letreiro",MENSAGEMPADRAO:$trad("p1"),TRANSICAOSUAVE:true,OPACIDADE:20,abreDoc:function(url){if(!url){url="/documentacao/index.html"}window.open(i3GEO.configura.locaplic+url)},abreJanela:function(){try{var nx,ny,corpo,texto,janela,temp,largura=262,YU=YAHOO.util,pos=[20,i3GEO.parametros.h/2];if(this.ATIVAJANELA===false){return}temp=$i("contemFerramentas");if(temp){largura=parseInt(temp.style.width,10)-5}if(!$i("janelaMenTexto")){corpo=$i(i3GEO.Interface.IDCORPO);if(corpo){pos=YU.Dom.getXY(corpo)}else{corpo=$i(i3GEO.Interface.IDMAPA);if(corpo){pos=YU.Dom.getXY(corpo)}}nx=pos[0]-largura-3;ny=i3GEO.parametros.h-78;texto='<div id="janelaMenTexto" style="text-align:left;font-size:10px;color:rgb(80,80,80)">'+i3GEO.ajuda.MENSAGEMPADRAO+'</div>';if(nx<0){nx=10;ny=ny-50}janela=i3GEO.janela.cria(largura-3,"auto","",nx,ny," ","i3geo_janelaMensagens",false,"hd","","",true);janela[2].innerHTML=texto;YU.Event.addListener(janela[0].close,"click",i3GEO.ajuda.fechaJanela);this.ativaCookie()}}catch(e){}},ativaCookie:function(){var i=i3GEO.util.insereCookie;i("g_janelaMen","sim");i("botoesAjuda","sim")},ativaLetreiro:function(mensagem){var l;if($i(i3GEO.ajuda.DIVLETREIRO)){if(arguments.length===0){mensagem=i3GEO.parametros.mensagens}if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.ajuda.ativaLetreiro()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.ajuda.ativaLetreiro()")}try{clearTimeout(i3GEO.ajuda.tempoLetreiro)}catch(e){i3GEO.ajuda.tempoLetreiro=""}l=$i(i3GEO.ajuda.DIVLETREIRO);if(l.style.display==="none"){return}l.style.cursor="pointer";if(mensagem===""){l.value="";return}if(l.size===1){l.size=i3GEO.parametros.w/8}BMessage=mensagem+" ---Clique para parar--- ";l.onclick=function(){l.style.display="none"};if(BMessage!==" ---Clique para parar--- "){BQuantas=0;BSize=l.size;BPos=BSize;BSpeed=1;BSpaces="";i3GEO.ajuda.mostraLetreiro()}i3GEO.ajuda.mostraLetreiro(mensagem)}},desativaCookie:function(){i3GEO.util.insereCookie("g_janelaMen","nao")},fechaJanela:function(){i3GEO.ajuda.desativaCookie();i3GEO.util.removeChild("i3geo_janelaMensagens_c",document.body)},mostraJanela:function(texto){var j=$i(this.DIVAJUDA),k=$i("janelaMenTexto"),jm=$i("i3geo_janelaMensagens"),Dom=YAHOO.util.Dom,h=parseInt(Dom.getStyle(jm,"height"),10);if(j){j.innerHTML=texto===""?"-":texto}else{if(h){Dom.setY("i3geo_janelaMensagens",Dom.getY(jm)+h)}if(k){k.innerHTML=texto}if(this.TRANSICAOSUAVE){texto!==""?Dom.setStyle(jm,"opacity","1"):Dom.setStyle(jm,"opacity",(this.OPACIDADE/100))}h=parseInt(Dom.getStyle(jm,"height"),10);if(h){Dom.setY(jm,Dom.getY(jm)-h)}}},mostraLetreiro:function(){for(var count=0;count<BPos;count+=1){BSpaces+=" "}if(BPos<1){$i(i3GEO.ajuda.DIVLETREIRO).value=BMessage.substring(Math.abs(BPos),BMessage.length);if(BPos+BMessage.length<1){BPos=BSize;BQuantas=BQuantas+1}}else{$i(i3GEO.ajuda.DIVLETREIRO).value=BSpaces+BMessage}BPos-=BSpeed;if(BQuantas<2){i3GEO.ajuda.tempoLetreiro=setTimeout(function(){i3GEO.ajuda.mostraLetreiro()},140)}},redesSociais:function(){i3GEO.janela.cria("400px","400px",i3GEO.configura.locaplic+"/ferramentas/redessociais/index.php","","",$trad("u5c"),YAHOO.util.Dom.generateId(null,"redes"))}}; |
| 363 | -if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 363 | +if(typeof(i3GEO)==='undefined'){var i3GEO={}}YAHOO.namespace("i3GEO.janela");YAHOO.i3GEO.janela.manager=new YAHOO.widget.OverlayManager();YAHOO.namespace("janelaDoca.xp");YAHOO.janelaDoca.xp.manager=new YAHOO.widget.OverlayManager();YAHOO.i3GEO.janela.managerAguarde=new YAHOO.widget.OverlayManager();i3GEO.janela={ESTILOBD:"display:block;padding:5px 2px 5px 2px;",ESTILOAGUARDE:"normal",AGUARDEMODAL:false,ANTESCRIA:["i3GEO.janela.prepara()"],ANTESFECHA:[],TRANSICAOSUAVE:true,OPACIDADE:65,OPACIDADEAGUARDE:50,TIPS:[],ULTIMOZINDEX:0,prepara:function(){var iu=i3GEO.util;iu.escondePin();iu.escondeBox()},cria:function(wlargura,waltura,wsrc,nx,ny,texto,id,modal,classe,funcaoCabecalho,funcaoMinimiza){if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}var i,wlargurA,ins,novoel,wdocaiframe,temp,fix,underlay,ifr,janela;if(navm&&!chro){this.TRANSICAOSUAVE=false}if(this.ANTESCRIA){for(i=0;i<this.ANTESCRIA.length;i++){eval(this.ANTESCRIA[i])}}if(!classe||classe==""){classe="hd"}if(!id||id===""){id="wdoca"}if(!modal||modal===""){modal=false}ifr=false;if(i3GEO.Interface&&i3GEO.Interface.ATUAL==="googleearth"){i3GEO.janela.TRANSICAOSUAVE=false;ifr=true}fix=false;if(nx===""||nx==="center"){fix=true}if(modal===true){underlay="none"}else{underlay="shadow"}temp=navm?0:2;wlargurA=parseInt(wlargura,10)+temp+"px";ins='<div id="'+id+'_cabecalho" class="'+classe+'" style="background-color:white;">';if(i3GEO.configura!==undefined){ins+="<img id='"+id+"_imagemCabecalho' style='z-index:2;position:absolute;left:3px;top:2px;visibility:hidden;' src=\'"+i3GEO.configura.locaplic+"/imagens/aguarde.gif\' />"}ins+="<span style='font-size:10px;'>"+texto+"</span>";if(funcaoMinimiza){ins+="<div id='"+id+"_minimizaCabecalho' class='container-minimiza'></div>"}ins+='</div><div id="'+id+'_corpo" class="bd" style="'+this.ESTILOBD+'">';if(wsrc!==""){ins+='<iframe name="'+id+'i" id="'+id+'i" valign="top" style="border:0px white solid"></iframe>'}ins+='</div>';novoel=document.createElement("div");novoel.id=id;novoel.style.display="block";novoel.innerHTML=ins;if(this.TRANSICAOSUAVE){novoel.onmouseover=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",1)};novoel.onmouseout=function(){YAHOO.util.Dom.setStyle(novoel,"opacity",i3GEO.janela.OPACIDADE/100)};YAHOO.util.Dom.setStyle(novoel,"opacity",1)}document.body.appendChild(novoel);wdocaiframe=$i(id+"i");if(wdocaiframe){temp=wdocaiframe.style;temp.width=parseInt(wlargura,10)-12+"px";temp.height=waltura;temp.display="block";wdocaiframe.src=wsrc}else{if(waltura!=="auto"){$i(id+'_corpo').style.height=parseInt(waltura,10)+"px"}$i(id+'_corpo').style.width=parseInt(wlargura,10)+"px"}if(waltura==="auto"){janela=new YAHOO.widget.Panel(id,{iframe:ifr,modal:modal,width:wlargurA,underlay:"none",fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}else{janela=new YAHOO.widget.ResizePanel(id,{hideMode:'offsets',iframe:ifr,underlay:underlay,modal:modal,width:wlargurA,fixedcenter:fix,constraintoviewport:false,visible:true,monitorresize:false,dragOnly:true,keylisteners:null})}if(nx!==""&&nx!=="center"){janela.moveTo(nx,ny+50)}YAHOO.i3GEO.janela.manager.register(janela);if(this.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.cfg.setProperty("zIndex",[10000]);janela.render();if(navm&&id!=="i3geo_janelaMensagens"&&i3GEO.Interface.ATUAL==="googleearth"){janela.moveTo(0,0)}if(ifr===true){janela.iframe.style.zIndex=0}temp=$i(id+"_corpo");if(temp){if(navm){temp.style.paddingRight="0px"}temp.style.width=parseInt(temp.style.width,10)-2+"px"}if(funcaoCabecalho){$i(id+'_cabecalho').onclick=funcaoCabecalho}if(funcaoMinimiza){$i(id+"_minimizaCabecalho").onclick=funcaoMinimiza}YAHOO.util.Event.addListener(janela.close,"click",i3GEO.janela.fecha,janela,{id:id},true);return([janela,$i(id+"_cabecalho"),$i(id+"_corpo")])},minimiza:function(id){var temp=$i(id+"_corpo"),n,i,m=YAHOO.i3GEO.janela.manager.find(id);if(temp){if(temp.style.display==="block"){temp.style.display="none";if(m){m.hideIframe}}else{temp.style.display="block";if(m){m.showIframe}}}temp=$i(id+"_resizehandle");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}temp=$i(id+"_c");if(temp){temp=temp.getElementsByTagName("div");n=temp.length;for(i=0;i<n;i++){if(temp[i].className==="underlay"||temp[i].className==="bd"){if(temp[i].style.display==="none"){temp[i].style.display="block"}else{temp[i].style.display="none"}}}}temp=$i(id+"_corpo");if(temp){if(temp.style.display==="none"){temp.style.display="block"}else{temp.style.display="none"}}},fecha:function(event,args){var i,id;i3GEO.util.escondePin();i3GEO.util.escondeBox();if(i3GEO.janela.ANTESFECHA){for(i=0;i<i3GEO.janela.ANTESFECHA.length;i++){eval(i3GEO.janela.ANTESFECHA[i])}}if(i3GEO.janela.id){id=i3GEO.janela.id}else{id=event.id}if(id==undefined){id=args.id}i3GEO.janela.destroi(id)},destroi:function(id){var janela=YAHOO.i3GEO.janela.manager.find(id);i3GEO.util.removeScriptTag(id+"_script");i3GEO.util.removeScriptTag(id+".dicionario_script");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela=$i(id+"_c");janela.parentNode.removeChild(janela)}},alteraTamanho:function(w,h,id){var i;if(arguments.length===3){i=$i(id)}else{i=$i("wdoca")}if(i){i.style.width=w+"px";i.style.height=h+"px"}},abreAguarde:function(id,texto){var pos,temp,janela;if(!id||id==undefined){return}janela=YAHOO.i3GEO.janela.managerAguarde.find(id);pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(i3GEO.janela.AGUARDEMODAL==true){texto+="<br><span style='color:navy;cursor:pointer;font-size:9px;' onclick='javascript:if(i3GEO.janela.AGUARDEMODAL == true){i3GEO.janela.AGUARDEMODAL = false;}else{i3GEO.janela.AGUARDEMODAL = true;}'>bloquear/desbloquear</span>"}if(!janela){janela=new YAHOO.widget.Panel(id,{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:i3GEO.janela.AGUARDEMODAL,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="reduzida"){janela.setBody(texto);janela.body.style.padding="5px"}if(i3GEO.janela.ESTILOAGUARDE==="normal"||i3GEO.janela.ESTILOAGUARDE==="minima"){janela.setHeader("<span><img id=aguardeGifAberto src='"+i3GEO.configura.locaplic+"/imagens/aguarde.gif' /></span> <span style=font-size:8px >"+YAHOO.i3GEO.janela.managerAguarde.overlays.length+"</span>")}if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();try{janela.header.style.height="20px"}catch(e){}temp=$i(id+"_c");if(temp){temp.style.backgroundColor=""}YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE/100)},fechaAguarde:function(id){if(id!=undefined){var janela=YAHOO.i3GEO.janela.managerAguarde.find(id);if(janela){YAHOO.i3GEO.janela.managerAguarde.remove(janela);janela.destroy()}}},tempoMsg:function(texto,tempo){var pos,janela,attributes,anim,altura=40;janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");pos=[0,0];if($i(i3GEO.Interface.IDCORPO)){pos=YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO))}else if($i("contemImg")){pos=YAHOO.util.Dom.getXY($i("contemImg"))}if(!janela){janela=new YAHOO.widget.Panel("i3geoTempoMsg",{width:"220px",fixedcenter:false,underlay:"none",close:false,draggable:false,modal:false,monitorresize:false});janela.render(document.body);YAHOO.i3GEO.janela.managerAguarde.register(janela)}janela.setBody(texto);altura=40;janela.body.style.padding="5px";janela.body.style.backgroundColor="yellow";janela.body.style.height="0px";janela.body.style.overflow="none";janela.body.onmouseover=function(){var janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.destroy()}};if(i3GEO.parametros.w>0){janela.moveTo(pos[0]+(i3GEO.parametros.w/2)-120,pos[1])}else{janela.moveTo(pos[0],pos[1])}janela.show();attributes={height:{to:altura}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.body.style.overflow="auto";janela.body.style.display="block"});anim.animate();if(!tempo){tempo=4000}setTimeout(function(){var attributes,anim,janela=YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg");if(janela){janela.body.style.overflow="none";attributes={height:{to:0}};anim=new YAHOO.util.Anim(janela.body,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){janela.destroy()});anim.animate()}},tempo)},ativaAlerta:function(){YAHOO.namespace("i3GEO.janela.dialogInfo");YAHOO.i3GEO.janela.dialogInfo=new YAHOO.widget.SimpleDialog("simpledialog1",{width:"300px",fixedcenter:true,visible:false,draggable:false,zIndex:100000,textAlign:"left",close:true,modal:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,buttons:[{text:"fecha",handler:function(){this.hide()},isDefault:true}],icon:YAHOO.widget.SimpleDialog.ICON_WARN,text:""});YAHOO.i3GEO.janela.manager.register(YAHOO.i3GEO.janela.dialogInfo);YAHOO.i3GEO.janela.dialogInfo.setHeader("Alerta");YAHOO.i3GEO.janela.dialogInfo.render(document.body);window.alert=function(texto){YAHOO.i3GEO.janela.dialogInfo.cfg.setProperty("text",texto);YAHOO.i3GEO.janela.dialogInfo.show()}},mensagemSimples:function(texto,cabecalho){var janela;if($i("mensagemSimples1")){janela=YAHOO.i3GEO.janela.manager.find("mensagemSimples1")}else{janela=new YAHOO.widget.SimpleDialog("mensagemSimples1",{width:"300px",fixedcenter:true,visible:true,draggable:true,zIndex:100000,textAlign:"left",close:true,modal:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25},constraintoviewport:true,text:""});YAHOO.i3GEO.janela.manager.register(janela);janela.setHeader(cabecalho);janela.render(document.body)}janela.setHeader(cabecalho);janela.cfg.setProperty("text",texto);janela.show()},tip:function(cabecalho){var Nid,i,novoel,res;if(arguments.length===0){cabecalho="fixar"}Nid=YAHOO.util.Dom.generateId();i=$i("i3geo_rosa");if(i){i.style.display="none"}if($i(i3GEO.Interface.IDCORPO)){$i("img").title=""}novoel=document.createElement("div");novoel.id=Nid;novoel.style.position="absolute";novoel.style.zIndex=5000;novoel.style.textAlign="left";novoel.style.background="white";if(navm){novoel.style.filter="alpha(opacity=90)"}else{novoel.style.opacity=".9"}document.body.appendChild(novoel);i3GEO.janela.TIPS.push($i(Nid));res="<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:$i(\""+Nid+"cabecatip\").innerHTML =\"\";' >"+cabecalho+"</span></div>";novoel.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=novoel.style;ist.top=objposicaocursor.telay-9+"px";ist.left=objposicaocursor.telax-5+"px";ist.display="block";if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.excluiTips('todos')")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.excluiTips('todos')")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.janela.excluiTips('naofixos')")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.janela.excluiTips('naofixos')")}return(Nid)},excluiTips:function(tipo){var ot,i;if(arguments.length===0){tipo="todos"}if(i3GEO.janela.TIPS.length>0){ot=i3GEO.janela.TIPS.length-1;if(ot>=0){do{if(tipo==='todos'){if(i3GEO.janela.TIPS[ot]){i=$i(i3GEO.janela.TIPS[ot].id);document.body.removeChild(i)}}if(tipo==='naofixos'){if($i(i3GEO.janela.TIPS[ot])){if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML!==""){document.body.removeChild($i(i3GEO.janela.TIPS[ot].id))}}}}while(ot--);if(tipo==="todos"){i3GEO.janela.TIPS=[]}}}},slider:function(funcao,inicial){var scaleFactor,bottomConstraint,topConstraint,janela,novoel,Event,slider="",bg,thumb;janela=i3GEO.janela.cria(230,200,"","","",$trad("t20"),"opacidadeG");novoel=document.createElement("div");novoel.id="slider-bg";novoel.tabindex="-1";novoel.innerHTML='<div style="cursor:default;position:absolute;top:4px" id="slider-thumb"><img src="'+i3GEO.configura.locaplic+'/imagens/thumb-n.gif"></div>';janela[2].appendChild(novoel);Event=YAHOO.util.Event;bg="slider-bg";thumb="slider-thumb";novoel.style.position="relative";novoel.style.background='url('+i3GEO.configura.locaplic+'/imagens/bg-fader.gif) 5px 0 no-repeat';novoel.style.height="28px";novoel.style.width="228px";topConstraint=0;bottomConstraint=200;scaleFactor=1;Event.onDOMReady(function(){slider=YAHOO.widget.Slider.getHorizSlider(bg,thumb,topConstraint,bottomConstraint,20);slider.setValue(parseInt(inicial,10));slider.getRealValue=function(){return Math.round(this.getValue()*scaleFactor)};slider.subscribe("slideEnd",function(offsetFromStart){var actualValue=slider.getRealValue();eval(funcao+"("+actualValue+")")})});Event.on("putval","click",function(e){slider.setValue(100,false)})},comboCabecalhoTemas:function(idDiv,idCombo,ferramenta,tipo){var temp=$i(idDiv);if(temp){temp.innerHTML="";i3GEO.util.comboTemas(temp.id+"Sel",function(retorno){var container=$i(idDiv),c;container.innerHTML=retorno.dados;c=$i(idCombo);c.style.width="150px";c.style.border="solid #B4B4B4 1px";c.style.top="6px";c.style.left="2px";c.style.position="relative";c.style.fontSize="10px";c.style.color="#686868";if(i3GEO.temaAtivo!==""){c.value=i3GEO.temaAtivo}if(i3GEOF[ferramenta].tema){c.value=i3GEOF[ferramenta].tema}if(c.value===""){i3GEOF[ferramenta].tema="";$i("i3GEOF."+ferramenta+"_corpo").innerHTML=""}c.onchange=function(){var valor=$i(idCombo).value;if(valor!==""){i3GEO.mapa.ativaTema(valor);i3GEOF[ferramenta].tema=valor;$i("i3GEOF."+ferramenta+"_corpo").innerHTML="";eval("i3GEOF."+ferramenta+".inicia('i3GEOF."+ferramenta+"_corpo');")}}},temp.id,"",false,tipo)}temp="i3GEO.janela.comboCabecalhoTemas('"+idDiv+"','"+idCombo+"','"+ferramenta+"','"+tipo+"')";if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search(temp)<0){i3GEO.eventos.ATUALIZAARVORECAMADAS.push(temp)}}};try{YAHOO.widget.ResizePanel=function(el,userConfig){if(arguments.length>0){YAHOO.widget.ResizePanel.superclass.constructor.call(this,el,userConfig)}};YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE="yui-resizepanel";YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE="resizehandle";YAHOO.extend(YAHOO.widget.ResizePanel,YAHOO.widget.Panel,{init:function(el,userConfig){YAHOO.widget.ResizePanel.superclass.init.call(this,el);this.beforeInitEvent.fire(YAHOO.widget.ResizePanel);var Dom=YAHOO.util.Dom,oInnerElement=this.innerElement,oResizeHandle=document.createElement("DIV"),sResizeHandleId=this.id+"_resizehandle";oResizeHandle.id=sResizeHandleId;oResizeHandle.className=YAHOO.widget.ResizePanel.CSS_RESIZE_HANDLE;Dom.addClass(oInnerElement,YAHOO.widget.ResizePanel.CSS_PANEL_RESIZE);this.resizeHandle=oResizeHandle;function initResizeFunctionality(){var me=this,oHeader=this.header,oBody=this.body,oFooter=this.footer,nStartWidth,nStartHeight,aStartPos=0,nBodyBorderTopWidth,nBodyBorderBottomWidth,nBodyTopPadding,nBodyBottomPadding,nBodyOffset=0;oInnerElement.appendChild(oResizeHandle);this.ddResize=new YAHOO.util.DragDrop(sResizeHandleId,this.id);this.ddResize.setHandleElId(sResizeHandleId);this.ddResize.onMouseDown=function(e){nStartWidth=oInnerElement.offsetWidth;nStartHeight=oInnerElement.offsetHeight;if(YAHOO.env.ua.ie&&document.compatMode==="BackCompat"){nBodyOffset=0}else{nBodyBorderTopWidth=parseInt(Dom.getStyle(oBody,"borderTopWidth"),10);nBodyBorderBottomWidth=parseInt(Dom.getStyle(oBody,"borderBottomWidth"),10);nBodyTopPadding=parseInt(Dom.getStyle(oBody,"paddingTop"),10);nBodyBottomPadding=parseInt(Dom.getStyle(oBody,"paddingBottom"),10);nBodyOffset=nBodyBorderTopWidth+nBodyBorderBottomWidth+nBodyTopPadding+nBodyBottomPadding}me.cfg.setProperty("width",nStartWidth+"px");aStartPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)]};this.ddResize.onDrag=function(e){var aNewPos=[YAHOO.util.Event.getPageX(e),YAHOO.util.Event.getPageY(e)],nOffsetX=aNewPos[0]-aStartPos[0],nOffsetY=aNewPos[1]-aStartPos[1],nNewWidth=Math.max(nStartWidth+nOffsetX,10),nNewHeight=Math.max(nStartHeight+nOffsetY,10),nBodyHeight=(nNewHeight-(oFooter.offsetHeight+oHeader.offsetHeight+nBodyOffset));me.cfg.setProperty("width",nNewWidth+"px");oBody.style.width=nNewWidth-4+"px";if(nBodyHeight<0){nBodyHeight=0}oBody.style.height=nBodyHeight+"px";if($i("wdocai")){$i("wdocai").style.height=nBodyHeight+"px";$i("wdocai").style.width=oBody.style.width+"px"}};this.ddResize.onMouseUp=this.ddResize.onDrag.call()}function onBeforeShow(){initResizeFunctionality.call(this);this.unsubscribe("beforeShow",onBeforeShow)}function onBeforeRender(){if(!this.footer){this.setFooter("")}if(this.cfg.getProperty("visible")){initResizeFunctionality.call(this)}else{this.subscribe("beforeShow",onBeforeShow)}this.unsubscribe("beforeRender",onBeforeRender)}this.subscribe("beforeRender",onBeforeRender);if(userConfig){this.cfg.applyConfig(userConfig,true)}this.initEvent.fire(YAHOO.widget.ResizePanel)},toString:function(){return"ResizePanel "+this.id}})}catch(e){} | |
| 364 | 364 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.guias={ATUAL:"temas",ALTURACORPOGUIAS:0,CONFIGURA:{"temas":{icone:"imagens/gisicons/show-layers.png",titulo:$trad("g4a"),id:"guia1",idconteudo:"guia1obj",click:""},"adiciona":{icone:"imagens/gisicons/show-catalog.png",titulo:$trad("g1a"),id:"guia2",idconteudo:"guia2obj",click:function(){var ondeArvore;i3GEO.guias.mostra("adiciona");if(!$i("arvoreAdicionaTema")){try{ondeArvore=objmapa.guiaMenu+"obj"}catch(e){ondeArvore="guia2obj"}}else{ondeArvore="arvoreAdicionaTema"}if(document.getElementById("outrasOpcoesAdiciona")){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.idonde="outrasOpcoesAdiciona";i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore=false}i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,ondeArvore)}},"legenda":{icone:"imagens/gisicons/show-legend.png",titulo:$trad("g3"),id:"guia4",idconteudo:"guia4obj",click:function(){i3GEO.guias.mostra("legenda");i3GEO.mapa.legendaHTML.cria("guia4obj")}},"mapas":{icone:"imagens/gisicons/show-links.png",titulo:"Links",id:"guia5",idconteudo:"guia5obj",click:function(){var pegaMapas=function(retorno){var ins,mapa,ig1lt,ig1,nome,lkd,link,temp;ins="<br><div id='banners' style='overflow:auto;text-align:left'>";mapa=retorno.data.mapas;ig1lt=mapa.length;ig1=0;if(ig1lt>0){do{temp=mapa[ig1];nome=temp.NOME;if(temp.PUBLICADO){if(temp.PUBLICADO.toLowerCase()==="nao"){nome="<s>"+nome+"</s>"}}lkd=temp.LINK;link=i3GEO.configura.locaplic+"/ms_criamapa.php?temasa="+temp.TEMAS+"&layers="+temp.LIGADOS;if(temp.EXTENSAO!==""){link+="&mapext="+temp.EXTENSAO}if(temp.OUTROS!==""){link+="&"+temp.OUTROS}if(lkd!==""){link=lkd}ins+="<div><a href='"+link+"'><img src='"+temp.IMAGEM+"'></a></div><br>";ins+="<div><p style=text-align:center >"+nome+"</p></div><br>";ig1++}while(ig1<ig1lt)}$i(i3GEO.guias.CONFIGURA.mapas.idconteudo).innerHTML=ins+"</div>"};$i(i3GEO.guias.CONFIGURA.mapas.idconteudo).innerHTML="Aguarde...";i3GEO.guias.mostra("mapas");i3GEO.php.pegaMapas(pegaMapas)}}},ORDEM:"",TIPO:"guia",IDGUIAS:"guiasYUI",cria:function(onde){var nguiasreal=0,guiaconteudo,id,guia,g,re,ng,tituloguia,i,ins,altura,temp,CONFIGURA=i3GEO.guias.CONFIGURA,guias=i3GEO.util.listaChaves(CONFIGURA),nguias=guias.length;if(i3GEO.guias.TIPO==="movel"){i3GEO.guias.IDGUIAS="i3GEOguiaMovelConteudo";for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo)){i3GEO.guias.guiaMovel.config.guias.ids.push(i3GEO.guias.CONFIGURA[guias[ng]].id);i3GEO.guias.guiaMovel.config.guias.idsconteudos.push(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo);if(i3GEO.guias.CONFIGURA[guias[ng]].icone!==undefined){i3GEO.guias.guiaMovel.config.guias.icones.push(i3GEO.guias.CONFIGURA[guias[ng]].icone)}else{i3GEO.guias.guiaMovel.config.guias.icones.push("imagens/gisicons/open1.png")}i3GEO.guias.guiaMovel.config.guias.titulos.push(i3GEO.guias.CONFIGURA[guias[ng]].titulo);i3GEO.guias.guiaMovel.config.guias.chaves.push(guias[ng])}}return}try{for(g=0;g<12;g++){tituloguia="";if($i("guia"+g)){tituloguia=$i("guia"+g).innerHTML;re=new RegExp(" ","g");tituloguia=tituloguia.replace(re,'');for(ng=0;ng<nguias;ng++){if(CONFIGURA[guias[ng]].id==="guia"+g){tituloguia=""}}if(tituloguia!==""){i3GEO.guias.CONFIGURA["guia"+g]=[];i3GEO.guias.CONFIGURA["guia"+g].titulo=tituloguia;i3GEO.guias.CONFIGURA["guia"+g].id="guia"+g;i3GEO.guias.CONFIGURA["guia"+g].idconteudo="guia"+g+"obj";if($i('guia'+g).onclick){i3GEO.guias.CONFIGURA["guia"+g].click=$i("guia"+g).onclick}}}}if(i3GEO.guias.ORDEM===""){guias=i3GEO.util.listaChaves(CONFIGURA)}else{guias=i3GEO.guias.ORDEM}nguias=guias.length;if(arguments.length===0){for(ng=0;ng<nguias;ng++){i=$i(i3GEO.guias.CONFIGURA[guias[ng]].id);if(i){onde=i.parentNode}}}else{onde=$i(onde)}if(!onde){return}onde.id=i3GEO.guias.IDGUIAS;onde.className="yui-navset";if(i3GEO.guias.TIPO==="guia"||i3GEO.guias.TIPO==="tablet"){ins='<ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;text-align:center;">';for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){if($i(i3GEO.guias.CONFIGURA[guias[ng]].idconteudo)){ins+='<li><a alt="" title=""><em><div id="'+i3GEO.guias.CONFIGURA[guias[ng]].id+'" >'+i3GEO.guias.CONFIGURA[guias[ng]].titulo+'</div></em></a></li>'}}}ins+="</ul>";onde.innerHTML=ins}if(i3GEO.guias.TIPO==="sanfona"){ins='<dl id=sanfona'+onde.id+' class="accordion" >';if(i3GEO.guias.ORDEM===""){for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){nguiasreal++}}}else{nguiasreal=i3GEO.guias.ORDEM.length}if(navn){altura=i3GEO.parametros.h-(nguiasreal*25)-1}else{altura=i3GEO.parametros.h-(nguiasreal*23)+1}for(ng=0;ng<nguias;ng++){if($i(i3GEO.guias.CONFIGURA[guias[ng]].id)){id=i3GEO.guias.CONFIGURA[guias[ng]].idconteudo;temp=$i(id);if(temp){guiaconteudo=temp.innerHTML;temp.innerHTML="";temp.style.display="none";temp.id="";ins+='<dt style=height:17px id="'+i3GEO.guias.CONFIGURA[guias[ng]].id+'" >'+'<table class=accordiontable ><tr><td width="98%" >'+i3GEO.guias.CONFIGURA[guias[ng]].titulo+'</td><td width="2%" ><img id="" src="'+i3GEO.configura.locaplic+'/imagens/branco.gif" style="width:10px;" /></td></tr></table>'+'<dd clas=close >'+'<div class=bd >'+'<div id="'+id+'" >'+guiaconteudo+'</div></div></dd>'}}}ins+="</dl>";onde.innerHTML=ins;onde.style.height=altura+"px";YAHOO.lutsr.accordion.init(true,5,false,"sanfona"+onde.id,altura);i3GEO.guias.ALTURACORPOGUIAS=altura}for(g=0;g<nguias;g++){guia=i3GEO.guias.CONFIGURA[guias[g]];id=guia.id;guiaconteudo=$i(id);if(guiaconteudo){if(guia.click===""||guia.click===undefined){eval('$i("'+id+'").onclick = function(event){i3GEO.guias.mostra("'+guias[g]+'");}')}else{guiaconteudo.onclick=guia.click}YAHOO.util.Event.addListener($i(id),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addListener($i(id),"click",YAHOO.util.Event.stopPropagation);YAHOO.util.Event.addFocusListener($i(id),YAHOO.util.Event.preventDefault);guiaconteudo.onmouseover=function(){};guiaconteudo.onmouseout=function(){};temp=$i(guia.idconteudo);if(temp){temp.style.overflow="auto";if(i3GEO.guias.TIPO==="guia"){if(i3GEO.guias.ALTURACORPOGUIAS===0){temp.style.height=i3GEO.parametros.h+"px"}else{temp.style.height=i3GEO.guias.ALTURACORPOGUIAS+"px"}}else{temp.style.height=onde.style.height}}}}}catch(e){}if(i3GEO.guias.TIPO!=="tablet"){i3GEO.guias.mostra(i3GEO.guias.ATUAL);i3GEO.guias.ativa(i3GEO.guias.ATUAL)}else{i3GEO.guias.escondeGuias()}},ajustaAltura:function(){var guia,guias,nguias,temp,temps,n,i,g,altura=0;if(i3GEO.guias.ALTURACORPOGUIAS!=0){altura=i3GEO.guias.ALTURACORPOGUIAS}guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){guia=$i(this.CONFIGURA[guias[g]].idconteudo);if(guia){guia.style.overflow="auto";if(this.TIPO==="guia"){guia.style.height=altura+"px"}if(this.TIPO==="sanfona"){guia.style.height=altura+"px";temp=$i("guiasYUI");if(temp){temp.style.height=altura+"px";temps=temp.getElementsByTagName("dd");n=temps.length;for(i=0;i<n;i++){if(temps[i].style.visibility=="visible"){temps[i].style.height=altura+"px"}}}YAHOO.lutsr.accordion.properties.altura=altura}}}},escondeGuias:function(){var guias,nguias,g,temp,attributes,anim;guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){temp=$i(this.CONFIGURA[guias[g]].idconteudo);if(temp){if(i3GEO.guias.TIPO==="tablet"&&temp.style.display==="block"){temp.style.overflow="hidden";attributes={height:{to:0},id:this.CONFIGURA[guias[g]].idconteudo};anim=new YAHOO.util.Anim(temp,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){var temp=$i(anim.attributes.id);temp.style.overflow="auto";temp.style.display="none";if(i3GEO.barraDeBotoes.BARRAS[0]){i3GEO.barraDeBotoes.BARRAS[0].show()}});anim.animate()}else{temp.style.display="none"}}if($i(this.CONFIGURA[guias[g]].id)&&i3GEO.guias.TIPO!=="movel"){$i(this.CONFIGURA[guias[g]].id).parentNode.parentNode.style.background="transparent"}}},mostra:function(guia){var guias,nguias,g,temp,attributes,anim;guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;if($i(i3GEO.guias.CONFIGURA[guia].idconteudo).style.display==="block"&&i3GEO.guias.TIPO==="tablet"){i3GEO.guias.escondeGuias();return}if(i3GEO.guias.TIPO!=="movel"){for(g=0;g<nguias;g++){if($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo)){$i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo).style.display="none"}if($i(i3GEO.guias.CONFIGURA[guias[g]].id)){$i(i3GEO.guias.CONFIGURA[guias[g]].id).parentNode.parentNode.style.background="transparent"}}}if(i3GEO.guias.CONFIGURA.toString().search(guia)<0){for(g=0;g<nguias;g++){if(i3GEO.guias.CONFIGURA[guias[g]].id===guia){guia=guias[g]}}}if(i3GEO.guias.CONFIGURA[guia]){temp=$i(i3GEO.guias.CONFIGURA[guia].idconteudo);if(temp){if(i3GEO.guias.TIPO==="tablet"){if(i3GEO.barraDeBotoes.BARRAS[0]){i3GEO.barraDeBotoes.BARRAS[0].hide()}temp.style.left=(i3GEO.parametros.w/2)-150+"px";temp.style.height=0;temp.style.display="block";temp.style.zIndex=9000;temp.style.overflow="hidden";attributes={height:{to:i3GEO.parametros.h-10}};anim=new YAHOO.util.Anim(temp,attributes,1,YAHOO.util.Easing.easeNone);anim.onComplete.subscribe(function(){temp.style.overflow="auto";temp.style.display="block"});if(DetectaMobile("DetectAndroid")===true){temp.style.height="";temp.style.overflow="auto"}else{anim.animate()}}else{temp.style.display="block"}if(i3GEO.guias.TIPO!=="movel"){$i(i3GEO.guias.CONFIGURA[guia].id).parentNode.parentNode.style.backgroundColor="white"}i3GEO.guias.ATUAL=guia}}},ativa:function(guia){try{i3GEO.guias.ATUAL=guia;if(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].click!==""){i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].click.call()}}catch(e){}},libera:function(){if(!$i("conteudojanelaguias")){var i,w,pos,a,l,temp;$i(i3GEO.Interface.IDCORPO).style.left="0px";if($i(this.IDGUIAS)){$i(this.IDGUIAS).style.display="none"}i=$i("contemFerramentas");w=parseInt($i("contemFerramentas").style.width,10);$i("contemFerramentas").style.width="0px";pos="px";a=i3GEO.parametros.h;l=i3GEO.parametros.w+w;i3GEO.parametros.h=a;i3GEO.parametros.w=l;i=$i(i3GEO.Interface.IDCORPO);if(i){i.style.width=l+pos;i.style.height=a+pos}i=$i(i3GEO.Interface.IDMAPA);if(i){i.style.width=l+pos;i.style.height=a+pos;i.style.clip='rect('+0+" "+(l*1+2)+" "+(a*1+2)+" "+0+')'}i=$i("mst");if(i){i.style.width=l+1+pos}i3GEO.mapa.ajustaPosicao();temp=function(retorno){var novoel,temp,i,g,guias,nguias,janela;novoel=document.createElement("div");novoel.id="janelaguias";novoel.style.display="block";novoel.innerHTML='<div class="hd">Guias <div onclick ="i3GEO.janela.minimiza(\'conteudojanelaguias\')" id="janelaguias_minimizaCabecalho" class="container-minimiza" ></div></div><div class="bd" id="conteudojanelaguias_corpo" style=padding:0px ></div>';temp=$i("i3geo")?$i("i3geo").appendChild(novoel):document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("janelaguias",{width:"270px",fixedcenter:true,constraintoviewport:false,underlay:"none",close:false,visible:true,draggable:true,modal:false,iframe:true});YAHOO.i3GEO.janela.manager.register(janela);janela.render();janela.show();janela.cfg.setProperty("y",0);i=$i(i3GEO.guias.IDGUIAS);$i("conteudojanelaguias_corpo").appendChild(i);i.style.borderLeft="1px solid black";i.style.borderRight="1px solid black";guias=i3GEO.util.listaChaves(i3GEO.guias.CONFIGURA);nguias=guias.length;for(g=0;g<nguias;g++){if($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo)){$i("conteudojanelaguias_corpo").appendChild($i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo));temp=$i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo).style;temp.background="white";temp.border="1px solid black";temp.borderTop="0px solid black";temp.width="270px";temp.left="-1px";temp.height=i3GEO.parametros.h-90+"px"}}i3GEO.atualiza("");i.style.display="block";i.style.left="-1px";i.style.width="270px"};i3GEO.php.mudatamanho(temp,a,l)}else{janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop()}},mostraGuiaFerramenta:function(guia,namespace){var g,Dom=YAHOO.util.Dom;if(!namespace){namespace="guia"}for(g=0;g<12;g++){Dom.setStyle(namespace+g+"obj","display","none")}Dom.setStyle(guia+"obj","display","block")},guiaMovel:{ABERTA:false,config:{larguraPuxador:50,alturaPuxador:319,alturaGuiaMovel:0,larguraGuiaMovel:320,topGuiaMovel:0,guias:{icones:[],ids:[],idsconteudos:[],titulos:[],chaves:[]}},left:0,inicia:function(){var posMapa=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA)),centroY=posMapa[1]+(i3GEO.parametros.h/2),config=i3GEO.guias.guiaMovel.config,temp;if(i3GEO.guias.ALTURACORPOGUIAS===0&&config.alturaGuiaMovel===0){i3GEO.guias.guiaMovel.config.alturaGuiaMovel=i3GEO.parametros.h}else{i3GEO.guias.guiaMovel.config.alturaGuiaMovel=i3GEO.guias.ALTURACORPOGUIAS}config=i3GEO.guias.guiaMovel.config;temp=$i("i3GEOguiaMovel").style;temp.left=(posMapa[0]+i3GEO.parametros.w-config.larguraPuxador)+"px";i3GEO.guias.guiaMovel.left=parseInt(temp.left,10)+"px";if(config.topGuiaMovel===0){temp.top=(centroY-((config.alturaGuiaMovel-42)/2))+"px"}else{temp.top=config.topGuiaMovel+"px"}temp.width=config.larguraPuxador+"px";temp=$i("i3GEOguiaMovelMolde").style;temp.top="0px";temp.left=config.larguraPuxador+"px";temp.width="0px";temp.height=config.alturaGuiaMovel+"px";temp.backgroundColor="white";temp=$i("i3GEOguiaMovelPuxador").style;temp.top=((config.alturaGuiaMovel-config.alturaPuxador)/2)+"px";temp.left="0px";temp.width=config.larguraPuxador+"px";temp.height=config.alturaPuxador+"px";temp=$i("i3GEOguiaMovelIcones").style;temp.left="1px";temp.top="1px";temp.width=(config.larguraGuiaMovel-1)+"px";temp.height="35px";if(navm){temp.height="37px"}temp.zIndex=5;temp.paddingTop="2px";temp=$i("i3GEOguiaMovelConteudo").style;temp.left="1px";temp.top="38px";temp.height=(config.alturaGuiaMovel-39)+"px";if(navm){temp.width=(config.larguraGuiaMovel-1)+"px"}else{temp.width=(config.larguraGuiaMovel-5)+"px"}temp.paddingLeft="4px";YAHOO.util.Dom.setStyle("i3GEOguiaMovelConteudo","opacity",0.90);YAHOO.util.Dom.setStyle("i3GEOguiaMovelIcones","opacity",0.90);YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.10);$i("i3GEOguiaMovelMolde").onmouseover=function(){if($i("i3GEOguiaMovelConteudo").style.display==="block"){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)}if($i("i3GEOguiaMovelIcones").innerHTML===""){i3GEO.guias.guiaMovel.mostraIcones()}};$i("i3GEOguiaMovelMolde").onmouseout=function(){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.20);if($i("i3GEOguiaMovelIcones").innerHTML===""){i3GEO.guias.guiaMovel.mostraIcones()}};i3GEO.guias.guiaMovel.ativa(i3GEO.guias.ATUAL);if(i3GEO.guias.guiaMovel.ABERTA===true){i3GEO.guias.guiaMovel.abreFecha()}},mostraIcones:function(){if($i("i3GEOguiaMovelIcones").innerHTML!=""){return}var n=i3GEO.guias.guiaMovel.config.guias.icones.length,i,temp=i3GEO.guias.guiaMovel.config.guias,ins="";if(i3GEO.guias.ORDEM!==""){temp.chaves=i3GEO.guias.ORDEM}for(i=0;i<n;i++){if(temp.chaves[i]){ins+="<button title='"+temp.titulos[i]+"' onmouseout='javascript:this.className = \"iconeGuiaMovel iconeGuiaMovelMouseOut\"' onmouseover='javascript:this.className = \"iconeGuiaMovel iconeGuiaMovelMouseOver\"' onclick='i3GEO.guias.guiaMovel.ativa(\""+temp.chaves[i]+"\")' class=iconeGuiaMovel ><img id='"+temp.ids[i]+"' src='"+i3GEO.configura.locaplic+"/"+temp.icones[i]+"' style='cursor:pointer;;' /></button>"}}$i("i3GEOguiaMovelIcones").innerHTML=ins;i3GEO.guias.guiaMovel.desativaIcones();if($i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id)){$i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id).parentNode.style.backgroundColor="#cedff2";$i(i3GEO.guias.CONFIGURA[i3GEO.guias.ATUAL].id).parentNode.style.boxShadow="none"}},desativaIcones:function(){var ims=$i("i3GEOguiaMovelIcones").getElementsByTagName("button"),n=ims.length,i;for(i=0;i<n;i++){ims[i].style.backgroundColor="white";ims[i].style.boxShadow=""}},ativa:function(chave){if(i3GEO.guias.CONFIGURA[chave].click){i3GEO.guias.CONFIGURA[chave].click.call()}i3GEO.guias.escondeGuias();i3GEO.guias.mostra(chave);i3GEO.guias.ATUAL=chave;i3GEO.guias.guiaMovel.desativaIcones();if($i(i3GEO.guias.CONFIGURA[chave].id)){$i(i3GEO.guias.CONFIGURA[chave].id).parentNode.style.backgroundColor="#cedff2";$i(i3GEO.guias.CONFIGURA[chave].id).parentNode.style.boxShadow="none"}},reposiciona:function(){var temp=$i("i3GEOguiaMovel").style.top;i3GEO.guias.guiaMovel.config.alturaGuiaMovel=0;i3GEO.guias.ALTURACORPOGUIAS=0;$i("i3GEOguiaMovelIcones").style.display="none";$i("i3GEOguiaMovelConteudo").style.display="none";$i("i3GEOguiaMovelMolde").style.display="none";i3GEO.guias.escondeGuias();i3GEO.guias.guiaMovel.inicia();$i("i3GEOguiaMovel").style.top=temp},abreFecha:function(){var molde=$i("i3GEOguiaMovelMolde"),guia=$i("i3GEOguiaMovel"),attributes,anim,anim1;if(molde.style.display==="block"){$i("i3GEOguiaMovelIcones").style.display="none";$i("i3GEOguiaMovelConteudo").style.display="none";attributes={left:{to:parseInt(i3GEO.guias.guiaMovel.left,10)},id:"i3GEOguiaMovel"};anim=new YAHOO.util.Anim(guia,attributes,1,YAHOO.util.Easing.easeNone);attributes={width:{to:0},id:"i3GEOguiaMovelMolde"};anim1=new YAHOO.util.Anim(molde,attributes,1,YAHOO.util.Easing.easeNone);anim.duration=0.5;anim1.duration=0.5;anim.animate();anim1.animate();anim1.onComplete.subscribe(function(){molde.style.display="none"})}else{molde.style.display="block";attributes={left:{to:parseInt(guia.style.left,10)-i3GEO.guias.guiaMovel.config.larguraGuiaMovel},id:"i3GEOguiaMovel"};anim=new YAHOO.util.Anim(guia,attributes,1,YAHOO.util.Easing.easeNone);attributes={width:{to:i3GEO.guias.guiaMovel.config.larguraGuiaMovel},id:"i3GEOguiaMovelMolde"};anim1=new YAHOO.util.Anim(molde,attributes,1,YAHOO.util.Easing.easeNone);anim.duration=0.5;anim1.duration=0.5;anim1.onComplete.subscribe(function(){$i("i3GEOguiaMovelIcones").style.display="block";$i("i3GEOguiaMovelConteudo").style.display="block";i3GEO.guias.guiaMovel.mostraIcones();YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)});anim.animate();anim1.animate()}}}}; |
| 365 | 365 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.arvoreDeCamadas={BARRAPROGRESSO:true,MOSTRALISTAKML:false,FILTRO:"",VERIFICAABRANGENCIATEMAS:true,finaliza:"",EXPANDESOLEGENDA:false,PERMITEEXPANDIRTEMAS:true,ARRASTARORDEM:true,ARRASTARLIXEIRA:true,ALTERAOPACIDADE:true,ANIMAMAPA:true,LIGARDESLIGARTODOS:true,FILTRAR:true,ABRELEGENDA:true,EXPANDIDA:false,LEGENDAEXPANDIDA:false,OPCOESICONES:true,OPCOESTEMAS:true,OPCOESLEGENDA:true,AGUARDALEGENDA:false,ICONETEMA:true,FUNCOES:{farolescala:true,excluir:true,sobe:true,desce:true,fonte:true,zoomtema:true,compartilhar:true,opacidade:true,mudanome:true,procurar:true,toponimia:true,etiquetas:true,filtrar:true,tabela:true,grafico:true,editorlegenda:true,destacar:true,cortina:true,sql:true,comentar:true,temporizador:true,wms:true,tme:true},CAMADAS:"",CAMADASINICIAIS:"",ARVORE:null,IDHTML:"listaTemas",SID:null,LOCAPLIC:null,ATIVATEMA:"",cria:function(onde,temas,g_sid,g_locaplic,funcaoTema){if(!YAHOO.lang.isUndefined(funcaoTema)){i3GEO.arvoreDeCamadas.ATIVATEMA=funcaoTema}var novoel;if(i3GEO.arvoreDeCamadas.BARRAPROGRESSO===true&&i3GEO.Interface.ATUAL==="openlayers"){if(!$i("i3GEOprogressoDiv")){novoel=document.createElement("div");novoel.id="i3GEOprogressoDiv";novoel.style.position="absolute";novoel.style.top="0px";novoel.style.zIndex="50000";novoel.style.left=(i3GEO.parametros.w/2)-75+"px";$i(i3GEO.Interface.IDMAPA).appendChild(novoel);i3GEO.arvoreDeCamadas.progressBar=new YAHOO.widget.ProgressBar({height:5,width:150,minValue:1,maxValue:0,value:0}).render("i3GEOprogressoDiv")}}i3GEO.arvoreDeCamadas.SID=typeof(g_sid)!=='undefined'?g_sid:i3GEO.configura.sid;i3GEO.arvoreDeCamadas.LOCAPLIC=typeof(g_locaplic)!=='undefined'?g_locaplic:i3GEO.configura.locaplic;if(onde!==""){i3GEO.arvoreDeCamadas.IDHTML=onde}if(i3GEO.arvoreDeCamadas.IDHTML===""){return}if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return}if(YAHOO.lang.isUndefined(temas)||temas===""){temas=i3GEO.arvoreDeCamadas.CAMADAS}i3GEO.arvoreDeCamadas.atualiza(temas);if(i3GEO.arvoreDeCamadas.finaliza!==""){eval(i3GEO.arvoreDeCamadas.finaliza)}},atualiza:function(temas,forca){if(arguments.length===0){temas=i3GEO.arvoreDeCamadas.CAMADAS;i3GEO.arvoreDeCamadas.CAMADAS="";forca=false}var estilo,temp,newVal,root,tempNode,titulo,d,c,ltema,temaNode,i,j,n,nk,k,noGrupo,incluidos=[],grupoNode="",grupoLayers=i3GEO.configura.grupoLayers,textoTema="";temp=$i(i3GEO.arvoreDeCamadas.IDHTML);if(temp){if(forca===true){temp.innerHTML=""}if(temp.innerHTML!==""){if(i3GEO.arvoreDeCamadas.comparaTemas(temas,i3GEO.arvoreDeCamadas.CAMADAS)){i3GEO.arvoreDeCamadas.CAMADAS=temas;return}}}else{return}i3GEO.util.defineValor(i3GEO.arvoreDeCamadas.IDHTML,"innerHTML","");i3GEO.arvoreDeCamadas.CAMADAS=temas;if(i3GEO.arvoreDeCamadas.CAMADASINICIAIS===""){i3GEO.arvoreDeCamadas.CAMADASINICIAIS=temas}(function(){function changeIconMode(){var currentIconMode="";newVal=parseInt(this.value,10);if(newVal!==currentIconMode){currentIconMode=newVal}buildTree()}function buildTree(){i3GEO.arvoreDeCamadas.ARVORE=new YAHOO.widget.TreeView(i3GEO.arvoreDeCamadas.IDHTML)}buildTree()})();root=i3GEO.arvoreDeCamadas.ARVORE.getRoot();titulo="<table><tr><td><b>"+$trad("a7")+"</b></td><td>";titulo+="</td></tr></table>";tempNode=new YAHOO.widget.HTMLNode({expanded:true,html:titulo,hasIcon:true,enableHighlight:false},root);new YAHOO.widget.HTMLNode({expanded:false,html:i3GEO.arvoreDeCamadas.montaOpcoesArvore(),hasIcon:false,enableHighlight:false},tempNode);estilo=navm?"text-align:left;font-size:11px;vertical-align:middle;display:table-cell;":"text-align:left;font-size:11px;vertical-align:vertical-align:top;padding-top:4px;";if(grupoLayers===""){c=temas.length;for(i=0,j=c;i<j;i+=1){ltema=temas[i];try{if((ltema.escondido).toLowerCase()!=="sim"){textoTema=i3GEO.arvoreDeCamadas.montaTextoTema(ltema);if(textoTema!==""){temaNode=new YAHOO.widget.HTMLNode({expanded:this.EXPANDIDA,html:textoTema,id:ltema.name,tipo:"tema",enableHighlight:false},tempNode);if(this.PERMITEEXPANDIRTEMAS===true){if(this.EXPANDESOLEGENDA===false){temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1)}else{if(ltema.classe!=="NAO"){temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}}}}YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault)}}catch(e){}}}else{nk=temas.length;c=grupoLayers.length;for(i=0;i<c;i+=1){noGrupo="";if(grupoLayers[i].icone&&grupoLayers[i].icone===true){noGrupo+="<p style="+estilo+" ><input class=inputsb style=cursor:pointer onclick='i3GEO.arvoreDeCamadas.ligaDesligaTemas(\""+i3GEO.configura.grupoLayers[i].layers+"\",this.checked)' type=checkbox title='Ligar/desligar temas do grupo' /> "}noGrupo+="<span style="+estilo+";vertical-align:top ><b>"+grupoLayers[i].nome+"</b></span></p>";d=this.EXPANDIDA;if(grupoLayers[i].expandido&&grupoLayers[i].expandido===true){d=true}n=grupoLayers[i].layers.length;for(j=0;j<n;j+=1){for(k=0;k<nk;k+=1){ltema=temas[k];if(ltema.name===grupoLayers[i].layers[j]&<ema.escondido==="nao"){if(noGrupo!==""){grupoNode=new YAHOO.widget.HTMLNode({enableHighlight:false,html:noGrupo,expanded:d},tempNode);noGrupo=""}textoTema=i3GEO.arvoreDeCamadas.montaTextoTema(ltema);if(textoTema!==""){d={enableHighlight:false,expanded:i3GEO.arvoreDeCamadas.EXPANDIDA,html:textoTema,id:ltema.name,tipo:"tema"};if(grupoLayers[i].dinamico&&grupoLayers[i].dinamico===true){temaNode=new YAHOO.widget.HTMLNode(d,grupoNode)}else{temaNode=new YAHOO.widget.HTMLNode(d,tempNode)}temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1);YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault);incluidos.push(ltema.name)}}}}}grupoNode=new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,html:"<b>Outros</b>"},tempNode);c=incluidos.length;for(k=0;k<nk;k+=1){ltema=temas[k];n=false;for(j=0;j<c;j+=1){if(incluidos[j]===ltema.name||ltema.escondido.toLowerCase()==="sim"){n=true}}if(n===false){temaNode=new YAHOO.widget.HTMLNode({enableHighlight:false,expanded:false,html:i3GEO.arvoreDeCamadas.montaTextoTema(ltema),id:ltema.name,tipo:"tema"},grupoNode,i3GEO.arvoreDeCamadas.EXPANDIDA,true);temaNode.setDynamicLoad(i3GEO.arvoreDeCamadas.montaOpcoes,1);YAHOO.util.Event.addListener($i("arrastar_"+ltema),"click",YAHOO.util.Event.preventDefault);YAHOO.util.Event.addFocusListener($i("arrastar_"+ltema),YAHOO.util.Event.preventDefault)}}}document.getElementById(i3GEO.arvoreDeCamadas.IDHTML).style.textAlign="left";i3GEO.arvoreDeCamadas.ARVORE.draw();if(i3GEO.arvoreDeCamadas.ARRASTARORDEM===true||i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){i3GEO.arvoreDeCamadas.ativaDragDrop()}i3GEO.mapa.ativaTema(i3GEO.temaAtivo);i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas();if(i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS===true&&i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.arvoreDeCamadas.verificaAbrangenciaTemas()")}i3GEO.eventos.executaEventos(i3GEO.eventos.ATUALIZAARVORECAMADAS)},montaOpcoesArvore:function(){var ins="",imb=i3GEO.util.$im("branco.gif"),estilo=function(i){return" onmouseout='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOut\";' onmouseover='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOver\";' class='"+i+" iconeMini iconeGuiaMovelMouseOut' src='"+imb+"' style='cursor:pointer;text-align:left' "};if(this.ARRASTARLIXEIRA===true){ins+="<img "+estilo("i3geo_lixeira")+" onclick='i3GEO.arvoreDeCamadas.dialogo.excluir();' id='i3geo_lixeira' title='"+$trad("t2")+"' />"}if(this.FILTRAR===true){ins+="<img "+estilo("i3geo_filtro")+" onclick='i3GEO.arvoreDeCamadas.dialogo.filtro();' id='i3geo_filtro' title='"+$trad("t2a")+"' />"}if(this.ABRELEGENDA===true){ins+="<img "+estilo("soltaleg2")+" onclick='i3GEO.mapa.legendaHTML.libera();' id='soltaleg2' title='"+$trad("t2b")+"' />"}if(this.ALTERAOPACIDADE===true){ins+="<img "+estilo("opacidadeMapa")+" onclick='i3GEO.mapa.dialogo.opacidade();' id='opacidadeMapa' title='"+$trad("t20")+"' />"}if(this.ANIMAMAPA===true&&(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps")){ins+="<img "+estilo("animaMapa")+" onclick='i3GEO.mapa.dialogo.animacao();' id='animaMapa' title='"+$trad("p21")+"' />"}if(this.LIGARDESLIGARTODOS===true){ins+=" <img "+estilo("olhoAberto")+" onclick='i3GEO.arvoreDeCamadas.aplicaTemas(\"ligartodos\");' id='olhoAberto' title='"+$trad("t3a")+"' />";ins+=" <img "+estilo("olhoFechado")+" onclick='i3GEO.arvoreDeCamadas.aplicaTemas(\"desligartodos\");' id='olhoFechado' title='"+$trad("t3b")+"' />"}return ins},ligaDesligaTemas:function(lista,status){var c,n,i,aplica=false;lista=lista.split(",");n=lista.length;for(i=0;i<n;i+=1){c=i3GEO.arvoreDeCamadas.capturaCheckBox(lista[i]);if(c){if(c.checked!==status){aplica=true}c.checked=status;if(aplica===true){c.onclick()}}}},ativaDragDrop:function(){var Dom=YAHOO.util.Dom,Event=YAHOO.util.Event;YAHOO.example.DDList="";YAHOO.example.DDApp={init:function(){var i,ltema;if($i("i3geo_lixeira")&&i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){new YAHOO.util.DDTarget("i3geo_lixeira")}i=i3GEO.arvoreDeCamadas.CAMADAS.length-1;if(i3GEO.arvoreDeCamadas.CAMADAS.length-1>=0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if($i("arrastar_"+ltema.name)){new YAHOO.example.DDList("arrastar_"+ltema.name)}}while(i--)}}};YAHOO.example.DDList=function(id,sGroup,config){YAHOO.example.DDList.superclass.constructor.call(this,id,sGroup,config);this.logger=this.logger||YAHOO;YAHOO.util.Dom.setStyle(this.getDragEl(),"opacity",0.67);this.goingUp=false;this.lastY=0};YAHOO.extend(YAHOO.example.DDList,YAHOO.util.DDProxy,{startDrag:function(x,y){var dragEl,clickEl,Dom=YAHOO.util.Dom;this.logger.log(this.id+" startDrag");dragEl=this.getDragEl();clickEl=this.getEl();Dom.setStyle(clickEl,"visibility","hidden");dragEl.innerHTML=clickEl.innerHTML;Dom.setStyle(dragEl,"color",Dom.getStyle(clickEl,"color"));Dom.setStyle(dragEl,"backgroundColor",Dom.getStyle(clickEl,"backgroundColor"));Dom.setStyle(dragEl,"border","4px solid gray");Dom.setStyle(dragEl,"z-index","5000")},endDrag:function(e){var srcEl,proxy,a,thisid,proxyid;srcEl=this.getEl();proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);proxyid=proxy.id;thisid=this.id;a.onComplete.subscribe(function(){var Dom=YAHOO.util.Dom;Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(thisid,"visibility","")});a.animate();YAHOO.util.Dom.setStyle('i3geo_lixeira','border','0px solid blue')},onDragDrop:function(e,id){var pt,region,tema,destEl,els,lista,temp,DDM=YAHOO.util.DragDropMgr,Dom=YAHOO.util.Dom;if(DDM.interactionInfo.drop.length===1){pt=DDM.interactionInfo.point;region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){DDM.refreshCache();if(DDM.getDDById(id).id==="i3geo_lixeira"){if(i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA===true){(new YAHOO.util.Anim("i3geo_lixeira",{opacity:{from:0,to:1}},3,YAHOO.util.Easing.easeOutStrong)).animate();tema=(this.getEl()).id.split("arrastar_")[1];i3GEO.tema.exclui(tema)}}else{if(i3GEO.arvoreDeCamadas.ARRASTARORDEM===true){destEl=Dom.get(id);destEl.appendChild(this.getEl());els=i3GEO.arvoreDeCamadas.listaLigadosDesligados();lista=els[2].join(",");temp=function(retorno){i3GEO.atualiza(retorno);if(i3GEO.Interface.ATUAL==="openlayers"){i3GEO.Interface.openlayers.ordenaLayers()}};i3GEO.php.reordenatemas(temp,lista)}}}}},onDrag:function(e){var y;y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else if(y>this.lastY){this.goingUp=false}this.lastY=y;if(i3GEO.guias.TIPO==="movel"){YAHOO.util.Dom.setStyle("i3GEOguiaMovelMolde","opacity",0.9)}},onDragOver:function(e,id){var destEl;destEl=YAHOO.util.Dom.get(id);if($i("i3geo_lixeira")&&id==="i3geo_lixeira"){$i("i3geo_lixeira").style.border="1px solid red"}else{destEl.style.textDecoration="underline"}},onDragOut:function(e,id){$i(id).style.textDecoration="none"}});Event.onDOMReady(YAHOO.example.DDApp.init,YAHOO.example.DDApp,true)},montaOpcoes:function(node){var opcoesNode,idtema,ltema,farol,mfarol,tnome="",imb=i3GEO.util.$im("branco.gif"),funcoes=i3GEO.arvoreDeCamadas.FUNCOES;idtema=node.data.id;ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema);if(i3GEO.arvoreDeCamadas.OPCOESICONES===true){if(funcoes.farolescala===true){farol="maisamarelo.png";mfarol="";if(ltema.escala*1<i3GEO.parametros.mapscale*1){farol="maisverde.png";mfarol=$trad("t9")}if(ltema.escala*1>i3GEO.parametros.mapscale*1){farol="maisvermelho.png";mfarol=$trad("t10")}if(ltema.escala===0){farol="maisamarelo.png";mfarol=$trad("t11")}tnome+=" <img id='farol"+ltema.name+"' src='"+i3GEO.util.$im(farol)+"' title='"+mfarol+"' />"}if(funcoes.excluir===true){tnome+=" <img id='idx"+ltema.name+"' class='x' src='"+imb+"' title='"+$trad("t12")+"' onclick='i3GEO.tema.exclui(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t12a")+"','exclui')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.sobe===true){tnome+=" <img class='sobe' src='"+imb+"' title='"+$trad("t13")+"' onclick='i3GEO.tema.sobe(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t14")+"','sobe')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.desce===true){tnome+=" <img class='desce' src='"+imb+"' title='"+$trad("t15")+"' onclick='i3GEO.tema.desce(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t16")+"','desce')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(funcoes.fonte===true){tnome+=" <img class='fonte' src='"+imb+"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if((ltema.zoomtema.toLowerCase()==="sim")&&(funcoes.zoomtema===true)){tnome+=" <img class='extent' src='"+imb+"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node);if(funcoes.compartilhar===true&<ema.permitecomentario.toLowerCase()!=="nao"){temp=i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&temasa="+ltema.name;tnome=i3GEO.social.compartilhar("",temp,temp,"semtotal");iconesNode=new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node)}}if(i3GEO.arvoreDeCamadas.OPCOESTEMAS===true){opcoesNode=new YAHOO.widget.HTMLNode({html:$trad("t18a"),idopcoes:ltema.name,identifica:ltema.identifica,enableHighlight:false,expanded:false},node);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraOpcoes,1)}if(i3GEO.arvoreDeCamadas.OPCOESLEGENDA===true&<ema.classe!=="NAO"){opcoesNode=new YAHOO.widget.HTMLNode({html:$trad("p3"),idlegenda:ltema.name,enableHighlight:false,expanded:i3GEO.arvoreDeCamadas.LEGENDAEXPANDIDA},node);opcoesNode.setDynamicLoad(i3GEO.arvoreDeCamadas.mostraLegenda,1)}node.loadComplete()},mostraOpcoes:function(node){var tnome,idtema=node.data.idopcoes,ltema=i3GEO.arvoreDeCamadas.pegaTema(idtema),funcoes=i3GEO.arvoreDeCamadas.FUNCOES;if(funcoes.opacidade===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+" <a class='tic' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' href='#' /a>"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' > </a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if(funcoes.temporizador===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' > </a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+" <a class='tic' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' href='#' /a>"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' > </a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if(funcoes.mudanome===true){if(navm){tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","8","")+" <a class='tic' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' href='#' />"}else{tnome="<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' > </a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />"}new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome},node)}if((ltema.type<3)&&(ltema.connectiontype!==7)){if(funcoes.procurar===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t22"),$trad("t23"),'i3GEO.tema.dialogo.procuraratrib(\"'+ltema.name+'\")',node)}if(funcoes.toponimia===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t24"),$trad("t25"),'i3GEO.tema.dialogo.toponimia(\"'+ltema.name+'\")',node)}if(funcoes.etiquetas===true&&(ltema.identifica.toLowerCase()==="sim"||ltema.identifica==="")){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t26"),$trad("t27"),'i3GEO.tema.dialogo.etiquetas(\"'+ltema.name+'\")',node)}if(funcoes.filtrar===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t28"),$trad("t29"),'i3GEO.tema.dialogo.filtro(\"'+ltema.name+'\")',node)}if(funcoes.tabela===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t30"),$trad("t31"),'i3GEO.tema.dialogo.tabela(\"'+ltema.name+'\")',node)}if(i3GEO.parametros.versaoms>4&&funcoes.grafico===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t37"),$trad("t37"),'i3GEO.tema.dialogo.graficotema(\"'+ltema.name+'\")',node)}}if((ltema.type<4||ltema.type===8)&&funcoes.editorlegenda===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t32"),$trad("t33"),'i3GEO.tema.dialogo.editaLegenda(\"'+ltema.name+'\")',node)}if(funcoes.destacar===true&&i3GEO.Interface.ATUAL!=="googlemaps"&&i3GEO.Interface.ATUAL!=="googleearth"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t34"),$trad("t35"),'i3GEO.navega.destacaTema.inicia(\"'+ltema.name+'\")',node)}if(funcoes.sql===true&<ema.editorsql.toLowerCase()==="sim"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t40"),$trad("t41"),'i3GEO.tema.dialogo.editorsql(\"'+ltema.name+'\")',node)}if(funcoes.comentar===true&<ema.permitecomentario.toLowerCase()!=="nao"&&i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t45"),$trad("t45"),'i3GEO.tema.dialogo.comentario(\"'+ltema.name+'\")',node)}if(funcoes.wms===true&<ema.permiteogc.toLowerCase()!=="nao"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema("Getcapabilities",'WMS-OGC','i3GEO.tema.dialogo.mostraWms(\"'+ltema.name+'\")',node)}if(i3GEO.login.verificaCookieLogin()&&i3GEO.parametros.editor.toLowerCase()==="sim"){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t44"),"<span style=color:red title='Apenas usuários editores podem ver essa opção' >"+$trad("t44")+"</span>",'i3GEO.tema.dialogo.salvaMapfile(\"'+ltema.name+'\")',node)}if(funcoes.tme===true){i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t49"),$trad("t49"),'i3GEO.tema.dialogo.tme(\"'+ltema.name+'\")',node)}node.loadComplete()},adicionaOpcaoTema:function(dica,titulo,onclick,node){var tnome="<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>";new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node)},mostraLegenda:function(node){var retorna,idtema=node.data.idlegenda;retorna=function(retorno){var original={data:""},i,re,tabela,linhas,linha,colunas,incluir,elementos,nelementos,inputs,desativar,nindices;if(retorno.data.legenda){original=retorno;retorno=retorno.data.legenda;if(retorno[0]){if((navn)&&(!retorno[0].imagem)){tabela=retorno}else{i=retorno[0].imagem;re=new RegExp("tiff","g");i=i.replace(re,'png');tabela="<img src='"+i+"' />"}retorno=""}else{linhas=retorno.split("#");if(linhas.length>1){linhas=retorno.split("|");tabela="<table>";linha=linhas.length-1;if(linha>=0){do{colunas=linhas[linha].split("#");re=new RegExp("'","g");tabela+="<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>"}while(linha--)}tabela+="</table><br>"}else{tabela=retorno}}}else{tabela="<img src='"+retorno.data[0].imagem+"' />"}incluir="<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false},node);node.loadComplete();elementos=document.getElementById(idtema+"verdiv").getElementsByTagName("input");nelementos=elementos.length;inputs=[];i=0;if(nelementos>0){do{if(elementos[i].type==="checkbox"){inputs.push(elementos[i])}i++}while(i<nelementos)}if(original.data.desativar){desativar=original.data.desativar;nindices=desativar.length;i=0;if(nindices>0){do{inputs[desativar[i]].checked=false;i++}while(i<nindices)}}};if(i3GEO.configura.templateLegenda!==""){i3GEO.php.criaLegendaHTML(retorna,idtema,i3GEO.configura.templateLegenda)}else{i3GEO.php.criaLegendaHTML(retorna,idtema)}},atualizaLegenda:function(idtema){var node;if(document.getElementById(idtema+"verdiv")){node=i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idlegenda",idtema);if(node){i3GEO.arvoreDeCamadas.ARVORE.removeChildren(node);this.mostraLegenda(node);if($i("janelaLegenda"+idtema+"_corpo")){i3GEO.tema.mostralegendajanela(idtema,"","abrejanela")}}}},escolheCorClasse:function(leg){var obj,novoel;leg=leg.parentNode.getElementsByTagName("input")[0];if(!$i("tempinputcorclasse")){novoel=document.createElement("input");novoel.id="tempinputcorclasse";novoel.style.display="none";novoel.alt="objeto criado para guardar dados da funcao escolohercorclasse";novoel.onchange="";document.body.appendChild(novoel)}obj=$i("tempinputcorclasse");obj.value="";obj.tema=leg.name;obj.idclasse=leg.value;obj.onchange=function(){var obj=$i("tempinputcorclasse");i3GEO.tema.alteracorclasse(obj.tema,obj.idclasse,obj.value)};i3GEO.util.abreCor("","tempinputcorclasse")},inverteStatusClasse:function(leg){var temp=function(retorno){i3GEO.atualiza();i3GEO.Interface.atualizaTema(retorno,leg.name)};i3GEO.php.inverteStatusClasse(temp,leg.name,leg.value)},montaTextoTema:function(tema){var ck,html,estilo,iu=i3GEO.util;if(tema.status*1===2){ck=' CHECKED '}else{ck=""}if(this.FILTRO!==""){if(this.FILTRO==="desligados"&&ck!==""){return""}if(this.FILTRO==="ligados"&&ck===""){return""}if(this.FILTRO==="selecionados"&&tema.sel.toLowerCase()!=="sim"){return""}if(this.FILTRO==="download"&&tema.download.toLowerCase()!=="sim"){return""}if(this.FILTRO==="wms"&&tema.connectiontype*1!==7){return""}if(this.FILTRO==="raster"&&tema.type*1!==3){return""}if(this.FILTRO==="toponimia"&&tema.type*1!==4){return""}}estilo=navm?"text-align:left;font-size:11px;vertical-align:middle;display:table-cell;":"text-align:left;font-size:11px;vertical-align:top;";html="<p onclick='i3GEO.mapa.ativaTema(\""+tema.name+"\")' id='arrastar_"+tema.name+"' style='"+estilo+"' >";estilo=navm?"cursor:pointer;vertical-align:15%;":"cursor:pointer;";html+="<input class=inputsb style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t3")+"','ligadesliga')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" type='checkbox' name=\"layer\" value='"+tema.name+"' "+ck;if(i3GEO.arvoreDeCamadas.ATIVATEMA!==""){html+="onclick=\""+i3GEO.arvoreDeCamadas.ATIVATEMA+"\""}else{html+="onclick='i3GEO.util.criaBotaoAplicar(\"i3GEO.arvoreDeCamadas.aplicaTemas\",\""+$trad("p14")+"\",\"i3geoBotaoAplicarCamadas\",this)'"}html+=" />";estilo=navm?"cursor:pointer;vertical-align:35%;padding-top:0px;":"cursor:pointer;vertical-align:20%;";if(tema.iconetema!==""&&i3GEO.arvoreDeCamadas.ICONETEMA===true){html+=" <img style='"+estilo+"' src='"+tema.iconetema+"' />"}if(tema.contextoescala.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("contextoescala.png")+" title='"+$trad("t36")+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t36")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(tema.sel.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("estasel.png")+" title='"+$trad("t4")+"' onclick='i3GEO.tema.limpasel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','limpasel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";html+=" <img style='"+estilo+"' src="+iu.$im("zoomsel.gif")+" title='"+$trad("t4a")+"' onclick='i3GEO.tema.zoomsel(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t5")+"','zoomsel')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}if(tema.download.toLowerCase()==="sim"){html+=" <img style='"+estilo+"' src="+iu.$im("down1.gif")+" title='download' onclick='i3GEO.tema.dialogo.download(\""+tema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t6")+"','download')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"}estilo=navm?"cursor:move;vertical-align:35%;padding-top:0px;color:black;":"cursor:move;vertical-align:20%;color:black;";if(i3GEO.arvoreDeCamadas.AGUARDALEGENDA){html+=" <span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onclick=\"i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','abrejanela');\" onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7a")+"','');i3GEO.tema.mostralegendajanela('"+tema.name+"','"+tema.tema+"','ativatimer');\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('');i3GEO.tema.mostralegendajanela('"+tema.name+"','','desativatimer');\" >"+tema.tema+"</span>"}else{html+=" <span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+tema.tema+"</span>"}html+="</p>";if(i3GEO.tema.TEMPORIZADORESID[tema.name]==undefined&&tema.temporizador!=""){i3GEO.tema.temporizador(tema.name,tema.temporizador)}return(html)},atualizaFarol:function(mapscale){var farol,l,ltema,escala,iu=i3GEO.util,im=i3GEO.configura.locaplic+"/imagens/",camadas=i3GEO.arvoreDeCamadas.CAMADAS;farol="maisamarelo.png";l=camadas.length-1;if(l>=0){do{ltema=camadas[l];escala=ltema.escala;if(escala*1<mapscale*1){farol="maisverde.png"}if(escala*1>mapscale*1){farol="maisvermelho.png"}if(escala*1===0){farol="maisamarelo.png"}iu.defineValor("farol"+ltema.name,"src",im+farol)}while(l--)}},aplicaTemas:function(tipo){if(arguments.length===0){tipo="normal"}var t="",temp;if(tipo==="normal"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("mantem")}if(tipo==="ligartodos"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("marca");if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["googleearth","openlayers","googlemaps"])){return}}if(tipo==="desligartodos"){t=i3GEO.arvoreDeCamadas.listaLigadosDesligados("desmarca");if(i3GEO.util.in_array(i3GEO.Interface.ATUAL,["googleearth","openlayers","googlemaps"])){return}}temp=function(){i3GEO.atualiza();i3GEO.janela.fechaAguarde("redesenha")};try{clearTimeout(tempoBotaoAplicar)}catch(erro){}tempoBotaoAplicar="";if(tipo==="normal"){i3GEO.php.ligatemas(temp,t[1].toString(),t[0].toString());return}if(tipo==="ligartodos"){i3GEO.php.ligatemas(temp,"",t[2].toString());return}if(tipo==="desligartodos"){i3GEO.php.ligatemas(temp,t[2].toString(),"")}},listaLigadosDesligados:function(tipo){if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return[[],[],[]]}if(arguments.length===0){tipo="manter"}var no,cs,csn,j,c,nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"),ligados=[],desligados=[],todos=[],n=nos.length,i=0,ATUAL=i3GEO.Interface.ATUAL;do{try{no=nos[i].getEl();cs=no.getElementsByTagName("input");csn=cs.length;for(j=0;j<csn;j+=1){c=cs[j];if(c.name==="layer"){c.checked===true?ligados.push(c.value):desligados.push(c.value);todos.push(c.value);if(tipo==="marca"){c.checked=true;if(i3GEO.util.in_array(ATUAL,["googleearth","openlayers","googlemaps"])){i3GEO.Interface[ATUAL].ligaDesliga(c)}}if(tipo==="desmarca"){c.checked=false;if(i3GEO.util.in_array(ATUAL,["googleearth","openlayers","googlemaps"])){i3GEO.Interface[ATUAL].ligaDesliga(c)}}}}i++}catch(e){i+=1}}while(i<n);return([ligados,desligados,todos])},capturaCheckBox:function(tema){if(!$i(i3GEO.arvoreDeCamadas.IDHTML)){return}var nos,n,i,no,cs,csn,j,c;nos=i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");n=nos.length;i=0;do{try{no=nos[i].getEl();cs=no.getElementsByTagName("input");csn=cs.length;for(j=0;j<csn;j+=1){c=cs[j];if(c.name==="layer"&&c.value===tema){return c}}i+=1}catch(e){i+=1}}while(i<n);return(null)},comparaTemas:function(novo,atual){try{var novon=novo.length,i;if(novon!==atual.length){return(false)}for(i=0;i<novon;i+=1){if(novo[i].name!==atual[i].name){return(false)}if(novo[i].tema!==atual[i].tema){return(false)}if(novo[i].sel!==atual[i].sel){return(false)}if(novo[i].status!==atual[i].status){return(false)}}return(true)}catch(e){return true}},pegaTema:function(idtema,camadas){var i;if(!camadas){camadas=i3GEO.arvoreDeCamadas.CAMADAS}i=camadas.length;while(i>0){i-=1;if(camadas[i].name===idtema){return camadas[i]}}return""},filtraCamadas:function(propriedade,valor,operador,camadas){var resultado=[],i=0,temp,nelementos=camadas.length,ltema;if(nelementos>0){do{ltema=camadas[i];if(ltema.escondido.toLowerCase()!=="sim"){temp=ltema[propriedade];if(operador==="igual"){if(temp==valor){resultado.push(ltema)}}if(operador==="diferente"){if(temp!=valor){resultado.push(ltema)}}if(operador==="menor"){if(temp<valor){resultado.push(ltema)}}}i+=1}while(i<nelementos)}return resultado},alteraPropCamadas:function(propriedade,valor,camada){var i=0,nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if(ltema.name===camada){ltema[propriedade]=valor}i+=1}while(i<nelementos)}},verificaAbrangenciaTemas:function(){if(i3GEO.arvoreDeCamadas.VERIFICAABRANGENCIATEMAS===false){return}try{var i=0,temp,nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];temp=ltema.exttema;if(temp!==""){if(i3GEO.util.intersectaBox(temp,i3GEO.parametros.mapexten)===false){$i("ArvoreTituloTema"+ltema.name).style.color="gray"}else{$i("ArvoreTituloTema"+ltema.name).style.color="black"}}i+=1}while(i<nelementos)}}catch(e){}},verificaAplicaExtensao:function(){var i=0,temp="",nelementos=i3GEO.arvoreDeCamadas.CAMADAS.length,ltema;try{if(nelementos>0){do{ltema=i3GEO.arvoreDeCamadas.CAMADAS[i];if(ltema.aplicaextensao.toLowerCase()==="sim"){temp=ltema.name}i+=1}while(i<nelementos)}}catch(e){return""}return temp},dialogo:{filtro:function(){i3GEO.util.dialogoFerramenta("i3GEO.arvoreDeCamadas.dialogo.filtro()","filtroarvore","filtroarvore")},excluir:function(){i3GEO.util.dialogoFerramenta("i3GEO.arvoreDeCamadas.dialogo.excluir()","excluirarvore","excluirarvore")}}}; |
| 366 | 366 | if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.navega={TEMPONAVEGAR:600,FATORZOOM:2,timerNavega:null,centroDoMapa:function(){var xy;switch(i3GEO.Interface.ATUAL){case"openlayers":xy=i3geoOL.getCenter();if(xy){return[xy.lon,xy.lat]}else{return false}break;case"googlemaps":xy=i3GeoMap.getCenter();if(xy){return[xy.lng(),xy.lat()]}else{return false}break;default:return false}},marcaCentroDoMapa:function(xy){if(xy!=false){xy=i3GEO.calculo.dd2tela(xy[0]*1,xy[1]*1,$i(i3GEO.Interface.IDMAPA),i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);i3GEO.util.criaPin("i3GeoCentroDoMapa",i3GEO.configura.locaplic+'/imagens/alvo.png','30px','30px');i3GEO.util.posicionaImagemNoMapa("i3GeoCentroDoMapa",xy[0],xy[1])}},zoomin:function(locaplic,sid){if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomIn();return}if(sid){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.php.aproxima(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomout:function(locaplic,sid){if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomOut();return}if(sid){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}i3GEO.php.afasta(i3GEO.atualiza,i3GEO.navega.FATORZOOM)},zoomponto:function(locaplic,sid,x,y,tamanho,simbolo,cor){if(!simbolo){simbolo="ponto"}if(!tamanho){tamanho=15}if(!cor){cor="255 0 0"}if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}var f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.zoomponto(i3GEO.atualiza,"+x+","+y+","+tamanho+",'"+simbolo+"','"+cor+"');";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},zoompontoIMG:function(locaplic,sid,x,y){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}i3GEO.php.pan(i3GEO.atualiza,'','',x,y)},xy2xy:function(locaplic,sid,xi,yi,xf,yf,ext,tipoimagem){var disty,distx,ex,novoxi,novoxf,novoyf,nex;if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}disty=(yi*-1)+yf;distx=(xi*-1)+xf;ex=ext.split(" ");novoxi=(ex[0]*1)-distx;novoxf=(ex[2]*1)-distx;novoyi=(ex[1]*1)-disty;novoyf=(ex[3]*1)-disty;if((distx===0)&&(disty===0)){return false}else{nex=novoxi+" "+novoyi+" "+novoxf+" "+novoyf;i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,tipoimagem,nex);return true}},localizaIP:function(locaplic,sid,funcao){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}i3GEO.php.localizaIP(funcao)},zoomIP:function(locaplic,sid){try{if(arguments.length>0){i3GEO.configura.locaplic=locaplic;i3GEO.configura.sid=sid}var mostraIP=function(retorno){if(retorno.data.latitude!==null){i3GEO.navega.zoomponto(locaplic,sid,retorno.data.longitude,retorno.data.latitude)}else{alert("Nao foi possivel identificar a localizacao.")}};i3GEO.navega.localizaIP(locaplic,sid,mostraIP)}catch(e){}},zoomExt:function(locaplic,sid,tipoimagem,ext){if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}if(tipoimagem===""){tipoimagem="nenhum"}var f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.mudaext(i3GEO.atualiza,'"+tipoimagem+"','"+ext+"');";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},aplicaEscala:function(locaplic,sid,escala){if(i3GEO.Interface.ATUAL==="googlemaps"){i3GeoMap.setZoom(i3GEO.Interface.googlemaps.escala2nzoom(escala))}if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.zoomToScale(escala,true)}},panFixo:function(locaplic,sid,direcao,w,h,escala){var x=0,y=0,f;if(locaplic!==""){i3GEO.configura.locaplic=locaplic}if(sid!==""){i3GEO.configura.sid=sid}if(w===""){w=i3GEO.parametros.w}if(h===""){h=i3GEO.parametros.h}if(escala===""){escala=i3GEO.parametros.mapscale}switch(direcao){case"norte":y=h/6;x=w/2;break;case"sul":y=h-(h/6);x=w/2;break;case"leste":x=w-(w/6);y=h/2;break;case"oeste":x=w/6;y=h/2;break;case"nordeste":y=h/6;x=w-(w/6);break;case"sudeste":y=h-(h/6);x=w-(w/6);break;case"noroeste":y=h/6;x=w/6;break;case"sudoeste":y=h-(h/6);x=w/6;break}if(i3GEO.Interface.ATUAL==="openlayers"){i3geoOL.pan(x,y);return}f="i3GEO.navega.timerNavega = null;"+"i3GEO.php.pan(i3GEO.atualiza,"+escala+",'',"+x+","+y+");";try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)},panFixoNorte:function(){i3GEO.navega.panFixo('','','norte','','','')},panFixoSul:function(){i3GEO.navega.panFixo('','','sul','','','')},panFixoOeste:function(){i3GEO.navega.panFixo('','','oeste','','','')},panFixoLeste:function(){i3GEO.navega.panFixo('','','leste','','','')},mostraRosaDosVentos:function(){var novoel,setas,i;try{if(i3GEO.configura.mostraRosaDosVentos==="nao"){return}if(g_tipoacao==="area"){return}}catch(e){}if(objposicaocursor.imgx<10||objposicaocursor.imgy<10||objposicaocursor.imgy>(i3GEO.parametros.h-10)){return}if(!$i("i3geo_rosa")){novoel=document.createElement("div");novoel.id="i3geo_rosa";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navn){novoel.style.opacity=".7"}else{novoel.style.filter="alpha(opacity=70)"}document.body.appendChild(novoel)}setas="<table id='rosaV' >";setas+="<tr onclick=\"javascript:i3GEO.configura.mostraRosaDosVentos='nao'\"><td></td><td></td><td style=cursor:pointer >x</td></tr><tr>";setas+="<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><table><tr>";setas+="<td><img class='rosamais' title='aproxima' onclick=\"i3GEO.navega.zoomin('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="<td><img class='rosamenos' title='afasta' onclick=\"i3GEO.navega.zoomout('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>";setas+="</tr></table></td>";setas+="<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>";setas+="<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>";setas+="<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr></table>";i=$i("i3geo_rosa");i.innerHTML=setas;i.style.top=objposicaocursor.telay-27+"px";i.style.left=objposicaocursor.telax-27+"px";i.style.display="block";if($i("img")){YAHOO.util.Event.addListener($i("img"),"mousemove",function(){var i=$i("i3geo_rosa");i.style.display="none";YAHOO.util.Event.removeListener(escondeRosa)})}i3GEO.ajuda.mostraJanela('Clique nas pontas da rosa para navegar no mapa. Clique em x para parar de mostrar essa opção.')},autoRedesenho:{INTERVALO:0,ID:"tempoRedesenho",ativa:function(id){if(arguments.length===0){id="tempoRedesenho"}i3GEO.navega.autoRedesenho.ID=id;if(($i(id))&&i3GEO.navega.autoRedesenho.INTERVALO>0){$i(id).style.display="block"}if(i3GEO.navega.autoRedesenho.INTERVALO>0){i3GEO.navega.tempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.redesenha()',i3GEO.navega.autoRedesenho.INTERVALO)}if(($i(id))&&(i3GEO.navega.autoRedesenho.INTERVALO>0)){$i(id).innerHTML=i3GEO.navega.autoRedesenho.INTERVALO/1000;i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},desativa:function(){i3GEO.navega.autoRedesenho.INTERVALO=0;clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);i3GEO.navega.tempoRedesenho="";i3GEO.navega.contaTempoRedesenho="";if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).style.display="none"}},redesenha:function(){clearTimeout(i3GEO.navega.tempoRedesenho);clearTimeout(i3GEO.navega.contaTempoRedesenho);switch(i3GEO.Interface.ATUAL){case"openlayers":i3GEO.Interface.openlayers.atualizaMapa();break;case"googlemaps":i3GEO.Interface.googlemaps.redesenha();break;default:i3GEO.atualiza("")}i3GEO.navega.autoRedesenho.ativa(i3GEO.navega.autoRedesenho.ID)},contagem:function(){if($i(i3GEO.navega.autoRedesenho.ID)){$i(i3GEO.navega.autoRedesenho.ID).innerHTML=parseInt($i(i3GEO.navega.autoRedesenho.ID).innerHTML,10)-1}i3GEO.navega.contaTempoRedesenho=setTimeout('i3GEO.navega.autoRedesenho.contagem()',1000)}},zoomBox:{inicia:function(){if(i3GEO.navega.timerNavega!==null){return}if(g_tipoacao!=='zoomli'){return}if(!$i("i3geoboxZoom")){i3GEO.navega.zoomBox.criaBox()}var i=$i("i3geoboxZoom").style;i.width=0+"px";i.height=0+"px";i.visibility="visible";i.display="block";i.left=objposicaocursor.telax+"px";i.top=objposicaocursor.telay+"px";boxxini=objposicaocursor.telax;boxyini=objposicaocursor.telay;tamanhox=0;tamanhoy=0;if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.zoomBox.desloca()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.zoomBox.desloca()")}if(i3GEO.eventos.MOUSEUP.toString().search("i3GEO.navega.zoomBox.termina()")<0){i3GEO.eventos.MOUSEUP.push("i3GEO.navega.zoomBox.termina()")}},criaBox:function(){if(i3GEO.navega.timerNavega!==null){return}if(!$i("i3geoboxZoom")){var novoel;novoel=document.createElement("div");novoel.style.width="0px";novoel.style.height="0px";novoel.id="i3geoboxZoom";novoel.style.display="none";novoel.style.fontSize="0px";if(navn){novoel.style.opacity=0.25}novoel.style.backgroundColor="gray";novoel.style.position="absolute";novoel.style.border="2px solid #ff0000";if(navm){novoel.style.filter="alpha(opacity=25)"}novoel.onmousemove=function(){var b,wb,hb;b=$i("i3geoboxZoom").style;wb=parseInt(b.width,10);hb=parseInt(b.height,10);if(navm){if(wb>2){b.width=wb-2+"px"}if(hb>2){b.height=hb-2+"px"}}else{b.width=wb-2+"px";b.height=hb-2+"px"}};novoel.onmouseup=function(){i3GEO.navega.zoomBox.termina()};document.body.appendChild(novoel)}},desloca:function(){var bxs,ppx,py;if(i3GEO.navega.timerNavega!==null){return}if(g_tipoacao!=='zoomli'){return}bxs=$i("i3geoboxZoom").style;if(bxs.display!=="block"){return}ppx=objposicaocursor.telax;py=objposicaocursor.telay;if(navm){if((ppx>boxxini)&&((ppx-boxxini-2)>0)){bxs.width=ppx-boxxini-2+"px"}if((py>boxyini)&&((py-boxyini-2)>0)){bxs.height=py-boxyini-2+"px"}if(ppx<boxxini){bxs.left=ppx;bxs.width=boxxini-ppx+2+"px"}if(py<boxyini){bxs.top=py;bxs.height=boxyini-py+2+"px"}}else{if(ppx>boxxini){bxs.width=ppx-boxxini+"px"}if(py>boxyini){bxs.height=py-boxyini+"px"}if(ppx<boxxini){bxs.left=ppx+"px";bxs.width=boxxini-ppx+"px"}if(py<boxyini){bxs.top=py+"px";bxs.height=boxyini-py+"px"}}},termina:function(){var valor,v,x1,y1,x2,y2,f,limpa=function(){};if(g_tipoacao!=='zoomli'){i3GEO.eventos.MOUSEDOWN.remove("i3GEO.navega.zoomBox.inicia()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");return}try{if(i3GEO.navega.timerNavega!==null){return}valor=i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize);v=valor[0];x1=valor[1];y1=valor[2];x2=valor[3];y2=valor[4];limpa=function(){var bxs=$i("i3geoboxZoom");if(bxs){bxs.style.display="none";bxs.style.visibility="hidden";bxs.style.width=0+"px";bxs.style.height=0+"px"}};if((x1===x2)||(y1===y2)){limpa.call();return}i3GEO.parametros.mapexten=v;limpa.call();i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()");i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()");if(i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface.googlemaps.zoom2extent(v);return}f="i3GEO.navega.timerNavega = null;i3GEO.navega.zoomExt('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','"+i3GEO.configura.tipoimagem+"','"+v+"')";if(i3GEO.navega.timerNavega!==undefined){clearTimeout(i3GEO.navega.timerNavega)}i3GEO.navega.timerNavega=setTimeout(f,i3GEO.navega.TEMPONAVEGAR)}catch(e){limpa.call();return}}},lente:{POSICAOX:0,POSICAOY:0,ESTAATIVA:"nao",inicia:function(){var novoel,novoimg,temp;if(!$i("lente")){novoel=document.createElement("div");novoel.id='lente';novoel.style.clip='rect(0px,0px,0px,0px)';novoimg=document.createElement("img");novoimg.src="";novoimg.id='lenteimg';novoel.appendChild(novoimg);document.body.appendChild(novoel);novoel=document.createElement("div");novoel.id='boxlente';document.body.appendChild(novoel)}temp=$i('boxlente').style;temp.borderWidth='1';temp.borderColor="red";temp.display="block";$i("lente").style.display="block";i3GEO.navega.lente.ESTAATIVA="sim";i3GEO.navega.lente.atualiza();if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.lente.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.lente.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.lente.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.lente.movimenta()")}},atualiza:function(){var temp=function(retorno){try{var pos,volta,nimg,olente,oboxlente,olenteimg;retorno=retorno.data;if(retorno==="erro"){alert("A lente nao pode ser criada");return}volta=retorno.split(",");nimg=volta[2];olente=$i('lente');oboxlente=$i('boxlente');olenteimg=$i('lenteimg');olenteimg.src=nimg;olenteimg.style.width=volta[0]*1.5+"px";olenteimg.style.height=volta[1]*1.5+"px";olente.style.zIndex=1000;olenteimg.style.zIndex=1000;oboxlente.style.zIndex=1000;pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA));olente.style.left=pos[0]+i3GEO.navega.lente.POSICAOX+"px";olente.style.top=pos[1]+i3GEO.navega.lente.POSICAOY+"px";oboxlente.style.left=pos[0]+i3GEO.navega.lente.POSICAOX+"px";oboxlente.style.top=pos[1]+i3GEO.navega.lente.POSICAOY+"px";oboxlente.style.display='block';oboxlente.style.visibility='visible';olente.style.display='block';olente.style.visibility='visible';i3GEO.janela.fechaAguarde("ajaxabrelente")}catch(e){i3GEO.janela.fechaAguarde()}};if(i3GEO.navega.lente.ESTAATIVA==="sim"){i3GEO.php.aplicaResolucao(temp,1.5)}else{i3GEO.navega.lente.desativa()}},desativa:function(){$i("lente").style.display="none";$i("boxlente").style.display="none";$i('boxlente').style.borderWidth=0;i3GEO.navega.lente.ESTAATIVA="nao";i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.lente.movimenta()");i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.lente.atualiza()")},movimenta:function(){try{if(i3GEO.navega.lente.ESTAATIVA==="sim"){var pos=[0,0],esq,topo,clipt,i;if($i("lente").style.visibility==="visible"){pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA))}esq=(objposicaocursor.telax-pos[0])*2.25;topo=(objposicaocursor.telay-pos[1])*2.25;clipt="rect("+(topo-120)+"px "+(esq+120)+"px "+(topo+120)+"px "+(esq-120)+"px)";i=$i("lente").style;i.clip=clipt;i.top=pos[1]-(topo-120)+"px";i.left=pos[0]-(esq-120)+"px"}}catch(e){}}},destacaTema:{TAMANHO:75,ESTAATIVO:"nao",TEMA:"",inicia:function(tema){var novoel,novoeli,janela,pos;if(!$i("img_d")){pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDMAPA));novoel=document.createElement("div");novoel.id="div_d";novoel.style.zIndex=5000;document.body.appendChild(novoel);$i("div_d").innerHTML="<input style='position:relative;top:0px;left:0px'' type=image src='' id='img_d' />";$i("div_d").style.left=parseInt(pos[0],10)+"px";$i("div_d").style.top=parseInt(pos[1],10)+"px";$i("img_d").style.left=0+"px";$i("img_d").style.top=0+"px";$i("img_d").style.width=i3GEO.parametros.w+"px";$i("img_d").style.height=i3GEO.parametros.h+"px";$i("div_d").style.clip='rect(0 75 75 0)';novoeli=document.createElement("div");novoeli.id="div_di";novoel.appendChild(novoeli);$i("div_di").innerHTML="<p style='position:absolute;top:0px;left:0px'>+-</p>"}i3GEO.navega.destacaTema.TEMA=tema;i3GEO.navega.destacaTema.ESTAATIVO="sim";i3GEO.navega.destacaTema.atualiza();janela=i3GEO.janela.cria(160,0,"","center","center",$trad("x50")+" ","ativadesativaDestaque");YAHOO.util.Event.addListener(janela[0].close,"click",i3GEO.navega.destacaTema.desativa);if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.navega.destacaTema.atualiza()")<0){i3GEO.eventos.NAVEGAMAPA.push("i3GEO.navega.destacaTema.atualiza()")}if(i3GEO.eventos.MOUSEMOVE.toString().search("i3GEO.navega.destacaTema.movimenta()")<0){i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()")}},atualiza:function(){if(i3GEO.navega.destacaTema.ESTAATIVO==="nao"){return}var temp=function(retorno){var m,novoel;retorno=retorno.data;m=new Image();m.src=retorno;$i("div_d").innerHTML="";$i("div_d").style.display="block";novoel=document.createElement("input");novoel.id="img_d";novoel.style.position="relative";novoel.style.top="0px";novoel.style.left="0px";novoel.type="image";novoel.src=m.src;novoel.style.display="block";$i("div_d").appendChild(novoel);i3GEO.janela.fechaAguarde("ajaxdestaca")};i3GEO.php.geradestaque(temp,i3GEO.navega.destacaTema.TEMA,i3GEO.parametros.mapexten)},desativa:function(){i3GEO.eventos.NAVEGAMAPA.remove("i3GEO.navega.destacaTema.atualiza()");i3GEO.eventos.MOUSEMOVE.push("i3GEO.navega.destacaTema.movimenta()");i3GEO.navega.destacaTema.ESTAATIVO="nao";document.body.removeChild($i("div_d"))},movimenta:function(){if(i3GEO.navega.destacaTema.ESTAATIVO==="sim"){$i("div_d").style.clip='rect('+(objposicaocursor.imgy-i3GEO.navega.destacaTema.TAMANHO)+" "+(objposicaocursor.imgx-10)+" "+(objposicaocursor.imgy-10)+" "+(objposicaocursor.imgx-i3GEO.navega.destacaTema.TAMANHO)+')'}}},barraDeZoom:{cria:function(){var temp="",estilo;if(navn){temp+='<div style="text-align:center;position:relative;left:9px" >'}estilo="top:4px;";if(navm){estilo="top:4px;left:-2px;"}temp+='<div id="vertMaisZoom" style="'+estilo+'"></div><div id="vertBGDiv" name="vertBGDiv" tabindex="0" x2:role="role:slider" state:valuenow="0" state:valuemin="0" state:valuemax="200" title="Zoom" >';temp+='<div id="vertHandleDivZoom" ><img alt="" class="slider" src="'+i3GEO.util.$im("branco.gif")+'" /></div></div>';if(navm){temp+='<div id=vertMenosZoom style="left:-1px;" ></div>'}else{temp+='<div id=vertMenosZoom ></div>'}if(navn){temp+='</div>'}return temp},ativa:function(){var temp;$i("vertMaisZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Amplia o mapa mantendo o centro atual.')};$i("vertMaisZoom").onclick=function(){if(!$i("imgtemp")){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=-1}$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomin';try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout("$i('vertBGDiv').onmouseup.call();",i3GEO.navega.TEMPONAVEGAR);if(g_fatordezoom<-6){$i("vertBGDiv").onmouseup.call()}};$i("vertMenosZoom").onmouseover=function(){i3GEO.ajuda.mostraJanela('Reduz o mapa mantendo o centro atual.')};$i("vertMenosZoom").onclick=function(){if(!$i("imgtemp")){$i("vertHandleDivZoom").onmousedown.call();g_fatordezoom=0;$i("vertHandleDivZoom").onmousemove.call();g_fatordezoom=1}$i("vertHandleDivZoom").onmousemove.call();i3GEO.barraDeBotoes.BOTAOCLICADO='zoomout';try{clearTimeout(i3GEO.navega.timerNavega)}catch(e){}i3GEO.navega.timerNavega=setTimeout("$i('vertBGDiv').onmouseup.call();",i3GEO.navega.TEMPONAVEGAR);if(g_fatordezoom>6){$i("vertBGDiv").onmouseup.call()}};verticalSlider=YAHOO.widget.Slider.getVertSlider("vertBGDiv","vertHandleDivZoom",0,70);verticalSlider.onChange=function(offsetFromStart){g_fatordezoom=(offsetFromStart-35)/5};verticalSlider.setValue(35,true);if($i("vertBGDiv")){$i("vertBGDiv").onmouseup=function(){verticalSlider.setValue(35,true);if(g_fatordezoom!==0){temp=i3GEO.navega.TEMPONAVEGAR;i3GEO.navega.TEMPONAVEGAR=0;i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,i3geo_ns);i3GEO.navega.TEMPONAVEGAR=temp}g_fatordezoom=0}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousedown=function(){var iclone,corpo;$i("vertHandleDivZoom").onmouseout=function(e){if(!e){e=window.event}if(g_fatordezoom!==0){$i("vertBGDiv").onmouseup.call()}e.onmouseup.returnValue=false;e.onmouseout.returnValue=false};i3GEO.barraDeBotoes.BOTAOCLICADO='slidezoom';if(!$i("imgtemp")){iclone=document.createElement('IMG');iclone.style.position="absolute";iclone.id="imgtemp";iclone.style.border="1px solid blue";$i("img").parentNode.appendChild(iclone);iclone=$i("imgtemp");corpo=$i("img");if(!corpo){return}iclone.src=corpo.src;iclone.style.width=i3GEO.parametros.w+"px";iclone.style.height=i3GEO.parametros.h+"px";iclone.style.top=corpo.style.top+"px";iclone.style.left=corpo.style.left+"px";$i("img").style.display="none";iclone.style.display="block"}}}if($i("vertHandleDivZoom")){$i("vertHandleDivZoom").onmousemove=function(){try{var iclone,corpo,nt,nl,velhoh,velhow,nh=0,nw=0,t,l,fatorEscala;iclone=$i("imgtemp");corpo=$i("img");if(!corpo){return}nt=0;nl=0;i3geo_ns=parseInt(i3GEO.parametros.mapscale,10);if((g_fatordezoom>0)&&(g_fatordezoom<7)){g_fatordezoom=g_fatordezoom+1;velhoh=i3GEO.parametros.h;velhow=i3GEO.parametros.w;nh=velhoh/g_fatordezoom;nw=velhow/g_fatordezoom;t=parseInt(corpo.style.top,10);l=parseInt(corpo.style.left,10);nt=t+((velhoh-nh)*0.5);nl=l+((velhow-nw)*0.5);fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala,10)}if((g_fatordezoom<0)&&(g_fatordezoom>-7)){g_fatordezoom=g_fatordezoom-1;velhoh=i3GEO.parametros.h;velhow=i3GEO.parametros.w;nh=velhoh*g_fatordezoom*-1;nw=velhow*g_fatordezoom*-1;t=parseInt(corpo.style.top,10);l=parseInt(corpo.style.left,10);nt=t-((nh-velhoh)*0.5);nl=l-((nw-velhow)*0.5);fatorEscala=nh/i3GEO.parametros.h;i3geo_ns=parseInt(i3GEO.parametros.mapscale/fatorEscala,10)}if(iclone){iclone.style.width=nw+"px";iclone.style.height=nh+"px";if(iclone.style.pixelTop){iclone.style.pixelTop=nt}else{iclone.style.top=nt+"px"}if(iclone.style.pixelLeft){iclone.style.pixelLeft=nl}else{iclone.style.left=nl+"px"}}if($i("i3geo_escalanum")){$i("i3geo_escalanum").value=i3geo_ns}}catch(e){}}}}},dialogo:{wiki:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.wiki()","wiki","wiki")},metar:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.metar()","metar","metar")},buscaFotos:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.buscaFotos()","buscafotos","buscaFotos")},google:function(coordenadas){i3GEO.navega.dialogo.google.coordenadas=coordenadas;if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")>0){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}i3GEO.util.criaBox();g_operacao="navega";var idgoogle="googlemaps"+Math.random();i3GEO.janela.cria((i3GEO.parametros.w/2)+25+"px",(i3GEO.parametros.h/2)+18+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=7&idajuda=68' > </a>",idgoogle);atualizagoogle=function(){try{parent.frames[idgoogle+"i"].panTogoogle()}catch(e){i3GEO.eventos.NAVEGAMAPA.remove("atualizagoogle()")}};if(i3GEO.eventos.NAVEGAMAPA.toString().search("atualizagoogle()")<0){i3GEO.eventos.NAVEGAMAPA.push("atualizagoogle()")}},confluence:function(){i3GEO.util.dialogoFerramenta("i3GEO.navega.dialogo.confluence()","confluence","confluence")}}}; | ... | ... |
documentacao/diagramas/metaestat.erm
| ... | ... | @@ -11,8 +11,8 @@ |
| 11 | 11 | </page_setting> |
| 12 | 12 | <category_index>0</category_index> |
| 13 | 13 | <zoom>1.0</zoom> |
| 14 | - <x>-372</x> | |
| 15 | - <y>51</y> | |
| 14 | + <x>-85</x> | |
| 15 | + <y>150</y> | |
| 16 | 16 | <default_color> |
| 17 | 17 | <r>255</r> |
| 18 | 18 | <g>128</g> |
| ... | ... | @@ -110,7 +110,7 @@ |
| 110 | 110 | </connections> |
| 111 | 111 | <display>false</display> |
| 112 | 112 | <creation_date>2012-07-17 15:03:53</creation_date> |
| 113 | - <updated_date>2012-10-06 12:14:11</updated_date> | |
| 113 | + <updated_date>2012-10-10 14:40:16</updated_date> | |
| 114 | 114 | <model_property> |
| 115 | 115 | <name>Project Name</name> |
| 116 | 116 | <value></value> |
| ... | ... | @@ -307,13 +307,26 @@ |
| 307 | 307 | <array_dimension>null</array_dimension> |
| 308 | 308 | <unsigned>false</unsigned> |
| 309 | 309 | <args></args> |
| 310 | + <description>Nome da coluna da tabela que contem os dados e que é um identificador único de cada registro</description> | |
| 311 | + <logical_name>colunaidunico</logical_name> | |
| 312 | + <physical_name>colunaidunico</physical_name> | |
| 313 | + <type>text</type> | |
| 314 | + </word> | |
| 315 | + <word> | |
| 316 | + <id>13</id> | |
| 317 | + <length>null</length> | |
| 318 | + <decimal>null</decimal> | |
| 319 | + <array>false</array> | |
| 320 | + <array_dimension>null</array_dimension> | |
| 321 | + <unsigned>false</unsigned> | |
| 322 | + <args></args> | |
| 310 | 323 | <description>Coluna na tabela filho que liga com a coluna de identificadores da coluna pai</description> |
| 311 | 324 | <logical_name>colunaligacao_regiaopai</logical_name> |
| 312 | 325 | <physical_name>colunaligacao_regiaopai</physical_name> |
| 313 | 326 | <type>text</type> |
| 314 | 327 | </word> |
| 315 | 328 | <word> |
| 316 | - <id>13</id> | |
| 329 | + <id>14</id> | |
| 317 | 330 | <length>null</length> |
| 318 | 331 | <decimal>null</decimal> |
| 319 | 332 | <array>false</array> |
| ... | ... | @@ -326,7 +339,7 @@ |
| 326 | 339 | <type>text</type> |
| 327 | 340 | </word> |
| 328 | 341 | <word> |
| 329 | - <id>14</id> | |
| 342 | + <id>15</id> | |
| 330 | 343 | <length>null</length> |
| 331 | 344 | <decimal>null</decimal> |
| 332 | 345 | <array>false</array> |
| ... | ... | @@ -339,7 +352,7 @@ |
| 339 | 352 | <type>text</type> |
| 340 | 353 | </word> |
| 341 | 354 | <word> |
| 342 | - <id>15</id> | |
| 355 | + <id>16</id> | |
| 343 | 356 | <length>null</length> |
| 344 | 357 | <decimal>null</decimal> |
| 345 | 358 | <array>false</array> |
| ... | ... | @@ -352,7 +365,7 @@ |
| 352 | 365 | <type>text</type> |
| 353 | 366 | </word> |
| 354 | 367 | <word> |
| 355 | - <id>16</id> | |
| 368 | + <id>17</id> | |
| 356 | 369 | <length>null</length> |
| 357 | 370 | <decimal>null</decimal> |
| 358 | 371 | <array>false</array> |
| ... | ... | @@ -365,7 +378,7 @@ |
| 365 | 378 | <type>text</type> |
| 366 | 379 | </word> |
| 367 | 380 | <word> |
| 368 | - <id>17</id> | |
| 381 | + <id>18</id> | |
| 369 | 382 | <length>null</length> |
| 370 | 383 | <decimal>null</decimal> |
| 371 | 384 | <array>false</array> |
| ... | ... | @@ -378,7 +391,7 @@ |
| 378 | 391 | <type>text</type> |
| 379 | 392 | </word> |
| 380 | 393 | <word> |
| 381 | - <id>18</id> | |
| 394 | + <id>19</id> | |
| 382 | 395 | <length>null</length> |
| 383 | 396 | <decimal>null</decimal> |
| 384 | 397 | <array>false</array> |
| ... | ... | @@ -391,7 +404,7 @@ |
| 391 | 404 | <type>text</type> |
| 392 | 405 | </word> |
| 393 | 406 | <word> |
| 394 | - <id>19</id> | |
| 407 | + <id>20</id> | |
| 395 | 408 | <length>null</length> |
| 396 | 409 | <decimal>null</decimal> |
| 397 | 410 | <array>false</array> |
| ... | ... | @@ -404,7 +417,7 @@ |
| 404 | 417 | <type>text</type> |
| 405 | 418 | </word> |
| 406 | 419 | <word> |
| 407 | - <id>20</id> | |
| 420 | + <id>21</id> | |
| 408 | 421 | <length>null</length> |
| 409 | 422 | <decimal>null</decimal> |
| 410 | 423 | <array>false</array> |
| ... | ... | @@ -417,7 +430,7 @@ |
| 417 | 430 | <type>text</type> |
| 418 | 431 | </word> |
| 419 | 432 | <word> |
| 420 | - <id>21</id> | |
| 433 | + <id>22</id> | |
| 421 | 434 | <length>null</length> |
| 422 | 435 | <decimal>null</decimal> |
| 423 | 436 | <array>false</array> |
| ... | ... | @@ -430,7 +443,7 @@ |
| 430 | 443 | <type>text</type> |
| 431 | 444 | </word> |
| 432 | 445 | <word> |
| 433 | - <id>22</id> | |
| 446 | + <id>23</id> | |
| 434 | 447 | <length>null</length> |
| 435 | 448 | <decimal>null</decimal> |
| 436 | 449 | <array>false</array> |
| ... | ... | @@ -443,7 +456,7 @@ |
| 443 | 456 | <type>text</type> |
| 444 | 457 | </word> |
| 445 | 458 | <word> |
| 446 | - <id>23</id> | |
| 459 | + <id>24</id> | |
| 447 | 460 | <length>null</length> |
| 448 | 461 | <decimal>null</decimal> |
| 449 | 462 | <array>false</array> |
| ... | ... | @@ -456,7 +469,7 @@ |
| 456 | 469 | <type>text</type> |
| 457 | 470 | </word> |
| 458 | 471 | <word> |
| 459 | - <id>24</id> | |
| 472 | + <id>25</id> | |
| 460 | 473 | <length>null</length> |
| 461 | 474 | <decimal>null</decimal> |
| 462 | 475 | <array>false</array> |
| ... | ... | @@ -469,7 +482,7 @@ |
| 469 | 482 | <type>text</type> |
| 470 | 483 | </word> |
| 471 | 484 | <word> |
| 472 | - <id>25</id> | |
| 485 | + <id>26</id> | |
| 473 | 486 | <length>null</length> |
| 474 | 487 | <decimal>null</decimal> |
| 475 | 488 | <array>false</array> |
| ... | ... | @@ -482,7 +495,7 @@ |
| 482 | 495 | <type>integer</type> |
| 483 | 496 | </word> |
| 484 | 497 | <word> |
| 485 | - <id>26</id> | |
| 498 | + <id>27</id> | |
| 486 | 499 | <length>null</length> |
| 487 | 500 | <decimal>null</decimal> |
| 488 | 501 | <array>false</array> |
| ... | ... | @@ -495,7 +508,7 @@ |
| 495 | 508 | <type>integer</type> |
| 496 | 509 | </word> |
| 497 | 510 | <word> |
| 498 | - <id>27</id> | |
| 511 | + <id>28</id> | |
| 499 | 512 | <length>null</length> |
| 500 | 513 | <decimal>null</decimal> |
| 501 | 514 | <array>false</array> |
| ... | ... | @@ -508,7 +521,7 @@ |
| 508 | 521 | <type>integer</type> |
| 509 | 522 | </word> |
| 510 | 523 | <word> |
| 511 | - <id>28</id> | |
| 524 | + <id>29</id> | |
| 512 | 525 | <length>null</length> |
| 513 | 526 | <decimal>null</decimal> |
| 514 | 527 | <array>false</array> |
| ... | ... | @@ -521,7 +534,7 @@ |
| 521 | 534 | <type>integer</type> |
| 522 | 535 | </word> |
| 523 | 536 | <word> |
| 524 | - <id>29</id> | |
| 537 | + <id>30</id> | |
| 525 | 538 | <length>null</length> |
| 526 | 539 | <decimal>null</decimal> |
| 527 | 540 | <array>false</array> |
| ... | ... | @@ -534,7 +547,7 @@ |
| 534 | 547 | <type>integer</type> |
| 535 | 548 | </word> |
| 536 | 549 | <word> |
| 537 | - <id>30</id> | |
| 550 | + <id>31</id> | |
| 538 | 551 | <length>null</length> |
| 539 | 552 | <decimal>null</decimal> |
| 540 | 553 | <array>false</array> |
| ... | ... | @@ -547,7 +560,7 @@ |
| 547 | 560 | <type>integer</type> |
| 548 | 561 | </word> |
| 549 | 562 | <word> |
| 550 | - <id>31</id> | |
| 563 | + <id>32</id> | |
| 551 | 564 | <length>null</length> |
| 552 | 565 | <decimal>null</decimal> |
| 553 | 566 | <array>false</array> |
| ... | ... | @@ -560,7 +573,7 @@ |
| 560 | 573 | <type>integer</type> |
| 561 | 574 | </word> |
| 562 | 575 | <word> |
| 563 | - <id>32</id> | |
| 576 | + <id>33</id> | |
| 564 | 577 | <length>null</length> |
| 565 | 578 | <decimal>null</decimal> |
| 566 | 579 | <array>false</array> |
| ... | ... | @@ -573,7 +586,7 @@ |
| 573 | 586 | <type>integer</type> |
| 574 | 587 | </word> |
| 575 | 588 | <word> |
| 576 | - <id>33</id> | |
| 589 | + <id>34</id> | |
| 577 | 590 | <length>null</length> |
| 578 | 591 | <decimal>null</decimal> |
| 579 | 592 | <array>false</array> |
| ... | ... | @@ -586,7 +599,7 @@ |
| 586 | 599 | <type>integer</type> |
| 587 | 600 | </word> |
| 588 | 601 | <word> |
| 589 | - <id>34</id> | |
| 602 | + <id>35</id> | |
| 590 | 603 | <length>null</length> |
| 591 | 604 | <decimal>null</decimal> |
| 592 | 605 | <array>false</array> |
| ... | ... | @@ -599,7 +612,7 @@ |
| 599 | 612 | <type>text</type> |
| 600 | 613 | </word> |
| 601 | 614 | <word> |
| 602 | - <id>35</id> | |
| 615 | + <id>36</id> | |
| 603 | 616 | <length>null</length> |
| 604 | 617 | <decimal>null</decimal> |
| 605 | 618 | <array>false</array> |
| ... | ... | @@ -612,7 +625,7 @@ |
| 612 | 625 | <type>text</type> |
| 613 | 626 | </word> |
| 614 | 627 | <word> |
| 615 | - <id>36</id> | |
| 628 | + <id>37</id> | |
| 616 | 629 | <length>null</length> |
| 617 | 630 | <decimal>null</decimal> |
| 618 | 631 | <array>false</array> |
| ... | ... | @@ -625,7 +638,7 @@ |
| 625 | 638 | <type>text</type> |
| 626 | 639 | </word> |
| 627 | 640 | <word> |
| 628 | - <id>37</id> | |
| 641 | + <id>38</id> | |
| 629 | 642 | <length>null</length> |
| 630 | 643 | <decimal>null</decimal> |
| 631 | 644 | <array>false</array> |
| ... | ... | @@ -638,7 +651,7 @@ |
| 638 | 651 | <type>text</type> |
| 639 | 652 | </word> |
| 640 | 653 | <word> |
| 641 | - <id>38</id> | |
| 654 | + <id>39</id> | |
| 642 | 655 | <length>null</length> |
| 643 | 656 | <decimal>null</decimal> |
| 644 | 657 | <array>false</array> |
| ... | ... | @@ -651,7 +664,7 @@ |
| 651 | 664 | <type>text</type> |
| 652 | 665 | </word> |
| 653 | 666 | <word> |
| 654 | - <id>39</id> | |
| 667 | + <id>40</id> | |
| 655 | 668 | <length>null</length> |
| 656 | 669 | <decimal>null</decimal> |
| 657 | 670 | <array>false</array> |
| ... | ... | @@ -664,7 +677,7 @@ |
| 664 | 677 | <type>text</type> |
| 665 | 678 | </word> |
| 666 | 679 | <word> |
| 667 | - <id>40</id> | |
| 680 | + <id>41</id> | |
| 668 | 681 | <length>null</length> |
| 669 | 682 | <decimal>null</decimal> |
| 670 | 683 | <array>false</array> |
| ... | ... | @@ -677,7 +690,7 @@ |
| 677 | 690 | <type>text</type> |
| 678 | 691 | </word> |
| 679 | 692 | <word> |
| 680 | - <id>41</id> | |
| 693 | + <id>42</id> | |
| 681 | 694 | <length>null</length> |
| 682 | 695 | <decimal>null</decimal> |
| 683 | 696 | <array>false</array> |
| ... | ... | @@ -690,7 +703,7 @@ |
| 690 | 703 | <type>text</type> |
| 691 | 704 | </word> |
| 692 | 705 | <word> |
| 693 | - <id>42</id> | |
| 706 | + <id>43</id> | |
| 694 | 707 | <length>null</length> |
| 695 | 708 | <decimal>null</decimal> |
| 696 | 709 | <array>false</array> |
| ... | ... | @@ -703,7 +716,7 @@ |
| 703 | 716 | <type>text</type> |
| 704 | 717 | </word> |
| 705 | 718 | <word> |
| 706 | - <id>43</id> | |
| 719 | + <id>44</id> | |
| 707 | 720 | <length>null</length> |
| 708 | 721 | <decimal>null</decimal> |
| 709 | 722 | <array>false</array> |
| ... | ... | @@ -716,7 +729,7 @@ |
| 716 | 729 | <type>text</type> |
| 717 | 730 | </word> |
| 718 | 731 | <word> |
| 719 | - <id>44</id> | |
| 732 | + <id>45</id> | |
| 720 | 733 | <length>null</length> |
| 721 | 734 | <decimal>null</decimal> |
| 722 | 735 | <array>false</array> |
| ... | ... | @@ -729,7 +742,7 @@ |
| 729 | 742 | <type>text</type> |
| 730 | 743 | </word> |
| 731 | 744 | <word> |
| 732 | - <id>45</id> | |
| 745 | + <id>46</id> | |
| 733 | 746 | <length>null</length> |
| 734 | 747 | <decimal>null</decimal> |
| 735 | 748 | <array>false</array> |
| ... | ... | @@ -742,7 +755,7 @@ |
| 742 | 755 | <type>text</type> |
| 743 | 756 | </word> |
| 744 | 757 | <word> |
| 745 | - <id>46</id> | |
| 758 | + <id>47</id> | |
| 746 | 759 | <length>null</length> |
| 747 | 760 | <decimal>null</decimal> |
| 748 | 761 | <array>false</array> |
| ... | ... | @@ -755,7 +768,7 @@ |
| 755 | 768 | <type>text</type> |
| 756 | 769 | </word> |
| 757 | 770 | <word> |
| 758 | - <id>47</id> | |
| 771 | + <id>48</id> | |
| 759 | 772 | <length>null</length> |
| 760 | 773 | <decimal>null</decimal> |
| 761 | 774 | <array>false</array> |
| ... | ... | @@ -768,7 +781,7 @@ |
| 768 | 781 | <type>text</type> |
| 769 | 782 | </word> |
| 770 | 783 | <word> |
| 771 | - <id>48</id> | |
| 784 | + <id>49</id> | |
| 772 | 785 | <length>null</length> |
| 773 | 786 | <decimal>null</decimal> |
| 774 | 787 | <array>false</array> |
| ... | ... | @@ -781,7 +794,7 @@ |
| 781 | 794 | <type>text</type> |
| 782 | 795 | </word> |
| 783 | 796 | <word> |
| 784 | - <id>49</id> | |
| 797 | + <id>50</id> | |
| 785 | 798 | <length>null</length> |
| 786 | 799 | <decimal>null</decimal> |
| 787 | 800 | <array>false</array> |
| ... | ... | @@ -794,7 +807,7 @@ |
| 794 | 807 | <type>integer</type> |
| 795 | 808 | </word> |
| 796 | 809 | <word> |
| 797 | - <id>50</id> | |
| 810 | + <id>51</id> | |
| 798 | 811 | <length>null</length> |
| 799 | 812 | <decimal>null</decimal> |
| 800 | 813 | <array>false</array> |
| ... | ... | @@ -807,7 +820,7 @@ |
| 807 | 820 | <type>integer</type> |
| 808 | 821 | </word> |
| 809 | 822 | <word> |
| 810 | - <id>51</id> | |
| 823 | + <id>52</id> | |
| 811 | 824 | <length>null</length> |
| 812 | 825 | <decimal>null</decimal> |
| 813 | 826 | <array>false</array> |
| ... | ... | @@ -820,7 +833,7 @@ |
| 820 | 833 | <type>text</type> |
| 821 | 834 | </word> |
| 822 | 835 | <word> |
| 823 | - <id>52</id> | |
| 836 | + <id>53</id> | |
| 824 | 837 | <length>null</length> |
| 825 | 838 | <decimal>null</decimal> |
| 826 | 839 | <array>false</array> |
| ... | ... | @@ -833,7 +846,7 @@ |
| 833 | 846 | <type>text</type> |
| 834 | 847 | </word> |
| 835 | 848 | <word> |
| 836 | - <id>53</id> | |
| 849 | + <id>54</id> | |
| 837 | 850 | <length>null</length> |
| 838 | 851 | <decimal>null</decimal> |
| 839 | 852 | <array>false</array> |
| ... | ... | @@ -846,7 +859,7 @@ |
| 846 | 859 | <type>text</type> |
| 847 | 860 | </word> |
| 848 | 861 | <word> |
| 849 | - <id>54</id> | |
| 862 | + <id>55</id> | |
| 850 | 863 | <length>null</length> |
| 851 | 864 | <decimal>null</decimal> |
| 852 | 865 | <array>false</array> |
| ... | ... | @@ -859,7 +872,7 @@ |
| 859 | 872 | <type>text</type> |
| 860 | 873 | </word> |
| 861 | 874 | <word> |
| 862 | - <id>55</id> | |
| 875 | + <id>56</id> | |
| 863 | 876 | <length>null</length> |
| 864 | 877 | <decimal>null</decimal> |
| 865 | 878 | <array>false</array> |
| ... | ... | @@ -872,7 +885,7 @@ |
| 872 | 885 | <type>text</type> |
| 873 | 886 | </word> |
| 874 | 887 | <word> |
| 875 | - <id>56</id> | |
| 888 | + <id>57</id> | |
| 876 | 889 | <length>null</length> |
| 877 | 890 | <decimal>null</decimal> |
| 878 | 891 | <array>false</array> |
| ... | ... | @@ -885,7 +898,7 @@ |
| 885 | 898 | <type>text</type> |
| 886 | 899 | </word> |
| 887 | 900 | <word> |
| 888 | - <id>57</id> | |
| 901 | + <id>58</id> | |
| 889 | 902 | <length>null</length> |
| 890 | 903 | <decimal>null</decimal> |
| 891 | 904 | <array>false</array> |
| ... | ... | @@ -898,7 +911,7 @@ |
| 898 | 911 | <type>text</type> |
| 899 | 912 | </word> |
| 900 | 913 | <word> |
| 901 | - <id>58</id> | |
| 914 | + <id>59</id> | |
| 902 | 915 | <length>null</length> |
| 903 | 916 | <decimal>null</decimal> |
| 904 | 917 | <array>false</array> |
| ... | ... | @@ -911,7 +924,7 @@ |
| 911 | 924 | <type>text</type> |
| 912 | 925 | </word> |
| 913 | 926 | <word> |
| 914 | - <id>59</id> | |
| 927 | + <id>60</id> | |
| 915 | 928 | <length>null</length> |
| 916 | 929 | <decimal>null</decimal> |
| 917 | 930 | <array>false</array> |
| ... | ... | @@ -924,7 +937,7 @@ |
| 924 | 937 | <type>text</type> |
| 925 | 938 | </word> |
| 926 | 939 | <word> |
| 927 | - <id>60</id> | |
| 940 | + <id>61</id> | |
| 928 | 941 | <length>null</length> |
| 929 | 942 | <decimal>null</decimal> |
| 930 | 943 | <array>false</array> |
| ... | ... | @@ -937,7 +950,7 @@ |
| 937 | 950 | <type>text</type> |
| 938 | 951 | </word> |
| 939 | 952 | <word> |
| 940 | - <id>61</id> | |
| 953 | + <id>62</id> | |
| 941 | 954 | <length>null</length> |
| 942 | 955 | <decimal>null</decimal> |
| 943 | 956 | <array>false</array> |
| ... | ... | @@ -950,7 +963,7 @@ |
| 950 | 963 | <type>text</type> |
| 951 | 964 | </word> |
| 952 | 965 | <word> |
| 953 | - <id>62</id> | |
| 966 | + <id>63</id> | |
| 954 | 967 | <length>null</length> |
| 955 | 968 | <decimal>null</decimal> |
| 956 | 969 | <array>false</array> |
| ... | ... | @@ -963,7 +976,7 @@ |
| 963 | 976 | <type>text</type> |
| 964 | 977 | </word> |
| 965 | 978 | <word> |
| 966 | - <id>63</id> | |
| 979 | + <id>64</id> | |
| 967 | 980 | <length>null</length> |
| 968 | 981 | <decimal>null</decimal> |
| 969 | 982 | <array>false</array> |
| ... | ... | @@ -1068,7 +1081,7 @@ |
| 1068 | 1081 | </sequence> |
| 1069 | 1082 | </normal_column> |
| 1070 | 1083 | <normal_column> |
| 1071 | - <word_id>39</word_id> | |
| 1084 | + <word_id>40</word_id> | |
| 1072 | 1085 | <id>1</id> |
| 1073 | 1086 | <description></description> |
| 1074 | 1087 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1100,7 +1113,7 @@ |
| 1100 | 1113 | </sequence> |
| 1101 | 1114 | </normal_column> |
| 1102 | 1115 | <normal_column> |
| 1103 | - <word_id>53</word_id> | |
| 1116 | + <word_id>54</word_id> | |
| 1104 | 1117 | <id>2</id> |
| 1105 | 1118 | <description></description> |
| 1106 | 1119 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1132,7 +1145,7 @@ |
| 1132 | 1145 | </sequence> |
| 1133 | 1146 | </normal_column> |
| 1134 | 1147 | <normal_column> |
| 1135 | - <word_id>50</word_id> | |
| 1148 | + <word_id>51</word_id> | |
| 1136 | 1149 | <id>3</id> |
| 1137 | 1150 | <description></description> |
| 1138 | 1151 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1164,7 +1177,7 @@ |
| 1164 | 1177 | </sequence> |
| 1165 | 1178 | </normal_column> |
| 1166 | 1179 | <normal_column> |
| 1167 | - <word_id>49</word_id> | |
| 1180 | + <word_id>50</word_id> | |
| 1168 | 1181 | <id>4</id> |
| 1169 | 1182 | <description></description> |
| 1170 | 1183 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1259,7 +1272,7 @@ |
| 1259 | 1272 | </sequence> |
| 1260 | 1273 | </normal_column> |
| 1261 | 1274 | <normal_column> |
| 1262 | - <word_id>37</word_id> | |
| 1275 | + <word_id>41</word_id> | |
| 1263 | 1276 | <id>6</id> |
| 1264 | 1277 | <description></description> |
| 1265 | 1278 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1291,7 +1304,7 @@ |
| 1291 | 1304 | </sequence> |
| 1292 | 1305 | </normal_column> |
| 1293 | 1306 | <normal_column> |
| 1294 | - <word_id>18</word_id> | |
| 1307 | + <word_id>19</word_id> | |
| 1295 | 1308 | <id>7</id> |
| 1296 | 1309 | <description></description> |
| 1297 | 1310 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1386,7 +1399,7 @@ |
| 1386 | 1399 | </sequence> |
| 1387 | 1400 | </normal_column> |
| 1388 | 1401 | <normal_column> |
| 1389 | - <word_id>36</word_id> | |
| 1402 | + <word_id>42</word_id> | |
| 1390 | 1403 | <id>9</id> |
| 1391 | 1404 | <description></description> |
| 1392 | 1405 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1418,7 +1431,7 @@ |
| 1418 | 1431 | </sequence> |
| 1419 | 1432 | </normal_column> |
| 1420 | 1433 | <normal_column> |
| 1421 | - <word_id>16</word_id> | |
| 1434 | + <word_id>17</word_id> | |
| 1422 | 1435 | <id>10</id> |
| 1423 | 1436 | <description></description> |
| 1424 | 1437 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1474,7 +1487,7 @@ |
| 1474 | 1487 | <connections> |
| 1475 | 1488 | <relation> |
| 1476 | 1489 | <id>0</id> |
| 1477 | - <source>8</source> | |
| 1490 | + <source>14</source> | |
| 1478 | 1491 | <target>5</target> |
| 1479 | 1492 | <child_cardinality>1..n</child_cardinality> |
| 1480 | 1493 | <parent_cardinality>1</parent_cardinality> |
| ... | ... | @@ -1498,7 +1511,7 @@ |
| 1498 | 1511 | <option></option> |
| 1499 | 1512 | <columns> |
| 1500 | 1513 | <normal_column> |
| 1501 | - <word_id>28</word_id> | |
| 1514 | + <word_id>29</word_id> | |
| 1502 | 1515 | <id>11</id> |
| 1503 | 1516 | <description></description> |
| 1504 | 1517 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1530,7 +1543,7 @@ |
| 1530 | 1543 | </sequence> |
| 1531 | 1544 | </normal_column> |
| 1532 | 1545 | <normal_column> |
| 1533 | - <word_id>40</word_id> | |
| 1546 | + <word_id>39</word_id> | |
| 1534 | 1547 | <id>12</id> |
| 1535 | 1548 | <description></description> |
| 1536 | 1549 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1563,7 +1576,7 @@ |
| 1563 | 1576 | </normal_column> |
| 1564 | 1577 | <normal_column> |
| 1565 | 1578 | <id>13</id> |
| 1566 | - <referenced_column>31</referenced_column> | |
| 1579 | + <referenced_column>65</referenced_column> | |
| 1567 | 1580 | <relation>0</relation> |
| 1568 | 1581 | <description></description> |
| 1569 | 1582 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1595,7 +1608,7 @@ |
| 1595 | 1608 | </sequence> |
| 1596 | 1609 | </normal_column> |
| 1597 | 1610 | <normal_column> |
| 1598 | - <word_id>45</word_id> | |
| 1611 | + <word_id>46</word_id> | |
| 1599 | 1612 | <id>14</id> |
| 1600 | 1613 | <description></description> |
| 1601 | 1614 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1675,7 +1688,7 @@ |
| 1675 | 1688 | <option></option> |
| 1676 | 1689 | <columns> |
| 1677 | 1690 | <normal_column> |
| 1678 | - <word_id>27</word_id> | |
| 1691 | + <word_id>28</word_id> | |
| 1679 | 1692 | <id>15</id> |
| 1680 | 1693 | <description></description> |
| 1681 | 1694 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1707,7 +1720,7 @@ |
| 1707 | 1720 | </sequence> |
| 1708 | 1721 | </normal_column> |
| 1709 | 1722 | <normal_column> |
| 1710 | - <word_id>22</word_id> | |
| 1723 | + <word_id>23</word_id> | |
| 1711 | 1724 | <id>16</id> |
| 1712 | 1725 | <description></description> |
| 1713 | 1726 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1739,7 +1752,7 @@ |
| 1739 | 1752 | </sequence> |
| 1740 | 1753 | </normal_column> |
| 1741 | 1754 | <normal_column> |
| 1742 | - <word_id>60</word_id> | |
| 1755 | + <word_id>61</word_id> | |
| 1743 | 1756 | <id>17</id> |
| 1744 | 1757 | <description></description> |
| 1745 | 1758 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1771,7 +1784,7 @@ |
| 1771 | 1784 | </sequence> |
| 1772 | 1785 | </normal_column> |
| 1773 | 1786 | <normal_column> |
| 1774 | - <word_id>63</word_id> | |
| 1787 | + <word_id>64</word_id> | |
| 1775 | 1788 | <id>18</id> |
| 1776 | 1789 | <description></description> |
| 1777 | 1790 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1803,7 +1816,7 @@ |
| 1803 | 1816 | </sequence> |
| 1804 | 1817 | </normal_column> |
| 1805 | 1818 | <normal_column> |
| 1806 | - <word_id>62</word_id> | |
| 1819 | + <word_id>63</word_id> | |
| 1807 | 1820 | <id>19</id> |
| 1808 | 1821 | <description></description> |
| 1809 | 1822 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1900,7 +1913,7 @@ |
| 1900 | 1913 | </sequence> |
| 1901 | 1914 | </normal_column> |
| 1902 | 1915 | <normal_column> |
| 1903 | - <word_id>58</word_id> | |
| 1916 | + <word_id>59</word_id> | |
| 1904 | 1917 | <id>22</id> |
| 1905 | 1918 | <description></description> |
| 1906 | 1919 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1932,7 +1945,7 @@ |
| 1932 | 1945 | </sequence> |
| 1933 | 1946 | </normal_column> |
| 1934 | 1947 | <normal_column> |
| 1935 | - <word_id>54</word_id> | |
| 1948 | + <word_id>55</word_id> | |
| 1936 | 1949 | <id>23</id> |
| 1937 | 1950 | <description></description> |
| 1938 | 1951 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1964,7 +1977,7 @@ |
| 1964 | 1977 | </sequence> |
| 1965 | 1978 | </normal_column> |
| 1966 | 1979 | <normal_column> |
| 1967 | - <word_id>48</word_id> | |
| 1980 | + <word_id>49</word_id> | |
| 1968 | 1981 | <id>24</id> |
| 1969 | 1982 | <description></description> |
| 1970 | 1983 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -1996,7 +2009,7 @@ |
| 1996 | 2009 | </sequence> |
| 1997 | 2010 | </normal_column> |
| 1998 | 2011 | <normal_column> |
| 1999 | - <word_id>47</word_id> | |
| 2012 | + <word_id>48</word_id> | |
| 2000 | 2013 | <id>25</id> |
| 2001 | 2014 | <description></description> |
| 2002 | 2015 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2028,7 +2041,7 @@ |
| 2028 | 2041 | </sequence> |
| 2029 | 2042 | </normal_column> |
| 2030 | 2043 | <normal_column> |
| 2031 | - <word_id>44</word_id> | |
| 2044 | + <word_id>45</word_id> | |
| 2032 | 2045 | <id>26</id> |
| 2033 | 2046 | <description></description> |
| 2034 | 2047 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2060,7 +2073,7 @@ |
| 2060 | 2073 | </sequence> |
| 2061 | 2074 | </normal_column> |
| 2062 | 2075 | <normal_column> |
| 2063 | - <word_id>46</word_id> | |
| 2076 | + <word_id>47</word_id> | |
| 2064 | 2077 | <id>27</id> |
| 2065 | 2078 | <description></description> |
| 2066 | 2079 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2123,7 +2136,7 @@ |
| 2123 | 2136 | <option></option> |
| 2124 | 2137 | <columns> |
| 2125 | 2138 | <normal_column> |
| 2126 | - <word_id>29</word_id> | |
| 2139 | + <word_id>30</word_id> | |
| 2127 | 2140 | <id>28</id> |
| 2128 | 2141 | <description></description> |
| 2129 | 2142 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2155,7 +2168,7 @@ |
| 2155 | 2168 | </sequence> |
| 2156 | 2169 | </normal_column> |
| 2157 | 2170 | <normal_column> |
| 2158 | - <word_id>59</word_id> | |
| 2171 | + <word_id>60</word_id> | |
| 2159 | 2172 | <id>29</id> |
| 2160 | 2173 | <description></description> |
| 2161 | 2174 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2229,54 +2242,20 @@ |
| 2229 | 2242 | </table> |
| 2230 | 2243 | <table> |
| 2231 | 2244 | <id>8</id> |
| 2232 | - <height>339</height> | |
| 2233 | - <width>292</width> | |
| 2245 | + <height>128</height> | |
| 2246 | + <width>269</width> | |
| 2234 | 2247 | <font_name>Ubuntu</font_name> |
| 2235 | 2248 | <font_size>9</font_size> |
| 2236 | - <x>353</x> | |
| 2237 | - <y>155</y> | |
| 2249 | + <x>753</x> | |
| 2250 | + <y>442</y> | |
| 2238 | 2251 | <color> |
| 2239 | - <r>160</r> | |
| 2240 | - <g>32</g> | |
| 2241 | - <b>240</b> | |
| 2252 | + <r>230</r> | |
| 2253 | + <g>230</g> | |
| 2254 | + <b>250</b> | |
| 2242 | 2255 | </color> |
| 2243 | 2256 | <connections> |
| 2244 | 2257 | <relation> |
| 2245 | 2258 | <id>2</id> |
| 2246 | - <source>12</source> | |
| 2247 | - <target>8</target> | |
| 2248 | - <child_cardinality>1..n</child_cardinality> | |
| 2249 | - <parent_cardinality>1</parent_cardinality> | |
| 2250 | - <reference_for_pk>true</reference_for_pk> | |
| 2251 | - <name></name> | |
| 2252 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2253 | - <on_update_action>RESTRICT</on_update_action> | |
| 2254 | - <source_xp>-1</source_xp> | |
| 2255 | - <source_yp>-1</source_yp> | |
| 2256 | - <target_xp>-1</target_xp> | |
| 2257 | - <target_yp>-1</target_yp> | |
| 2258 | - <referenced_column>null</referenced_column> | |
| 2259 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2260 | - </relation> | |
| 2261 | - <relation> | |
| 2262 | - <id>3</id> | |
| 2263 | - <source>2</source> | |
| 2264 | - <target>8</target> | |
| 2265 | - <child_cardinality>1..n</child_cardinality> | |
| 2266 | - <parent_cardinality>1</parent_cardinality> | |
| 2267 | - <reference_for_pk>true</reference_for_pk> | |
| 2268 | - <name></name> | |
| 2269 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2270 | - <on_update_action>RESTRICT</on_update_action> | |
| 2271 | - <source_xp>-1</source_xp> | |
| 2272 | - <source_yp>-1</source_yp> | |
| 2273 | - <target_xp>-1</target_xp> | |
| 2274 | - <target_yp>-1</target_yp> | |
| 2275 | - <referenced_column>null</referenced_column> | |
| 2276 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2277 | - </relation> | |
| 2278 | - <relation> | |
| 2279 | - <id>4</id> | |
| 2280 | 2259 | <source>14</source> |
| 2281 | 2260 | <target>8</target> |
| 2282 | 2261 | <child_cardinality>1..n</child_cardinality> |
| ... | ... | @@ -2292,64 +2271,30 @@ |
| 2292 | 2271 | <referenced_column>null</referenced_column> |
| 2293 | 2272 | <referenced_complex_unique_key>null</referenced_complex_unique_key> |
| 2294 | 2273 | </relation> |
| 2295 | - <relation> | |
| 2296 | - <id>5</id> | |
| 2297 | - <source>4</source> | |
| 2298 | - <target>8</target> | |
| 2299 | - <child_cardinality>1..n</child_cardinality> | |
| 2300 | - <parent_cardinality>1</parent_cardinality> | |
| 2301 | - <reference_for_pk>true</reference_for_pk> | |
| 2302 | - <name></name> | |
| 2303 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2304 | - <on_update_action>RESTRICT</on_update_action> | |
| 2305 | - <source_xp>-1</source_xp> | |
| 2306 | - <source_yp>-1</source_yp> | |
| 2307 | - <target_xp>-1</target_xp> | |
| 2308 | - <target_yp>-1</target_yp> | |
| 2309 | - <referenced_column>null</referenced_column> | |
| 2310 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2311 | - </relation> | |
| 2312 | - <relation> | |
| 2313 | - <id>6</id> | |
| 2314 | - <source>3</source> | |
| 2315 | - <target>8</target> | |
| 2316 | - <child_cardinality>1..n</child_cardinality> | |
| 2317 | - <parent_cardinality>1</parent_cardinality> | |
| 2318 | - <reference_for_pk>true</reference_for_pk> | |
| 2319 | - <name></name> | |
| 2320 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2321 | - <on_update_action>RESTRICT</on_update_action> | |
| 2322 | - <source_xp>-1</source_xp> | |
| 2323 | - <source_yp>-1</source_yp> | |
| 2324 | - <target_xp>-1</target_xp> | |
| 2325 | - <target_yp>-1</target_yp> | |
| 2326 | - <referenced_column>null</referenced_column> | |
| 2327 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2328 | - </relation> | |
| 2329 | 2274 | </connections> |
| 2330 | - <physical_name>i3geoestat_medida_variavel</physical_name> | |
| 2331 | - <logical_name>i3geoestat_medida_variavel</logical_name> | |
| 2332 | - <description>Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente</description> | |
| 2275 | + <physical_name>i3geoestat_medida_variavel_link</physical_name> | |
| 2276 | + <logical_name>i3geoestat_medida_variavel_link</logical_name> | |
| 2277 | + <description></description> | |
| 2333 | 2278 | <constraint></constraint> |
| 2334 | 2279 | <primary_key_name></primary_key_name> |
| 2335 | 2280 | <option></option> |
| 2336 | 2281 | <columns> |
| 2337 | 2282 | <normal_column> |
| 2338 | - <word_id>31</word_id> | |
| 2283 | + <word_id>36</word_id> | |
| 2339 | 2284 | <id>31</id> |
| 2340 | 2285 | <description></description> |
| 2341 | 2286 | <unique_key_name></unique_key_name> |
| 2342 | 2287 | <logical_name></logical_name> |
| 2343 | 2288 | <physical_name></physical_name> |
| 2344 | - <type>integer</type> | |
| 2289 | + <type>text</type> | |
| 2345 | 2290 | <constraint></constraint> |
| 2346 | 2291 | <default_value></default_value> |
| 2347 | - <auto_increment>true</auto_increment> | |
| 2292 | + <auto_increment>false</auto_increment> | |
| 2348 | 2293 | <foreign_key>false</foreign_key> |
| 2349 | - <not_null>true</not_null> | |
| 2350 | - <primary_key>true</primary_key> | |
| 2351 | - <unique_key>true</unique_key> | |
| 2352 | - <character_set></character_set> | |
| 2294 | + <not_null>false</not_null> | |
| 2295 | + <primary_key>false</primary_key> | |
| 2296 | + <unique_key>false</unique_key> | |
| 2297 | + <character_set></character_set> | |
| 2353 | 2298 | <collation></collation> |
| 2354 | 2299 | <sequence> |
| 2355 | 2300 | <name></name> |
| ... | ... | @@ -2368,8 +2313,8 @@ |
| 2368 | 2313 | </normal_column> |
| 2369 | 2314 | <normal_column> |
| 2370 | 2315 | <id>32</id> |
| 2371 | - <referenced_column>0</referenced_column> | |
| 2372 | - <relation>3</relation> | |
| 2316 | + <referenced_column>65</referenced_column> | |
| 2317 | + <relation>2</relation> | |
| 2373 | 2318 | <description></description> |
| 2374 | 2319 | <unique_key_name></unique_key_name> |
| 2375 | 2320 | <logical_name></logical_name> |
| ... | ... | @@ -2400,18 +2345,17 @@ |
| 2400 | 2345 | </sequence> |
| 2401 | 2346 | </normal_column> |
| 2402 | 2347 | <normal_column> |
| 2348 | + <word_id>38</word_id> | |
| 2403 | 2349 | <id>33</id> |
| 2404 | - <referenced_column>5</referenced_column> | |
| 2405 | - <relation>6</relation> | |
| 2406 | 2350 | <description></description> |
| 2407 | 2351 | <unique_key_name></unique_key_name> |
| 2408 | 2352 | <logical_name></logical_name> |
| 2409 | 2353 | <physical_name></physical_name> |
| 2410 | - <type>integer</type> | |
| 2354 | + <type>text</type> | |
| 2411 | 2355 | <constraint></constraint> |
| 2412 | 2356 | <default_value></default_value> |
| 2413 | 2357 | <auto_increment>false</auto_increment> |
| 2414 | - <foreign_key>true</foreign_key> | |
| 2358 | + <foreign_key>false</foreign_key> | |
| 2415 | 2359 | <not_null>false</not_null> |
| 2416 | 2360 | <primary_key>false</primary_key> |
| 2417 | 2361 | <unique_key>false</unique_key> |
| ... | ... | @@ -2433,9 +2377,8 @@ |
| 2433 | 2377 | </sequence> |
| 2434 | 2378 | </normal_column> |
| 2435 | 2379 | <normal_column> |
| 2380 | + <word_id>31</word_id> | |
| 2436 | 2381 | <id>34</id> |
| 2437 | - <referenced_column>8</referenced_column> | |
| 2438 | - <relation>5</relation> | |
| 2439 | 2382 | <description></description> |
| 2440 | 2383 | <unique_key_name></unique_key_name> |
| 2441 | 2384 | <logical_name></logical_name> |
| ... | ... | @@ -2443,11 +2386,11 @@ |
| 2443 | 2386 | <type>integer</type> |
| 2444 | 2387 | <constraint></constraint> |
| 2445 | 2388 | <default_value></default_value> |
| 2446 | - <auto_increment>false</auto_increment> | |
| 2447 | - <foreign_key>true</foreign_key> | |
| 2448 | - <not_null>false</not_null> | |
| 2449 | - <primary_key>false</primary_key> | |
| 2450 | - <unique_key>false</unique_key> | |
| 2389 | + <auto_increment>true</auto_increment> | |
| 2390 | + <foreign_key>false</foreign_key> | |
| 2391 | + <not_null>true</not_null> | |
| 2392 | + <primary_key>true</primary_key> | |
| 2393 | + <unique_key>true</unique_key> | |
| 2451 | 2394 | <character_set></character_set> |
| 2452 | 2395 | <collation></collation> |
| 2453 | 2396 | <sequence> |
| ... | ... | @@ -2465,10 +2408,75 @@ |
| 2465 | 2408 | <decimal_size>0</decimal_size> |
| 2466 | 2409 | </sequence> |
| 2467 | 2410 | </normal_column> |
| 2411 | + </columns> | |
| 2412 | + <indexes> | |
| 2413 | + </indexes> | |
| 2414 | + <complex_unique_key_list> | |
| 2415 | + </complex_unique_key_list> | |
| 2416 | + <table_properties> | |
| 2417 | + <schema></schema> | |
| 2418 | + </table_properties> | |
| 2419 | + </table> | |
| 2420 | + <table> | |
| 2421 | + <id>9</id> | |
| 2422 | + <height>86</height> | |
| 2423 | + <width>269</width> | |
| 2424 | + <font_name>Ubuntu</font_name> | |
| 2425 | + <font_size>9</font_size> | |
| 2426 | + <x>705</x> | |
| 2427 | + <y>152</y> | |
| 2428 | + <color> | |
| 2429 | + <r>144</r> | |
| 2430 | + <g>238</g> | |
| 2431 | + <b>144</b> | |
| 2432 | + </color> | |
| 2433 | + <connections> | |
| 2434 | + <relation> | |
| 2435 | + <id>3</id> | |
| 2436 | + <source>14</source> | |
| 2437 | + <target>9</target> | |
| 2438 | + <child_cardinality>1..n</child_cardinality> | |
| 2439 | + <parent_cardinality>1</parent_cardinality> | |
| 2440 | + <reference_for_pk>true</reference_for_pk> | |
| 2441 | + <name></name> | |
| 2442 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 2443 | + <on_update_action>RESTRICT</on_update_action> | |
| 2444 | + <source_xp>-1</source_xp> | |
| 2445 | + <source_yp>-1</source_yp> | |
| 2446 | + <target_xp>-1</target_xp> | |
| 2447 | + <target_yp>-1</target_yp> | |
| 2448 | + <referenced_column>null</referenced_column> | |
| 2449 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2450 | + </relation> | |
| 2451 | + <relation> | |
| 2452 | + <id>4</id> | |
| 2453 | + <source>7</source> | |
| 2454 | + <target>9</target> | |
| 2455 | + <child_cardinality>1..n</child_cardinality> | |
| 2456 | + <parent_cardinality>1</parent_cardinality> | |
| 2457 | + <reference_for_pk>true</reference_for_pk> | |
| 2458 | + <name></name> | |
| 2459 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 2460 | + <on_update_action>RESTRICT</on_update_action> | |
| 2461 | + <source_xp>-1</source_xp> | |
| 2462 | + <source_yp>-1</source_yp> | |
| 2463 | + <target_xp>-1</target_xp> | |
| 2464 | + <target_yp>-1</target_yp> | |
| 2465 | + <referenced_column>null</referenced_column> | |
| 2466 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2467 | + </relation> | |
| 2468 | + </connections> | |
| 2469 | + <physical_name>i3geoestat_fonteinfo_medida</physical_name> | |
| 2470 | + <logical_name>i3geoestat_fonteinfo_medida</logical_name> | |
| 2471 | + <description></description> | |
| 2472 | + <constraint></constraint> | |
| 2473 | + <primary_key_name></primary_key_name> | |
| 2474 | + <option></option> | |
| 2475 | + <columns> | |
| 2468 | 2476 | <normal_column> |
| 2469 | 2477 | <id>35</id> |
| 2470 | - <referenced_column>55</referenced_column> | |
| 2471 | - <relation>2</relation> | |
| 2478 | + <referenced_column>65</referenced_column> | |
| 2479 | + <relation>3</relation> | |
| 2472 | 2480 | <description></description> |
| 2473 | 2481 | <unique_key_name></unique_key_name> |
| 2474 | 2482 | <logical_name></logical_name> |
| ... | ... | @@ -2478,7 +2486,7 @@ |
| 2478 | 2486 | <default_value></default_value> |
| 2479 | 2487 | <auto_increment>false</auto_increment> |
| 2480 | 2488 | <foreign_key>true</foreign_key> |
| 2481 | - <not_null>false</not_null> | |
| 2489 | + <not_null>true</not_null> | |
| 2482 | 2490 | <primary_key>false</primary_key> |
| 2483 | 2491 | <unique_key>false</unique_key> |
| 2484 | 2492 | <character_set></character_set> |
| ... | ... | @@ -2500,7 +2508,7 @@ |
| 2500 | 2508 | </normal_column> |
| 2501 | 2509 | <normal_column> |
| 2502 | 2510 | <id>36</id> |
| 2503 | - <referenced_column>71</referenced_column> | |
| 2511 | + <referenced_column>28</referenced_column> | |
| 2504 | 2512 | <relation>4</relation> |
| 2505 | 2513 | <description></description> |
| 2506 | 2514 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2511,7 +2519,7 @@ |
| 2511 | 2519 | <default_value></default_value> |
| 2512 | 2520 | <auto_increment>false</auto_increment> |
| 2513 | 2521 | <foreign_key>true</foreign_key> |
| 2514 | - <not_null>false</not_null> | |
| 2522 | + <not_null>true</not_null> | |
| 2515 | 2523 | <primary_key>false</primary_key> |
| 2516 | 2524 | <unique_key>false</unique_key> |
| 2517 | 2525 | <character_set></character_set> |
| ... | ... | @@ -2531,21 +2539,69 @@ |
| 2531 | 2539 | <decimal_size>0</decimal_size> |
| 2532 | 2540 | </sequence> |
| 2533 | 2541 | </normal_column> |
| 2542 | + </columns> | |
| 2543 | + <indexes> | |
| 2544 | + </indexes> | |
| 2545 | + <complex_unique_key_list> | |
| 2546 | + </complex_unique_key_list> | |
| 2547 | + <table_properties> | |
| 2548 | + <schema></schema> | |
| 2549 | + </table_properties> | |
| 2550 | + </table> | |
| 2551 | + <table> | |
| 2552 | + <id>10</id> | |
| 2553 | + <height>170</height> | |
| 2554 | + <width>292</width> | |
| 2555 | + <font_name>Ubuntu</font_name> | |
| 2556 | + <font_size>9</font_size> | |
| 2557 | + <x>387</x> | |
| 2558 | + <y>533</y> | |
| 2559 | + <color> | |
| 2560 | + <r>160</r> | |
| 2561 | + <g>32</g> | |
| 2562 | + <b>240</b> | |
| 2563 | + </color> | |
| 2564 | + <connections> | |
| 2565 | + <relation> | |
| 2566 | + <id>5</id> | |
| 2567 | + <source>14</source> | |
| 2568 | + <target>10</target> | |
| 2569 | + <child_cardinality>1..n</child_cardinality> | |
| 2570 | + <parent_cardinality>1</parent_cardinality> | |
| 2571 | + <reference_for_pk>true</reference_for_pk> | |
| 2572 | + <name></name> | |
| 2573 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 2574 | + <on_update_action>RESTRICT</on_update_action> | |
| 2575 | + <source_xp>-1</source_xp> | |
| 2576 | + <source_yp>-1</source_yp> | |
| 2577 | + <target_xp>-1</target_xp> | |
| 2578 | + <target_yp>-1</target_yp> | |
| 2579 | + <referenced_column>null</referenced_column> | |
| 2580 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2581 | + </relation> | |
| 2582 | + </connections> | |
| 2583 | + <physical_name>i3geoestat_parametro_medida</physical_name> | |
| 2584 | + <logical_name>i3geoestat_parametro_medida</logical_name> | |
| 2585 | + <description></description> | |
| 2586 | + <constraint></constraint> | |
| 2587 | + <primary_key_name></primary_key_name> | |
| 2588 | + <option></option> | |
| 2589 | + <columns> | |
| 2534 | 2590 | <normal_column> |
| 2535 | - <word_id>20</word_id> | |
| 2591 | + <word_id>34</word_id> | |
| 2536 | 2592 | <id>37</id> |
| 2537 | 2593 | <description></description> |
| 2538 | 2594 | <unique_key_name></unique_key_name> |
| 2539 | 2595 | <logical_name></logical_name> |
| 2540 | 2596 | <physical_name></physical_name> |
| 2541 | - <type>text</type> | |
| 2597 | + <type>integer</type> | |
| 2542 | 2598 | <constraint></constraint> |
| 2543 | 2599 | <default_value></default_value> |
| 2544 | - <auto_increment>false</auto_increment> | |
| 2600 | + <auto_increment>true</auto_increment> | |
| 2545 | 2601 | <foreign_key>false</foreign_key> |
| 2546 | - <not_null>false</not_null> | |
| 2547 | - <primary_key>false</primary_key> | |
| 2548 | - <unique_key>false</unique_key> | |
| 2602 | + <not_null>true</not_null> | |
| 2603 | + <primary_key>true</primary_key> | |
| 2604 | + <unique_key>true</unique_key> | |
| 2549 | 2605 | <character_set></character_set> |
| 2550 | 2606 | <collation></collation> |
| 2551 | 2607 | <sequence> |
| ... | ... | @@ -2564,7 +2620,7 @@ |
| 2564 | 2620 | </sequence> |
| 2565 | 2621 | </normal_column> |
| 2566 | 2622 | <normal_column> |
| 2567 | - <word_id>56</word_id> | |
| 2623 | + <word_id>8</word_id> | |
| 2568 | 2624 | <id>38</id> |
| 2569 | 2625 | <description></description> |
| 2570 | 2626 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2596,7 +2652,7 @@ |
| 2596 | 2652 | </sequence> |
| 2597 | 2653 | </normal_column> |
| 2598 | 2654 | <normal_column> |
| 2599 | - <word_id>14</word_id> | |
| 2655 | + <word_id>37</word_id> | |
| 2600 | 2656 | <id>39</id> |
| 2601 | 2657 | <description></description> |
| 2602 | 2658 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2628,7 +2684,7 @@ |
| 2628 | 2684 | </sequence> |
| 2629 | 2685 | </normal_column> |
| 2630 | 2686 | <normal_column> |
| 2631 | - <word_id>11</word_id> | |
| 2687 | + <word_id>18</word_id> | |
| 2632 | 2688 | <id>40</id> |
| 2633 | 2689 | <description></description> |
| 2634 | 2690 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2660,15 +2716,15 @@ |
| 2660 | 2716 | </sequence> |
| 2661 | 2717 | </normal_column> |
| 2662 | 2718 | <normal_column> |
| 2663 | - <word_id>23</word_id> | |
| 2719 | + <word_id>33</word_id> | |
| 2664 | 2720 | <id>41</id> |
| 2665 | 2721 | <description></description> |
| 2666 | 2722 | <unique_key_name></unique_key_name> |
| 2667 | 2723 | <logical_name></logical_name> |
| 2668 | 2724 | <physical_name></physical_name> |
| 2669 | - <type>text</type> | |
| 2725 | + <type>integer</type> | |
| 2670 | 2726 | <constraint></constraint> |
| 2671 | - <default_value></default_value> | |
| 2727 | + <default_value>0</default_value> | |
| 2672 | 2728 | <auto_increment>false</auto_increment> |
| 2673 | 2729 | <foreign_key>false</foreign_key> |
| 2674 | 2730 | <not_null>false</not_null> |
| ... | ... | @@ -2692,17 +2748,18 @@ |
| 2692 | 2748 | </sequence> |
| 2693 | 2749 | </normal_column> |
| 2694 | 2750 | <normal_column> |
| 2695 | - <word_id>42</word_id> | |
| 2696 | 2751 | <id>42</id> |
| 2752 | + <referenced_column>65</referenced_column> | |
| 2753 | + <relation>5</relation> | |
| 2697 | 2754 | <description></description> |
| 2698 | 2755 | <unique_key_name></unique_key_name> |
| 2699 | 2756 | <logical_name></logical_name> |
| 2700 | 2757 | <physical_name></physical_name> |
| 2701 | - <type>text</type> | |
| 2758 | + <type>integer</type> | |
| 2702 | 2759 | <constraint></constraint> |
| 2703 | 2760 | <default_value></default_value> |
| 2704 | 2761 | <auto_increment>false</auto_increment> |
| 2705 | - <foreign_key>false</foreign_key> | |
| 2762 | + <foreign_key>true</foreign_key> | |
| 2706 | 2763 | <not_null>false</not_null> |
| 2707 | 2764 | <primary_key>false</primary_key> |
| 2708 | 2765 | <unique_key>false</unique_key> |
| ... | ... | @@ -2733,23 +2790,23 @@ |
| 2733 | 2790 | </table_properties> |
| 2734 | 2791 | </table> |
| 2735 | 2792 | <table> |
| 2736 | - <id>9</id> | |
| 2737 | - <height>128</height> | |
| 2738 | - <width>269</width> | |
| 2793 | + <id>11</id> | |
| 2794 | + <height>275</height> | |
| 2795 | + <width>292</width> | |
| 2739 | 2796 | <font_name>Ubuntu</font_name> |
| 2740 | 2797 | <font_size>9</font_size> |
| 2741 | - <x>753</x> | |
| 2742 | - <y>442</y> | |
| 2798 | + <x>-336</x> | |
| 2799 | + <y>236</y> | |
| 2743 | 2800 | <color> |
| 2744 | - <r>230</r> | |
| 2745 | - <g>230</g> | |
| 2746 | - <b>250</b> | |
| 2801 | + <r>255</r> | |
| 2802 | + <g>128</g> | |
| 2803 | + <b>255</b> | |
| 2747 | 2804 | </color> |
| 2748 | 2805 | <connections> |
| 2749 | 2806 | <relation> |
| 2750 | - <id>7</id> | |
| 2751 | - <source>8</source> | |
| 2752 | - <target>9</target> | |
| 2807 | + <id>6</id> | |
| 2808 | + <source>13</source> | |
| 2809 | + <target>11</target> | |
| 2753 | 2810 | <child_cardinality>1..n</child_cardinality> |
| 2754 | 2811 | <parent_cardinality>1</parent_cardinality> |
| 2755 | 2812 | <reference_for_pk>true</reference_for_pk> |
| ... | ... | @@ -2764,28 +2821,28 @@ |
| 2764 | 2821 | <referenced_complex_unique_key>null</referenced_complex_unique_key> |
| 2765 | 2822 | </relation> |
| 2766 | 2823 | </connections> |
| 2767 | - <physical_name>i3geoestat_medida_variavel_link</physical_name> | |
| 2768 | - <logical_name>i3geoestat_medida_variavel_link</logical_name> | |
| 2769 | - <description></description> | |
| 2824 | + <physical_name>i3geoestat_tipo_regiao</physical_name> | |
| 2825 | + <logical_name>i3geoestat_tipo_regiao</logical_name> | |
| 2826 | + <description>Identifica as tabelas que possuem colunas com geometrias de determinado local ou região</description> | |
| 2770 | 2827 | <constraint></constraint> |
| 2771 | 2828 | <primary_key_name></primary_key_name> |
| 2772 | 2829 | <option></option> |
| 2773 | 2830 | <columns> |
| 2774 | 2831 | <normal_column> |
| 2775 | - <word_id>34</word_id> | |
| 2832 | + <word_id>4</word_id> | |
| 2776 | 2833 | <id>43</id> |
| 2777 | 2834 | <description></description> |
| 2778 | 2835 | <unique_key_name></unique_key_name> |
| 2779 | 2836 | <logical_name></logical_name> |
| 2780 | 2837 | <physical_name></physical_name> |
| 2781 | - <type>text</type> | |
| 2838 | + <type>integer</type> | |
| 2782 | 2839 | <constraint></constraint> |
| 2783 | 2840 | <default_value></default_value> |
| 2784 | - <auto_increment>false</auto_increment> | |
| 2841 | + <auto_increment>true</auto_increment> | |
| 2785 | 2842 | <foreign_key>false</foreign_key> |
| 2786 | - <not_null>false</not_null> | |
| 2787 | - <primary_key>false</primary_key> | |
| 2788 | - <unique_key>false</unique_key> | |
| 2843 | + <not_null>true</not_null> | |
| 2844 | + <primary_key>true</primary_key> | |
| 2845 | + <unique_key>true</unique_key> | |
| 2789 | 2846 | <character_set></character_set> |
| 2790 | 2847 | <collation></collation> |
| 2791 | 2848 | <sequence> |
| ... | ... | @@ -2804,18 +2861,17 @@ |
| 2804 | 2861 | </sequence> |
| 2805 | 2862 | </normal_column> |
| 2806 | 2863 | <normal_column> |
| 2864 | + <word_id>44</word_id> | |
| 2807 | 2865 | <id>44</id> |
| 2808 | - <referenced_column>31</referenced_column> | |
| 2809 | - <relation>7</relation> | |
| 2810 | 2866 | <description></description> |
| 2811 | 2867 | <unique_key_name></unique_key_name> |
| 2812 | 2868 | <logical_name></logical_name> |
| 2813 | 2869 | <physical_name></physical_name> |
| 2814 | - <type>integer</type> | |
| 2870 | + <type>text</type> | |
| 2815 | 2871 | <constraint></constraint> |
| 2816 | 2872 | <default_value></default_value> |
| 2817 | 2873 | <auto_increment>false</auto_increment> |
| 2818 | - <foreign_key>true</foreign_key> | |
| 2874 | + <foreign_key>false</foreign_key> | |
| 2819 | 2875 | <not_null>false</not_null> |
| 2820 | 2876 | <primary_key>false</primary_key> |
| 2821 | 2877 | <unique_key>false</unique_key> |
| ... | ... | @@ -2837,7 +2893,7 @@ |
| 2837 | 2893 | </sequence> |
| 2838 | 2894 | </normal_column> |
| 2839 | 2895 | <normal_column> |
| 2840 | - <word_id>41</word_id> | |
| 2896 | + <word_id>20</word_id> | |
| 2841 | 2897 | <id>45</id> |
| 2842 | 2898 | <description></description> |
| 2843 | 2899 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -2869,8 +2925,9 @@ |
| 2869 | 2925 | </sequence> |
| 2870 | 2926 | </normal_column> |
| 2871 | 2927 | <normal_column> |
| 2872 | - <word_id>30</word_id> | |
| 2873 | 2928 | <id>46</id> |
| 2929 | + <referenced_column>59</referenced_column> | |
| 2930 | + <relation>6</relation> | |
| 2874 | 2931 | <description></description> |
| 2875 | 2932 | <unique_key_name></unique_key_name> |
| 2876 | 2933 | <logical_name></logical_name> |
| ... | ... | @@ -2878,11 +2935,11 @@ |
| 2878 | 2935 | <type>integer</type> |
| 2879 | 2936 | <constraint></constraint> |
| 2880 | 2937 | <default_value></default_value> |
| 2881 | - <auto_increment>true</auto_increment> | |
| 2882 | - <foreign_key>false</foreign_key> | |
| 2883 | - <not_null>true</not_null> | |
| 2884 | - <primary_key>true</primary_key> | |
| 2885 | - <unique_key>true</unique_key> | |
| 2938 | + <auto_increment>false</auto_increment> | |
| 2939 | + <foreign_key>true</foreign_key> | |
| 2940 | + <not_null>false</not_null> | |
| 2941 | + <primary_key>false</primary_key> | |
| 2942 | + <unique_key>false</unique_key> | |
| 2886 | 2943 | <character_set></character_set> |
| 2887 | 2944 | <collation></collation> |
| 2888 | 2945 | <sequence> |
| ... | ... | @@ -2900,85 +2957,19 @@ |
| 2900 | 2957 | <decimal_size>0</decimal_size> |
| 2901 | 2958 | </sequence> |
| 2902 | 2959 | </normal_column> |
| 2903 | - </columns> | |
| 2904 | - <indexes> | |
| 2905 | - </indexes> | |
| 2906 | - <complex_unique_key_list> | |
| 2907 | - </complex_unique_key_list> | |
| 2908 | - <table_properties> | |
| 2909 | - <schema></schema> | |
| 2910 | - </table_properties> | |
| 2911 | - </table> | |
| 2912 | - <table> | |
| 2913 | - <id>10</id> | |
| 2914 | - <height>86</height> | |
| 2915 | - <width>269</width> | |
| 2916 | - <font_name>Ubuntu</font_name> | |
| 2917 | - <font_size>9</font_size> | |
| 2918 | - <x>705</x> | |
| 2919 | - <y>152</y> | |
| 2920 | - <color> | |
| 2921 | - <r>144</r> | |
| 2922 | - <g>238</g> | |
| 2923 | - <b>144</b> | |
| 2924 | - </color> | |
| 2925 | - <connections> | |
| 2926 | - <relation> | |
| 2927 | - <id>8</id> | |
| 2928 | - <source>7</source> | |
| 2929 | - <target>10</target> | |
| 2930 | - <child_cardinality>1..n</child_cardinality> | |
| 2931 | - <parent_cardinality>1</parent_cardinality> | |
| 2932 | - <reference_for_pk>true</reference_for_pk> | |
| 2933 | - <name></name> | |
| 2934 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2935 | - <on_update_action>RESTRICT</on_update_action> | |
| 2936 | - <source_xp>-1</source_xp> | |
| 2937 | - <source_yp>-1</source_yp> | |
| 2938 | - <target_xp>-1</target_xp> | |
| 2939 | - <target_yp>-1</target_yp> | |
| 2940 | - <referenced_column>null</referenced_column> | |
| 2941 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2942 | - </relation> | |
| 2943 | - <relation> | |
| 2944 | - <id>9</id> | |
| 2945 | - <source>8</source> | |
| 2946 | - <target>10</target> | |
| 2947 | - <child_cardinality>1..n</child_cardinality> | |
| 2948 | - <parent_cardinality>1</parent_cardinality> | |
| 2949 | - <reference_for_pk>true</reference_for_pk> | |
| 2950 | - <name></name> | |
| 2951 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 2952 | - <on_update_action>RESTRICT</on_update_action> | |
| 2953 | - <source_xp>-1</source_xp> | |
| 2954 | - <source_yp>-1</source_yp> | |
| 2955 | - <target_xp>-1</target_xp> | |
| 2956 | - <target_yp>-1</target_yp> | |
| 2957 | - <referenced_column>null</referenced_column> | |
| 2958 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 2959 | - </relation> | |
| 2960 | - </connections> | |
| 2961 | - <physical_name>i3geoestat_fonteinfo_medida</physical_name> | |
| 2962 | - <logical_name>i3geoestat_fonteinfo_medida</logical_name> | |
| 2963 | - <description></description> | |
| 2964 | - <constraint></constraint> | |
| 2965 | - <primary_key_name></primary_key_name> | |
| 2966 | - <option></option> | |
| 2967 | - <columns> | |
| 2968 | 2960 | <normal_column> |
| 2961 | + <word_id>22</word_id> | |
| 2969 | 2962 | <id>47</id> |
| 2970 | - <referenced_column>31</referenced_column> | |
| 2971 | - <relation>9</relation> | |
| 2972 | 2963 | <description></description> |
| 2973 | 2964 | <unique_key_name></unique_key_name> |
| 2974 | 2965 | <logical_name></logical_name> |
| 2975 | 2966 | <physical_name></physical_name> |
| 2976 | - <type>integer</type> | |
| 2967 | + <type>text</type> | |
| 2977 | 2968 | <constraint></constraint> |
| 2978 | 2969 | <default_value></default_value> |
| 2979 | 2970 | <auto_increment>false</auto_increment> |
| 2980 | - <foreign_key>true</foreign_key> | |
| 2981 | - <not_null>true</not_null> | |
| 2971 | + <foreign_key>false</foreign_key> | |
| 2972 | + <not_null>false</not_null> | |
| 2982 | 2973 | <primary_key>false</primary_key> |
| 2983 | 2974 | <unique_key>false</unique_key> |
| 2984 | 2975 | <character_set></character_set> |
| ... | ... | @@ -2999,19 +2990,18 @@ |
| 2999 | 2990 | </sequence> |
| 3000 | 2991 | </normal_column> |
| 3001 | 2992 | <normal_column> |
| 2993 | + <word_id>58</word_id> | |
| 3002 | 2994 | <id>48</id> |
| 3003 | - <referenced_column>28</referenced_column> | |
| 3004 | - <relation>8</relation> | |
| 3005 | 2995 | <description></description> |
| 3006 | 2996 | <unique_key_name></unique_key_name> |
| 3007 | 2997 | <logical_name></logical_name> |
| 3008 | 2998 | <physical_name></physical_name> |
| 3009 | - <type>integer</type> | |
| 2999 | + <type>text</type> | |
| 3010 | 3000 | <constraint></constraint> |
| 3011 | 3001 | <default_value></default_value> |
| 3012 | 3002 | <auto_increment>false</auto_increment> |
| 3013 | - <foreign_key>true</foreign_key> | |
| 3014 | - <not_null>true</not_null> | |
| 3003 | + <foreign_key>false</foreign_key> | |
| 3004 | + <not_null>false</not_null> | |
| 3015 | 3005 | <primary_key>false</primary_key> |
| 3016 | 3006 | <unique_key>false</unique_key> |
| 3017 | 3007 | <character_set></character_set> |
| ... | ... | @@ -3031,69 +3021,21 @@ |
| 3031 | 3021 | <decimal_size>0</decimal_size> |
| 3032 | 3022 | </sequence> |
| 3033 | 3023 | </normal_column> |
| 3034 | - </columns> | |
| 3035 | - <indexes> | |
| 3036 | - </indexes> | |
| 3037 | - <complex_unique_key_list> | |
| 3038 | - </complex_unique_key_list> | |
| 3039 | - <table_properties> | |
| 3040 | - <schema></schema> | |
| 3041 | - </table_properties> | |
| 3042 | - </table> | |
| 3043 | - <table> | |
| 3044 | - <id>11</id> | |
| 3045 | - <height>170</height> | |
| 3046 | - <width>292</width> | |
| 3047 | - <font_name>Ubuntu</font_name> | |
| 3048 | - <font_size>9</font_size> | |
| 3049 | - <x>387</x> | |
| 3050 | - <y>533</y> | |
| 3051 | - <color> | |
| 3052 | - <r>160</r> | |
| 3053 | - <g>32</g> | |
| 3054 | - <b>240</b> | |
| 3055 | - </color> | |
| 3056 | - <connections> | |
| 3057 | - <relation> | |
| 3058 | - <id>10</id> | |
| 3059 | - <source>8</source> | |
| 3060 | - <target>11</target> | |
| 3061 | - <child_cardinality>1..n</child_cardinality> | |
| 3062 | - <parent_cardinality>1</parent_cardinality> | |
| 3063 | - <reference_for_pk>true</reference_for_pk> | |
| 3064 | - <name></name> | |
| 3065 | - <on_delete_action>RESTRICT</on_delete_action> | |
| 3066 | - <on_update_action>RESTRICT</on_update_action> | |
| 3067 | - <source_xp>-1</source_xp> | |
| 3068 | - <source_yp>-1</source_yp> | |
| 3069 | - <target_xp>-1</target_xp> | |
| 3070 | - <target_yp>-1</target_yp> | |
| 3071 | - <referenced_column>null</referenced_column> | |
| 3072 | - <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 3073 | - </relation> | |
| 3074 | - </connections> | |
| 3075 | - <physical_name>i3geoestat_parametro_medida</physical_name> | |
| 3076 | - <logical_name>i3geoestat_parametro_medida</logical_name> | |
| 3077 | - <description></description> | |
| 3078 | - <constraint></constraint> | |
| 3079 | - <primary_key_name></primary_key_name> | |
| 3080 | - <option></option> | |
| 3081 | - <columns> | |
| 3082 | 3024 | <normal_column> |
| 3083 | - <word_id>33</word_id> | |
| 3025 | + <word_id>10</word_id> | |
| 3084 | 3026 | <id>49</id> |
| 3085 | 3027 | <description></description> |
| 3086 | 3028 | <unique_key_name></unique_key_name> |
| 3087 | 3029 | <logical_name></logical_name> |
| 3088 | 3030 | <physical_name></physical_name> |
| 3089 | - <type>integer</type> | |
| 3031 | + <type>text</type> | |
| 3090 | 3032 | <constraint></constraint> |
| 3091 | 3033 | <default_value></default_value> |
| 3092 | - <auto_increment>true</auto_increment> | |
| 3034 | + <auto_increment>false</auto_increment> | |
| 3093 | 3035 | <foreign_key>false</foreign_key> |
| 3094 | - <not_null>true</not_null> | |
| 3095 | - <primary_key>true</primary_key> | |
| 3096 | - <unique_key>true</unique_key> | |
| 3036 | + <not_null>false</not_null> | |
| 3037 | + <primary_key>false</primary_key> | |
| 3038 | + <unique_key>false</unique_key> | |
| 3097 | 3039 | <character_set></character_set> |
| 3098 | 3040 | <collation></collation> |
| 3099 | 3041 | <sequence> |
| ... | ... | @@ -3112,7 +3054,7 @@ |
| 3112 | 3054 | </sequence> |
| 3113 | 3055 | </normal_column> |
| 3114 | 3056 | <normal_column> |
| 3115 | - <word_id>8</word_id> | |
| 3057 | + <word_id>16</word_id> | |
| 3116 | 3058 | <id>50</id> |
| 3117 | 3059 | <description></description> |
| 3118 | 3060 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3144,13 +3086,13 @@ |
| 3144 | 3086 | </sequence> |
| 3145 | 3087 | </normal_column> |
| 3146 | 3088 | <normal_column> |
| 3147 | - <word_id>38</word_id> | |
| 3089 | + <word_id>26</word_id> | |
| 3148 | 3090 | <id>51</id> |
| 3149 | 3091 | <description></description> |
| 3150 | 3092 | <unique_key_name></unique_key_name> |
| 3151 | 3093 | <logical_name></logical_name> |
| 3152 | 3094 | <physical_name></physical_name> |
| 3153 | - <type>text</type> | |
| 3095 | + <type>integer</type> | |
| 3154 | 3096 | <constraint></constraint> |
| 3155 | 3097 | <default_value></default_value> |
| 3156 | 3098 | <auto_increment>false</auto_increment> |
| ... | ... | @@ -3176,7 +3118,7 @@ |
| 3176 | 3118 | </sequence> |
| 3177 | 3119 | </normal_column> |
| 3178 | 3120 | <normal_column> |
| 3179 | - <word_id>17</word_id> | |
| 3121 | + <word_id>14</word_id> | |
| 3180 | 3122 | <id>52</id> |
| 3181 | 3123 | <description></description> |
| 3182 | 3124 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3208,15 +3150,15 @@ |
| 3208 | 3150 | </sequence> |
| 3209 | 3151 | </normal_column> |
| 3210 | 3152 | <normal_column> |
| 3211 | - <word_id>32</word_id> | |
| 3153 | + <word_id>56</word_id> | |
| 3212 | 3154 | <id>53</id> |
| 3213 | 3155 | <description></description> |
| 3214 | 3156 | <unique_key_name></unique_key_name> |
| 3215 | 3157 | <logical_name></logical_name> |
| 3216 | 3158 | <physical_name></physical_name> |
| 3217 | - <type>integer</type> | |
| 3159 | + <type>text</type> | |
| 3218 | 3160 | <constraint></constraint> |
| 3219 | - <default_value>0</default_value> | |
| 3161 | + <default_value>4326</default_value> | |
| 3220 | 3162 | <auto_increment>false</auto_increment> |
| 3221 | 3163 | <foreign_key>false</foreign_key> |
| 3222 | 3164 | <not_null>false</not_null> |
| ... | ... | @@ -3240,18 +3182,17 @@ |
| 3240 | 3182 | </sequence> |
| 3241 | 3183 | </normal_column> |
| 3242 | 3184 | <normal_column> |
| 3185 | + <word_id>9</word_id> | |
| 3243 | 3186 | <id>54</id> |
| 3244 | - <referenced_column>31</referenced_column> | |
| 3245 | - <relation>10</relation> | |
| 3246 | 3187 | <description></description> |
| 3247 | 3188 | <unique_key_name></unique_key_name> |
| 3248 | 3189 | <logical_name></logical_name> |
| 3249 | 3190 | <physical_name></physical_name> |
| 3250 | - <type>integer</type> | |
| 3191 | + <type>text</type> | |
| 3251 | 3192 | <constraint></constraint> |
| 3252 | 3193 | <default_value></default_value> |
| 3253 | 3194 | <auto_increment>false</auto_increment> |
| 3254 | - <foreign_key>true</foreign_key> | |
| 3195 | + <foreign_key>false</foreign_key> | |
| 3255 | 3196 | <not_null>false</not_null> |
| 3256 | 3197 | <primary_key>false</primary_key> |
| 3257 | 3198 | <unique_key>false</unique_key> |
| ... | ... | @@ -3283,12 +3224,12 @@ |
| 3283 | 3224 | </table> |
| 3284 | 3225 | <table> |
| 3285 | 3226 | <id>12</id> |
| 3286 | - <height>275</height> | |
| 3287 | - <width>292</width> | |
| 3227 | + <height>128</height> | |
| 3228 | + <width>270</width> | |
| 3288 | 3229 | <font_name>Ubuntu</font_name> |
| 3289 | 3230 | <font_size>9</font_size> |
| 3290 | - <x>-336</x> | |
| 3291 | - <y>236</y> | |
| 3231 | + <x>-372</x> | |
| 3232 | + <y>596</y> | |
| 3292 | 3233 | <color> |
| 3293 | 3234 | <r>255</r> |
| 3294 | 3235 | <g>128</g> |
| ... | ... | @@ -3296,8 +3237,8 @@ |
| 3296 | 3237 | </color> |
| 3297 | 3238 | <connections> |
| 3298 | 3239 | <relation> |
| 3299 | - <id>11</id> | |
| 3300 | - <source>14</source> | |
| 3240 | + <id>7</id> | |
| 3241 | + <source>11</source> | |
| 3301 | 3242 | <target>12</target> |
| 3302 | 3243 | <child_cardinality>1..n</child_cardinality> |
| 3303 | 3244 | <parent_cardinality>1</parent_cardinality> |
| ... | ... | @@ -3313,15 +3254,15 @@ |
| 3313 | 3254 | <referenced_complex_unique_key>null</referenced_complex_unique_key> |
| 3314 | 3255 | </relation> |
| 3315 | 3256 | </connections> |
| 3316 | - <physical_name>i3geoestat_tipo_regiao</physical_name> | |
| 3317 | - <logical_name>i3geoestat_tipo_regiao</logical_name> | |
| 3318 | - <description>Identifica as tabelas que possuem colunas com geometrias de determinado local ou região</description> | |
| 3257 | + <physical_name>i3geoestat_agregaregiao</physical_name> | |
| 3258 | + <logical_name>i3geoestat_agregaregiao</logical_name> | |
| 3259 | + <description></description> | |
| 3319 | 3260 | <constraint></constraint> |
| 3320 | 3261 | <primary_key_name></primary_key_name> |
| 3321 | 3262 | <option></option> |
| 3322 | 3263 | <columns> |
| 3323 | 3264 | <normal_column> |
| 3324 | - <word_id>4</word_id> | |
| 3265 | + <word_id>27</word_id> | |
| 3325 | 3266 | <id>55</id> |
| 3326 | 3267 | <description></description> |
| 3327 | 3268 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3353,17 +3294,18 @@ |
| 3353 | 3294 | </sequence> |
| 3354 | 3295 | </normal_column> |
| 3355 | 3296 | <normal_column> |
| 3356 | - <word_id>43</word_id> | |
| 3357 | 3297 | <id>56</id> |
| 3298 | + <referenced_column>43</referenced_column> | |
| 3299 | + <relation>7</relation> | |
| 3358 | 3300 | <description></description> |
| 3359 | 3301 | <unique_key_name></unique_key_name> |
| 3360 | 3302 | <logical_name></logical_name> |
| 3361 | 3303 | <physical_name></physical_name> |
| 3362 | - <type>text</type> | |
| 3304 | + <type>integer</type> | |
| 3363 | 3305 | <constraint></constraint> |
| 3364 | 3306 | <default_value></default_value> |
| 3365 | 3307 | <auto_increment>false</auto_increment> |
| 3366 | - <foreign_key>false</foreign_key> | |
| 3308 | + <foreign_key>true</foreign_key> | |
| 3367 | 3309 | <not_null>false</not_null> |
| 3368 | 3310 | <primary_key>false</primary_key> |
| 3369 | 3311 | <unique_key>false</unique_key> |
| ... | ... | @@ -3385,13 +3327,13 @@ |
| 3385 | 3327 | </sequence> |
| 3386 | 3328 | </normal_column> |
| 3387 | 3329 | <normal_column> |
| 3388 | - <word_id>19</word_id> | |
| 3330 | + <word_id>5</word_id> | |
| 3389 | 3331 | <id>57</id> |
| 3390 | 3332 | <description></description> |
| 3391 | 3333 | <unique_key_name></unique_key_name> |
| 3392 | 3334 | <logical_name></logical_name> |
| 3393 | 3335 | <physical_name></physical_name> |
| 3394 | - <type>text</type> | |
| 3336 | + <type>integer</type> | |
| 3395 | 3337 | <constraint></constraint> |
| 3396 | 3338 | <default_value></default_value> |
| 3397 | 3339 | <auto_increment>false</auto_increment> |
| ... | ... | @@ -3417,18 +3359,17 @@ |
| 3417 | 3359 | </sequence> |
| 3418 | 3360 | </normal_column> |
| 3419 | 3361 | <normal_column> |
| 3362 | + <word_id>13</word_id> | |
| 3420 | 3363 | <id>58</id> |
| 3421 | - <referenced_column>71</referenced_column> | |
| 3422 | - <relation>11</relation> | |
| 3423 | 3364 | <description></description> |
| 3424 | 3365 | <unique_key_name></unique_key_name> |
| 3425 | 3366 | <logical_name></logical_name> |
| 3426 | 3367 | <physical_name></physical_name> |
| 3427 | - <type>integer</type> | |
| 3368 | + <type>text</type> | |
| 3428 | 3369 | <constraint></constraint> |
| 3429 | 3370 | <default_value></default_value> |
| 3430 | 3371 | <auto_increment>false</auto_increment> |
| 3431 | - <foreign_key>true</foreign_key> | |
| 3372 | + <foreign_key>false</foreign_key> | |
| 3432 | 3373 | <not_null>false</not_null> |
| 3433 | 3374 | <primary_key>false</primary_key> |
| 3434 | 3375 | <unique_key>false</unique_key> |
| ... | ... | @@ -3449,21 +3390,52 @@ |
| 3449 | 3390 | <decimal_size>0</decimal_size> |
| 3450 | 3391 | </sequence> |
| 3451 | 3392 | </normal_column> |
| 3393 | + </columns> | |
| 3394 | + <indexes> | |
| 3395 | + </indexes> | |
| 3396 | + <complex_unique_key_list> | |
| 3397 | + </complex_unique_key_list> | |
| 3398 | + <table_properties> | |
| 3399 | + <schema></schema> | |
| 3400 | + </table_properties> | |
| 3401 | + </table> | |
| 3402 | + <table> | |
| 3403 | + <id>13</id> | |
| 3404 | + <height>170</height> | |
| 3405 | + <width>292</width> | |
| 3406 | + <font_name>Ubuntu</font_name> | |
| 3407 | + <font_size>9</font_size> | |
| 3408 | + <x>8</x> | |
| 3409 | + <y>499</y> | |
| 3410 | + <color> | |
| 3411 | + <r>255</r> | |
| 3412 | + <g>165</g> | |
| 3413 | + <b>0</b> | |
| 3414 | + </color> | |
| 3415 | + <connections> | |
| 3416 | + </connections> | |
| 3417 | + <physical_name>i3geoestat_conexao</physical_name> | |
| 3418 | + <logical_name>i3geoestat_conexao</logical_name> | |
| 3419 | + <description>Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados
Código 0 indica que será utilizada a conexão padrão</description> | |
| 3420 | + <constraint></constraint> | |
| 3421 | + <primary_key_name></primary_key_name> | |
| 3422 | + <option></option> | |
| 3423 | + <columns> | |
| 3452 | 3424 | <normal_column> |
| 3453 | - <word_id>21</word_id> | |
| 3425 | + <word_id>2</word_id> | |
| 3454 | 3426 | <id>59</id> |
| 3455 | 3427 | <description></description> |
| 3456 | 3428 | <unique_key_name></unique_key_name> |
| 3457 | 3429 | <logical_name></logical_name> |
| 3458 | 3430 | <physical_name></physical_name> |
| 3459 | - <type>text</type> | |
| 3431 | + <type>integer</type> | |
| 3460 | 3432 | <constraint></constraint> |
| 3461 | 3433 | <default_value></default_value> |
| 3462 | - <auto_increment>false</auto_increment> | |
| 3434 | + <auto_increment>true</auto_increment> | |
| 3463 | 3435 | <foreign_key>false</foreign_key> |
| 3464 | - <not_null>false</not_null> | |
| 3465 | - <primary_key>false</primary_key> | |
| 3466 | - <unique_key>false</unique_key> | |
| 3436 | + <not_null>true</not_null> | |
| 3437 | + <primary_key>true</primary_key> | |
| 3438 | + <unique_key>true</unique_key> | |
| 3467 | 3439 | <character_set></character_set> |
| 3468 | 3440 | <collation></collation> |
| 3469 | 3441 | <sequence> |
| ... | ... | @@ -3482,7 +3454,7 @@ |
| 3482 | 3454 | </sequence> |
| 3483 | 3455 | </normal_column> |
| 3484 | 3456 | <normal_column> |
| 3485 | - <word_id>57</word_id> | |
| 3457 | + <word_id>1</word_id> | |
| 3486 | 3458 | <id>60</id> |
| 3487 | 3459 | <description></description> |
| 3488 | 3460 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3514,7 +3486,7 @@ |
| 3514 | 3486 | </sequence> |
| 3515 | 3487 | </normal_column> |
| 3516 | 3488 | <normal_column> |
| 3517 | - <word_id>10</word_id> | |
| 3489 | + <word_id>25</word_id> | |
| 3518 | 3490 | <id>61</id> |
| 3519 | 3491 | <description></description> |
| 3520 | 3492 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3546,7 +3518,7 @@ |
| 3546 | 3518 | </sequence> |
| 3547 | 3519 | </normal_column> |
| 3548 | 3520 | <normal_column> |
| 3549 | - <word_id>15</word_id> | |
| 3521 | + <word_id>52</word_id> | |
| 3550 | 3522 | <id>62</id> |
| 3551 | 3523 | <description></description> |
| 3552 | 3524 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3578,13 +3550,13 @@ |
| 3578 | 3550 | </sequence> |
| 3579 | 3551 | </normal_column> |
| 3580 | 3552 | <normal_column> |
| 3581 | - <word_id>25</word_id> | |
| 3553 | + <word_id>62</word_id> | |
| 3582 | 3554 | <id>63</id> |
| 3583 | 3555 | <description></description> |
| 3584 | 3556 | <unique_key_name></unique_key_name> |
| 3585 | 3557 | <logical_name></logical_name> |
| 3586 | 3558 | <physical_name></physical_name> |
| 3587 | - <type>integer</type> | |
| 3559 | + <type>text</type> | |
| 3588 | 3560 | <constraint></constraint> |
| 3589 | 3561 | <default_value></default_value> |
| 3590 | 3562 | <auto_increment>false</auto_increment> |
| ... | ... | @@ -3610,7 +3582,7 @@ |
| 3610 | 3582 | </sequence> |
| 3611 | 3583 | </normal_column> |
| 3612 | 3584 | <normal_column> |
| 3613 | - <word_id>13</word_id> | |
| 3585 | + <word_id>53</word_id> | |
| 3614 | 3586 | <id>64</id> |
| 3615 | 3587 | <description></description> |
| 3616 | 3588 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3641,70 +3613,6 @@ |
| 3641 | 3613 | <decimal_size>0</decimal_size> |
| 3642 | 3614 | </sequence> |
| 3643 | 3615 | </normal_column> |
| 3644 | - <normal_column> | |
| 3645 | - <word_id>55</word_id> | |
| 3646 | - <id>65</id> | |
| 3647 | - <description></description> | |
| 3648 | - <unique_key_name></unique_key_name> | |
| 3649 | - <logical_name></logical_name> | |
| 3650 | - <physical_name></physical_name> | |
| 3651 | - <type>text</type> | |
| 3652 | - <constraint></constraint> | |
| 3653 | - <default_value>4326</default_value> | |
| 3654 | - <auto_increment>false</auto_increment> | |
| 3655 | - <foreign_key>false</foreign_key> | |
| 3656 | - <not_null>false</not_null> | |
| 3657 | - <primary_key>false</primary_key> | |
| 3658 | - <unique_key>false</unique_key> | |
| 3659 | - <character_set></character_set> | |
| 3660 | - <collation></collation> | |
| 3661 | - <sequence> | |
| 3662 | - <name></name> | |
| 3663 | - <schema></schema> | |
| 3664 | - <increment></increment> | |
| 3665 | - <min_value></min_value> | |
| 3666 | - <max_value></max_value> | |
| 3667 | - <start></start> | |
| 3668 | - <cache></cache> | |
| 3669 | - <cycle>false</cycle> | |
| 3670 | - <order>false</order> | |
| 3671 | - <description></description> | |
| 3672 | - <data_type></data_type> | |
| 3673 | - <decimal_size>0</decimal_size> | |
| 3674 | - </sequence> | |
| 3675 | - </normal_column> | |
| 3676 | - <normal_column> | |
| 3677 | - <word_id>9</word_id> | |
| 3678 | - <id>66</id> | |
| 3679 | - <description></description> | |
| 3680 | - <unique_key_name></unique_key_name> | |
| 3681 | - <logical_name></logical_name> | |
| 3682 | - <physical_name></physical_name> | |
| 3683 | - <type>text</type> | |
| 3684 | - <constraint></constraint> | |
| 3685 | - <default_value></default_value> | |
| 3686 | - <auto_increment>false</auto_increment> | |
| 3687 | - <foreign_key>false</foreign_key> | |
| 3688 | - <not_null>false</not_null> | |
| 3689 | - <primary_key>false</primary_key> | |
| 3690 | - <unique_key>false</unique_key> | |
| 3691 | - <character_set></character_set> | |
| 3692 | - <collation></collation> | |
| 3693 | - <sequence> | |
| 3694 | - <name></name> | |
| 3695 | - <schema></schema> | |
| 3696 | - <increment></increment> | |
| 3697 | - <min_value></min_value> | |
| 3698 | - <max_value></max_value> | |
| 3699 | - <start></start> | |
| 3700 | - <cache></cache> | |
| 3701 | - <cycle>false</cycle> | |
| 3702 | - <order>false</order> | |
| 3703 | - <description></description> | |
| 3704 | - <data_type></data_type> | |
| 3705 | - <decimal_size>0</decimal_size> | |
| 3706 | - </sequence> | |
| 3707 | - </normal_column> | |
| 3708 | 3616 | </columns> |
| 3709 | 3617 | <indexes> |
| 3710 | 3618 | </indexes> |
| ... | ... | @@ -3715,23 +3623,91 @@ |
| 3715 | 3623 | </table_properties> |
| 3716 | 3624 | </table> |
| 3717 | 3625 | <table> |
| 3718 | - <id>13</id> | |
| 3719 | - <height>128</height> | |
| 3720 | - <width>270</width> | |
| 3626 | + <id>14</id> | |
| 3627 | + <height>339</height> | |
| 3628 | + <width>292</width> | |
| 3721 | 3629 | <font_name>Ubuntu</font_name> |
| 3722 | 3630 | <font_size>9</font_size> |
| 3723 | - <x>-372</x> | |
| 3724 | - <y>596</y> | |
| 3631 | + <x>353</x> | |
| 3632 | + <y>155</y> | |
| 3725 | 3633 | <color> |
| 3726 | - <r>255</r> | |
| 3727 | - <g>128</g> | |
| 3728 | - <b>255</b> | |
| 3634 | + <r>160</r> | |
| 3635 | + <g>32</g> | |
| 3636 | + <b>240</b> | |
| 3729 | 3637 | </color> |
| 3730 | 3638 | <connections> |
| 3731 | 3639 | <relation> |
| 3640 | + <id>8</id> | |
| 3641 | + <source>3</source> | |
| 3642 | + <target>14</target> | |
| 3643 | + <child_cardinality>1..n</child_cardinality> | |
| 3644 | + <parent_cardinality>1</parent_cardinality> | |
| 3645 | + <reference_for_pk>true</reference_for_pk> | |
| 3646 | + <name></name> | |
| 3647 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 3648 | + <on_update_action>RESTRICT</on_update_action> | |
| 3649 | + <source_xp>-1</source_xp> | |
| 3650 | + <source_yp>-1</source_yp> | |
| 3651 | + <target_xp>-1</target_xp> | |
| 3652 | + <target_yp>-1</target_yp> | |
| 3653 | + <referenced_column>null</referenced_column> | |
| 3654 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 3655 | + </relation> | |
| 3656 | + <relation> | |
| 3657 | + <id>9</id> | |
| 3658 | + <source>13</source> | |
| 3659 | + <target>14</target> | |
| 3660 | + <child_cardinality>1..n</child_cardinality> | |
| 3661 | + <parent_cardinality>1</parent_cardinality> | |
| 3662 | + <reference_for_pk>true</reference_for_pk> | |
| 3663 | + <name></name> | |
| 3664 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 3665 | + <on_update_action>RESTRICT</on_update_action> | |
| 3666 | + <source_xp>-1</source_xp> | |
| 3667 | + <source_yp>-1</source_yp> | |
| 3668 | + <target_xp>-1</target_xp> | |
| 3669 | + <target_yp>-1</target_yp> | |
| 3670 | + <referenced_column>null</referenced_column> | |
| 3671 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 3672 | + </relation> | |
| 3673 | + <relation> | |
| 3674 | + <id>10</id> | |
| 3675 | + <source>2</source> | |
| 3676 | + <target>14</target> | |
| 3677 | + <child_cardinality>1..n</child_cardinality> | |
| 3678 | + <parent_cardinality>1</parent_cardinality> | |
| 3679 | + <reference_for_pk>true</reference_for_pk> | |
| 3680 | + <name></name> | |
| 3681 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 3682 | + <on_update_action>RESTRICT</on_update_action> | |
| 3683 | + <source_xp>-1</source_xp> | |
| 3684 | + <source_yp>-1</source_yp> | |
| 3685 | + <target_xp>-1</target_xp> | |
| 3686 | + <target_yp>-1</target_yp> | |
| 3687 | + <referenced_column>null</referenced_column> | |
| 3688 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 3689 | + </relation> | |
| 3690 | + <relation> | |
| 3691 | + <id>11</id> | |
| 3692 | + <source>4</source> | |
| 3693 | + <target>14</target> | |
| 3694 | + <child_cardinality>1..n</child_cardinality> | |
| 3695 | + <parent_cardinality>1</parent_cardinality> | |
| 3696 | + <reference_for_pk>true</reference_for_pk> | |
| 3697 | + <name></name> | |
| 3698 | + <on_delete_action>RESTRICT</on_delete_action> | |
| 3699 | + <on_update_action>RESTRICT</on_update_action> | |
| 3700 | + <source_xp>-1</source_xp> | |
| 3701 | + <source_yp>-1</source_yp> | |
| 3702 | + <target_xp>-1</target_xp> | |
| 3703 | + <target_yp>-1</target_yp> | |
| 3704 | + <referenced_column>null</referenced_column> | |
| 3705 | + <referenced_complex_unique_key>null</referenced_complex_unique_key> | |
| 3706 | + </relation> | |
| 3707 | + <relation> | |
| 3732 | 3708 | <id>12</id> |
| 3733 | - <source>12</source> | |
| 3734 | - <target>13</target> | |
| 3709 | + <source>11</source> | |
| 3710 | + <target>14</target> | |
| 3735 | 3711 | <child_cardinality>1..n</child_cardinality> |
| 3736 | 3712 | <parent_cardinality>1</parent_cardinality> |
| 3737 | 3713 | <reference_for_pk>true</reference_for_pk> |
| ... | ... | @@ -3746,16 +3722,16 @@ |
| 3746 | 3722 | <referenced_complex_unique_key>null</referenced_complex_unique_key> |
| 3747 | 3723 | </relation> |
| 3748 | 3724 | </connections> |
| 3749 | - <physical_name>i3geoestat_agregaregiao</physical_name> | |
| 3750 | - <logical_name>i3geoestat_agregaregiao</logical_name> | |
| 3751 | - <description></description> | |
| 3725 | + <physical_name>i3geoestat_medida_variavel</physical_name> | |
| 3726 | + <logical_name>i3geoestat_medida_variavel</logical_name> | |
| 3727 | + <description>Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente</description> | |
| 3752 | 3728 | <constraint></constraint> |
| 3753 | 3729 | <primary_key_name></primary_key_name> |
| 3754 | 3730 | <option></option> |
| 3755 | 3731 | <columns> |
| 3756 | 3732 | <normal_column> |
| 3757 | - <word_id>26</word_id> | |
| 3758 | - <id>67</id> | |
| 3733 | + <word_id>32</word_id> | |
| 3734 | + <id>65</id> | |
| 3759 | 3735 | <description></description> |
| 3760 | 3736 | <unique_key_name></unique_key_name> |
| 3761 | 3737 | <logical_name></logical_name> |
| ... | ... | @@ -3786,9 +3762,75 @@ |
| 3786 | 3762 | </sequence> |
| 3787 | 3763 | </normal_column> |
| 3788 | 3764 | <normal_column> |
| 3765 | + <id>66</id> | |
| 3766 | + <referenced_column>0</referenced_column> | |
| 3767 | + <relation>10</relation> | |
| 3768 | + <description></description> | |
| 3769 | + <unique_key_name></unique_key_name> | |
| 3770 | + <logical_name></logical_name> | |
| 3771 | + <physical_name></physical_name> | |
| 3772 | + <type>integer</type> | |
| 3773 | + <constraint></constraint> | |
| 3774 | + <default_value></default_value> | |
| 3775 | + <auto_increment>false</auto_increment> | |
| 3776 | + <foreign_key>true</foreign_key> | |
| 3777 | + <not_null>false</not_null> | |
| 3778 | + <primary_key>false</primary_key> | |
| 3779 | + <unique_key>false</unique_key> | |
| 3780 | + <character_set></character_set> | |
| 3781 | + <collation></collation> | |
| 3782 | + <sequence> | |
| 3783 | + <name></name> | |
| 3784 | + <schema></schema> | |
| 3785 | + <increment></increment> | |
| 3786 | + <min_value></min_value> | |
| 3787 | + <max_value></max_value> | |
| 3788 | + <start></start> | |
| 3789 | + <cache></cache> | |
| 3790 | + <cycle>false</cycle> | |
| 3791 | + <order>false</order> | |
| 3792 | + <description></description> | |
| 3793 | + <data_type></data_type> | |
| 3794 | + <decimal_size>0</decimal_size> | |
| 3795 | + </sequence> | |
| 3796 | + </normal_column> | |
| 3797 | + <normal_column> | |
| 3798 | + <id>67</id> | |
| 3799 | + <referenced_column>5</referenced_column> | |
| 3800 | + <relation>8</relation> | |
| 3801 | + <description></description> | |
| 3802 | + <unique_key_name></unique_key_name> | |
| 3803 | + <logical_name></logical_name> | |
| 3804 | + <physical_name></physical_name> | |
| 3805 | + <type>integer</type> | |
| 3806 | + <constraint></constraint> | |
| 3807 | + <default_value></default_value> | |
| 3808 | + <auto_increment>false</auto_increment> | |
| 3809 | + <foreign_key>true</foreign_key> | |
| 3810 | + <not_null>false</not_null> | |
| 3811 | + <primary_key>false</primary_key> | |
| 3812 | + <unique_key>false</unique_key> | |
| 3813 | + <character_set></character_set> | |
| 3814 | + <collation></collation> | |
| 3815 | + <sequence> | |
| 3816 | + <name></name> | |
| 3817 | + <schema></schema> | |
| 3818 | + <increment></increment> | |
| 3819 | + <min_value></min_value> | |
| 3820 | + <max_value></max_value> | |
| 3821 | + <start></start> | |
| 3822 | + <cache></cache> | |
| 3823 | + <cycle>false</cycle> | |
| 3824 | + <order>false</order> | |
| 3825 | + <description></description> | |
| 3826 | + <data_type></data_type> | |
| 3827 | + <decimal_size>0</decimal_size> | |
| 3828 | + </sequence> | |
| 3829 | + </normal_column> | |
| 3830 | + <normal_column> | |
| 3789 | 3831 | <id>68</id> |
| 3790 | - <referenced_column>55</referenced_column> | |
| 3791 | - <relation>12</relation> | |
| 3832 | + <referenced_column>8</referenced_column> | |
| 3833 | + <relation>11</relation> | |
| 3792 | 3834 | <description></description> |
| 3793 | 3835 | <unique_key_name></unique_key_name> |
| 3794 | 3836 | <logical_name></logical_name> |
| ... | ... | @@ -3819,8 +3861,9 @@ |
| 3819 | 3861 | </sequence> |
| 3820 | 3862 | </normal_column> |
| 3821 | 3863 | <normal_column> |
| 3822 | - <word_id>5</word_id> | |
| 3823 | 3864 | <id>69</id> |
| 3865 | + <referenced_column>43</referenced_column> | |
| 3866 | + <relation>12</relation> | |
| 3824 | 3867 | <description></description> |
| 3825 | 3868 | <unique_key_name></unique_key_name> |
| 3826 | 3869 | <logical_name></logical_name> |
| ... | ... | @@ -3829,7 +3872,7 @@ |
| 3829 | 3872 | <constraint></constraint> |
| 3830 | 3873 | <default_value></default_value> |
| 3831 | 3874 | <auto_increment>false</auto_increment> |
| 3832 | - <foreign_key>false</foreign_key> | |
| 3875 | + <foreign_key>true</foreign_key> | |
| 3833 | 3876 | <not_null>false</not_null> |
| 3834 | 3877 | <primary_key>false</primary_key> |
| 3835 | 3878 | <unique_key>false</unique_key> |
| ... | ... | @@ -3851,17 +3894,18 @@ |
| 3851 | 3894 | </sequence> |
| 3852 | 3895 | </normal_column> |
| 3853 | 3896 | <normal_column> |
| 3854 | - <word_id>12</word_id> | |
| 3855 | 3897 | <id>70</id> |
| 3898 | + <referenced_column>59</referenced_column> | |
| 3899 | + <relation>9</relation> | |
| 3856 | 3900 | <description></description> |
| 3857 | 3901 | <unique_key_name></unique_key_name> |
| 3858 | 3902 | <logical_name></logical_name> |
| 3859 | 3903 | <physical_name></physical_name> |
| 3860 | - <type>text</type> | |
| 3904 | + <type>integer</type> | |
| 3861 | 3905 | <constraint></constraint> |
| 3862 | 3906 | <default_value></default_value> |
| 3863 | 3907 | <auto_increment>false</auto_increment> |
| 3864 | - <foreign_key>false</foreign_key> | |
| 3908 | + <foreign_key>true</foreign_key> | |
| 3865 | 3909 | <not_null>false</not_null> |
| 3866 | 3910 | <primary_key>false</primary_key> |
| 3867 | 3911 | <unique_key>false</unique_key> |
| ... | ... | @@ -3882,52 +3926,21 @@ |
| 3882 | 3926 | <decimal_size>0</decimal_size> |
| 3883 | 3927 | </sequence> |
| 3884 | 3928 | </normal_column> |
| 3885 | - </columns> | |
| 3886 | - <indexes> | |
| 3887 | - </indexes> | |
| 3888 | - <complex_unique_key_list> | |
| 3889 | - </complex_unique_key_list> | |
| 3890 | - <table_properties> | |
| 3891 | - <schema></schema> | |
| 3892 | - </table_properties> | |
| 3893 | - </table> | |
| 3894 | - <table> | |
| 3895 | - <id>14</id> | |
| 3896 | - <height>170</height> | |
| 3897 | - <width>292</width> | |
| 3898 | - <font_name>Ubuntu</font_name> | |
| 3899 | - <font_size>9</font_size> | |
| 3900 | - <x>8</x> | |
| 3901 | - <y>499</y> | |
| 3902 | - <color> | |
| 3903 | - <r>255</r> | |
| 3904 | - <g>165</g> | |
| 3905 | - <b>0</b> | |
| 3906 | - </color> | |
| 3907 | - <connections> | |
| 3908 | - </connections> | |
| 3909 | - <physical_name>i3geoestat_conexao</physical_name> | |
| 3910 | - <logical_name>i3geoestat_conexao</logical_name> | |
| 3911 | - <description>Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados
Código 0 indica que será utilizada a conexão padrão</description> | |
| 3912 | - <constraint></constraint> | |
| 3913 | - <primary_key_name></primary_key_name> | |
| 3914 | - <option></option> | |
| 3915 | - <columns> | |
| 3916 | 3929 | <normal_column> |
| 3917 | - <word_id>2</word_id> | |
| 3930 | + <word_id>21</word_id> | |
| 3918 | 3931 | <id>71</id> |
| 3919 | 3932 | <description></description> |
| 3920 | 3933 | <unique_key_name></unique_key_name> |
| 3921 | 3934 | <logical_name></logical_name> |
| 3922 | 3935 | <physical_name></physical_name> |
| 3923 | - <type>integer</type> | |
| 3936 | + <type>text</type> | |
| 3924 | 3937 | <constraint></constraint> |
| 3925 | 3938 | <default_value></default_value> |
| 3926 | - <auto_increment>true</auto_increment> | |
| 3939 | + <auto_increment>false</auto_increment> | |
| 3927 | 3940 | <foreign_key>false</foreign_key> |
| 3928 | - <not_null>true</not_null> | |
| 3929 | - <primary_key>true</primary_key> | |
| 3930 | - <unique_key>true</unique_key> | |
| 3941 | + <not_null>false</not_null> | |
| 3942 | + <primary_key>false</primary_key> | |
| 3943 | + <unique_key>false</unique_key> | |
| 3931 | 3944 | <character_set></character_set> |
| 3932 | 3945 | <collation></collation> |
| 3933 | 3946 | <sequence> |
| ... | ... | @@ -3946,7 +3959,7 @@ |
| 3946 | 3959 | </sequence> |
| 3947 | 3960 | </normal_column> |
| 3948 | 3961 | <normal_column> |
| 3949 | - <word_id>1</word_id> | |
| 3962 | + <word_id>57</word_id> | |
| 3950 | 3963 | <id>72</id> |
| 3951 | 3964 | <description></description> |
| 3952 | 3965 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -3978,7 +3991,7 @@ |
| 3978 | 3991 | </sequence> |
| 3979 | 3992 | </normal_column> |
| 3980 | 3993 | <normal_column> |
| 3981 | - <word_id>24</word_id> | |
| 3994 | + <word_id>15</word_id> | |
| 3982 | 3995 | <id>73</id> |
| 3983 | 3996 | <description></description> |
| 3984 | 3997 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -4010,7 +4023,7 @@ |
| 4010 | 4023 | </sequence> |
| 4011 | 4024 | </normal_column> |
| 4012 | 4025 | <normal_column> |
| 4013 | - <word_id>51</word_id> | |
| 4026 | + <word_id>11</word_id> | |
| 4014 | 4027 | <id>74</id> |
| 4015 | 4028 | <description></description> |
| 4016 | 4029 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -4042,7 +4055,7 @@ |
| 4042 | 4055 | </sequence> |
| 4043 | 4056 | </normal_column> |
| 4044 | 4057 | <normal_column> |
| 4045 | - <word_id>61</word_id> | |
| 4058 | + <word_id>24</word_id> | |
| 4046 | 4059 | <id>75</id> |
| 4047 | 4060 | <description></description> |
| 4048 | 4061 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -4074,7 +4087,7 @@ |
| 4074 | 4087 | </sequence> |
| 4075 | 4088 | </normal_column> |
| 4076 | 4089 | <normal_column> |
| 4077 | - <word_id>52</word_id> | |
| 4090 | + <word_id>43</word_id> | |
| 4078 | 4091 | <id>76</id> |
| 4079 | 4092 | <description></description> |
| 4080 | 4093 | <unique_key_name></unique_key_name> |
| ... | ... | @@ -4105,6 +4118,38 @@ |
| 4105 | 4118 | <decimal_size>0</decimal_size> |
| 4106 | 4119 | </sequence> |
| 4107 | 4120 | </normal_column> |
| 4121 | + <normal_column> | |
| 4122 | + <word_id>12</word_id> | |
| 4123 | + <id>77</id> | |
| 4124 | + <description></description> | |
| 4125 | + <unique_key_name></unique_key_name> | |
| 4126 | + <logical_name></logical_name> | |
| 4127 | + <physical_name></physical_name> | |
| 4128 | + <type>text</type> | |
| 4129 | + <constraint></constraint> | |
| 4130 | + <default_value></default_value> | |
| 4131 | + <auto_increment>false</auto_increment> | |
| 4132 | + <foreign_key>false</foreign_key> | |
| 4133 | + <not_null>false</not_null> | |
| 4134 | + <primary_key>false</primary_key> | |
| 4135 | + <unique_key>false</unique_key> | |
| 4136 | + <character_set></character_set> | |
| 4137 | + <collation></collation> | |
| 4138 | + <sequence> | |
| 4139 | + <name></name> | |
| 4140 | + <schema></schema> | |
| 4141 | + <increment></increment> | |
| 4142 | + <min_value></min_value> | |
| 4143 | + <max_value></max_value> | |
| 4144 | + <start></start> | |
| 4145 | + <cache></cache> | |
| 4146 | + <cycle>false</cycle> | |
| 4147 | + <order>false</order> | |
| 4148 | + <description></description> | |
| 4149 | + <data_type></data_type> | |
| 4150 | + <decimal_size>0</decimal_size> | |
| 4151 | + </sequence> | |
| 4152 | + </normal_column> | |
| 4108 | 4153 | </columns> |
| 4109 | 4154 | <indexes> |
| 4110 | 4155 | </indexes> |
| ... | ... | @@ -4122,57 +4167,57 @@ |
| 4122 | 4167 | <name>metaestat_basededados</name> |
| 4123 | 4168 | <export_order>0</export_order> |
| 4124 | 4169 | <table_test_data> |
| 4125 | - <table_id>14</table_id> | |
| 4170 | + <table_id>13</table_id> | |
| 4126 | 4171 | <direct_test_data> |
| 4127 | 4172 | <data> |
| 4128 | 4173 | <column_data> |
| 4129 | - <column_id>71</column_id> | |
| 4174 | + <column_id>59</column_id> | |
| 4130 | 4175 | <value>1</value> |
| 4131 | 4176 | </column_data> |
| 4132 | 4177 | <column_data> |
| 4133 | - <column_id>72</column_id> | |
| 4178 | + <column_id>60</column_id> | |
| 4134 | 4179 | <value>geosaude</value> |
| 4135 | 4180 | </column_data> |
| 4136 | 4181 | <column_data> |
| 4137 | - <column_id>73</column_id> | |
| 4182 | + <column_id>61</column_id> | |
| 4138 | 4183 | <value>localhost</value> |
| 4139 | 4184 | </column_data> |
| 4140 | 4185 | <column_data> |
| 4141 | - <column_id>74</column_id> | |
| 4186 | + <column_id>62</column_id> | |
| 4142 | 4187 | <value>5432</value> |
| 4143 | 4188 | </column_data> |
| 4144 | 4189 | <column_data> |
| 4145 | - <column_id>75</column_id> | |
| 4190 | + <column_id>63</column_id> | |
| 4146 | 4191 | <value>postgres</value> |
| 4147 | 4192 | </column_data> |
| 4148 | 4193 | <column_data> |
| 4149 | - <column_id>76</column_id> | |
| 4194 | + <column_id>64</column_id> | |
| 4150 | 4195 | <value>postgres</value> |
| 4151 | 4196 | </column_data> |
| 4152 | 4197 | </data> |
| 4153 | 4198 | <data> |
| 4154 | 4199 | <column_data> |
| 4155 | - <column_id>71</column_id> | |
| 4200 | + <column_id>59</column_id> | |
| 4156 | 4201 | <value>0</value> |
| 4157 | 4202 | </column_data> |
| 4158 | 4203 | <column_data> |
| 4159 | - <column_id>72</column_id> | |
| 4204 | + <column_id>60</column_id> | |
| 4160 | 4205 | <value>i3geo_metaestat</value> |
| 4161 | 4206 | </column_data> |
| 4162 | 4207 | <column_data> |
| 4163 | - <column_id>73</column_id> | |
| 4208 | + <column_id>61</column_id> | |
| 4164 | 4209 | <value>localhost</value> |
| 4165 | 4210 | </column_data> |
| 4166 | 4211 | <column_data> |
| 4167 | - <column_id>74</column_id> | |
| 4212 | + <column_id>62</column_id> | |
| 4168 | 4213 | <value>5432</value> |
| 4169 | 4214 | </column_data> |
| 4170 | 4215 | <column_data> |
| 4171 | - <column_id>75</column_id> | |
| 4216 | + <column_id>63</column_id> | |
| 4172 | 4217 | <value>postgres</value> |
| 4173 | 4218 | </column_data> |
| 4174 | 4219 | <column_data> |
| 4175 | - <column_id>76</column_id> | |
| 4220 | + <column_id>64</column_id> | |
| 4176 | 4221 | <value>postgres</value> |
| 4177 | 4222 | </column_data> |
| 4178 | 4223 | </data> |
| ... | ... | @@ -4181,7 +4226,7 @@ |
| 4181 | 4226 | <test_data_num>0</test_data_num> |
| 4182 | 4227 | <data_def_list> |
| 4183 | 4228 | <data_def> |
| 4184 | - <column_id>71</column_id> | |
| 4229 | + <column_id>59</column_id> | |
| 4185 | 4230 | <type>Format</type> |
| 4186 | 4231 | <repeat_num>1</repeat_num> |
| 4187 | 4232 | <template>%</template> |
| ... | ... | @@ -4196,7 +4241,7 @@ |
| 4196 | 4241 | </modified_values> |
| 4197 | 4242 | </data_def> |
| 4198 | 4243 | <data_def> |
| 4199 | - <column_id>72</column_id> | |
| 4244 | + <column_id>60</column_id> | |
| 4200 | 4245 | <type>Format</type> |
| 4201 | 4246 | <repeat_num>1</repeat_num> |
| 4202 | 4247 | <template>database%</template> |
| ... | ... | @@ -4211,7 +4256,7 @@ |
| 4211 | 4256 | </modified_values> |
| 4212 | 4257 | </data_def> |
| 4213 | 4258 | <data_def> |
| 4214 | - <column_id>73</column_id> | |
| 4259 | + <column_id>61</column_id> | |
| 4215 | 4260 | <type>Format</type> |
| 4216 | 4261 | <repeat_num>1</repeat_num> |
| 4217 | 4262 | <template>host%</template> |
| ... | ... | @@ -4226,7 +4271,7 @@ |
| 4226 | 4271 | </modified_values> |
| 4227 | 4272 | </data_def> |
| 4228 | 4273 | <data_def> |
| 4229 | - <column_id>74</column_id> | |
| 4274 | + <column_id>62</column_id> | |
| 4230 | 4275 | <type>Format</type> |
| 4231 | 4276 | <repeat_num>1</repeat_num> |
| 4232 | 4277 | <template>porta%</template> |
| ... | ... | @@ -4241,7 +4286,7 @@ |
| 4241 | 4286 | </modified_values> |
| 4242 | 4287 | </data_def> |
| 4243 | 4288 | <data_def> |
| 4244 | - <column_id>75</column_id> | |
| 4289 | + <column_id>63</column_id> | |
| 4245 | 4290 | <type>Format</type> |
| 4246 | 4291 | <repeat_num>1</repeat_num> |
| 4247 | 4292 | <template>usuario%</template> |
| ... | ... | @@ -4256,7 +4301,7 @@ |
| 4256 | 4301 | </modified_values> |
| 4257 | 4302 | </data_def> |
| 4258 | 4303 | <data_def> |
| 4259 | - <column_id>76</column_id> | |
| 4304 | + <column_id>64</column_id> | |
| 4260 | 4305 | <type>Format</type> |
| 4261 | 4306 | <repeat_num>1</repeat_num> |
| 4262 | 4307 | <template>senha%</template> |
| ... | ... | @@ -4385,155 +4430,155 @@ |
| 4385 | 4430 | </repeat_test_data> |
| 4386 | 4431 | </table_test_data> |
| 4387 | 4432 | <table_test_data> |
| 4388 | - <table_id>12</table_id> | |
| 4433 | + <table_id>11</table_id> | |
| 4389 | 4434 | <direct_test_data> |
| 4390 | 4435 | <data> |
| 4391 | 4436 | <column_data> |
| 4392 | - <column_id>55</column_id> | |
| 4437 | + <column_id>43</column_id> | |
| 4393 | 4438 | <value>2</value> |
| 4394 | 4439 | </column_data> |
| 4395 | 4440 | <column_data> |
| 4396 | - <column_id>56</column_id> | |
| 4441 | + <column_id>44</column_id> | |
| 4397 | 4442 | <value>Município</value> |
| 4398 | 4443 | </column_data> |
| 4399 | 4444 | <column_data> |
| 4400 | - <column_id>57</column_id> | |
| 4445 | + <column_id>45</column_id> | |
| 4401 | 4446 | <value>Limites municipais</value> |
| 4402 | 4447 | </column_data> |
| 4403 | 4448 | <column_data> |
| 4404 | - <column_id>58</column_id> | |
| 4449 | + <column_id>46</column_id> | |
| 4405 | 4450 | <value>1</value> |
| 4406 | 4451 | </column_data> |
| 4407 | 4452 | <column_data> |
| 4408 | - <column_id>59</column_id> | |
| 4453 | + <column_id>47</column_id> | |
| 4409 | 4454 | <value>i3geo_metaestat</value> |
| 4410 | 4455 | </column_data> |
| 4411 | 4456 | <column_data> |
| 4412 | - <column_id>60</column_id> | |
| 4457 | + <column_id>48</column_id> | |
| 4413 | 4458 | <value>municipios</value> |
| 4414 | 4459 | </column_data> |
| 4415 | 4460 | <column_data> |
| 4416 | - <column_id>61</column_id> | |
| 4461 | + <column_id>49</column_id> | |
| 4417 | 4462 | <value>the_geom</value> |
| 4418 | 4463 | </column_data> |
| 4419 | 4464 | <column_data> |
| 4420 | - <column_id>62</column_id> | |
| 4465 | + <column_id>50</column_id> | |
| 4421 | 4466 | <value>2010</value> |
| 4422 | 4467 | </column_data> |
| 4423 | 4468 | <column_data> |
| 4424 | - <column_id>63</column_id> | |
| 4469 | + <column_id>51</column_id> | |
| 4425 | 4470 | <value>co_municipio</value> |
| 4426 | 4471 | </column_data> |
| 4427 | 4472 | <column_data> |
| 4428 | - <column_id>64</column_id> | |
| 4473 | + <column_id>52</column_id> | |
| 4429 | 4474 | <value>no_cidade</value> |
| 4430 | 4475 | </column_data> |
| 4431 | 4476 | <column_data> |
| 4432 | - <column_id>65</column_id> | |
| 4477 | + <column_id>53</column_id> | |
| 4433 | 4478 | <value>4326</value> |
| 4434 | 4479 | </column_data> |
| 4435 | 4480 | <column_data> |
| 4436 | - <column_id>66</column_id> | |
| 4481 | + <column_id>54</column_id> | |
| 4437 | 4482 | <value>the_geom2</value> |
| 4438 | 4483 | </column_data> |
| 4439 | 4484 | </data> |
| 4440 | 4485 | <data> |
| 4441 | 4486 | <column_data> |
| 4442 | - <column_id>55</column_id> | |
| 4487 | + <column_id>43</column_id> | |
| 4443 | 4488 | <value>3</value> |
| 4444 | 4489 | </column_data> |
| 4445 | 4490 | <column_data> |
| 4446 | - <column_id>56</column_id> | |
| 4491 | + <column_id>44</column_id> | |
| 4447 | 4492 | <value>Estado</value> |
| 4448 | 4493 | </column_data> |
| 4449 | 4494 | <column_data> |
| 4450 | - <column_id>57</column_id> | |
| 4495 | + <column_id>45</column_id> | |
| 4451 | 4496 | <value>Limites estaduais</value> |
| 4452 | 4497 | </column_data> |
| 4453 | 4498 | <column_data> |
| 4454 | - <column_id>58</column_id> | |
| 4499 | + <column_id>46</column_id> | |
| 4455 | 4500 | <value>1</value> |
| 4456 | 4501 | </column_data> |
| 4457 | 4502 | <column_data> |
| 4458 | - <column_id>59</column_id> | |
| 4503 | + <column_id>47</column_id> | |
| 4459 | 4504 | <value>i3geo_metaestat</value> |
| 4460 | 4505 | </column_data> |
| 4461 | 4506 | <column_data> |
| 4462 | - <column_id>60</column_id> | |
| 4507 | + <column_id>48</column_id> | |
| 4463 | 4508 | <value>uf</value> |
| 4464 | 4509 | </column_data> |
| 4465 | 4510 | <column_data> |
| 4466 | - <column_id>61</column_id> | |
| 4511 | + <column_id>49</column_id> | |
| 4467 | 4512 | <value>the_geom</value> |
| 4468 | 4513 | </column_data> |
| 4469 | 4514 | <column_data> |
| 4470 | - <column_id>62</column_id> | |
| 4515 | + <column_id>50</column_id> | |
| 4471 | 4516 | <value>2010</value> |
| 4472 | 4517 | </column_data> |
| 4473 | 4518 | <column_data> |
| 4474 | - <column_id>63</column_id> | |
| 4519 | + <column_id>51</column_id> | |
| 4475 | 4520 | <value>co_uf</value> |
| 4476 | 4521 | </column_data> |
| 4477 | 4522 | <column_data> |
| 4478 | - <column_id>64</column_id> | |
| 4523 | + <column_id>52</column_id> | |
| 4479 | 4524 | <value>no_uf</value> |
| 4480 | 4525 | </column_data> |
| 4481 | 4526 | <column_data> |
| 4482 | - <column_id>65</column_id> | |
| 4527 | + <column_id>53</column_id> | |
| 4483 | 4528 | <value>4326</value> |
| 4484 | 4529 | </column_data> |
| 4485 | 4530 | <column_data> |
| 4486 | - <column_id>66</column_id> | |
| 4531 | + <column_id>54</column_id> | |
| 4487 | 4532 | <value>the_geom</value> |
| 4488 | 4533 | </column_data> |
| 4489 | 4534 | </data> |
| 4490 | 4535 | <data> |
| 4491 | 4536 | <column_data> |
| 4492 | - <column_id>55</column_id> | |
| 4537 | + <column_id>43</column_id> | |
| 4493 | 4538 | <value>1</value> |
| 4494 | 4539 | </column_data> |
| 4495 | 4540 | <column_data> |
| 4496 | - <column_id>56</column_id> | |
| 4541 | + <column_id>44</column_id> | |
| 4497 | 4542 | <value>Bairro</value> |
| 4498 | 4543 | </column_data> |
| 4499 | 4544 | <column_data> |
| 4500 | - <column_id>57</column_id> | |
| 4545 | + <column_id>45</column_id> | |
| 4501 | 4546 | <value>Limites de bairros</value> |
| 4502 | 4547 | </column_data> |
| 4503 | 4548 | <column_data> |
| 4504 | - <column_id>58</column_id> | |
| 4549 | + <column_id>46</column_id> | |
| 4505 | 4550 | <value>1</value> |
| 4506 | 4551 | </column_data> |
| 4507 | 4552 | <column_data> |
| 4508 | - <column_id>59</column_id> | |
| 4553 | + <column_id>47</column_id> | |
| 4509 | 4554 | <value>i3geo_metaestat</value> |
| 4510 | 4555 | </column_data> |
| 4511 | 4556 | <column_data> |
| 4512 | - <column_id>60</column_id> | |
| 4557 | + <column_id>48</column_id> | |
| 4513 | 4558 | <value>bairros</value> |
| 4514 | 4559 | </column_data> |
| 4515 | 4560 | <column_data> |
| 4516 | - <column_id>61</column_id> | |
| 4561 | + <column_id>49</column_id> | |
| 4517 | 4562 | <value>the_geom</value> |
| 4518 | 4563 | </column_data> |
| 4519 | 4564 | <column_data> |
| 4520 | - <column_id>62</column_id> | |
| 4565 | + <column_id>50</column_id> | |
| 4521 | 4566 | <value>2010</value> |
| 4522 | 4567 | </column_data> |
| 4523 | 4568 | <column_data> |
| 4524 | - <column_id>63</column_id> | |
| 4569 | + <column_id>51</column_id> | |
| 4525 | 4570 | <value>co_bairro</value> |
| 4526 | 4571 | </column_data> |
| 4527 | 4572 | <column_data> |
| 4528 | - <column_id>64</column_id> | |
| 4573 | + <column_id>52</column_id> | |
| 4529 | 4574 | <value>no_bairro</value> |
| 4530 | 4575 | </column_data> |
| 4531 | 4576 | <column_data> |
| 4532 | - <column_id>65</column_id> | |
| 4577 | + <column_id>53</column_id> | |
| 4533 | 4578 | <value>4326</value> |
| 4534 | 4579 | </column_data> |
| 4535 | 4580 | <column_data> |
| 4536 | - <column_id>66</column_id> | |
| 4581 | + <column_id>54</column_id> | |
| 4537 | 4582 | <value>the_geom</value> |
| 4538 | 4583 | </column_data> |
| 4539 | 4584 | </data> |
| ... | ... | @@ -4542,7 +4587,7 @@ |
| 4542 | 4587 | <test_data_num>0</test_data_num> |
| 4543 | 4588 | <data_def_list> |
| 4544 | 4589 | <data_def> |
| 4545 | - <column_id>55</column_id> | |
| 4590 | + <column_id>43</column_id> | |
| 4546 | 4591 | <type>Format</type> |
| 4547 | 4592 | <repeat_num>1</repeat_num> |
| 4548 | 4593 | <template>%</template> |
| ... | ... | @@ -4557,7 +4602,7 @@ |
| 4557 | 4602 | </modified_values> |
| 4558 | 4603 | </data_def> |
| 4559 | 4604 | <data_def> |
| 4560 | - <column_id>56</column_id> | |
| 4605 | + <column_id>44</column_id> | |
| 4561 | 4606 | <type>Format</type> |
| 4562 | 4607 | <repeat_num>1</repeat_num> |
| 4563 | 4608 | <template>nome_tipo_regiao%</template> |
| ... | ... | @@ -4572,7 +4617,7 @@ |
| 4572 | 4617 | </modified_values> |
| 4573 | 4618 | </data_def> |
| 4574 | 4619 | <data_def> |
| 4575 | - <column_id>57</column_id> | |
| 4620 | + <column_id>45</column_id> | |
| 4576 | 4621 | <type>Format</type> |
| 4577 | 4622 | <repeat_num>1</repeat_num> |
| 4578 | 4623 | <template>descricao_tipo_regiao%</template> |
| ... | ... | @@ -4587,7 +4632,7 @@ |
| 4587 | 4632 | </modified_values> |
| 4588 | 4633 | </data_def> |
| 4589 | 4634 | <data_def> |
| 4590 | - <column_id>58</column_id> | |
| 4635 | + <column_id>46</column_id> | |
| 4591 | 4636 | <type>Foreign Key</type> |
| 4592 | 4637 | <repeat_num>1</repeat_num> |
| 4593 | 4638 | <template>%</template> |
| ... | ... | @@ -4602,7 +4647,7 @@ |
| 4602 | 4647 | </modified_values> |
| 4603 | 4648 | </data_def> |
| 4604 | 4649 | <data_def> |
| 4605 | - <column_id>59</column_id> | |
| 4650 | + <column_id>47</column_id> | |
| 4606 | 4651 | <type>Format</type> |
| 4607 | 4652 | <repeat_num>1</repeat_num> |
| 4608 | 4653 | <template>esquemadb%</template> |
| ... | ... | @@ -4617,7 +4662,7 @@ |
| 4617 | 4662 | </modified_values> |
| 4618 | 4663 | </data_def> |
| 4619 | 4664 | <data_def> |
| 4620 | - <column_id>60</column_id> | |
| 4665 | + <column_id>48</column_id> | |
| 4621 | 4666 | <type>Format</type> |
| 4622 | 4667 | <repeat_num>1</repeat_num> |
| 4623 | 4668 | <template>tabela%</template> |
| ... | ... | @@ -4632,7 +4677,7 @@ |
| 4632 | 4677 | </modified_values> |
| 4633 | 4678 | </data_def> |
| 4634 | 4679 | <data_def> |
| 4635 | - <column_id>61</column_id> | |
| 4680 | + <column_id>49</column_id> | |
| 4636 | 4681 | <type>Format</type> |
| 4637 | 4682 | <repeat_num>1</repeat_num> |
| 4638 | 4683 | <template>colunageo%</template> |
| ... | ... | @@ -4647,7 +4692,7 @@ |
| 4647 | 4692 | </modified_values> |
| 4648 | 4693 | </data_def> |
| 4649 | 4694 | <data_def> |
| 4650 | - <column_id>62</column_id> | |
| 4695 | + <column_id>50</column_id> | |
| 4651 | 4696 | <type>Format</type> |
| 4652 | 4697 | <repeat_num>1</repeat_num> |
| 4653 | 4698 | <template>data%</template> |
| ... | ... | @@ -4662,7 +4707,7 @@ |
| 4662 | 4707 | </modified_values> |
| 4663 | 4708 | </data_def> |
| 4664 | 4709 | <data_def> |
| 4665 | - <column_id>63</column_id> | |
| 4710 | + <column_id>51</column_id> | |
| 4666 | 4711 | <type>Format</type> |
| 4667 | 4712 | <repeat_num>1</repeat_num> |
| 4668 | 4713 | <template>%</template> |
| ... | ... | @@ -4677,7 +4722,7 @@ |
| 4677 | 4722 | </modified_values> |
| 4678 | 4723 | </data_def> |
| 4679 | 4724 | <data_def> |
| 4680 | - <column_id>64</column_id> | |
| 4725 | + <column_id>52</column_id> | |
| 4681 | 4726 | <type>Format</type> |
| 4682 | 4727 | <repeat_num>1</repeat_num> |
| 4683 | 4728 | <template>colunanomeregiao%</template> |
| ... | ... | @@ -4692,7 +4737,7 @@ |
| 4692 | 4737 | </modified_values> |
| 4693 | 4738 | </data_def> |
| 4694 | 4739 | <data_def> |
| 4695 | - <column_id>65</column_id> | |
| 4740 | + <column_id>53</column_id> | |
| 4696 | 4741 | <type>Format</type> |
| 4697 | 4742 | <repeat_num>1</repeat_num> |
| 4698 | 4743 | <template>srid%</template> |
| ... | ... | @@ -4707,7 +4752,7 @@ |
| 4707 | 4752 | </modified_values> |
| 4708 | 4753 | </data_def> |
| 4709 | 4754 | <data_def> |
| 4710 | - <column_id>66</column_id> | |
| 4755 | + <column_id>54</column_id> | |
| 4711 | 4756 | <type>Format</type> |
| 4712 | 4757 | <repeat_num>1</repeat_num> |
| 4713 | 4758 | <template>colunacentroide%</template> |
| ... | ... | @@ -4832,64 +4877,68 @@ |
| 4832 | 4877 | </repeat_test_data> |
| 4833 | 4878 | </table_test_data> |
| 4834 | 4879 | <table_test_data> |
| 4835 | - <table_id>8</table_id> | |
| 4880 | + <table_id>14</table_id> | |
| 4836 | 4881 | <direct_test_data> |
| 4837 | 4882 | <data> |
| 4838 | 4883 | <column_data> |
| 4839 | - <column_id>31</column_id> | |
| 4884 | + <column_id>65</column_id> | |
| 4840 | 4885 | <value>1</value> |
| 4841 | 4886 | </column_data> |
| 4842 | 4887 | <column_data> |
| 4843 | - <column_id>32</column_id> | |
| 4888 | + <column_id>66</column_id> | |
| 4844 | 4889 | <value>1</value> |
| 4845 | 4890 | </column_data> |
| 4846 | 4891 | <column_data> |
| 4847 | - <column_id>33</column_id> | |
| 4892 | + <column_id>67</column_id> | |
| 4848 | 4893 | <value>2</value> |
| 4849 | 4894 | </column_data> |
| 4850 | 4895 | <column_data> |
| 4851 | - <column_id>34</column_id> | |
| 4896 | + <column_id>68</column_id> | |
| 4852 | 4897 | <value>1</value> |
| 4853 | 4898 | </column_data> |
| 4854 | 4899 | <column_data> |
| 4855 | - <column_id>35</column_id> | |
| 4900 | + <column_id>69</column_id> | |
| 4856 | 4901 | <value>2</value> |
| 4857 | 4902 | </column_data> |
| 4858 | 4903 | <column_data> |
| 4859 | - <column_id>36</column_id> | |
| 4904 | + <column_id>70</column_id> | |
| 4860 | 4905 | <value>1</value> |
| 4861 | 4906 | </column_data> |
| 4862 | 4907 | <column_data> |
| 4863 | - <column_id>37</column_id> | |
| 4908 | + <column_id>71</column_id> | |
| 4864 | 4909 | <value>dbdemografia</value> |
| 4865 | 4910 | </column_data> |
| 4866 | 4911 | <column_data> |
| 4867 | - <column_id>38</column_id> | |
| 4912 | + <column_id>72</column_id> | |
| 4868 | 4913 | <value>tb_demografia</value> |
| 4869 | 4914 | </column_data> |
| 4870 | 4915 | <column_data> |
| 4871 | - <column_id>39</column_id> | |
| 4916 | + <column_id>73</column_id> | |
| 4872 | 4917 | <value>nu_populacao</value> |
| 4873 | 4918 | </column_data> |
| 4874 | 4919 | <column_data> |
| 4875 | - <column_id>40</column_id> | |
| 4920 | + <column_id>74</column_id> | |
| 4876 | 4921 | <value>co_ibge</value> |
| 4877 | 4922 | </column_data> |
| 4878 | 4923 | <column_data> |
| 4879 | - <column_id>41</column_id> | |
| 4924 | + <column_id>75</column_id> | |
| 4880 | 4925 | <value></value> |
| 4881 | 4926 | </column_data> |
| 4882 | 4927 | <column_data> |
| 4883 | - <column_id>42</column_id> | |
| 4928 | + <column_id>76</column_id> | |
| 4884 | 4929 | <value>População residente</value> |
| 4885 | 4930 | </column_data> |
| 4931 | + <column_data> | |
| 4932 | + <column_id>77</column_id> | |
| 4933 | + <value></value> | |
| 4934 | + </column_data> | |
| 4886 | 4935 | </data> |
| 4887 | 4936 | </direct_test_data> |
| 4888 | 4937 | <repeat_test_data> |
| 4889 | 4938 | <test_data_num>0</test_data_num> |
| 4890 | 4939 | <data_def_list> |
| 4891 | 4940 | <data_def> |
| 4892 | - <column_id>31</column_id> | |
| 4941 | + <column_id>65</column_id> | |
| 4893 | 4942 | <type>Format</type> |
| 4894 | 4943 | <repeat_num>1</repeat_num> |
| 4895 | 4944 | <template>%</template> |
| ... | ... | @@ -4904,7 +4953,7 @@ |
| 4904 | 4953 | </modified_values> |
| 4905 | 4954 | </data_def> |
| 4906 | 4955 | <data_def> |
| 4907 | - <column_id>32</column_id> | |
| 4956 | + <column_id>66</column_id> | |
| 4908 | 4957 | <type>Foreign Key</type> |
| 4909 | 4958 | <repeat_num>1</repeat_num> |
| 4910 | 4959 | <template>%</template> |
| ... | ... | @@ -4919,7 +4968,7 @@ |
| 4919 | 4968 | </modified_values> |
| 4920 | 4969 | </data_def> |
| 4921 | 4970 | <data_def> |
| 4922 | - <column_id>33</column_id> | |
| 4971 | + <column_id>67</column_id> | |
| 4923 | 4972 | <type>Foreign Key</type> |
| 4924 | 4973 | <repeat_num>1</repeat_num> |
| 4925 | 4974 | <template>%</template> |
| ... | ... | @@ -4934,7 +4983,7 @@ |
| 4934 | 4983 | </modified_values> |
| 4935 | 4984 | </data_def> |
| 4936 | 4985 | <data_def> |
| 4937 | - <column_id>34</column_id> | |
| 4986 | + <column_id>68</column_id> | |
| 4938 | 4987 | <type>Foreign Key</type> |
| 4939 | 4988 | <repeat_num>1</repeat_num> |
| 4940 | 4989 | <template>%</template> |
| ... | ... | @@ -4949,7 +4998,7 @@ |
| 4949 | 4998 | </modified_values> |
| 4950 | 4999 | </data_def> |
| 4951 | 5000 | <data_def> |
| 4952 | - <column_id>35</column_id> | |
| 5001 | + <column_id>69</column_id> | |
| 4953 | 5002 | <type>Foreign Key</type> |
| 4954 | 5003 | <repeat_num>1</repeat_num> |
| 4955 | 5004 | <template>%</template> |
| ... | ... | @@ -4964,7 +5013,7 @@ |
| 4964 | 5013 | </modified_values> |
| 4965 | 5014 | </data_def> |
| 4966 | 5015 | <data_def> |
| 4967 | - <column_id>36</column_id> | |
| 5016 | + <column_id>70</column_id> | |
| 4968 | 5017 | <type>Foreign Key</type> |
| 4969 | 5018 | <repeat_num>1</repeat_num> |
| 4970 | 5019 | <template>%</template> |
| ... | ... | @@ -4979,7 +5028,7 @@ |
| 4979 | 5028 | </modified_values> |
| 4980 | 5029 | </data_def> |
| 4981 | 5030 | <data_def> |
| 4982 | - <column_id>37</column_id> | |
| 5031 | + <column_id>71</column_id> | |
| 4983 | 5032 | <type>Format</type> |
| 4984 | 5033 | <repeat_num>1</repeat_num> |
| 4985 | 5034 | <template>esquemadb%</template> |
| ... | ... | @@ -4994,7 +5043,7 @@ |
| 4994 | 5043 | </modified_values> |
| 4995 | 5044 | </data_def> |
| 4996 | 5045 | <data_def> |
| 4997 | - <column_id>38</column_id> | |
| 5046 | + <column_id>72</column_id> | |
| 4998 | 5047 | <type>Format</type> |
| 4999 | 5048 | <repeat_num>1</repeat_num> |
| 5000 | 5049 | <template>tabela%</template> |
| ... | ... | @@ -5009,7 +5058,7 @@ |
| 5009 | 5058 | </modified_values> |
| 5010 | 5059 | </data_def> |
| 5011 | 5060 | <data_def> |
| 5012 | - <column_id>39</column_id> | |
| 5061 | + <column_id>73</column_id> | |
| 5013 | 5062 | <type>Format</type> |
| 5014 | 5063 | <repeat_num>1</repeat_num> |
| 5015 | 5064 | <template>colunavalor%</template> |
| ... | ... | @@ -5024,7 +5073,7 @@ |
| 5024 | 5073 | </modified_values> |
| 5025 | 5074 | </data_def> |
| 5026 | 5075 | <data_def> |
| 5027 | - <column_id>40</column_id> | |
| 5076 | + <column_id>74</column_id> | |
| 5028 | 5077 | <type>Format</type> |
| 5029 | 5078 | <repeat_num>1</repeat_num> |
| 5030 | 5079 | <template>colunaidgeo_%</template> |
| ... | ... | @@ -5039,7 +5088,7 @@ |
| 5039 | 5088 | </modified_values> |
| 5040 | 5089 | </data_def> |
| 5041 | 5090 | <data_def> |
| 5042 | - <column_id>41</column_id> | |
| 5091 | + <column_id>75</column_id> | |
| 5043 | 5092 | <type>Format</type> |
| 5044 | 5093 | <repeat_num>1</repeat_num> |
| 5045 | 5094 | <template>filtro%</template> |
| ... | ... | @@ -5054,7 +5103,7 @@ |
| 5054 | 5103 | </modified_values> |
| 5055 | 5104 | </data_def> |
| 5056 | 5105 | <data_def> |
| 5057 | - <column_id>42</column_id> | |
| 5106 | + <column_id>76</column_id> | |
| 5058 | 5107 | <type>Format</type> |
| 5059 | 5108 | <repeat_num>1</repeat_num> |
| 5060 | 5109 | <template>nomemedida_%</template> |
| ... | ... | @@ -5068,35 +5117,50 @@ |
| 5068 | 5117 | <modified_values> |
| 5069 | 5118 | </modified_values> |
| 5070 | 5119 | </data_def> |
| 5120 | + <data_def> | |
| 5121 | + <column_id>77</column_id> | |
| 5122 | + <type>Format</type> | |
| 5123 | + <repeat_num>1</repeat_num> | |
| 5124 | + <template>colunaidunico%</template> | |
| 5125 | + <from>1</from> | |
| 5126 | + <to>100</to> | |
| 5127 | + <increment>1</increment> | |
| 5128 | + <select>colunaidunico1</select> | |
| 5129 | + <select>colunaidunico2</select> | |
| 5130 | + <select>colunaidunico3</select> | |
| 5131 | + <select>colunaidunico4</select> | |
| 5132 | + <modified_values> | |
| 5133 | + </modified_values> | |
| 5134 | + </data_def> | |
| 5071 | 5135 | </data_def_list> |
| 5072 | 5136 | </repeat_test_data> |
| 5073 | 5137 | </table_test_data> |
| 5074 | 5138 | <table_test_data> |
| 5075 | - <table_id>11</table_id> | |
| 5139 | + <table_id>10</table_id> | |
| 5076 | 5140 | <direct_test_data> |
| 5077 | 5141 | <data> |
| 5078 | 5142 | <column_data> |
| 5079 | - <column_id>49</column_id> | |
| 5143 | + <column_id>37</column_id> | |
| 5080 | 5144 | <value>1</value> |
| 5081 | 5145 | </column_data> |
| 5082 | 5146 | <column_data> |
| 5083 | - <column_id>50</column_id> | |
| 5147 | + <column_id>38</column_id> | |
| 5084 | 5148 | <value>nu_ano</value> |
| 5085 | 5149 | </column_data> |
| 5086 | 5150 | <column_data> |
| 5087 | - <column_id>51</column_id> | |
| 5151 | + <column_id>39</column_id> | |
| 5088 | 5152 | <value>ano</value> |
| 5089 | 5153 | </column_data> |
| 5090 | 5154 | <column_data> |
| 5091 | - <column_id>52</column_id> | |
| 5155 | + <column_id>40</column_id> | |
| 5092 | 5156 | <value></value> |
| 5093 | 5157 | </column_data> |
| 5094 | 5158 | <column_data> |
| 5095 | - <column_id>53</column_id> | |
| 5159 | + <column_id>41</column_id> | |
| 5096 | 5160 | <value>0</value> |
| 5097 | 5161 | </column_data> |
| 5098 | 5162 | <column_data> |
| 5099 | - <column_id>54</column_id> | |
| 5163 | + <column_id>42</column_id> | |
| 5100 | 5164 | <value>1</value> |
| 5101 | 5165 | </column_data> |
| 5102 | 5166 | </data> |
| ... | ... | @@ -5105,7 +5169,7 @@ |
| 5105 | 5169 | <test_data_num>0</test_data_num> |
| 5106 | 5170 | <data_def_list> |
| 5107 | 5171 | <data_def> |
| 5108 | - <column_id>49</column_id> | |
| 5172 | + <column_id>37</column_id> | |
| 5109 | 5173 | <type>Format</type> |
| 5110 | 5174 | <repeat_num>1</repeat_num> |
| 5111 | 5175 | <template>%</template> |
| ... | ... | @@ -5120,7 +5184,7 @@ |
| 5120 | 5184 | </modified_values> |
| 5121 | 5185 | </data_def> |
| 5122 | 5186 | <data_def> |
| 5123 | - <column_id>50</column_id> | |
| 5187 | + <column_id>38</column_id> | |
| 5124 | 5188 | <type>Format</type> |
| 5125 | 5189 | <repeat_num>1</repeat_num> |
| 5126 | 5190 | <template>coluna%</template> |
| ... | ... | @@ -5135,7 +5199,7 @@ |
| 5135 | 5199 | </modified_values> |
| 5136 | 5200 | </data_def> |
| 5137 | 5201 | <data_def> |
| 5138 | - <column_id>51</column_id> | |
| 5202 | + <column_id>39</column_id> | |
| 5139 | 5203 | <type>Format</type> |
| 5140 | 5204 | <repeat_num>1</repeat_num> |
| 5141 | 5205 | <template>nomedimensao%</template> |
| ... | ... | @@ -5150,7 +5214,7 @@ |
| 5150 | 5214 | </modified_values> |
| 5151 | 5215 | </data_def> |
| 5152 | 5216 | <data_def> |
| 5153 | - <column_id>52</column_id> | |
| 5217 | + <column_id>40</column_id> | |
| 5154 | 5218 | <type>Format</type> |
| 5155 | 5219 | <repeat_num>1</repeat_num> |
| 5156 | 5220 | <template>descricao%</template> |
| ... | ... | @@ -5165,7 +5229,7 @@ |
| 5165 | 5229 | </modified_values> |
| 5166 | 5230 | </data_def> |
| 5167 | 5231 | <data_def> |
| 5168 | - <column_id>53</column_id> | |
| 5232 | + <column_id>41</column_id> | |
| 5169 | 5233 | <type>Format</type> |
| 5170 | 5234 | <repeat_num>1</repeat_num> |
| 5171 | 5235 | <template>%</template> |
| ... | ... | @@ -5180,7 +5244,7 @@ |
| 5180 | 5244 | </modified_values> |
| 5181 | 5245 | </data_def> |
| 5182 | 5246 | <data_def> |
| 5183 | - <column_id>54</column_id> | |
| 5247 | + <column_id>42</column_id> | |
| 5184 | 5248 | <type>Foreign Key</type> |
| 5185 | 5249 | <repeat_num>1</repeat_num> |
| 5186 | 5250 | <template>%</template> |
| ... | ... | @@ -5776,23 +5840,23 @@ |
| 5776 | 5840 | </repeat_test_data> |
| 5777 | 5841 | </table_test_data> |
| 5778 | 5842 | <table_test_data> |
| 5779 | - <table_id>9</table_id> | |
| 5843 | + <table_id>8</table_id> | |
| 5780 | 5844 | <direct_test_data> |
| 5781 | 5845 | <data> |
| 5782 | 5846 | <column_data> |
| 5783 | - <column_id>43</column_id> | |
| 5847 | + <column_id>31</column_id> | |
| 5784 | 5848 | <value>http://portal.saude.gov.br/portal/saude/area.cfm?id_area=1095</value> |
| 5785 | 5849 | </column_data> |
| 5786 | 5850 | <column_data> |
| 5787 | - <column_id>44</column_id> | |
| 5851 | + <column_id>32</column_id> | |
| 5788 | 5852 | <value>1</value> |
| 5789 | 5853 | </column_data> |
| 5790 | 5854 | <column_data> |
| 5791 | - <column_id>45</column_id> | |
| 5855 | + <column_id>33</column_id> | |
| 5792 | 5856 | <value>Site das Fármacias Populares</value> |
| 5793 | 5857 | </column_data> |
| 5794 | 5858 | <column_data> |
| 5795 | - <column_id>46</column_id> | |
| 5859 | + <column_id>34</column_id> | |
| 5796 | 5860 | <value>1</value> |
| 5797 | 5861 | </column_data> |
| 5798 | 5862 | </data> |
| ... | ... | @@ -5801,7 +5865,7 @@ |
| 5801 | 5865 | <test_data_num>0</test_data_num> |
| 5802 | 5866 | <data_def_list> |
| 5803 | 5867 | <data_def> |
| 5804 | - <column_id>43</column_id> | |
| 5868 | + <column_id>31</column_id> | |
| 5805 | 5869 | <type>Format</type> |
| 5806 | 5870 | <repeat_num>1</repeat_num> |
| 5807 | 5871 | <template>link%</template> |
| ... | ... | @@ -5816,7 +5880,7 @@ |
| 5816 | 5880 | </modified_values> |
| 5817 | 5881 | </data_def> |
| 5818 | 5882 | <data_def> |
| 5819 | - <column_id>44</column_id> | |
| 5883 | + <column_id>32</column_id> | |
| 5820 | 5884 | <type>Foreign Key</type> |
| 5821 | 5885 | <repeat_num>1</repeat_num> |
| 5822 | 5886 | <template>%</template> |
| ... | ... | @@ -5831,7 +5895,7 @@ |
| 5831 | 5895 | </modified_values> |
| 5832 | 5896 | </data_def> |
| 5833 | 5897 | <data_def> |
| 5834 | - <column_id>45</column_id> | |
| 5898 | + <column_id>33</column_id> | |
| 5835 | 5899 | <type>Format</type> |
| 5836 | 5900 | <repeat_num>1</repeat_num> |
| 5837 | 5901 | <template>nome%</template> |
| ... | ... | @@ -5846,7 +5910,7 @@ |
| 5846 | 5910 | </modified_values> |
| 5847 | 5911 | </data_def> |
| 5848 | 5912 | <data_def> |
| 5849 | - <column_id>46</column_id> | |
| 5913 | + <column_id>34</column_id> | |
| 5850 | 5914 | <type>Format</type> |
| 5851 | 5915 | <repeat_num>1</repeat_num> |
| 5852 | 5916 | <template>%</template> |
| ... | ... | @@ -5864,15 +5928,15 @@ |
| 5864 | 5928 | </repeat_test_data> |
| 5865 | 5929 | </table_test_data> |
| 5866 | 5930 | <table_test_data> |
| 5867 | - <table_id>10</table_id> | |
| 5931 | + <table_id>9</table_id> | |
| 5868 | 5932 | <direct_test_data> |
| 5869 | 5933 | <data> |
| 5870 | 5934 | <column_data> |
| 5871 | - <column_id>47</column_id> | |
| 5935 | + <column_id>35</column_id> | |
| 5872 | 5936 | <value>1</value> |
| 5873 | 5937 | </column_data> |
| 5874 | 5938 | <column_data> |
| 5875 | - <column_id>48</column_id> | |
| 5939 | + <column_id>36</column_id> | |
| 5876 | 5940 | <value>1</value> |
| 5877 | 5941 | </column_data> |
| 5878 | 5942 | </data> |
| ... | ... | @@ -5881,7 +5945,7 @@ |
| 5881 | 5945 | <test_data_num>0</test_data_num> |
| 5882 | 5946 | <data_def_list> |
| 5883 | 5947 | <data_def> |
| 5884 | - <column_id>47</column_id> | |
| 5948 | + <column_id>35</column_id> | |
| 5885 | 5949 | <type>Foreign Key</type> |
| 5886 | 5950 | <repeat_num>1</repeat_num> |
| 5887 | 5951 | <template>%</template> |
| ... | ... | @@ -5896,7 +5960,7 @@ |
| 5896 | 5960 | </modified_values> |
| 5897 | 5961 | </data_def> |
| 5898 | 5962 | <data_def> |
| 5899 | - <column_id>48</column_id> | |
| 5963 | + <column_id>36</column_id> | |
| 5900 | 5964 | <type>Foreign Key</type> |
| 5901 | 5965 | <repeat_num>1</repeat_num> |
| 5902 | 5966 | <template>%</template> |
| ... | ... | @@ -5983,41 +6047,41 @@ |
| 5983 | 6047 | </repeat_test_data> |
| 5984 | 6048 | </table_test_data> |
| 5985 | 6049 | <table_test_data> |
| 5986 | - <table_id>13</table_id> | |
| 6050 | + <table_id>12</table_id> | |
| 5987 | 6051 | <direct_test_data> |
| 5988 | 6052 | <data> |
| 5989 | 6053 | <column_data> |
| 5990 | - <column_id>67</column_id> | |
| 6054 | + <column_id>55</column_id> | |
| 5991 | 6055 | <value>1</value> |
| 5992 | 6056 | </column_data> |
| 5993 | 6057 | <column_data> |
| 5994 | - <column_id>68</column_id> | |
| 6058 | + <column_id>56</column_id> | |
| 5995 | 6059 | <value>1</value> |
| 5996 | 6060 | </column_data> |
| 5997 | 6061 | <column_data> |
| 5998 | - <column_id>69</column_id> | |
| 6062 | + <column_id>57</column_id> | |
| 5999 | 6063 | <value>2</value> |
| 6000 | 6064 | </column_data> |
| 6001 | 6065 | <column_data> |
| 6002 | - <column_id>70</column_id> | |
| 6066 | + <column_id>58</column_id> | |
| 6003 | 6067 | <value>co_municipio</value> |
| 6004 | 6068 | </column_data> |
| 6005 | 6069 | </data> |
| 6006 | 6070 | <data> |
| 6007 | 6071 | <column_data> |
| 6008 | - <column_id>67</column_id> | |
| 6072 | + <column_id>55</column_id> | |
| 6009 | 6073 | <value>2</value> |
| 6010 | 6074 | </column_data> |
| 6011 | 6075 | <column_data> |
| 6012 | - <column_id>68</column_id> | |
| 6076 | + <column_id>56</column_id> | |
| 6013 | 6077 | <value>2</value> |
| 6014 | 6078 | </column_data> |
| 6015 | 6079 | <column_data> |
| 6016 | - <column_id>69</column_id> | |
| 6080 | + <column_id>57</column_id> | |
| 6017 | 6081 | <value>3</value> |
| 6018 | 6082 | </column_data> |
| 6019 | 6083 | <column_data> |
| 6020 | - <column_id>70</column_id> | |
| 6084 | + <column_id>58</column_id> | |
| 6021 | 6085 | <value>co_uf</value> |
| 6022 | 6086 | </column_data> |
| 6023 | 6087 | </data> |
| ... | ... | @@ -6026,7 +6090,7 @@ |
| 6026 | 6090 | <test_data_num>0</test_data_num> |
| 6027 | 6091 | <data_def_list> |
| 6028 | 6092 | <data_def> |
| 6029 | - <column_id>67</column_id> | |
| 6093 | + <column_id>55</column_id> | |
| 6030 | 6094 | <type>Format</type> |
| 6031 | 6095 | <repeat_num>1</repeat_num> |
| 6032 | 6096 | <template>%</template> |
| ... | ... | @@ -6041,7 +6105,7 @@ |
| 6041 | 6105 | </modified_values> |
| 6042 | 6106 | </data_def> |
| 6043 | 6107 | <data_def> |
| 6044 | - <column_id>68</column_id> | |
| 6108 | + <column_id>56</column_id> | |
| 6045 | 6109 | <type>Foreign Key</type> |
| 6046 | 6110 | <repeat_num>1</repeat_num> |
| 6047 | 6111 | <template>%</template> |
| ... | ... | @@ -6056,7 +6120,7 @@ |
| 6056 | 6120 | </modified_values> |
| 6057 | 6121 | </data_def> |
| 6058 | 6122 | <data_def> |
| 6059 | - <column_id>69</column_id> | |
| 6123 | + <column_id>57</column_id> | |
| 6060 | 6124 | <type>Format</type> |
| 6061 | 6125 | <repeat_num>1</repeat_num> |
| 6062 | 6126 | <template>%</template> |
| ... | ... | @@ -6071,7 +6135,7 @@ |
| 6071 | 6135 | </modified_values> |
| 6072 | 6136 | </data_def> |
| 6073 | 6137 | <data_def> |
| 6074 | - <column_id>70</column_id> | |
| 6138 | + <column_id>58</column_id> | |
| 6075 | 6139 | <type>Format</type> |
| 6076 | 6140 | <repeat_num>1</repeat_num> |
| 6077 | 6141 | <template>colunaligacao_regiaopai%</template> | ... | ... |
ferramentas/metaestat/editorlimites.js
| ... | ... | @@ -629,6 +629,7 @@ var editorlimites = { |
| 629 | 629 | i = 0, |
| 630 | 630 | n = atr.dados.length, |
| 631 | 631 | j = 0, |
| 632 | + idunico = "", | |
| 632 | 633 | nj = atr.aliascolunas.length, |
| 633 | 634 | ins = "" + |
| 634 | 635 | '<p class=paragrafo >Região escolhida:</p>' + |
| ... | ... | @@ -636,33 +637,88 @@ var editorlimites = { |
| 636 | 637 | '<p class=paragrafo ><b>Código: </b>' + retorno.regiao.identificador_regiao + '</p>' + |
| 637 | 638 | '<input type=hidden name="identificador_regiao" value="' + retorno.regiao.identificador_regiao + '" />' + |
| 638 | 639 | '<p class=paragrafo >Atributos:</p>' + |
| 639 | - '<input id=editarAtributosAdicionar value="Adicionar um novo" />' ; | |
| 640 | + '<input id=editarAtributosAdicionar value="Adicionar um novo" />' + | |
| 641 | + ' <input id=editarAtributosSalvar value="Salvar" />'; | |
| 640 | 642 | $i("editarAtributosRegiao").innerHTML = ins; |
| 641 | 643 | ins = ""; |
| 644 | + //registros | |
| 642 | 645 | for(i=0;i<n;i++){ |
| 643 | 646 | ins += "<hr><br>"; |
| 647 | + //descobre qual o indice que corresponde ao idunico do registro | |
| 644 | 648 | for(j=0;j<nj;j++){ |
| 645 | - ins += '<p class=paragrafo >'+atr.aliascolunas[j]+':</p>' + | |
| 646 | - '<input class=digitar value="'+atr.dados[i][j]+'" name="'+atr.colunas[j]+'" />'; | |
| 649 | + if(atr.colunas[j] !== "idunico"){ | |
| 650 | + idunico = atr.dados[i][j]; | |
| 651 | + } | |
| 652 | + } | |
| 653 | + //colunas | |
| 654 | + for(j=0;j<nj;j++){ | |
| 655 | + if(atr.colunas[j] !== "idunico"){ | |
| 656 | + ins += '<p class=paragrafo >'+atr.aliascolunas[j]+':<br>' + | |
| 657 | + '<input class=digitar id="idunico_'+idunico+'" value="'+atr.dados[i][j]+'" name="'+atr.colunas[j]+'" /></p>'; | |
| 658 | + } | |
| 647 | 659 | } |
| 648 | 660 | } |
| 649 | 661 | $i("editarAtributosForm").innerHTML = ins; |
| 650 | 662 | new YAHOO.widget.Button( |
| 651 | - "editarAtributosAdicionar", | |
| 652 | - {onclick:{fn: function(){ | |
| 653 | - var ins = "<hr><br>"; | |
| 654 | - for(j=0;j<nj;j++){ | |
| 655 | - ins += '<p class=paragrafo >'+atr.aliascolunas[j]+':</p>' + | |
| 656 | - '<input class=digitar value="" name="'+atr.colunas[j]+'" />'; | |
| 663 | + "editarAtributosAdicionar", | |
| 664 | + {onclick:{fn: function(){ | |
| 665 | + var ins = "<hr><br><div>"; | |
| 666 | + for(j=0;j<nj;j++){ | |
| 667 | + if(atr.colunas[j] !== "idunico"){ | |
| 668 | + ins += '<p class=paragrafo >'+atr.aliascolunas[j]+':<br>' + | |
| 669 | + '<input class=digitar id="" value="" name="'+atr.colunas[j]+'" /></p>'; | |
| 657 | 670 | } |
| 658 | - $i("editarAtributosForm").innerHTML += ins + "<br>"; | |
| 659 | - }}} | |
| 671 | + } | |
| 672 | + $i("editarAtributosForm").innerHTML += ins + "</div><br>"; | |
| 673 | + }}} | |
| 674 | + ); | |
| 675 | + new YAHOO.widget.Button( | |
| 676 | + "editarAtributosSalvar", | |
| 677 | + {onclick:{fn: function(){ | |
| 678 | + editorlimites.editarAtributos.salva(); | |
| 679 | + }}} | |
| 660 | 680 | ); |
| 661 | 681 | }; |
| 662 | 682 | cpJSON.call(p,"foo",temp,"&codigo_tipo_regiao="+codigo_tipo_regiao+"&id_medida_variavel="+id_medida_variavel+"&x="+editorlimites.editarAtributos.x+"&y="+editorlimites.editarAtributos.y); |
| 663 | 683 | }, |
| 664 | 684 | salva: function(){ |
| 685 | + var container = $i("editarAtributosForm"), | |
| 686 | + divsT = container.getElementsByTagName("div"), | |
| 687 | + n = divsT.length, | |
| 688 | + i = 0, | |
| 689 | + dv = "", | |
| 690 | + inputs = "", | |
| 691 | + nj, | |
| 692 | + j, | |
| 693 | + colunas = [], | |
| 694 | + colunasT = [], | |
| 695 | + valores = [], | |
| 696 | + valoresT = [], | |
| 697 | + idsunicosT = [], | |
| 698 | + idsunicos = [], | |
| 699 | + p, | |
| 700 | + re = new RegExp("idunico_", "g"),//prefixo usado para marcar o id dos elementos input que contem os valores que se quer obter | |
| 701 | + temp = function(retorno){ | |
| 665 | 702 | |
| 703 | + }; | |
| 704 | + for(i=0;i<n;i++){ | |
| 705 | + dv = divsT[i]; | |
| 706 | + inputs = dv.getElementsByTagName("input"); | |
| 707 | + nj = inputs.length; | |
| 708 | + colunas = []; | |
| 709 | + valores = []; | |
| 710 | + idsunicos = []; | |
| 711 | + for(j=0;j<nj;j++){ | |
| 712 | + colunas.push(inputs[j].name); | |
| 713 | + valores.push(inputs[j].value); | |
| 714 | + idsunicos.push(inputs[j].id.replace(re,'')); | |
| 715 | + } | |
| 716 | + colunasT.push(colunas.join(";")); | |
| 717 | + valoresT.push(valores.join(";")); | |
| 718 | + idsunicosT.push(idsunicos.join(";")); | |
| 719 | + } | |
| 720 | + p = "&colunas="+colunasT.join("|")+"&valores="+valoresT.join("|")+"&idsunicos="+idsunicosT.join("|"); | |
| 721 | + alert(p); | |
| 666 | 722 | }, |
| 667 | 723 | criaJanelaFlutuante: function(html){ |
| 668 | 724 | var janela,titulo,cabecalho,minimiza; | ... | ... |
ferramentas/metaestat/index.js
| ... | ... | @@ -525,6 +525,8 @@ i3GEOF.metaestat = { |
| 525 | 525 | $i("Ecolunavalor").value = "valor_num"; |
| 526 | 526 | //id que liga com o geo |
| 527 | 527 | $i("Ecolunaidgeo").value = "codigoregiao"; |
| 528 | + //id unico | |
| 529 | + $i("Ecolunaidunico").value = "gid"; | |
| 528 | 530 | //unidade de medida |
| 529 | 531 | $i("Ecodigo_unidade_medida").value = 1; |
| 530 | 532 | //periodo | ... | ... |