Commit 0a7bce6cf0e4d045a128183e319cf0c49062f368
1 parent
5034d233
Exists in
master
Adaptação do código para funcionamento com versão 7 do Mapserver
remoção de
ms_newprojectionobj("proj=latlong")
para
ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs")
Showing
42 changed files
with
1693 additions
and
1446 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/dicionario/operacoes.js
| ... | ... | @@ -30,5 +30,75 @@ i3GEOadmin.operacoes.dicionario = { |
| 30 | 30 | pt : "Operações controladas:", |
| 31 | 31 | en : "", |
| 32 | 32 | es : "" |
| 33 | + } ], | |
| 34 | + 'msgBuscaOperacoes' : [ { | |
| 35 | + pt : "buscando operações...", | |
| 36 | + en : "", | |
| 37 | + es : "" | |
| 38 | + } ], | |
| 39 | + 'adicionaPapel' : [ { | |
| 40 | + pt : "Adicionar novo papel", | |
| 41 | + en : "", | |
| 42 | + es : "" | |
| 43 | + } ], | |
| 44 | + 'editaOperacao' : [ { | |
| 45 | + pt : "Edite para definir a operação!!!", | |
| 46 | + en : "", | |
| 47 | + es : "" | |
| 48 | + } ], | |
| 49 | + 'codigo' : [ { | |
| 50 | + pt : "Código:", | |
| 51 | + en : "", | |
| 52 | + es : "" | |
| 53 | + } ], | |
| 54 | + 'operacao' : [ { | |
| 55 | + pt : "Operação", | |
| 56 | + en : "", | |
| 57 | + es : "" | |
| 58 | + } ], | |
| 59 | + 'descricao' : [ { | |
| 60 | + pt : "(opcional) Descrição:", | |
| 61 | + en : "", | |
| 62 | + es : "" | |
| 63 | + } ], | |
| 64 | + 'msgErroExclui' : [ { | |
| 65 | + pt : "Não foi possível excluir. Verifique se não existem menus vinculados a este tema", | |
| 66 | + en : "", | |
| 67 | + es : "" | |
| 68 | + } ], | |
| 69 | + '' : [ { | |
| 70 | + pt : "", | |
| 71 | + en : "", | |
| 72 | + es : "" | |
| 73 | + } ], | |
| 74 | + '' : [ { | |
| 75 | + pt : "", | |
| 76 | + en : "", | |
| 77 | + es : "" | |
| 78 | + } ], | |
| 79 | + '' : [ { | |
| 80 | + pt : "", | |
| 81 | + en : "", | |
| 82 | + es : "" | |
| 83 | + } ], | |
| 84 | + '' : [ { | |
| 85 | + pt : "", | |
| 86 | + en : "", | |
| 87 | + es : "" | |
| 88 | + } ], | |
| 89 | + '' : [ { | |
| 90 | + pt : "", | |
| 91 | + en : "", | |
| 92 | + es : "" | |
| 93 | + } ], | |
| 94 | + '' : [ { | |
| 95 | + pt : "", | |
| 96 | + en : "", | |
| 97 | + es : "" | |
| 98 | + } ], | |
| 99 | + '' : [ { | |
| 100 | + pt : "", | |
| 101 | + en : "", | |
| 102 | + es : "" | |
| 33 | 103 | } ] |
| 34 | 104 | }; | ... | ... |
admin/js/core.js
| ... | ... | @@ -1771,6 +1771,7 @@ function core_parseMustacheBody (hashMustache){ |
| 1771 | 1771 | //arquivos css |
| 1772 | 1772 | // |
| 1773 | 1773 | cssfiles =new Array( |
| 1774 | + i3GEO.configura.locaplic+"/css/input.css", | |
| 1774 | 1775 | i3GEO.configura.locaplic+"/admin/html/admin.css" |
| 1775 | 1776 | ); |
| 1776 | 1777 | } |
| ... | ... | @@ -1814,6 +1815,7 @@ function core_parseMustacheBody (hashMustache){ |
| 1814 | 1815 | "../../pacotes/yui290/build/treeview/assets/skins/sam/treeview.css", |
| 1815 | 1816 | "../../pacotes/yui290/build/editor/assets/skins/sam/editor.css", |
| 1816 | 1817 | "../../pacotes/yui290/build/resize/assets/skins/sam/resize.css", |
| 1818 | + "../../css/input.css", | |
| 1817 | 1819 | "../../css/janelaflutuante.css", |
| 1818 | 1820 | "../html/admin.css" |
| 1819 | 1821 | ); | ... | ... |
admin/js/editormapfile.js
| ... | ... | @@ -660,7 +660,7 @@ function clonarMapfile(codigoMap) |
| 660 | 660 | core_dialogoPergunta(handleYes,handleNo,mensagem,largura); |
| 661 | 661 | } |
| 662 | 662 | function alteraNomeTema(obj,codigoMap){ |
| 663 | - var handleYes, handleNo, codigoMap, mensagem, largura = "300"; | |
| 663 | + var handleYes, handleNo, mensagem, largura = "300"; | |
| 664 | 664 | |
| 665 | 665 | mensagem = ""+ $trad("novoTitulo",i3GEOadmin.core.dicionario) +"<br><input size=30 type=text value='"+obj.innerHTML+"' id=mudarNomePara />"; |
| 666 | 666 | handleNo = function(){ | ... | ... |
admin/js/operacoes.js
| ... | ... | @@ -45,7 +45,7 @@ function ativaBotaoAdicionaOperacao(sUrl,idBotao){ |
| 45 | 45 | var botao, adiciona = function() |
| 46 | 46 | { |
| 47 | 47 | core_carregando("ativa"); |
| 48 | - core_carregando(" adicionando um novo registro"); | |
| 48 | + core_carregando($trad("msgNovoRegistro",i3GEOadmin.core.dicionario)); | |
| 49 | 49 | var callback = |
| 50 | 50 | { |
| 51 | 51 | success:function(o) |
| ... | ... | @@ -76,7 +76,7 @@ Obt&eacute;m a lista de atlas |
| 76 | 76 | <PEGAATLAS> |
| 77 | 77 | */ |
| 78 | 78 | function pegaOperacoes(){ |
| 79 | - core_pegaDados("buscando operações...","../php/operacoes.php?funcao=pegaOperacoes","montaArvore"); | |
| 79 | + core_pegaDados($trad("msgBuscaOperacoes",i3GEOadmin.operacoes.dicionario),"../php/operacoes.php?funcao=pegaOperacoes","montaArvore"); | |
| 80 | 80 | } |
| 81 | 81 | /* |
| 82 | 82 | Function: montaArvore |
| ... | ... | @@ -143,7 +143,7 @@ function adicionaNosPapeis(no,dados,redesenha) |
| 143 | 143 | } |
| 144 | 144 | if(!redesenha) |
| 145 | 145 | { |
| 146 | - var conteudo = "<span style=\"cursor:pointer;\" onclick=\"editar('papel','"+no.data.id_operacao+"')\" ><img style=\"position:relative;top:2px\" src=\"../imagens/05.png\" /><i>Adicionar novo papel</i></span>"; | |
| 146 | + var conteudo = "<span style=\"cursor:pointer;\" onclick=\"editar('papel','"+no.data.id_operacao+"')\" ><img style=\"position:relative;top:2px\" src=\"../imagens/05.png\" /><i>"+ $trad("adicionaPapel",i3GEOadmin.operacoes.dicionario) +"</i></span>"; | |
| 147 | 147 | var d = {html:conteudo}; |
| 148 | 148 | var tempNode = new YAHOO.widget.HTMLNode(d, no, false,true); |
| 149 | 149 | tempNode.isLeaf = true; |
| ... | ... | @@ -170,7 +170,7 @@ function adicionaNosOperacoes(dados,redesenha){ |
| 170 | 170 | if(dados[i].codigo != "") |
| 171 | 171 | {conteudo += " <span>"+dados[i].codigo+" - "+dados[i].descricao+"</span>";} |
| 172 | 172 | else |
| 173 | - {conteudo += " <span style=color:red >Edite para definir a operação!!!</span>";} | |
| 173 | + {conteudo += " <span style=color:red >"+ $trad("editaOperacao",i3GEOadmin.operacoes.dicionario) +"</span>";} | |
| 174 | 174 | var d = {html:conteudo,id_operacao:dados[i].id_operacao,tipo:"operacao"}; |
| 175 | 175 | var tempNode = new YAHOO.widget.HTMLNode(d, root, false,true); |
| 176 | 176 | tempNode.enableHighlight = false; |
| ... | ... | @@ -185,7 +185,7 @@ Abre o editor de um no |
| 185 | 185 | function editar(tipo,id) |
| 186 | 186 | { |
| 187 | 187 | core_carregando("ativa"); |
| 188 | - core_carregando(" buscando dados"); | |
| 188 | + core_carregando($trad("msgBuscaDados",i3GEOadmin.core.dicionario)); | |
| 189 | 189 | var sUrl = null; |
| 190 | 190 | var callback = |
| 191 | 191 | { |
| ... | ... | @@ -196,7 +196,7 @@ function editar(tipo,id) |
| 196 | 196 | if(tipo == "operacao") |
| 197 | 197 | { |
| 198 | 198 | var dados = YAHOO.lang.JSON.parse(o.responseText)[0]; |
| 199 | - core_montaEditor("gravaDados('operacao','"+id+"')","","","","Operação",true,true,false); | |
| 199 | + core_montaEditor("gravaDados('operacao','"+id+"')","","","",$trad("operacao",i3GEOadmin.operacoes.dicionario),true,true,false); | |
| 200 | 200 | $i("editor_bd").innerHTML = montaDivOperacao(dados); |
| 201 | 201 | core_carregando("desativa"); |
| 202 | 202 | } |
| ... | ... | @@ -225,8 +225,8 @@ function editar(tipo,id) |
| 225 | 225 | function montaDivOperacao(i){ |
| 226 | 226 | var param = { |
| 227 | 227 | "linhas":[ |
| 228 | - {titulo:"Código:",id:"Ecodigo",size:"50",value:i.codigo,tipo:"text",div:""}, | |
| 229 | - {titulo:"(opcional) Descrição:",id:"Edescricao",size:"50",value:i.descricao,tipo:"text",div:""} | |
| 228 | + {titulo:$trad("codigo",i3GEOadmin.operacoes.dicionario),id:"Ecodigo",size:"50",value:i.codigo,tipo:"text",div:""}, | |
| 229 | + {titulo:$trad("descricao",i3GEOadmin.operacoes.dicionario),id:"Edescricao",size:"50",value:i.descricao,tipo:"text",div:""} | |
| 230 | 230 | ] |
| 231 | 231 | }; |
| 232 | 232 | var ins = ""; |
| ... | ... | @@ -252,7 +252,7 @@ Exclui um elemento do atlas |
| 252 | 252 | */ |
| 253 | 253 | function excluir(tipo,id_operacao,id_papel) |
| 254 | 254 | { |
| 255 | - var mensagem = " excluindo o registro do id= "+id_operacao+" - "+id_papel; | |
| 255 | + var mensagem = $trad("msgExclui",i3GEOadmin.core.dicionario)+id_operacao+" - "+id_papel; | |
| 256 | 256 | var no = null; |
| 257 | 257 | var sUrl = null; |
| 258 | 258 | if(tipo == "papel") |
| ... | ... | @@ -296,7 +296,7 @@ function gravaDados(tipo,id) |
| 296 | 296 | success:function(o){ |
| 297 | 297 | try { |
| 298 | 298 | if(YAHOO.lang.JSON.parse(o.responseText) == "erro") { |
| 299 | - core_carregando("<span style=color:red >Não foi possível excluir. Verifique se não existem menus vinculados a este tema</span>"); | |
| 299 | + core_carregando("<span style=color:red >"+ $trad("msgErroExclui",i3GEOadmin.operacoes.dicionario) +"</span>"); | |
| 300 | 300 | setTimeout("core_carregando('desativa')",3000); |
| 301 | 301 | } |
| 302 | 302 | else{ |
| ... | ... | @@ -322,8 +322,8 @@ function gravaDados(tipo,id) |
| 322 | 322 | }; |
| 323 | 323 | if(prog && par){ |
| 324 | 324 | core_carregando("ativa"); |
| 325 | - core_carregando(" gravando o registro do id= "+id); | |
| 325 | + core_carregando($trad("gravaId",i3GEOadmin.core.dicionario)+id); | |
| 326 | 326 | var sUrl = prog+par; |
| 327 | 327 | core_makeRequest(sUrl,callback,'POST'); |
| 328 | 328 | } |
| 329 | -} | |
| 330 | 329 | \ No newline at end of file |
| 330 | +} | ... | ... |
admin/php/estat_mapa_upload.php
admin/php/menutemas.php
| ... | ... | @@ -1164,6 +1164,7 @@ function alteraTemas() |
| 1164 | 1164 | { |
| 1165 | 1165 | $layer = $mapa->getlayer($i); |
| 1166 | 1166 | $layer->setmetadata("permitedownload",strtolower($download)); |
| 1167 | + $layer->setmetadata("download",strtolower($download)); | |
| 1167 | 1168 | $layer->setmetadata("permiteogc",strtolower($ogc)); |
| 1168 | 1169 | $layer->setmetadata("permitekml",strtolower($kml)); |
| 1169 | 1170 | $layer->setmetadata("permitekmz",strtolower($kmz)); | ... | ... |
admin/php/metaestat_mapa_uploadimagem.php
admin/php/metaestat_uploadcsv_submit.php
| ... | ... | @@ -15,6 +15,7 @@ if (ob_get_level() == 0) ob_start(); |
| 15 | 15 | <html> |
| 16 | 16 | <head> |
| 17 | 17 | <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> |
| 18 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 18 | 19 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 19 | 20 | <title></title> |
| 20 | 21 | </head> | ... | ... |
admin/php/metaestat_uploadshp_submit.php
| ... | ... | @@ -15,6 +15,7 @@ if (ob_get_level() == 0) ob_start(); |
| 15 | 15 | <html> |
| 16 | 16 | <head> |
| 17 | 17 | <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> |
| 18 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 18 | 19 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 19 | 20 | <title></title> |
| 20 | 21 | </head> | ... | ... |
admin/php/uploadgvp.php
admin/principal.html
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | <meta http-equiv="Category" |
| 5 | 5 | content="i3Geo Mapa interativo MMA geoprocessamento sig mobile"> |
| 6 | 6 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 7 | - | |
| 7 | +<link rel="stylesheet" type="text/css" href="../css/input.css"> | |
| 8 | 8 | <link rel="stylesheet" type="text/css" href="html/admin.css"> |
| 9 | 9 | <script type="text/javascript" src="js/core.js"></script> |
| 10 | 10 | <script type="text/javascript" src="dicionario/core.js"></script> | ... | ... |
classesjs/compactajs.php
| ... | ... | @@ -210,6 +210,7 @@ salvatudojs($jsfiles,$buffer,"i3geo_tudo_compacto6.js","js"); |
| 210 | 210 | // |
| 211 | 211 | |
| 212 | 212 | $cssfiles = array( |
| 213 | +"../css/input.css", | |
| 213 | 214 | "../css/geral.css", |
| 214 | 215 | "../css/botoes2.css", |
| 215 | 216 | "../css/documentation.css", |
| ... | ... | @@ -236,6 +237,7 @@ $buffer = ""; |
| 236 | 237 | salvatudojs($cssfiles,$buffer,"../css/i3geo6.css","css"); |
| 237 | 238 | //css das ferramentas |
| 238 | 239 | $cssfiles = array( |
| 240 | +"../css/input.css", | |
| 239 | 241 | "../css/geral.css", |
| 240 | 242 | "../css/button.css", |
| 241 | 243 | "../css/ferramentas.css", | ... | ... |
classesjs/geradordelinks.js
classesjs/i3geonaocompacto.js
classesphp/classe_analise.php
| ... | ... | @@ -1276,7 +1276,7 @@ class Analise |
| 1276 | 1276 | $projInObj = $layerorigem->getProjection(); |
| 1277 | 1277 | if ($projInObj == "") |
| 1278 | 1278 | { |
| 1279 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 1279 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 1280 | 1280 | } |
| 1281 | 1281 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=".$rect->miny.",lon_0=".$rect->minx.",x_0=5000000,y_0=10000000"); |
| 1282 | 1282 | $origemdestino = array(); |
| ... | ... | @@ -1413,7 +1413,9 @@ class Analise |
| 1413 | 1413 | foreach($listaShapes as $shape){ |
| 1414 | 1414 | //calcula a extensão geografica |
| 1415 | 1415 | $rect = $shape->bounds; |
| 1416 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 1416 | + //proj=longlat,ellps=WGS84,datum=WGS84,no_defs | |
| 1417 | + //proj=latlong | |
| 1418 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 1417 | 1419 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=".$rect->miny.",lon_0=".$rect->minx.",x_0=5000000,y_0=10000000"); |
| 1418 | 1420 | $poPoint = ms_newpointobj(); |
| 1419 | 1421 | $poPoint->setXY($rect->minx, $rect->miny); |
| ... | ... | @@ -1440,8 +1442,7 @@ class Analise |
| 1440 | 1442 | //faz a união dos elementos se necessário |
| 1441 | 1443 | if($unir == "sim"){ |
| 1442 | 1444 | $ns = $buffers[0]; |
| 1443 | - for($s=1;$s < count($buffers);$s++) | |
| 1444 | - { | |
| 1445 | + for($s=1;$s < count($buffers);$s++){ | |
| 1445 | 1446 | $ns = $ns->union($buffers[$s]); |
| 1446 | 1447 | } |
| 1447 | 1448 | $buffers = array($ns); |
| ... | ... | @@ -1465,10 +1466,8 @@ class Analise |
| 1465 | 1466 | $db=xbase_open($dbname,2); |
| 1466 | 1467 | else |
| 1467 | 1468 | $db=dbase_open($dbname,2); |
| 1468 | - for($i = 0;$i < count($buffers);++$i) | |
| 1469 | - { | |
| 1470 | - foreach ($items as $ni) | |
| 1471 | - { | |
| 1469 | + for($i = 0;$i < count($buffers);++$i){ | |
| 1470 | + foreach ($items as $ni){ | |
| 1472 | 1471 | if(!empty($shapes[$i]->values[$ni])){ |
| 1473 | 1472 | $reg[] = $this->truncaS($shapes[$i]->values[$ni]); |
| 1474 | 1473 | } |
| ... | ... | @@ -2646,7 +2645,7 @@ class Analise |
| 2646 | 2645 | case "perimetro": |
| 2647 | 2646 | $shape = ms_shapeObjFromWkt($g); |
| 2648 | 2647 | $rect = $shape->bounds; |
| 2649 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 2648 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 2650 | 2649 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=".$rect->miny.",lon_0=".$rect->minx.",x_0=5000000,y_0=10000000,units=m"); |
| 2651 | 2650 | $shape->project($projInObj, $projOutObj); |
| 2652 | 2651 | $s = $shape->towkt(); |
| ... | ... | @@ -2657,7 +2656,7 @@ class Analise |
| 2657 | 2656 | case "area": |
| 2658 | 2657 | $shape = ms_shapeObjFromWkt($g); |
| 2659 | 2658 | $rect = $shape->bounds; |
| 2660 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 2659 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 2661 | 2660 | $projOutObj = ms_newprojectionobj("proj=laea,lat_0=".$rect->miny.",lon_0=".$rect->minx.",x_0=500000,y_0=10000000,ellps=GRS67,units=m,no_defs"); |
| 2662 | 2661 | $shape->project($projInObj, $projOutObj); |
| 2663 | 2662 | $s = $shape->towkt(); | ... | ... |
classesphp/classe_selecao.php
| ... | ... | @@ -589,7 +589,7 @@ $tipo - Tipo de opera&ccedil;&atilde;o adiciona|retira|inverte|limpa|novo |
| 589 | 589 | else |
| 590 | 590 | { |
| 591 | 591 | error_reporting(0); |
| 592 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 592 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 593 | 593 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=0,lon_0=".$pt->x.",x_0=5000000,y_0=10000000"); |
| 594 | 594 | |
| 595 | 595 | $poPoint = ms_newpointobj(); |
| ... | ... | @@ -976,7 +976,7 @@ $geos - array com os dados |
| 976 | 976 | function projetaDistancia($shape,$distancia){ |
| 977 | 977 | error_reporting(0); |
| 978 | 978 | $pt = $shape->getCentroid(); |
| 979 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 979 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 980 | 980 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=0,lon_0=".$pt->x.",x_0=5000000,y_0=10000000"); |
| 981 | 981 | $poPoint = ms_newpointobj(); |
| 982 | 982 | $poPoint->setXY($pt->x, $pt->y); | ... | ... |
classesphp/classe_shp.php
| ... | ... | @@ -257,7 +257,7 @@ $projecao - codigo epsg da proje&ccedil;&atilde;o das coordenadas |
| 257 | 257 | $poPoint->setXY($xy[$i],$xy[$i+1]); |
| 258 | 258 | if($projecao != "") |
| 259 | 259 | { |
| 260 | - $projOutObj = ms_newprojectionobj("proj=latlong"); | |
| 260 | + $projOutObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 261 | 261 | $projInObj = ms_newprojectionobj("init=epsg:".$projecao); |
| 262 | 262 | $poPoint->project($projInObj, $projOutObj); |
| 263 | 263 | } | ... | ... |
classesphp/funcoes_gerais.php
| ... | ... | @@ -1238,7 +1238,7 @@ array( |
| 1238 | 1238 | */ |
| 1239 | 1239 | function geo2utm($x,$y,$zona) |
| 1240 | 1240 | { |
| 1241 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 1241 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 1242 | 1242 | if($y < 0){$ns = "south";} |
| 1243 | 1243 | else |
| 1244 | 1244 | {$ns = "north";} |
| ... | ... | @@ -1920,7 +1920,7 @@ function calculaAreaPixel($map_file,$celsize) |
| 1920 | 1920 | { |
| 1921 | 1921 | $mapa = ms_newMapObj($map_file); |
| 1922 | 1922 | $rect = $mapa->extent; |
| 1923 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 1923 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 1924 | 1924 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=0,lon_0=".$rect->minx.",x_0=5000000,y_0=10000000"); |
| 1925 | 1925 | $y = $rect->maxy - ((($rect->maxy) - ($rect->miny)) / 2); |
| 1926 | 1926 | $x = $rect->maxx - ((($rect->maxx) - ($rect->minx)) / 2); | ... | ... |
classesphp/mapa_controle.php
| ... | ... | @@ -2417,7 +2417,7 @@ function projetaExt($map_file,$ext,$separador=" ") |
| 2417 | 2417 | $rect = ms_newRectObj(); |
| 2418 | 2418 | $rect->setextent($extA[0],$extA[1],$extA[2],$extA[3]); |
| 2419 | 2419 | $prjMapa = $mapa->getProjection(); |
| 2420 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 2420 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 2421 | 2421 | $projOutObj = ms_newprojectionobj($prjMapa); |
| 2422 | 2422 | $rect->project($projInObj, $projOutObj); |
| 2423 | 2423 | if($ponto == false) | ... | ... |
css/geral.css
| ... | ... | @@ -8,13 +8,7 @@ para nao selecionar |
| 8 | 8 | -o-user-select: none; |
| 9 | 9 | user-select: none; |
| 10 | 10 | } |
| 11 | -input[type=text], textarea{ | |
| 12 | - -webkit-user-select: text; | |
| 13 | - -khtml-user-select: text; | |
| 14 | - -moz-user-select: text; | |
| 15 | - -o-user-select: text; | |
| 16 | - user-select: text; | |
| 17 | -} | |
| 11 | + | |
| 18 | 12 | /* |
| 19 | 13 | Para nao marcar links |
| 20 | 14 | */ |
| ... | ... | @@ -641,43 +635,6 @@ td { |
| 641 | 635 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 642 | 636 | } |
| 643 | 637 | |
| 644 | -input { | |
| 645 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 646 | - font-size: 10px; | |
| 647 | - color: #2F4632; | |
| 648 | - background-color: #FFFFFF; | |
| 649 | - padding: 0; | |
| 650 | - border: 1px solid rgb(180, 180, 180); | |
| 651 | - text-align: center; | |
| 652 | - cursor: text; | |
| 653 | -} | |
| 654 | - | |
| 655 | -input[type=checkbox] { | |
| 656 | - border: 0px solid white; | |
| 657 | -} | |
| 658 | - | |
| 659 | -input[type=file] { | |
| 660 | - border: 0px solid white; | |
| 661 | - background-color: none; | |
| 662 | - background: none; | |
| 663 | -} | |
| 664 | - | |
| 665 | -select { | |
| 666 | - box-shadow: 1px 1px 3px 0 lightgray; | |
| 667 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 668 | - font-size: 10px; | |
| 669 | - color: #2F4632; | |
| 670 | - background-color: #FFFFFF; | |
| 671 | - padding: 0; | |
| 672 | - border: 1px solid rgb(230, 230, 230); | |
| 673 | - text-align: left; | |
| 674 | - cursor: pointer; | |
| 675 | -} | |
| 676 | - | |
| 677 | -select option:hover { | |
| 678 | - background-color: #CCFFFF; | |
| 679 | -} | |
| 680 | - | |
| 681 | 638 | .ajuda_usuario { |
| 682 | 639 | background-image: url(../imagens/oxygen/16x16/dialog-information.png); |
| 683 | 640 | background-position: 0px 0px; |
| ... | ... | @@ -712,17 +669,6 @@ select option:hover { |
| 712 | 669 | font-size: 10px; |
| 713 | 670 | } |
| 714 | 671 | |
| 715 | -.inputsb { | |
| 716 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 717 | - font-size: 10px; | |
| 718 | - color: #2F4632; | |
| 719 | - background-color: #FFFFFF; | |
| 720 | - padding: 0; | |
| 721 | - border: 0px solid gray; | |
| 722 | - text-align: center; | |
| 723 | - cursor: text; | |
| 724 | -} | |
| 725 | - | |
| 726 | 672 | .legendatemas { |
| 727 | 673 | cursor: pointer; |
| 728 | 674 | text-align: left; |
| ... | ... | @@ -933,6 +879,7 @@ select option:hover { |
| 933 | 879 | .digitar input { |
| 934 | 880 | border: 1px solid rgb(180, 180, 180); |
| 935 | 881 | } |
| 882 | + | |
| 936 | 883 | .digitarOver { |
| 937 | 884 | margin: 0px; |
| 938 | 885 | color: #426252; |
| ... | ... | @@ -1385,110 +1332,6 @@ h1 { |
| 1385 | 1332 | } |
| 1386 | 1333 | } |
| 1387 | 1334 | |
| 1388 | -.styled-select input, .styled-select150 input { | |
| 1389 | - width: 100%; | |
| 1390 | - height: 22px; | |
| 1391 | - border: 0; | |
| 1392 | - box-shadow: none; | |
| 1393 | - line-height: 1.5; | |
| 1394 | - -webkit-appearance: none; | |
| 1395 | - -moz-appearance: none; | |
| 1396 | - text-indent: 0.01px; | |
| 1397 | - text-overflow: ''; | |
| 1398 | - font-size: 12px; | |
| 1399 | - appearance: none; | |
| 1400 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1401 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1402 | - (min-resolution: 192dpi) { | |
| 1403 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1404 | - background-size: 16px 144px; | |
| 1405 | - } | |
| 1406 | -} | |
| 1407 | - | |
| 1408 | -.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 1409 | - width: 252px; | |
| 1410 | - overflow: hidden; | |
| 1411 | - background: #F8F8F8; | |
| 1412 | - border: 1px solid #DDDDDD; | |
| 1413 | - height: 22px; | |
| 1414 | - border-radius: 2px; | |
| 1415 | -} | |
| 1416 | - | |
| 1417 | -.i3geoForm150 { | |
| 1418 | - width: 150px; | |
| 1419 | -} | |
| 1420 | - | |
| 1421 | -.i3geoForm100 { | |
| 1422 | - width: 100px; | |
| 1423 | -} | |
| 1424 | - | |
| 1425 | -.i3geoFormIconeEdita { | |
| 1426 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1427 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1428 | - (min-resolution: 192dpi) { | |
| 1429 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1430 | - background-size: 16px 144px; | |
| 1431 | - } | |
| 1432 | -} | |
| 1433 | - | |
| 1434 | -.i3geoFormSemIcone { | |
| 1435 | - background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1436 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1437 | - (min-resolution: 192dpi) { | |
| 1438 | - background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1439 | - background-size: 16px 144px; | |
| 1440 | - } | |
| 1441 | -} | |
| 1442 | - | |
| 1443 | -.i3geoFormTag { | |
| 1444 | - background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1445 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1446 | - (min-resolution: 192dpi) { | |
| 1447 | - background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1448 | - background-size: 16px 144px; | |
| 1449 | - } | |
| 1450 | - border-radius: 8px; | |
| 1451 | - background-color: #F0F0F0; | |
| 1452 | - cursor: pointer; | |
| 1453 | -} | |
| 1454 | - | |
| 1455 | -.i3geoFormIconeAquarela { | |
| 1456 | - cursor: pointer; | |
| 1457 | - background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 1458 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1459 | - (min-resolution: 192dpi) { | |
| 1460 | - background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 1461 | - background-size: 16px 144px; | |
| 1462 | - } | |
| 1463 | - | |
| 1464 | -} | |
| 1465 | - | |
| 1466 | -.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 1467 | - width: 90%; | |
| 1468 | - height: 22px; | |
| 1469 | - border: 0; | |
| 1470 | - box-shadow: none; | |
| 1471 | - line-height: 1.5; | |
| 1472 | - -webkit-appearance: none; | |
| 1473 | - -moz-appearance: none; | |
| 1474 | - text-indent: 0.01px; | |
| 1475 | - text-overflow: ''; | |
| 1476 | - font-size: 12px; | |
| 1477 | - appearance: none; | |
| 1478 | - cursor: text; | |
| 1479 | -} | |
| 1480 | - | |
| 1481 | -.i3geoFormIconeAquarela input{ | |
| 1482 | - width: 80%; | |
| 1483 | -} | |
| 1484 | - | |
| 1485 | -/*hack opera */ | |
| 1486 | -@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 1487 | - (-webkit-min-device-pixel-ratio:0) { | |
| 1488 | - .inputsb { | |
| 1489 | - border: 1px solid black | |
| 1490 | - } | |
| 1491 | -} | |
| 1492 | 1335 | /* esconde na impressao */ |
| 1493 | 1336 | @media print { |
| 1494 | 1337 | .noprint { | ... | ... |
css/i3geo6.css
| 1 | +input{ | |
| 2 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 3 | +} | |
| 4 | +input[type=text], textarea{ | |
| 5 | +-webkit-user-select: text; | |
| 6 | +-khtml-user-select: text; | |
| 7 | +-moz-user-select: text; | |
| 8 | +-o-user-select: text; | |
| 9 | +user-select: text; | |
| 10 | +} | |
| 11 | +input[type=text] { | |
| 12 | +font-size: 10px; | |
| 13 | +color: #2F4632; | |
| 14 | +background-color: #FFFFFF; | |
| 15 | +padding: 0; | |
| 16 | +border: 1px solid rgb(180, 180, 180); | |
| 17 | +text-align: center; | |
| 18 | +cursor: text; | |
| 19 | +height: 22px; | |
| 20 | +} | |
| 21 | +input[type=checkbox] { | |
| 22 | +border: 0px solid white; | |
| 23 | +} | |
| 24 | +input[type=file] { | |
| 25 | +border: 0px solid white; | |
| 26 | +background-color: none; | |
| 27 | +background: none; | |
| 28 | +} | |
| 29 | +select { | |
| 30 | +box-shadow: 1px 1px 3px 0 lightgray; | |
| 31 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 32 | +font-size: 10px; | |
| 33 | +color: #2F4632; | |
| 34 | +background-color: #FFFFFF; | |
| 35 | +padding: 0; | |
| 36 | +border: 1px solid rgb(230, 230, 230); | |
| 37 | +text-align: left; | |
| 38 | +cursor: pointer; | |
| 39 | +} | |
| 40 | +select option:hover { | |
| 41 | +background-color: #CCFFFF; | |
| 42 | +} | |
| 43 | +.inputsb { | |
| 44 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 45 | +font-size: 10px; | |
| 46 | +color: #2F4632; | |
| 47 | +background-color: #FFFFFF; | |
| 48 | +padding: 0; | |
| 49 | +border: 0px solid gray; | |
| 50 | +text-align: center; | |
| 51 | +cursor: text; | |
| 52 | +} | |
| 53 | +.styled-select input, .styled-select150 input { | |
| 54 | +width: 100%; | |
| 55 | +height: 22px; | |
| 56 | +border: 0; | |
| 57 | +box-shadow: none; | |
| 58 | +line-height: 1.5; | |
| 59 | +-webkit-appearance: none; | |
| 60 | +-moz-appearance: none; | |
| 61 | +text-indent: 0.01px; | |
| 62 | +text-overflow: ''; | |
| 63 | +font-size: 12px; | |
| 64 | +appearance: none; | |
| 65 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 66 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 67 | +(min-resolution: 192dpi) { | |
| 68 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 69 | +background-size: 16px 144px; | |
| 70 | +} | |
| 71 | +} | |
| 72 | +.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 73 | +width: 252px; | |
| 74 | +overflow: hidden; | |
| 75 | +background: #F8F8F8; | |
| 76 | +border: 1px solid #DDDDDD; | |
| 77 | +height: 22px; | |
| 78 | +border-radius: 2px; | |
| 79 | +} | |
| 80 | +.i3geoForm150 { | |
| 81 | +width: 150px; | |
| 82 | +} | |
| 83 | +.i3geoForm100 { | |
| 84 | +width: 100px; | |
| 85 | +} | |
| 86 | +.i3geoFormIconeEdita { | |
| 87 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 88 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 89 | +(min-resolution: 192dpi) { | |
| 90 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 91 | +background-size: 16px 144px; | |
| 92 | +} | |
| 93 | +} | |
| 94 | +.i3geoFormIconeUsuario { | |
| 95 | +background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 96 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 97 | +(min-resolution: 192dpi) { | |
| 98 | +background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 99 | +background-size: 16px 144px; | |
| 100 | +} | |
| 101 | +} | |
| 102 | +.i3geoFormIconeSenha { | |
| 103 | +background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 104 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 105 | +(min-resolution: 192dpi) { | |
| 106 | +background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 107 | +background-size: 16px 144px; | |
| 108 | +} | |
| 109 | +} | |
| 110 | +.i3geoFormSemIcone { | |
| 111 | +background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 112 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 113 | +(min-resolution: 192dpi) { | |
| 114 | +background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 115 | +background-size: 16px 144px; | |
| 116 | +} | |
| 117 | +} | |
| 118 | +.i3geoFormTag { | |
| 119 | +background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 120 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 121 | +(min-resolution: 192dpi) { | |
| 122 | +background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 123 | +background-size: 16px 144px; | |
| 124 | +} | |
| 125 | +border-radius: 8px; | |
| 126 | +background-color: #F0F0F0; | |
| 127 | +cursor: pointer; | |
| 128 | +} | |
| 129 | +.i3geoFormIconeAquarela { | |
| 130 | +cursor: pointer; | |
| 131 | +background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 132 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 133 | +(min-resolution: 192dpi) { | |
| 134 | +background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 135 | +background-size: 16px 144px; | |
| 136 | +} | |
| 137 | +} | |
| 138 | +.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 139 | +width: 90%; | |
| 140 | +height: 22px; | |
| 141 | +border: 0; | |
| 142 | +box-shadow: none; | |
| 143 | +line-height: 1.5; | |
| 144 | +-webkit-appearance: none; | |
| 145 | +-moz-appearance: none; | |
| 146 | +text-indent: 0.01px; | |
| 147 | +text-overflow: ''; | |
| 148 | +font-size: 12px; | |
| 149 | +appearance: none; | |
| 150 | +cursor: text; | |
| 151 | +} | |
| 152 | +.i3geoFormIconeAquarela input{ | |
| 153 | +width: 80%; | |
| 154 | +} | |
| 155 | +/*hack opera */ | |
| 156 | +@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 157 | +(-webkit-min-device-pixel-ratio:0) { | |
| 158 | +.inputsb { | |
| 159 | +border: 1px solid black | |
| 160 | +} | |
| 161 | +} | |
| 1 | 162 | /* |
| 2 | 163 | para nao selecionar |
| 3 | 164 | */ |
| ... | ... | @@ -8,13 +169,6 @@ para nao selecionar |
| 8 | 169 | -o-user-select: none; |
| 9 | 170 | user-select: none; |
| 10 | 171 | } |
| 11 | -input[type=text], textarea{ | |
| 12 | --webkit-user-select: text; | |
| 13 | --khtml-user-select: text; | |
| 14 | --moz-user-select: text; | |
| 15 | --o-user-select: text; | |
| 16 | -user-select: text; | |
| 17 | -} | |
| 18 | 172 | /* |
| 19 | 173 | Para nao marcar links |
| 20 | 174 | */ |
| ... | ... | @@ -576,38 +730,6 @@ text-align: center; |
| 576 | 730 | font-size: 12px; |
| 577 | 731 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 578 | 732 | } |
| 579 | -input { | |
| 580 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 581 | -font-size: 10px; | |
| 582 | -color: #2F4632; | |
| 583 | -background-color: #FFFFFF; | |
| 584 | -padding: 0; | |
| 585 | -border: 1px solid rgb(180, 180, 180); | |
| 586 | -text-align: center; | |
| 587 | -cursor: text; | |
| 588 | -} | |
| 589 | -input[type=checkbox] { | |
| 590 | -border: 0px solid white; | |
| 591 | -} | |
| 592 | -input[type=file] { | |
| 593 | -border: 0px solid white; | |
| 594 | -background-color: none; | |
| 595 | -background: none; | |
| 596 | -} | |
| 597 | -select { | |
| 598 | -box-shadow: 1px 1px 3px 0 lightgray; | |
| 599 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 600 | -font-size: 10px; | |
| 601 | -color: #2F4632; | |
| 602 | -background-color: #FFFFFF; | |
| 603 | -padding: 0; | |
| 604 | -border: 1px solid rgb(230, 230, 230); | |
| 605 | -text-align: left; | |
| 606 | -cursor: pointer; | |
| 607 | -} | |
| 608 | -select option:hover { | |
| 609 | -background-color: #CCFFFF; | |
| 610 | -} | |
| 611 | 733 | .ajuda_usuario { |
| 612 | 734 | background-image: url(../imagens/oxygen/16x16/dialog-information.png); |
| 613 | 735 | background-position: 0px 0px; |
| ... | ... | @@ -639,16 +761,6 @@ background-position: right; |
| 639 | 761 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 640 | 762 | font-size: 10px; |
| 641 | 763 | } |
| 642 | -.inputsb { | |
| 643 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 644 | -font-size: 10px; | |
| 645 | -color: #2F4632; | |
| 646 | -background-color: #FFFFFF; | |
| 647 | -padding: 0; | |
| 648 | -border: 0px solid gray; | |
| 649 | -text-align: center; | |
| 650 | -cursor: text; | |
| 651 | -} | |
| 652 | 764 | .legendatemas { |
| 653 | 765 | cursor: pointer; |
| 654 | 766 | text-align: left; |
| ... | ... | @@ -1237,99 +1349,6 @@ background: transparent url("../imagens/menuarodwn8_nrm_1.gif") no-repeat scroll |
| 1237 | 1349 | background-size: 16px 144px; |
| 1238 | 1350 | } |
| 1239 | 1351 | } |
| 1240 | -.styled-select input, .styled-select150 input { | |
| 1241 | -width: 100%; | |
| 1242 | -height: 22px; | |
| 1243 | -border: 0; | |
| 1244 | -box-shadow: none; | |
| 1245 | -line-height: 1.5; | |
| 1246 | --webkit-appearance: none; | |
| 1247 | --moz-appearance: none; | |
| 1248 | -text-indent: 0.01px; | |
| 1249 | -text-overflow: ''; | |
| 1250 | -font-size: 12px; | |
| 1251 | -appearance: none; | |
| 1252 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1253 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1254 | -(min-resolution: 192dpi) { | |
| 1255 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1256 | -background-size: 16px 144px; | |
| 1257 | -} | |
| 1258 | -} | |
| 1259 | -.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 1260 | -width: 252px; | |
| 1261 | -overflow: hidden; | |
| 1262 | -background: #F8F8F8; | |
| 1263 | -border: 1px solid #DDDDDD; | |
| 1264 | -height: 22px; | |
| 1265 | -border-radius: 2px; | |
| 1266 | -} | |
| 1267 | -.i3geoForm150 { | |
| 1268 | -width: 150px; | |
| 1269 | -} | |
| 1270 | -.i3geoForm100 { | |
| 1271 | -width: 100px; | |
| 1272 | -} | |
| 1273 | -.i3geoFormIconeEdita { | |
| 1274 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1275 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1276 | -(min-resolution: 192dpi) { | |
| 1277 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1278 | -background-size: 16px 144px; | |
| 1279 | -} | |
| 1280 | -} | |
| 1281 | -.i3geoFormSemIcone { | |
| 1282 | -background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1283 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1284 | -(min-resolution: 192dpi) { | |
| 1285 | -background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1286 | -background-size: 16px 144px; | |
| 1287 | -} | |
| 1288 | -} | |
| 1289 | -.i3geoFormTag { | |
| 1290 | -background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1291 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1292 | -(min-resolution: 192dpi) { | |
| 1293 | -background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1294 | -background-size: 16px 144px; | |
| 1295 | -} | |
| 1296 | -border-radius: 8px; | |
| 1297 | -background-color: #F0F0F0; | |
| 1298 | -cursor: pointer; | |
| 1299 | -} | |
| 1300 | -.i3geoFormIconeAquarela { | |
| 1301 | -cursor: pointer; | |
| 1302 | -background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 1303 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1304 | -(min-resolution: 192dpi) { | |
| 1305 | -background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 1306 | -background-size: 16px 144px; | |
| 1307 | -} | |
| 1308 | -} | |
| 1309 | -.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 1310 | -width: 90%; | |
| 1311 | -height: 22px; | |
| 1312 | -border: 0; | |
| 1313 | -box-shadow: none; | |
| 1314 | -line-height: 1.5; | |
| 1315 | --webkit-appearance: none; | |
| 1316 | --moz-appearance: none; | |
| 1317 | -text-indent: 0.01px; | |
| 1318 | -text-overflow: ''; | |
| 1319 | -font-size: 12px; | |
| 1320 | -appearance: none; | |
| 1321 | -cursor: text; | |
| 1322 | -} | |
| 1323 | -.i3geoFormIconeAquarela input{ | |
| 1324 | -width: 80%; | |
| 1325 | -} | |
| 1326 | -/*hack opera */ | |
| 1327 | -@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 1328 | -(-webkit-min-device-pixel-ratio:0) { | |
| 1329 | -.inputsb { | |
| 1330 | -border: 1px solid black | |
| 1331 | -} | |
| 1332 | -} | |
| 1333 | 1352 | /* esconde na impressao */ |
| 1334 | 1353 | @media print { |
| 1335 | 1354 | .noprint { | ... | ... |
css/i3geo6.css.php
| 1 | -<?php error_reporting(0);if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/css"); ?>/* | |
| 1 | +<?php error_reporting(0);if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/css"); ?>input{ | |
| 2 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 3 | +} | |
| 4 | +input[type=text], textarea{ | |
| 5 | +-webkit-user-select: text; | |
| 6 | +-khtml-user-select: text; | |
| 7 | +-moz-user-select: text; | |
| 8 | +-o-user-select: text; | |
| 9 | +user-select: text; | |
| 10 | +} | |
| 11 | +input[type=text] { | |
| 12 | +font-size: 10px; | |
| 13 | +color: #2F4632; | |
| 14 | +background-color: #FFFFFF; | |
| 15 | +padding: 0; | |
| 16 | +border: 1px solid rgb(180, 180, 180); | |
| 17 | +text-align: center; | |
| 18 | +cursor: text; | |
| 19 | +height: 22px; | |
| 20 | +} | |
| 21 | +input[type=checkbox] { | |
| 22 | +border: 0px solid white; | |
| 23 | +} | |
| 24 | +input[type=file] { | |
| 25 | +border: 0px solid white; | |
| 26 | +background-color: none; | |
| 27 | +background: none; | |
| 28 | +} | |
| 29 | +select { | |
| 30 | +box-shadow: 1px 1px 3px 0 lightgray; | |
| 31 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 32 | +font-size: 10px; | |
| 33 | +color: #2F4632; | |
| 34 | +background-color: #FFFFFF; | |
| 35 | +padding: 0; | |
| 36 | +border: 1px solid rgb(230, 230, 230); | |
| 37 | +text-align: left; | |
| 38 | +cursor: pointer; | |
| 39 | +} | |
| 40 | +select option:hover { | |
| 41 | +background-color: #CCFFFF; | |
| 42 | +} | |
| 43 | +.inputsb { | |
| 44 | +font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 45 | +font-size: 10px; | |
| 46 | +color: #2F4632; | |
| 47 | +background-color: #FFFFFF; | |
| 48 | +padding: 0; | |
| 49 | +border: 0px solid gray; | |
| 50 | +text-align: center; | |
| 51 | +cursor: text; | |
| 52 | +} | |
| 53 | +.styled-select input, .styled-select150 input { | |
| 54 | +width: 100%; | |
| 55 | +height: 22px; | |
| 56 | +border: 0; | |
| 57 | +box-shadow: none; | |
| 58 | +line-height: 1.5; | |
| 59 | +-webkit-appearance: none; | |
| 60 | +-moz-appearance: none; | |
| 61 | +text-indent: 0.01px; | |
| 62 | +text-overflow: ''; | |
| 63 | +font-size: 12px; | |
| 64 | +appearance: none; | |
| 65 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 66 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 67 | +(min-resolution: 192dpi) { | |
| 68 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 69 | +background-size: 16px 144px; | |
| 70 | +} | |
| 71 | +} | |
| 72 | +.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 73 | +width: 252px; | |
| 74 | +overflow: hidden; | |
| 75 | +background: #F8F8F8; | |
| 76 | +border: 1px solid #DDDDDD; | |
| 77 | +height: 22px; | |
| 78 | +border-radius: 2px; | |
| 79 | +} | |
| 80 | +.i3geoForm150 { | |
| 81 | +width: 150px; | |
| 82 | +} | |
| 83 | +.i3geoForm100 { | |
| 84 | +width: 100px; | |
| 85 | +} | |
| 86 | +.i3geoFormIconeEdita { | |
| 87 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 88 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 89 | +(min-resolution: 192dpi) { | |
| 90 | +background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 91 | +background-size: 16px 144px; | |
| 92 | +} | |
| 93 | +} | |
| 94 | +.i3geoFormIconeUsuario { | |
| 95 | +background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 96 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 97 | +(min-resolution: 192dpi) { | |
| 98 | +background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 99 | +background-size: 16px 144px; | |
| 100 | +} | |
| 101 | +} | |
| 102 | +.i3geoFormIconeSenha { | |
| 103 | +background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 104 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 105 | +(min-resolution: 192dpi) { | |
| 106 | +background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 107 | +background-size: 16px 144px; | |
| 108 | +} | |
| 109 | +} | |
| 110 | +.i3geoFormSemIcone { | |
| 111 | +background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 112 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 113 | +(min-resolution: 192dpi) { | |
| 114 | +background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 115 | +background-size: 16px 144px; | |
| 116 | +} | |
| 117 | +} | |
| 118 | +.i3geoFormTag { | |
| 119 | +background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 120 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 121 | +(min-resolution: 192dpi) { | |
| 122 | +background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 123 | +background-size: 16px 144px; | |
| 124 | +} | |
| 125 | +border-radius: 8px; | |
| 126 | +background-color: #F0F0F0; | |
| 127 | +cursor: pointer; | |
| 128 | +} | |
| 129 | +.i3geoFormIconeAquarela { | |
| 130 | +cursor: pointer; | |
| 131 | +background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 132 | +@media (-webkit-min-device-pixel-ratio: 2), | |
| 133 | +(min-resolution: 192dpi) { | |
| 134 | +background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 135 | +background-size: 16px 144px; | |
| 136 | +} | |
| 137 | +} | |
| 138 | +.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 139 | +width: 90%; | |
| 140 | +height: 22px; | |
| 141 | +border: 0; | |
| 142 | +box-shadow: none; | |
| 143 | +line-height: 1.5; | |
| 144 | +-webkit-appearance: none; | |
| 145 | +-moz-appearance: none; | |
| 146 | +text-indent: 0.01px; | |
| 147 | +text-overflow: ''; | |
| 148 | +font-size: 12px; | |
| 149 | +appearance: none; | |
| 150 | +cursor: text; | |
| 151 | +} | |
| 152 | +.i3geoFormIconeAquarela input{ | |
| 153 | +width: 80%; | |
| 154 | +} | |
| 155 | +/*hack opera */ | |
| 156 | +@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 157 | +(-webkit-min-device-pixel-ratio:0) { | |
| 158 | +.inputsb { | |
| 159 | +border: 1px solid black | |
| 160 | +} | |
| 161 | +} | |
| 162 | +/* | |
| 2 | 163 | para nao selecionar |
| 3 | 164 | */ |
| 4 | 165 | * { |
| ... | ... | @@ -8,13 +169,6 @@ para nao selecionar |
| 8 | 169 | -o-user-select: none; |
| 9 | 170 | user-select: none; |
| 10 | 171 | } |
| 11 | -input[type=text], textarea{ | |
| 12 | --webkit-user-select: text; | |
| 13 | --khtml-user-select: text; | |
| 14 | --moz-user-select: text; | |
| 15 | --o-user-select: text; | |
| 16 | -user-select: text; | |
| 17 | -} | |
| 18 | 172 | /* |
| 19 | 173 | Para nao marcar links |
| 20 | 174 | */ |
| ... | ... | @@ -576,38 +730,6 @@ text-align: center; |
| 576 | 730 | font-size: 12px; |
| 577 | 731 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 578 | 732 | } |
| 579 | -input { | |
| 580 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 581 | -font-size: 10px; | |
| 582 | -color: #2F4632; | |
| 583 | -background-color: #FFFFFF; | |
| 584 | -padding: 0; | |
| 585 | -border: 1px solid rgb(180, 180, 180); | |
| 586 | -text-align: center; | |
| 587 | -cursor: text; | |
| 588 | -} | |
| 589 | -input[type=checkbox] { | |
| 590 | -border: 0px solid white; | |
| 591 | -} | |
| 592 | -input[type=file] { | |
| 593 | -border: 0px solid white; | |
| 594 | -background-color: none; | |
| 595 | -background: none; | |
| 596 | -} | |
| 597 | -select { | |
| 598 | -box-shadow: 1px 1px 3px 0 lightgray; | |
| 599 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 600 | -font-size: 10px; | |
| 601 | -color: #2F4632; | |
| 602 | -background-color: #FFFFFF; | |
| 603 | -padding: 0; | |
| 604 | -border: 1px solid rgb(230, 230, 230); | |
| 605 | -text-align: left; | |
| 606 | -cursor: pointer; | |
| 607 | -} | |
| 608 | -select option:hover { | |
| 609 | -background-color: #CCFFFF; | |
| 610 | -} | |
| 611 | 733 | .ajuda_usuario { |
| 612 | 734 | background-image: url(../imagens/oxygen/16x16/dialog-information.png); |
| 613 | 735 | background-position: 0px 0px; |
| ... | ... | @@ -639,16 +761,6 @@ background-position: right; |
| 639 | 761 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 640 | 762 | font-size: 10px; |
| 641 | 763 | } |
| 642 | -.inputsb { | |
| 643 | -font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 644 | -font-size: 10px; | |
| 645 | -color: #2F4632; | |
| 646 | -background-color: #FFFFFF; | |
| 647 | -padding: 0; | |
| 648 | -border: 0px solid gray; | |
| 649 | -text-align: center; | |
| 650 | -cursor: text; | |
| 651 | -} | |
| 652 | 764 | .legendatemas { |
| 653 | 765 | cursor: pointer; |
| 654 | 766 | text-align: left; |
| ... | ... | @@ -1237,99 +1349,6 @@ background: transparent url("../imagens/menuarodwn8_nrm_1.gif") no-repeat scroll |
| 1237 | 1349 | background-size: 16px 144px; |
| 1238 | 1350 | } |
| 1239 | 1351 | } |
| 1240 | -.styled-select input, .styled-select150 input { | |
| 1241 | -width: 100%; | |
| 1242 | -height: 22px; | |
| 1243 | -border: 0; | |
| 1244 | -box-shadow: none; | |
| 1245 | -line-height: 1.5; | |
| 1246 | --webkit-appearance: none; | |
| 1247 | --moz-appearance: none; | |
| 1248 | -text-indent: 0.01px; | |
| 1249 | -text-overflow: ''; | |
| 1250 | -font-size: 12px; | |
| 1251 | -appearance: none; | |
| 1252 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1253 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1254 | -(min-resolution: 192dpi) { | |
| 1255 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1256 | -background-size: 16px 144px; | |
| 1257 | -} | |
| 1258 | -} | |
| 1259 | -.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 1260 | -width: 252px; | |
| 1261 | -overflow: hidden; | |
| 1262 | -background: #F8F8F8; | |
| 1263 | -border: 1px solid #DDDDDD; | |
| 1264 | -height: 22px; | |
| 1265 | -border-radius: 2px; | |
| 1266 | -} | |
| 1267 | -.i3geoForm150 { | |
| 1268 | -width: 150px; | |
| 1269 | -} | |
| 1270 | -.i3geoForm100 { | |
| 1271 | -width: 100px; | |
| 1272 | -} | |
| 1273 | -.i3geoFormIconeEdita { | |
| 1274 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1275 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1276 | -(min-resolution: 192dpi) { | |
| 1277 | -background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1278 | -background-size: 16px 144px; | |
| 1279 | -} | |
| 1280 | -} | |
| 1281 | -.i3geoFormSemIcone { | |
| 1282 | -background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1283 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1284 | -(min-resolution: 192dpi) { | |
| 1285 | -background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1286 | -background-size: 16px 144px; | |
| 1287 | -} | |
| 1288 | -} | |
| 1289 | -.i3geoFormTag { | |
| 1290 | -background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1291 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1292 | -(min-resolution: 192dpi) { | |
| 1293 | -background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1294 | -background-size: 16px 144px; | |
| 1295 | -} | |
| 1296 | -border-radius: 8px; | |
| 1297 | -background-color: #F0F0F0; | |
| 1298 | -cursor: pointer; | |
| 1299 | -} | |
| 1300 | -.i3geoFormIconeAquarela { | |
| 1301 | -cursor: pointer; | |
| 1302 | -background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 1303 | -@media (-webkit-min-device-pixel-ratio: 2), | |
| 1304 | -(min-resolution: 192dpi) { | |
| 1305 | -background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 1306 | -background-size: 16px 144px; | |
| 1307 | -} | |
| 1308 | -} | |
| 1309 | -.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 1310 | -width: 90%; | |
| 1311 | -height: 22px; | |
| 1312 | -border: 0; | |
| 1313 | -box-shadow: none; | |
| 1314 | -line-height: 1.5; | |
| 1315 | --webkit-appearance: none; | |
| 1316 | --moz-appearance: none; | |
| 1317 | -text-indent: 0.01px; | |
| 1318 | -text-overflow: ''; | |
| 1319 | -font-size: 12px; | |
| 1320 | -appearance: none; | |
| 1321 | -cursor: text; | |
| 1322 | -} | |
| 1323 | -.i3geoFormIconeAquarela input{ | |
| 1324 | -width: 80%; | |
| 1325 | -} | |
| 1326 | -/*hack opera */ | |
| 1327 | -@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 1328 | -(-webkit-min-device-pixel-ratio:0) { | |
| 1329 | -.inputsb { | |
| 1330 | -border: 1px solid black | |
| 1331 | -} | |
| 1332 | -} | |
| 1333 | 1352 | /* esconde na impressao */ |
| 1334 | 1353 | @media print { |
| 1335 | 1354 | .noprint { | ... | ... |
css/i3geo_ferramentas6.css
| 1 | +input{ | |
| 2 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 3 | +} | |
| 4 | +input[type=text], textarea{ | |
| 5 | + -webkit-user-select: text; | |
| 6 | + -khtml-user-select: text; | |
| 7 | + -moz-user-select: text; | |
| 8 | + -o-user-select: text; | |
| 9 | + user-select: text; | |
| 10 | +} | |
| 11 | + | |
| 12 | +input[type=text] { | |
| 13 | + font-size: 10px; | |
| 14 | + color: #2F4632; | |
| 15 | + background-color: #FFFFFF; | |
| 16 | + padding: 0; | |
| 17 | + border: 1px solid rgb(180, 180, 180); | |
| 18 | + text-align: center; | |
| 19 | + cursor: text; | |
| 20 | + height: 22px; | |
| 21 | +} | |
| 22 | + | |
| 23 | +input[type=checkbox] { | |
| 24 | + border: 0px solid white; | |
| 25 | +} | |
| 26 | + | |
| 27 | +input[type=file] { | |
| 28 | + border: 0px solid white; | |
| 29 | + background-color: none; | |
| 30 | + background: none; | |
| 31 | +} | |
| 32 | + | |
| 33 | +select { | |
| 34 | + box-shadow: 1px 1px 3px 0 lightgray; | |
| 35 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 36 | + font-size: 10px; | |
| 37 | + color: #2F4632; | |
| 38 | + background-color: #FFFFFF; | |
| 39 | + padding: 0; | |
| 40 | + border: 1px solid rgb(230, 230, 230); | |
| 41 | + text-align: left; | |
| 42 | + cursor: pointer; | |
| 43 | +} | |
| 44 | + | |
| 45 | +select option:hover { | |
| 46 | + background-color: #CCFFFF; | |
| 47 | +} | |
| 48 | + | |
| 49 | +.inputsb { | |
| 50 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 51 | + font-size: 10px; | |
| 52 | + color: #2F4632; | |
| 53 | + background-color: #FFFFFF; | |
| 54 | + padding: 0; | |
| 55 | + border: 0px solid gray; | |
| 56 | + text-align: center; | |
| 57 | + cursor: text; | |
| 58 | +} | |
| 59 | + | |
| 60 | +.styled-select input, .styled-select150 input { | |
| 61 | + width: 100%; | |
| 62 | + height: 22px; | |
| 63 | + border: 0; | |
| 64 | + box-shadow: none; | |
| 65 | + line-height: 1.5; | |
| 66 | + -webkit-appearance: none; | |
| 67 | + -moz-appearance: none; | |
| 68 | + text-indent: 0.01px; | |
| 69 | + text-overflow: ''; | |
| 70 | + font-size: 12px; | |
| 71 | + appearance: none; | |
| 72 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 73 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 74 | + (min-resolution: 192dpi) { | |
| 75 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 76 | + background-size: 16px 144px; | |
| 77 | + } | |
| 78 | +} | |
| 79 | + | |
| 80 | +.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 81 | + width: 252px; | |
| 82 | + overflow: hidden; | |
| 83 | + background: #F8F8F8; | |
| 84 | + border: 1px solid #DDDDDD; | |
| 85 | + height: 22px; | |
| 86 | + border-radius: 2px; | |
| 87 | +} | |
| 88 | + | |
| 89 | +.i3geoForm150 { | |
| 90 | + width: 150px; | |
| 91 | +} | |
| 92 | + | |
| 93 | +.i3geoForm100 { | |
| 94 | + width: 100px; | |
| 95 | +} | |
| 96 | + | |
| 97 | +.i3geoFormIconeEdita { | |
| 98 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 99 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 100 | + (min-resolution: 192dpi) { | |
| 101 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 102 | + background-size: 16px 144px; | |
| 103 | + } | |
| 104 | +} | |
| 105 | + | |
| 106 | +.i3geoFormIconeUsuario { | |
| 107 | + background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 108 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 109 | + (min-resolution: 192dpi) { | |
| 110 | + background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 111 | + background-size: 16px 144px; | |
| 112 | + } | |
| 113 | +} | |
| 114 | + | |
| 115 | +.i3geoFormIconeSenha { | |
| 116 | + background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 117 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 118 | + (min-resolution: 192dpi) { | |
| 119 | + background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 120 | + background-size: 16px 144px; | |
| 121 | + } | |
| 122 | +} | |
| 123 | + | |
| 124 | +.i3geoFormSemIcone { | |
| 125 | + background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 126 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 127 | + (min-resolution: 192dpi) { | |
| 128 | + background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 129 | + background-size: 16px 144px; | |
| 130 | + } | |
| 131 | +} | |
| 132 | + | |
| 133 | +.i3geoFormTag { | |
| 134 | + background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 135 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 136 | + (min-resolution: 192dpi) { | |
| 137 | + background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 138 | + background-size: 16px 144px; | |
| 139 | + } | |
| 140 | + border-radius: 8px; | |
| 141 | + background-color: #F0F0F0; | |
| 142 | + cursor: pointer; | |
| 143 | +} | |
| 144 | + | |
| 145 | +.i3geoFormIconeAquarela { | |
| 146 | + cursor: pointer; | |
| 147 | + background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 148 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 149 | + (min-resolution: 192dpi) { | |
| 150 | + background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 151 | + background-size: 16px 144px; | |
| 152 | + } | |
| 153 | + | |
| 154 | +} | |
| 155 | + | |
| 156 | +.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 157 | + width: 90%; | |
| 158 | + height: 22px; | |
| 159 | + border: 0; | |
| 160 | + box-shadow: none; | |
| 161 | + line-height: 1.5; | |
| 162 | + -webkit-appearance: none; | |
| 163 | + -moz-appearance: none; | |
| 164 | + text-indent: 0.01px; | |
| 165 | + text-overflow: ''; | |
| 166 | + font-size: 12px; | |
| 167 | + appearance: none; | |
| 168 | + cursor: text; | |
| 169 | +} | |
| 170 | + | |
| 171 | +.i3geoFormIconeAquarela input{ | |
| 172 | + width: 80%; | |
| 173 | +} | |
| 174 | + | |
| 175 | +/*hack opera */ | |
| 176 | +@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 177 | + (-webkit-min-device-pixel-ratio:0) { | |
| 178 | + .inputsb { | |
| 179 | + border: 1px solid black | |
| 180 | + } | |
| 181 | +} | |
| 182 | + | |
| 1 | 183 | /* |
| 2 | 184 | para nao selecionar |
| 3 | 185 | */ |
| ... | ... | @@ -8,13 +190,7 @@ para nao selecionar |
| 8 | 190 | -o-user-select: none; |
| 9 | 191 | user-select: none; |
| 10 | 192 | } |
| 11 | -input[type=text], textarea{ | |
| 12 | - -webkit-user-select: text; | |
| 13 | - -khtml-user-select: text; | |
| 14 | - -moz-user-select: text; | |
| 15 | - -o-user-select: text; | |
| 16 | - user-select: text; | |
| 17 | -} | |
| 193 | + | |
| 18 | 194 | /* |
| 19 | 195 | Para nao marcar links |
| 20 | 196 | */ |
| ... | ... | @@ -641,43 +817,6 @@ td { |
| 641 | 817 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 642 | 818 | } |
| 643 | 819 | |
| 644 | -input { | |
| 645 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 646 | - font-size: 10px; | |
| 647 | - color: #2F4632; | |
| 648 | - background-color: #FFFFFF; | |
| 649 | - padding: 0; | |
| 650 | - border: 1px solid rgb(180, 180, 180); | |
| 651 | - text-align: center; | |
| 652 | - cursor: text; | |
| 653 | -} | |
| 654 | - | |
| 655 | -input[type=checkbox] { | |
| 656 | - border: 0px solid white; | |
| 657 | -} | |
| 658 | - | |
| 659 | -input[type=file] { | |
| 660 | - border: 0px solid white; | |
| 661 | - background-color: none; | |
| 662 | - background: none; | |
| 663 | -} | |
| 664 | - | |
| 665 | -select { | |
| 666 | - box-shadow: 1px 1px 3px 0 lightgray; | |
| 667 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 668 | - font-size: 10px; | |
| 669 | - color: #2F4632; | |
| 670 | - background-color: #FFFFFF; | |
| 671 | - padding: 0; | |
| 672 | - border: 1px solid rgb(230, 230, 230); | |
| 673 | - text-align: left; | |
| 674 | - cursor: pointer; | |
| 675 | -} | |
| 676 | - | |
| 677 | -select option:hover { | |
| 678 | - background-color: #CCFFFF; | |
| 679 | -} | |
| 680 | - | |
| 681 | 820 | .ajuda_usuario { |
| 682 | 821 | background-image: url(../imagens/oxygen/16x16/dialog-information.png); |
| 683 | 822 | background-position: 0px 0px; |
| ... | ... | @@ -712,17 +851,6 @@ select option:hover { |
| 712 | 851 | font-size: 10px; |
| 713 | 852 | } |
| 714 | 853 | |
| 715 | -.inputsb { | |
| 716 | - font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 717 | - font-size: 10px; | |
| 718 | - color: #2F4632; | |
| 719 | - background-color: #FFFFFF; | |
| 720 | - padding: 0; | |
| 721 | - border: 0px solid gray; | |
| 722 | - text-align: center; | |
| 723 | - cursor: text; | |
| 724 | -} | |
| 725 | - | |
| 726 | 854 | .legendatemas { |
| 727 | 855 | cursor: pointer; |
| 728 | 856 | text-align: left; |
| ... | ... | @@ -933,6 +1061,7 @@ select option:hover { |
| 933 | 1061 | .digitar input { |
| 934 | 1062 | border: 1px solid rgb(180, 180, 180); |
| 935 | 1063 | } |
| 1064 | + | |
| 936 | 1065 | .digitarOver { |
| 937 | 1066 | margin: 0px; |
| 938 | 1067 | color: #426252; |
| ... | ... | @@ -1385,110 +1514,6 @@ h1 { |
| 1385 | 1514 | } |
| 1386 | 1515 | } |
| 1387 | 1516 | |
| 1388 | -.styled-select input, .styled-select150 input { | |
| 1389 | - width: 100%; | |
| 1390 | - height: 22px; | |
| 1391 | - border: 0; | |
| 1392 | - box-shadow: none; | |
| 1393 | - line-height: 1.5; | |
| 1394 | - -webkit-appearance: none; | |
| 1395 | - -moz-appearance: none; | |
| 1396 | - text-indent: 0.01px; | |
| 1397 | - text-overflow: ''; | |
| 1398 | - font-size: 12px; | |
| 1399 | - appearance: none; | |
| 1400 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1401 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1402 | - (min-resolution: 192dpi) { | |
| 1403 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 1404 | - background-size: 16px 144px; | |
| 1405 | - } | |
| 1406 | -} | |
| 1407 | - | |
| 1408 | -.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 1409 | - width: 252px; | |
| 1410 | - overflow: hidden; | |
| 1411 | - background: #F8F8F8; | |
| 1412 | - border: 1px solid #DDDDDD; | |
| 1413 | - height: 22px; | |
| 1414 | - border-radius: 2px; | |
| 1415 | -} | |
| 1416 | - | |
| 1417 | -.i3geoForm150 { | |
| 1418 | - width: 150px; | |
| 1419 | -} | |
| 1420 | - | |
| 1421 | -.i3geoForm100 { | |
| 1422 | - width: 100px; | |
| 1423 | -} | |
| 1424 | - | |
| 1425 | -.i3geoFormIconeEdita { | |
| 1426 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1427 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1428 | - (min-resolution: 192dpi) { | |
| 1429 | - background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 1430 | - background-size: 16px 144px; | |
| 1431 | - } | |
| 1432 | -} | |
| 1433 | - | |
| 1434 | -.i3geoFormSemIcone { | |
| 1435 | - background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1436 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1437 | - (min-resolution: 192dpi) { | |
| 1438 | - background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 1439 | - background-size: 16px 144px; | |
| 1440 | - } | |
| 1441 | -} | |
| 1442 | - | |
| 1443 | -.i3geoFormTag { | |
| 1444 | - background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1445 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1446 | - (min-resolution: 192dpi) { | |
| 1447 | - background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 1448 | - background-size: 16px 144px; | |
| 1449 | - } | |
| 1450 | - border-radius: 8px; | |
| 1451 | - background-color: #F0F0F0; | |
| 1452 | - cursor: pointer; | |
| 1453 | -} | |
| 1454 | - | |
| 1455 | -.i3geoFormIconeAquarela { | |
| 1456 | - cursor: pointer; | |
| 1457 | - background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 1458 | - @media (-webkit-min-device-pixel-ratio: 2), | |
| 1459 | - (min-resolution: 192dpi) { | |
| 1460 | - background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 1461 | - background-size: 16px 144px; | |
| 1462 | - } | |
| 1463 | - | |
| 1464 | -} | |
| 1465 | - | |
| 1466 | -.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 1467 | - width: 90%; | |
| 1468 | - height: 22px; | |
| 1469 | - border: 0; | |
| 1470 | - box-shadow: none; | |
| 1471 | - line-height: 1.5; | |
| 1472 | - -webkit-appearance: none; | |
| 1473 | - -moz-appearance: none; | |
| 1474 | - text-indent: 0.01px; | |
| 1475 | - text-overflow: ''; | |
| 1476 | - font-size: 12px; | |
| 1477 | - appearance: none; | |
| 1478 | - cursor: text; | |
| 1479 | -} | |
| 1480 | - | |
| 1481 | -.i3geoFormIconeAquarela input{ | |
| 1482 | - width: 80%; | |
| 1483 | -} | |
| 1484 | - | |
| 1485 | -/*hack opera */ | |
| 1486 | -@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 1487 | - (-webkit-min-device-pixel-ratio:0) { | |
| 1488 | - .inputsb { | |
| 1489 | - border: 1px solid black | |
| 1490 | - } | |
| 1491 | -} | |
| 1492 | 1517 | /* esconde na impressao */ |
| 1493 | 1518 | @media print { |
| 1494 | 1519 | .noprint { | ... | ... |
| ... | ... | @@ -0,0 +1,181 @@ |
| 1 | +input{ | |
| 2 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 3 | +} | |
| 4 | +input[type=text], textarea{ | |
| 5 | + -webkit-user-select: text; | |
| 6 | + -khtml-user-select: text; | |
| 7 | + -moz-user-select: text; | |
| 8 | + -o-user-select: text; | |
| 9 | + user-select: text; | |
| 10 | +} | |
| 11 | + | |
| 12 | +input[type=text] { | |
| 13 | + font-size: 10px; | |
| 14 | + color: #2F4632; | |
| 15 | + background-color: #FFFFFF; | |
| 16 | + padding: 0; | |
| 17 | + border: 1px solid rgb(180, 180, 180); | |
| 18 | + text-align: center; | |
| 19 | + cursor: text; | |
| 20 | + height: 22px; | |
| 21 | +} | |
| 22 | + | |
| 23 | +input[type=checkbox] { | |
| 24 | + border: 0px solid white; | |
| 25 | +} | |
| 26 | + | |
| 27 | +input[type=file] { | |
| 28 | + border: 0px solid white; | |
| 29 | + background-color: none; | |
| 30 | + background: none; | |
| 31 | +} | |
| 32 | + | |
| 33 | +select { | |
| 34 | + box-shadow: 1px 1px 3px 0 lightgray; | |
| 35 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 36 | + font-size: 10px; | |
| 37 | + color: #2F4632; | |
| 38 | + background-color: #FFFFFF; | |
| 39 | + padding: 0; | |
| 40 | + border: 1px solid rgb(230, 230, 230); | |
| 41 | + text-align: left; | |
| 42 | + cursor: pointer; | |
| 43 | +} | |
| 44 | + | |
| 45 | +select option:hover { | |
| 46 | + background-color: #CCFFFF; | |
| 47 | +} | |
| 48 | + | |
| 49 | +.inputsb { | |
| 50 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
| 51 | + font-size: 10px; | |
| 52 | + color: #2F4632; | |
| 53 | + background-color: #FFFFFF; | |
| 54 | + padding: 0; | |
| 55 | + border: 0px solid gray; | |
| 56 | + text-align: center; | |
| 57 | + cursor: text; | |
| 58 | +} | |
| 59 | + | |
| 60 | +.styled-select input, .styled-select150 input { | |
| 61 | + width: 100%; | |
| 62 | + height: 22px; | |
| 63 | + border: 0; | |
| 64 | + box-shadow: none; | |
| 65 | + line-height: 1.5; | |
| 66 | + -webkit-appearance: none; | |
| 67 | + -moz-appearance: none; | |
| 68 | + text-indent: 0.01px; | |
| 69 | + text-overflow: ''; | |
| 70 | + font-size: 12px; | |
| 71 | + appearance: none; | |
| 72 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 73 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 74 | + (min-resolution: 192dpi) { | |
| 75 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 97% 5px; | |
| 76 | + background-size: 16px 144px; | |
| 77 | + } | |
| 78 | +} | |
| 79 | + | |
| 80 | +.i3geoForm, .i3geoForm150, .i3geoForm100 { | |
| 81 | + width: 252px; | |
| 82 | + overflow: hidden; | |
| 83 | + background: #F8F8F8; | |
| 84 | + border: 1px solid #DDDDDD; | |
| 85 | + height: 22px; | |
| 86 | + border-radius: 2px; | |
| 87 | +} | |
| 88 | + | |
| 89 | +.i3geoForm150 { | |
| 90 | + width: 150px; | |
| 91 | +} | |
| 92 | + | |
| 93 | +.i3geoForm100 { | |
| 94 | + width: 100px; | |
| 95 | +} | |
| 96 | + | |
| 97 | +.i3geoFormIconeEdita { | |
| 98 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 99 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 100 | + (min-resolution: 192dpi) { | |
| 101 | + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; | |
| 102 | + background-size: 16px 144px; | |
| 103 | + } | |
| 104 | +} | |
| 105 | + | |
| 106 | +.i3geoFormIconeUsuario { | |
| 107 | + background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 108 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 109 | + (min-resolution: 192dpi) { | |
| 110 | + background: transparent url("../imagens/oxygen/22x22/system-users.png") no-repeat scroll 100% 0px; | |
| 111 | + background-size: 16px 144px; | |
| 112 | + } | |
| 113 | +} | |
| 114 | + | |
| 115 | +.i3geoFormIconeSenha { | |
| 116 | + background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 117 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 118 | + (min-resolution: 192dpi) { | |
| 119 | + background: transparent url("../imagens/oxygen/22x22/preferences-desktop-user-password.png") no-repeat scroll 100% 0px; | |
| 120 | + background-size: 16px 144px; | |
| 121 | + } | |
| 122 | +} | |
| 123 | + | |
| 124 | +.i3geoFormSemIcone { | |
| 125 | + background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 126 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 127 | + (min-resolution: 192dpi) { | |
| 128 | + background: transparent url("../imagens/branco.gif") no-repeat scroll 100% 5px; | |
| 129 | + background-size: 16px 144px; | |
| 130 | + } | |
| 131 | +} | |
| 132 | + | |
| 133 | +.i3geoFormTag { | |
| 134 | + background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 135 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 136 | + (min-resolution: 192dpi) { | |
| 137 | + background: transparent url("../imagens/oxygen/16x16/list-remove.png") no-repeat scroll 100% 3px; | |
| 138 | + background-size: 16px 144px; | |
| 139 | + } | |
| 140 | + border-radius: 8px; | |
| 141 | + background-color: #F0F0F0; | |
| 142 | + cursor: pointer; | |
| 143 | +} | |
| 144 | + | |
| 145 | +.i3geoFormIconeAquarela { | |
| 146 | + cursor: pointer; | |
| 147 | + background: transparent url("../imagens/aquarela.gif") no-repeat scroll 98% 5px; | |
| 148 | + @media (-webkit-min-device-pixel-ratio: 2), | |
| 149 | + (min-resolution: 192dpi) { | |
| 150 | + background: transparent url("../imagens/aquarela.gif") no-repeat scroll 100% 5px; | |
| 151 | + background-size: 16px 144px; | |
| 152 | + } | |
| 153 | + | |
| 154 | +} | |
| 155 | + | |
| 156 | +.i3geoForm input, .i3geoForm150 input, .i3geoForm100 input { | |
| 157 | + width: 90%; | |
| 158 | + height: 22px; | |
| 159 | + border: 0; | |
| 160 | + box-shadow: none; | |
| 161 | + line-height: 1.5; | |
| 162 | + -webkit-appearance: none; | |
| 163 | + -moz-appearance: none; | |
| 164 | + text-indent: 0.01px; | |
| 165 | + text-overflow: ''; | |
| 166 | + font-size: 12px; | |
| 167 | + appearance: none; | |
| 168 | + cursor: text; | |
| 169 | +} | |
| 170 | + | |
| 171 | +.i3geoFormIconeAquarela input{ | |
| 172 | + width: 80%; | |
| 173 | +} | |
| 174 | + | |
| 175 | +/*hack opera */ | |
| 176 | +@media all and (-webkit-min-device-pixel-ratio:10000) , not all and | |
| 177 | + (-webkit-min-device-pixel-ratio:0) { | |
| 178 | + .inputsb { | |
| 179 | + border: 1px solid black | |
| 180 | + } | |
| 181 | +} | ... | ... |
ferramentas/aplicarsld/upload.php
| ... | ... | @@ -13,6 +13,7 @@ $postgis_mapa = $_SESSION["postgis_mapa"]; |
| 13 | 13 | ?> |
| 14 | 14 | <html> |
| 15 | 15 | <head> |
| 16 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 16 | 17 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 17 | 18 | <title></title> |
| 18 | 19 | </head> | ... | ... |
ferramentas/bufferpt/index.js
| ... | ... | @@ -64,7 +64,6 @@ i3GEOF.bufferpt = { |
| 64 | 64 | */ |
| 65 | 65 | mustacheHash : function() { |
| 66 | 66 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.bufferpt.dicionario); |
| 67 | - dicionario["distancia"] = $inputText('','','i3GEOFbufferptDistancia','',10,0); | |
| 68 | 67 | dicionario["x"] = i3GEOF.bufferpt.x; |
| 69 | 68 | dicionario["y"] = i3GEOF.bufferpt.y; |
| 70 | 69 | return dicionario; |
| ... | ... | @@ -139,7 +138,7 @@ i3GEOF.bufferpt = { |
| 139 | 138 | titulo = "<div class='i3GeoTituloJanela'>" + $trad("u10")+"<a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=24&idajuda=3' ><b> </b></a></div>"; |
| 140 | 139 | janela = i3GEO.janela.cria( |
| 141 | 140 | "290px", |
| 142 | - "110px", | |
| 141 | + "130px", | |
| 143 | 142 | "", |
| 144 | 143 | "", |
| 145 | 144 | "", | ... | ... |
ferramentas/bufferpt/template_mst.html
| 1 | 1 | <p class='paragrafo'>{{{entorno}}}</p> |
| 2 | -{{{distancia}}} | |
| 3 | -<br> | |
| 2 | +<div class='i3geoForm i3geoFormIconeEdita'> | |
| 3 | +<input id='i3GEOFbufferptDistancia' type=text value='' /> | |
| 4 | +</div> | |
| 4 | 5 | <br> |
| 5 | 6 | <p class='paragrafo'> |
| 6 | 7 | <input id='i3GEObufferptbotao1' size='16' type='button' value='{{{criaEntorno}}}' /> |
| 7 | -</p> | |
| 8 | +<br> | |
| 9 | +<p class='paragrafo'> | |
| 8 | 10 | <b>X:</b> {{{x}}} <b>Y:</b> {{{y}}} |
| 9 | 11 | \ No newline at end of file | ... | ... |
ferramentas/carregamapa/upload.php
| ... | ... | @@ -12,6 +12,7 @@ $postgis_mapa = $_SESSION["postgis_mapa"]; |
| 12 | 12 | ?> |
| 13 | 13 | <html> |
| 14 | 14 | <head> |
| 15 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 15 | 16 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 16 | 17 | <title></title> |
| 17 | 18 | </head> | ... | ... |
ferramentas/editorol/editorol.js
| ... | ... | @@ -80,92 +80,6 @@ i3GEO.editorOL = |
| 80 | 80 | map : i3geoOL |
| 81 | 81 | }), |
| 82 | 82 | nomeFuncaoSalvar : "i3GEO.editorOL.salvaGeo()", |
| 83 | - //substituir por i3GEO.Interface.openlayers.fundoDefault() | |
| 84 | - /* | |
| 85 | - e_oce : new ol.layer.Tile( | |
| 86 | - { | |
| 87 | - title : "ESRI Ocean Basemap", | |
| 88 | - visible : false, | |
| 89 | - isBaseLayer : true, | |
| 90 | - name : "oce", | |
| 91 | - source : new ol.source.TileArcGISRest( | |
| 92 | - { | |
| 93 | - url : "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer", | |
| 94 | - attributions : [ | |
| 95 | - new ol.Attribution( | |
| 96 | - { | |
| 97 | - html : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer">ArcGIS</a>' | |
| 98 | - }) | |
| 99 | - ] | |
| 100 | - }) | |
| 101 | - }), | |
| 102 | - e_ims : new ol.layer.Tile( | |
| 103 | - { | |
| 104 | - title : "ESRI Imagery World 2D", | |
| 105 | - visible : false, | |
| 106 | - isBaseLayer : true, | |
| 107 | - name : "ims", | |
| 108 | - source : new ol.source.TileArcGISRest( | |
| 109 | - { | |
| 110 | - url : "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer", | |
| 111 | - attributions : [ | |
| 112 | - new ol.Attribution( | |
| 113 | - { | |
| 114 | - html : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer">ArcGIS</a>' | |
| 115 | - }) | |
| 116 | - ] | |
| 117 | - }) | |
| 118 | - }), | |
| 119 | - e_wsm : new ol.layer.Tile( | |
| 120 | - { | |
| 121 | - title : "ESRI World Street Map", | |
| 122 | - visible : false, | |
| 123 | - isBaseLayer : true, | |
| 124 | - name : "wsm", | |
| 125 | - source : new ol.source.TileArcGISRest( | |
| 126 | - { | |
| 127 | - url : "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer", | |
| 128 | - attributions : [ | |
| 129 | - new ol.Attribution( | |
| 130 | - { | |
| 131 | - html : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer">ArcGIS</a>' | |
| 132 | - }) | |
| 133 | - ] | |
| 134 | - }) | |
| 135 | - }), | |
| 136 | - ol_mma : new ol.layer.Tile({ | |
| 137 | - title : "Base carto MMA", | |
| 138 | - visible : false, | |
| 139 | - isBaseLayer : true, | |
| 140 | - name : "bra", | |
| 141 | - source : new ol.source.TileWMS({ | |
| 142 | - url : "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map&", | |
| 143 | - params : { | |
| 144 | - 'layers' : "baseraster", | |
| 145 | - 'srs' : "EPSG:4326", | |
| 146 | - 'format' : "image/png" | |
| 147 | - } | |
| 148 | - }) | |
| 149 | - }), | |
| 150 | - ol_wms : new ol.layer.Tile( | |
| 151 | - { | |
| 152 | - title : "ESRI World Street Map", | |
| 153 | - visible : false, | |
| 154 | - isBaseLayer : true, | |
| 155 | - name : "wsm", | |
| 156 | - source : new ol.source.TileArcGISRest( | |
| 157 | - { | |
| 158 | - url : "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer", | |
| 159 | - attributions : [ | |
| 160 | - new ol.Attribution( | |
| 161 | - { | |
| 162 | - html : 'Tiles © <a href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer">ArcGIS</a>' | |
| 163 | - }) | |
| 164 | - ] | |
| 165 | - }) | |
| 166 | - }), | |
| 167 | - fundo : "e_ims,e_wsm,ol_mma,ol_wms,top_wms", | |
| 168 | - */ | |
| 169 | 83 | kml : [], |
| 170 | 84 | layersIniciais : [], |
| 171 | 85 | //essa configuracao dos botoes afeta apenas o mashup |
| ... | ... | @@ -468,39 +382,38 @@ i3GEO.editorOL = |
| 468 | 382 | ins += "<br>" + $trad("t23") + ":<br><input type=text size=20 id=i3GEOOLpalavraBusca >"; |
| 469 | 383 | ins += "<br><br><input type=button value='" + $trad("t23") + "' id='i3GEOOLbotaoBusca' ></div>"; |
| 470 | 384 | ins += "<br>'" + $trad("result") + "':<br><span id=i3GEOOLcomboresultado ></span>"; |
| 471 | - try { | |
| 472 | - YAHOO.namespace("procura.container"); | |
| 473 | - YAHOO.procura.container.panel = new YAHOO.widget.Panel("panelprocura", { | |
| 474 | - zIndex : 2000, | |
| 475 | - iframe : false, | |
| 476 | - width : "250px", | |
| 477 | - visible : false, | |
| 478 | - draggable : true, | |
| 479 | - close : true | |
| 480 | - }); | |
| 481 | - YAHOO.procura.container.panel.setHeader("Encontre no mapa"); | |
| 482 | - YAHOO.procura.container.panel.setBody(ins); | |
| 483 | - YAHOO.procura.container.panel.setFooter(""); | |
| 484 | - YAHOO.procura.container.panel.render(document.body); | |
| 485 | - YAHOO.procura.container.panel.center(); | |
| 486 | 385 | |
| 487 | - document.getElementById("i3GEOOLbotaoBusca").onclick = | |
| 488 | - function() { | |
| 489 | - var layer = i3GEO.editorOL.layerAtivo(), item = document.getElementById("i3GEOOLbuscaItem").value, palavra = | |
| 490 | - document.getElementById("i3GEOOLpalavraBusca").value; | |
| 491 | - if (item === "" || palavra === "") { | |
| 492 | - alert("Escolha o item e o texto de busca"); | |
| 493 | - return; | |
| 494 | - } | |
| 495 | - i3GEO.editorOL.busca(layer, item, palavra, "i3GEOOLcomboresultado"); | |
| 496 | - }; | |
| 497 | - document.getElementById("i3GEOOLlistaTemasBusca").onchange = function() { | |
| 498 | - i3GEO.editorOL.ativaTema(this.value); | |
| 499 | - document.getElementById("i3GEOOLcomboitens").innerHTML = "..."; | |
| 500 | - i3GEO.editorOL.listaItens(i3GEO.editorOL.layerAtivo(), "i3GEOOLcomboitens", "i3GEOOLbuscaItem"); | |
| 386 | + YAHOO.namespace("procura.container"); | |
| 387 | + YAHOO.procura.container.panel = new YAHOO.widget.Panel("panelprocura", { | |
| 388 | + zIndex : 2000, | |
| 389 | + iframe : false, | |
| 390 | + width : "250px", | |
| 391 | + visible : false, | |
| 392 | + draggable : true, | |
| 393 | + close : true | |
| 394 | + }); | |
| 395 | + YAHOO.procura.container.panel.setHeader("Encontre no mapa"); | |
| 396 | + YAHOO.procura.container.panel.setBody(ins); | |
| 397 | + YAHOO.procura.container.panel.setFooter(""); | |
| 398 | + YAHOO.procura.container.panel.render(document.body); | |
| 399 | + YAHOO.procura.container.panel.center(); | |
| 400 | + | |
| 401 | + document.getElementById("i3GEOOLbotaoBusca").onclick = | |
| 402 | + function() { | |
| 403 | + var layer = i3GEO.editorOL.layerAtivo(), item = document.getElementById("i3GEOOLbuscaItem").value, palavra = | |
| 404 | + document.getElementById("i3GEOOLpalavraBusca").value; | |
| 405 | + if (item === "" || palavra === "") { | |
| 406 | + alert("Escolha o item e o texto de busca"); | |
| 407 | + return; | |
| 408 | + } | |
| 409 | + i3GEO.editorOL.busca(layer, item, palavra, "i3GEOOLcomboresultado"); | |
| 501 | 410 | }; |
| 502 | - } catch (e) { | |
| 503 | - } | |
| 411 | + document.getElementById("i3GEOOLlistaTemasBusca").onchange = function() { | |
| 412 | + i3GEO.editorOL.ativaTema(this.value); | |
| 413 | + document.getElementById("i3GEOOLcomboitens").innerHTML = "..."; | |
| 414 | + i3GEO.editorOL.listaItens(i3GEO.editorOL.layerAtivo(), "i3GEOOLcomboitens", "i3GEOOLbuscaItem"); | |
| 415 | + }; | |
| 416 | + | |
| 504 | 417 | }, |
| 505 | 418 | criaComboTemas : function() { |
| 506 | 419 | var layers = i3GEO.editorOL.layersLigados(), nlayers = layers.length, i, nometema = "", combo = |
| ... | ... | @@ -719,9 +632,6 @@ i3GEO.editorOL = |
| 719 | 632 | } catch (e) { |
| 720 | 633 | } |
| 721 | 634 | } |
| 722 | - // var w = window.open(); | |
| 723 | - // w.document.write(ins); | |
| 724 | - // w.document.close(); | |
| 725 | 635 | if (!document.getElementById("panellegendaeditorOL")) { |
| 726 | 636 | YAHOO.namespace("legendaeditorOL.container"); |
| 727 | 637 | YAHOO.legendaeditorOL.container.panel = new YAHOO.widget.Panel("panellegendaeditorOL", { |
| ... | ... | @@ -747,8 +657,8 @@ i3GEO.editorOL = |
| 747 | 657 | YAHOO.legendaeditorOL.container.panel.show(); |
| 748 | 658 | } |
| 749 | 659 | }, |
| 750 | - captura : function(x,y,tema) { | |
| 751 | - var d = 0.1, | |
| 660 | + captura : function(x,y,tema,idunico) { | |
| 661 | + var d = 0.001, | |
| 752 | 662 | layer = i3geoOL.getLayersByName(tema)[0], |
| 753 | 663 | xy = [x,y], |
| 754 | 664 | u = layer.getSource().getUrls()[0], |
| ... | ... | @@ -809,6 +719,9 @@ i3GEO.editorOL = |
| 809 | 719 | }) |
| 810 | 720 | ); |
| 811 | 721 | f.setId(i3GEO.util.uid()); |
| 722 | + f.setProperties({ | |
| 723 | + idUnico : idunico | |
| 724 | + }); | |
| 812 | 725 | c.addFeature(f); |
| 813 | 726 | } |
| 814 | 727 | }; |
| ... | ... | @@ -818,7 +731,8 @@ i3GEO.editorOL = |
| 818 | 731 | cpJSON.call(u, "foo", retorno, ""); |
| 819 | 732 | }, |
| 820 | 733 | salvaGeometrias : function() { |
| 821 | - var geos = i3GEO.desenho.layergrafico.selectedFeatures, n = geos.length, ins = ""; | |
| 734 | + var n = i3GEO.editorOL.idsSelecionados.length, | |
| 735 | + ins = ""; | |
| 822 | 736 | if (n > 0) { |
| 823 | 737 | if ($i("panelsalvageometrias")) { |
| 824 | 738 | if (YAHOO.i3GEO) { |
| ... | ... | @@ -872,28 +786,13 @@ i3GEO.editorOL = |
| 872 | 786 | i3GEO.editorOL.processageo("incorporar"); |
| 873 | 787 | }, |
| 874 | 788 | listaGeometriasSel : function() { |
| 875 | - var geos = i3GEO.desenho.layergrafico.selectedFeatures, n = geos.length, ins = "", i, a, w, g; | |
| 789 | + var n = i3GEO.editorOL.idsSelecionados.length, | |
| 790 | + ins = "", | |
| 791 | + s = i3GEO.desenho.layergrafico.getSource(), | |
| 792 | + i, w, g; | |
| 876 | 793 | for (i = 0; i < n; i++) { |
| 877 | - g = geos[i]; | |
| 878 | - ins += "<b>" + $trad("u6") + ": " + i + "</b><br>" + i3GEO.editorOL.google2wgs(g.geometry) + "<br><br>"; | |
| 879 | - ins += "<b>" + $trad("atrib") + ": " + i + "</b><br>"; | |
| 880 | - a = g.attributes; | |
| 881 | - for (key in a) { | |
| 882 | - if (a[key]) { | |
| 883 | - ins += key + " = " + a[key] + "<br>"; | |
| 884 | - } | |
| 885 | - } | |
| 886 | - // lista os registros se for fruto de uma captura | |
| 887 | - if (g.attributes.registros) { | |
| 888 | - ins += "<b>" + $trad("reg") + ": " + i + "</b><br>"; | |
| 889 | - a = g.attributes.registros; | |
| 890 | - for (key in a) { | |
| 891 | - if (a[key]) { | |
| 892 | - ins += key + " = " + a[key] + "<br>"; | |
| 893 | - } | |
| 894 | - } | |
| 895 | - } | |
| 896 | - ins += "<br>"; | |
| 794 | + g = s.getFeatureById(i3GEO.editorOL.idsSelecionados[i]); | |
| 795 | + ins += "<b>" + $trad("u6") + ": #" + i + "</b><br>" + i3GEO.editorOL.google2wgs(g.getGeometry().getCoordinates()) + "<br><br>"; | |
| 897 | 796 | } |
| 898 | 797 | w = window.open(); |
| 899 | 798 | w.document.write(ins); |
| ... | ... | @@ -903,53 +802,55 @@ i3GEO.editorOL = |
| 903 | 802 | alert("Funcao nao disponivel. Defina o nome da funcao em i3GEO.editorOL.nomeFuncaoSalvar "); |
| 904 | 803 | }, |
| 905 | 804 | salvaGeo : function() { |
| 906 | - // i3GEO.editorOL.testeSalvar(); | |
| 907 | - // return; | |
| 908 | - var geos = i3GEO.desenho.layergrafico.selectedFeatures, n = geos.length, funcaoOK = | |
| 909 | - function() { | |
| 805 | + var s = i3GEO.desenho.layergrafico.getSource(), | |
| 806 | + n = i3GEO.editorOL.idsSelecionados.length, | |
| 807 | + funcaoOK = function() { | |
| 910 | 808 | // verifica se a geometria contem o atributo que indica a coluna ou codigo unico |
| 911 | - if (geos[0].geometry) { | |
| 912 | - var registros = "", valorunico = "", nometema = $i("editorOLcomboTemaEditavel").value, key = "", tema, redesenha, p, g = | |
| 913 | - i3GEO.editorOL.google2wgs(geos[0].geometry); | |
| 914 | - if (nometema == "") { | |
| 915 | - return; | |
| 916 | - } | |
| 917 | - tema = i3GEO.arvoreDeCamadas.pegaTema(nometema, "", "name"); | |
| 918 | - // o tema contem o indicador de qual e a coluna que contem o identificador unico | |
| 919 | - if (geos[0].attributes.registros) { | |
| 920 | - registros = geos[0].attributes.registros; | |
| 921 | - for (key in registros) { | |
| 922 | - if (registros[key] && key == tema.colunaidunico) { | |
| 923 | - valorunico = registros[key]; | |
| 924 | - } | |
| 925 | - } | |
| 926 | - } | |
| 927 | - redesenha = function(retorno) { | |
| 928 | - i3GEO.janela.fechaAguarde("aguardeSalvaPonto"); | |
| 929 | - i3GEO.desenho.layergrafico.removeFeatures(i3GEO.desenho.layergrafico.selectedFeatures); | |
| 930 | - i3GEO.Interface.atualizaTema("", nometema); | |
| 931 | - }; | |
| 932 | - i3GEO.janela.AGUARDEMODAL = true; | |
| 933 | - i3GEO.janela.abreAguarde("aguardeSalvaPonto", $trad("adic") + "..."); | |
| 934 | - i3GEO.janela.AGUARDEMODAL = false; | |
| 809 | + var f = s.getFeatureById(i3GEO.editorOL.idsSelecionados[0]), | |
| 810 | + g = f.getGeometry(), | |
| 811 | + tema = $i("editorOLcomboTemaEditavel").value, | |
| 812 | + redesenha, p, format; | |
| 935 | 813 | |
| 936 | - // cria um novo registro | |
| 937 | - if (valorunico == "") { | |
| 938 | - p = | |
| 939 | - i3GEO.configura.locaplic + "/ferramentas/editortema/exec.php?funcao=adicionaGeometria&g_sid=" | |
| 940 | - + i3GEO.configura.sid; | |
| 941 | - cpJSON.call(p, "foo", redesenha, "&tema=" + nometema + "&wkt=" + g); | |
| 942 | - } else { | |
| 943 | - // atualiza a geometria | |
| 944 | - p = | |
| 945 | - i3GEO.configura.locaplic + "/ferramentas/editortema/exec.php?funcao=atualizaGeometria&g_sid=" | |
| 946 | - + i3GEO.configura.sid; | |
| 947 | - cpJSON.call(p, "foo", redesenha, "&idunico=" + valorunico + "&tema=" + nometema + "&wkt=" + g); | |
| 948 | - } | |
| 814 | + g = i3GEO.editorOL.google2wgs(g); | |
| 815 | + format = new ol.format.WKT(); | |
| 816 | + f.setGeometry(g); | |
| 817 | + | |
| 818 | + if (tema == "") { | |
| 819 | + return; | |
| 820 | + } | |
| 821 | + redesenha = function(retorno) { | |
| 822 | + i3GEO.janela.fechaAguarde("aguardeSalvaPonto"); | |
| 823 | + i3GEO.editorOL.removeFeaturesSel(); | |
| 824 | + i3GEO.Interface.atualizaTema("", tema); | |
| 825 | + }; | |
| 826 | + i3GEO.janela.AGUARDEMODAL = true; | |
| 827 | + i3GEO.janela.abreAguarde("aguardeSalvaPonto", $trad("adic") + "..."); | |
| 828 | + i3GEO.janela.AGUARDEMODAL = false; | |
| 829 | + | |
| 830 | + // cria um novo registro | |
| 831 | + if(!f.getProperties().idUnico || f.getProperties().idUnico == ""){ | |
| 832 | + p = i3GEO.configura.locaplic | |
| 833 | + + "/ferramentas/editortema/exec.php?funcao=adicionaGeometria&g_sid=" | |
| 834 | + + i3GEO.configura.sid; | |
| 835 | + cpJSON.call(p, "foo", redesenha, "&tema=" + tema + "&wkt=" + format.writeFeatures([f])); | |
| 836 | + } else { | |
| 837 | + // atualiza a geometria | |
| 838 | + p = i3GEO.configura.locaplic | |
| 839 | + + "/ferramentas/editortema/exec.php?funcao=atualizaGeometria&g_sid=" | |
| 840 | + + i3GEO.configura.sid; | |
| 841 | + cpJSON.call( | |
| 842 | + p, | |
| 843 | + "foo", | |
| 844 | + redesenha, | |
| 845 | + "&idunico=" + f.getProperties().idUnico + "&tema=" + tema + "&wkt=" + format.writeFeatures([f]) | |
| 846 | + ); | |
| 949 | 847 | } |
| 950 | - }, funcaoCombo = function(obj) { | |
| 951 | - $i("editorOLondeComboTemaEditavel").innerHTML = obj.dados; | |
| 952 | - }, texto = $trad("stema") + ":<br><div id=editorOLondeComboTemaEditavel ></div><br><br>"; | |
| 848 | + }, | |
| 849 | + funcaoCombo = function(obj) { | |
| 850 | + $i("editorOLondeComboTemaEditavel").innerHTML = obj.dados; | |
| 851 | + }, | |
| 852 | + texto = $trad("stema") + ":<br><div id=editorOLondeComboTemaEditavel ></div><p class=paragrafo >"+$trad("salvaDadosEditor")+"</p><br><br>"; | |
| 853 | + //monta a janela para o usuario escolher em qual camada os dados serao salvos | |
| 953 | 854 | if (n != 1) { |
| 954 | 855 | i3GEO.janela.tempoMsg($trad("seluma")); |
| 955 | 856 | } else { |
| ... | ... | @@ -981,620 +882,719 @@ i3GEO.editorOL = |
| 981 | 882 | } |
| 982 | 883 | i3GEO.editorOL.interacoes = []; |
| 983 | 884 | }, |
| 885 | + botaoProcura : function(){ | |
| 886 | + var temp = document.createElement("div"); | |
| 887 | + temp.className = "editorOLprocuraItemInactive olButton"; | |
| 888 | + temp.title = $trad("t23"); | |
| 889 | + temp.onclick = function(){ | |
| 890 | + i3GEO.editorOL.criaJanelaBusca(); | |
| 891 | + YAHOO.procura.container.panel.show(); | |
| 892 | + }; | |
| 893 | + return temp; | |
| 894 | + }, | |
| 895 | + botaoPan : function(){ | |
| 896 | + var temp = document.createElement("div"); | |
| 897 | + temp.className = "editorOLpanItemInactive olButton"; | |
| 898 | + temp.title = "pan"; | |
| 899 | + temp.onclick = function(){ | |
| 900 | + i3GEO.editorOL.marcaBotao("editorOLpan"); | |
| 901 | + }; | |
| 902 | + return temp; | |
| 903 | + }, | |
| 904 | + botaoZoomBox : function(){ | |
| 905 | + var temp = document.createElement("div"); | |
| 906 | + temp.className = "editorOLzoomboxItemInactive olButton"; | |
| 907 | + temp.title = "zoombox"; | |
| 908 | + temp.onclick = function(){ | |
| 909 | + i3GEO.barraDeBotoes.defBotao("zoomli").funcaoonclick(); | |
| 910 | + }; | |
| 911 | + return temp; | |
| 912 | + }, | |
| 913 | + botaoZoomTot : function(){ | |
| 914 | + var temp = document.createElement("div"); | |
| 915 | + temp.className = "editorOLzoomtotItemInactive olButton"; | |
| 916 | + temp.title = $trad("d2t"); | |
| 917 | + temp.onclick = function(){ | |
| 918 | + if (i3GEO.editorOL.mapext && i3GEO.editorOL.mapext != "") { | |
| 919 | + i3GEO.Interface.openlayers.zoom2ext(i3GEO.editorOL.mapext.join(" ")); | |
| 920 | + } else { | |
| 921 | + i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.extentTotal); | |
| 922 | + } | |
| 923 | + }; | |
| 924 | + return temp; | |
| 925 | + }, | |
| 926 | + botaoZoomIn : function(){ | |
| 927 | + var temp = document.createElement("div"); | |
| 928 | + temp.className = "editorOLzoominItemInactive olButton"; | |
| 929 | + temp.title = $trad("d5t"); | |
| 930 | + temp.onclick = function(){ | |
| 931 | + var v = i3GEO.editorOL.mapa.getView(); | |
| 932 | + v.setZoom(v.getZoom() + 1); | |
| 933 | + }; | |
| 934 | + return temp; | |
| 935 | + }, | |
| 936 | + botaoZoomOut : function(){ | |
| 937 | + var temp = document.createElement("div"); | |
| 938 | + temp.className = "editorOLzoomoutItemInactive olButton"; | |
| 939 | + temp.title = $trad("d5t"); | |
| 940 | + temp.onclick = function(){ | |
| 941 | + var v = i3GEO.editorOL.mapa.getView(); | |
| 942 | + v.setZoom(v.getZoom() - 1); | |
| 943 | + }; | |
| 944 | + return temp; | |
| 945 | + }, | |
| 946 | + botaoLegenda : function(){ | |
| 947 | + var temp = document.createElement("div"); | |
| 948 | + temp.className = "editorOLlegendaItemInactive olButton"; | |
| 949 | + temp.title = $trad("p3"); | |
| 950 | + temp.onclick = function(){ | |
| 951 | + i3GEO.editorOL.mostraLegenda(); | |
| 952 | + }; | |
| 953 | + return temp; | |
| 954 | + }, | |
| 955 | + botaoDistancia : function(){ | |
| 956 | + var temp = document.createElement("div"); | |
| 957 | + temp.className = "editorOLdistanciaItemInactive olButton"; | |
| 958 | + temp.onclick = function(){ | |
| 959 | + i3GEO.editorOL.marcaBotao("editorOLdistancia"); | |
| 960 | + i3GEO.barraDeBotoes.defBotao("mede").funcaoonclick(); | |
| 961 | + }; | |
| 962 | + return temp; | |
| 963 | + }, | |
| 964 | + botaoArea: function(){ | |
| 965 | + var temp = document.createElement("div"); | |
| 966 | + temp.className = "editorOLareaItemInactive olButton"; | |
| 967 | + temp.onclick = function(){ | |
| 968 | + i3GEO.editorOL.marcaBotao("editorOLarea"); | |
| 969 | + i3GEO.barraDeBotoes.defBotao("area").funcaoonclick(); | |
| 970 | + }; | |
| 971 | + return temp; | |
| 972 | + }, | |
| 973 | + botaoLinha: function(){ | |
| 974 | + var temp = document.createElement("div"); | |
| 975 | + temp.className = "editorOLlinhaItemInactive olButton"; | |
| 976 | + temp.title = $trad("dlinha"); | |
| 977 | + temp.onclick = function(){ | |
| 978 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 979 | + i3GEO.editorOL.marcaBotao("editorOLlinha"); | |
| 980 | + var draw = new ol.interaction.Draw({ | |
| 981 | + type : "LineString" | |
| 982 | + }); | |
| 983 | + //adiciona a interacao para poder ser removida | |
| 984 | + i3GEO.editorOL.interacoes.push(draw); | |
| 985 | + //desativa ol.interaction.DoubleClickZoom | |
| 986 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 987 | + draw.on("drawend", function(evt) { | |
| 988 | + evt.feature.setStyle( | |
| 989 | + new ol.style.Style({ | |
| 990 | + stroke: new ol.style.Stroke({ | |
| 991 | + color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 992 | + width: i3GEO.editorOL.simbologia.strokeWidth | |
| 993 | + }), | |
| 994 | + fill: new ol.style.Fill({ | |
| 995 | + color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 996 | + }) | |
| 997 | + }) | |
| 998 | + ); | |
| 999 | + evt.feature.setId(i3GEO.util.uid()); | |
| 1000 | + i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1001 | + draw.setActive(false); | |
| 1002 | + draw.setActive(true); | |
| 1003 | + if (document.getElementById("panellistagEditor")) { | |
| 1004 | + i3GEO.editorOL.listaGeometrias(); | |
| 1005 | + } | |
| 1006 | + }); | |
| 1007 | + i3geoOL.addInteraction(draw); | |
| 1008 | + }; | |
| 1009 | + return temp; | |
| 1010 | + }, | |
| 1011 | + botaoPonto: function(){ | |
| 1012 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1013 | + var temp = document.createElement("div"); | |
| 1014 | + temp.className = "editorOLpontoItemInactive olButton"; | |
| 1015 | + temp.title = $trad("dponto"); | |
| 1016 | + temp.onclick = function(){ | |
| 1017 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1018 | + i3GEO.editorOL.marcaBotao("editorOLponto"); | |
| 1019 | + var draw = new ol.interaction.Draw({ | |
| 1020 | + type : "Point" | |
| 1021 | + }); | |
| 1022 | + //adiciona a interacao para poder ser removida | |
| 1023 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1024 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1025 | + draw.on("drawend", function(evt) { | |
| 1026 | + var simbolo, url; | |
| 1027 | + url = i3GEO.editorOL.simbologia.externalGraphic; | |
| 1028 | + if(url === ""){ | |
| 1029 | + simbolo = new ol.style.Circle({ | |
| 1030 | + radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 1031 | + fill: new ol.style.Fill({ | |
| 1032 | + color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 1033 | + }), | |
| 1034 | + stroke: new ol.style.Stroke({ | |
| 1035 | + color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1036 | + width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 1037 | + }) | |
| 1038 | + }); | |
| 1039 | + } | |
| 1040 | + else{ | |
| 1041 | + simbolo = new ol.style.Icon({ | |
| 1042 | + src : url, | |
| 1043 | + size : [i3GEO.editorOL.simbologia.graphicWidth,i3GEO.editorOL.simbologia.graphicHeight] | |
| 1044 | + }); | |
| 1045 | + } | |
| 1046 | + evt.feature.setStyle( | |
| 1047 | + new ol.style.Style({ | |
| 1048 | + image: simbolo | |
| 1049 | + }) | |
| 1050 | + ); | |
| 1051 | + evt.feature.setId(i3GEO.util.uid()); | |
| 1052 | + i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1053 | + draw.setActive(false); | |
| 1054 | + draw.setActive(true); | |
| 1055 | + if (document.getElementById("panellistagEditor")) { | |
| 1056 | + i3GEO.editorOL.listaGeometrias(); | |
| 1057 | + } | |
| 1058 | + }); | |
| 1059 | + i3geoOL.addInteraction(draw); | |
| 1060 | + }; | |
| 1061 | + return temp; | |
| 1062 | + }, | |
| 1063 | + botaoPoligono: function(){ | |
| 1064 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1065 | + var temp = document.createElement("div"); | |
| 1066 | + temp.className = "editorOLpoligonoItemInactive olButton"; | |
| 1067 | + temp.title = $trad("dpol"); | |
| 1068 | + temp.onclick = function(){ | |
| 1069 | + i3GEO.editorOL.marcaBotao("editorOLpoligono"); | |
| 1070 | + var draw = new ol.interaction.Draw({ | |
| 1071 | + type : "Polygon" | |
| 1072 | + }); | |
| 1073 | + /* | |
| 1074 | + snap = new ol.interaction.Snap({ | |
| 1075 | + source: i3GEO.desenho.layergrafico.getSource() | |
| 1076 | + }); | |
| 1077 | + i3GEO.editorOL.interacoes.push(snap); | |
| 1078 | + */ | |
| 1079 | + //adiciona a interacao para poder ser removida | |
| 1080 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1081 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1082 | + draw.on("drawend", function(evt) { | |
| 1083 | + evt.feature.setStyle( | |
| 1084 | + new ol.style.Style({ | |
| 1085 | + stroke: new ol.style.Stroke({ | |
| 1086 | + color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1087 | + width: i3GEO.editorOL.simbologia.strokeWidth | |
| 1088 | + }), | |
| 1089 | + fill: new ol.style.Fill({ | |
| 1090 | + color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 1091 | + }) | |
| 1092 | + }) | |
| 1093 | + ); | |
| 1094 | + evt.feature.setId(i3GEO.util.uid()); | |
| 1095 | + i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1096 | + draw.setActive(false); | |
| 1097 | + draw.setActive(true); | |
| 1098 | + if (document.getElementById("panellistagEditor")) { | |
| 1099 | + i3GEO.editorOL.listaGeometrias(); | |
| 1100 | + } | |
| 1101 | + }); | |
| 1102 | + i3geoOL.addInteraction(draw); | |
| 1103 | + }; | |
| 1104 | + return temp; | |
| 1105 | + }, | |
| 1106 | + botaoTexto: function(){ | |
| 1107 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1108 | + var temp = document.createElement("div"); | |
| 1109 | + temp.className = "editorOLtextoItemInactive olButton"; | |
| 1110 | + temp.title = $trad("dtexto"); | |
| 1111 | + temp.onclick = function(){ | |
| 1112 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1113 | + i3GEO.editorOL.marcaBotao("editorOLtexto"); | |
| 1114 | + var draw = new ol.interaction.Draw({ | |
| 1115 | + type : "Point" | |
| 1116 | + }); | |
| 1117 | + //adiciona a interacao para poder ser removida | |
| 1118 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1119 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1120 | + draw.on("drawend", function(evt) { | |
| 1121 | + var texto = window.prompt("Texto", ""); | |
| 1122 | + evt.feature.setStyle( | |
| 1123 | + new ol.style.Style({ | |
| 1124 | + text: new ol.style.Text({ | |
| 1125 | + text: texto, | |
| 1126 | + font: 'Bold ' + parseInt(i3GEO.editorOL.simbologia.fontSize,10) + 'px Arial', | |
| 1127 | + textAlign: 'left', | |
| 1128 | + stroke: new ol.style.Stroke({ | |
| 1129 | + color: 'white', | |
| 1130 | + width: i3GEO.editorOL.simbologia.strokeWidth | |
| 1131 | + }), | |
| 1132 | + fill: new ol.style.Fill({ | |
| 1133 | + color: i3GEO.editorOL.simbologia.fontColor | |
| 1134 | + }), | |
| 1135 | + zIndex: 2000 | |
| 1136 | + }) | |
| 1137 | + }) | |
| 1138 | + ); | |
| 1139 | + evt.feature.setId(i3GEO.util.uid()); | |
| 1140 | + i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1141 | + draw.setActive(false); | |
| 1142 | + draw.setActive(true); | |
| 1143 | + i3GEO.editorOL.marcaBotao(); | |
| 1144 | + }); | |
| 1145 | + i3geoOL.addInteraction(draw); | |
| 1146 | + }; | |
| 1147 | + return temp; | |
| 1148 | + }, | |
| 1149 | + botaoSelecao: function(){ | |
| 1150 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1151 | + var temp = document.createElement("div"); | |
| 1152 | + temp.className = "editorOLselecaoItemInactive olButton"; | |
| 1153 | + temp.title = $trad("d24t"); | |
| 1154 | + temp.onclick = function(){ | |
| 1155 | + i3GEO.editorOL.marcaBotao("editorOLselecao"); | |
| 1156 | + var sel = new ol.interaction.Select(); | |
| 1157 | + //adiciona a interacao para poder ser removida | |
| 1158 | + i3GEO.editorOL.interacoes.push(sel); | |
| 1159 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1160 | + sel.on("select", function(evt) { | |
| 1161 | + var s,i, n, id, f; | |
| 1162 | + n = evt.selected.length; | |
| 1163 | + for(i=0; i<n; i++){ | |
| 1164 | + f = evt.selected[i]; | |
| 1165 | + id = f.getId(); | |
| 1166 | + if(id && i3GEO.util.in_array(id,i3GEO.editorOL.idsSelecionados)){ | |
| 1167 | + i3GEO.editorOL.unselFeature(id); | |
| 1168 | + } | |
| 1169 | + else{ | |
| 1170 | + id = i3GEO.util.uid(); | |
| 1171 | + i3GEO.editorOL.idsSelecionados.push(id); | |
| 1172 | + f.setId(id); | |
| 1173 | + s = f.getStyle(); | |
| 1174 | + | |
| 1175 | + if(s.getImage()){ | |
| 1176 | + f.setStyle( | |
| 1177 | + new ol.style.Style({ | |
| 1178 | + image: new ol.style.Circle({ | |
| 1179 | + radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 1180 | + fill: new ol.style.Fill({ | |
| 1181 | + color: 'rgba(255, 255, 255, 0.5)' | |
| 1182 | + }), | |
| 1183 | + stroke: new ol.style.Stroke({ | |
| 1184 | + color: 'blue', | |
| 1185 | + width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 1186 | + }) | |
| 1187 | + }) | |
| 1188 | + }) | |
| 1189 | + ); | |
| 1190 | + if(!s.getImage().getSrc){ | |
| 1191 | + f.setProperties({ | |
| 1192 | + fillColor: s.getImage().getFill().getColor(), | |
| 1193 | + strokeColor: s.getImage().getStroke().getColor(), | |
| 1194 | + externalGraphic: "", | |
| 1195 | + graphicHeight : 25, | |
| 1196 | + graphicWidth : 25 | |
| 1197 | + }); | |
| 1198 | + } | |
| 1199 | + else{ | |
| 1200 | + f.setProperties({ | |
| 1201 | + fillColor: "", | |
| 1202 | + strokeColor: "", | |
| 1203 | + externalGraphic: s.getImage().getSrc(), | |
| 1204 | + graphicHeight : s.getImage().getSize()[1], | |
| 1205 | + graphicWidth : s.getImage().getSize()[0] | |
| 1206 | + }); | |
| 1207 | + } | |
| 1208 | + } | |
| 1209 | + else{ | |
| 1210 | + f.setProperties({ | |
| 1211 | + fillColor: s.getFill().getColor(), | |
| 1212 | + strokeColor: s.getStroke().getColor(), | |
| 1213 | + externalGraphic: "", | |
| 1214 | + graphicHeight : 25, | |
| 1215 | + graphicWidth : 25 | |
| 1216 | + }); | |
| 1217 | + s.getFill().setColor('rgba(255, 255, 255, 0.5)'); | |
| 1218 | + s.getStroke().setColor('blue'); | |
| 1219 | + } | |
| 1220 | + } | |
| 1221 | + } | |
| 1222 | + if (n === 0){ | |
| 1223 | + i3GEO.editorOL.unselTodos(); | |
| 1224 | + } | |
| 1225 | + }); | |
| 1226 | + i3geoOL.addInteraction(sel); | |
| 1227 | + }; | |
| 1228 | + return temp; | |
| 1229 | + }, | |
| 1230 | + botaoSelecaoTudo: function(){ | |
| 1231 | + var temp = document.createElement("div"); | |
| 1232 | + temp.className = "editorOLselecaoTudoItemInactive olButton"; | |
| 1233 | + temp.title = $trad("studo"); | |
| 1234 | + temp.onclick = function(){ | |
| 1235 | + i3GEO.editorOL.marcaBotao(); | |
| 1236 | + i3GEO.editorOL.selTodos(); | |
| 1237 | + }; | |
| 1238 | + return temp; | |
| 1239 | + }, | |
| 1240 | + botaoApaga: function(){ | |
| 1241 | + var temp = document.createElement("div"); | |
| 1242 | + temp.className = "editorOLapagaItemInactive olButton"; | |
| 1243 | + temp.title = $trad("excsel"); | |
| 1244 | + temp.onclick = function(){ | |
| 1245 | + var x, nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1246 | + i3GEO.editorOL.featuresBackup = []; | |
| 1247 | + i3GEO.editorOL.marcaBotao(); | |
| 1248 | + if(nsel > 0){ | |
| 1249 | + x = window.confirm($trad("excsel") + "?"); | |
| 1250 | + if(x){ | |
| 1251 | + i3GEO.editorOL.removeFeaturesSel(); | |
| 1252 | + i3GEO.desenho.layergrafico.getSource().changed(); | |
| 1253 | + } | |
| 1254 | + } | |
| 1255 | + else{ | |
| 1256 | + i3GEO.janela.tempoMsg($trad("selum")); | |
| 1257 | + } | |
| 1258 | + }; | |
| 1259 | + return temp; | |
| 1260 | + }, | |
| 1261 | + botaoFrente: function(){ | |
| 1262 | + var temp = document.createElement("div"); | |
| 1263 | + temp.className = "editorOLfrenteItemInactive olButton"; | |
| 1264 | + temp.title = $trad("frente"); | |
| 1265 | + temp.onclick = function(){ | |
| 1266 | + var nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1267 | + if(nsel > 0){ | |
| 1268 | + i3GEO.editorOL.marcaBotao(); | |
| 1269 | + i3GEO.editorOL.trazParaFrente(); | |
| 1270 | + } | |
| 1271 | + else{ | |
| 1272 | + i3GEO.janela.tempoMsg($trad("selum")); | |
| 1273 | + } | |
| 1274 | + }; | |
| 1275 | + return temp; | |
| 1276 | + }, | |
| 1277 | + //FIXME Translate nao funciona nessa versao do openlayers 3x precisa atualizar | |
| 1278 | + botaoEdita: function(){ | |
| 1279 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1280 | + var temp = document.createElement("div"); | |
| 1281 | + temp.className = "editorOLeditaItemInactive olButton"; | |
| 1282 | + temp.title = $trad("dpol"); | |
| 1283 | + temp.onclick = function(){ | |
| 1284 | + i3GEO.editorOL.featuresBackup = []; | |
| 1285 | + var draw, nsel, f, c; | |
| 1286 | + nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1287 | + if(nsel > 0){ | |
| 1288 | + i3GEO.editorOL.marcaBotao("editorOLedita"); | |
| 1289 | + f = i3GEO.desenho.layergrafico.getSource().getFeatureById(i3GEO.editorOL.idsSelecionados[nsel - 1]); | |
| 1290 | + i3GEO.editorOL.featuresBackup.push(f.clone()); | |
| 1291 | + c = new ol.Collection(); | |
| 1292 | + c.push(f); | |
| 1293 | + draw = new ol.interaction.Modify({ | |
| 1294 | + features: c | |
| 1295 | + }); | |
| 1296 | + //adiciona a interacao para poder ser removida | |
| 1297 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1298 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1299 | + i3geoOL.addInteraction(draw); | |
| 1300 | + } | |
| 1301 | + else{ | |
| 1302 | + i3GEO.janela.tempoMsg($trad("selum")); | |
| 1303 | + } | |
| 1304 | + }; | |
| 1305 | + return temp; | |
| 1306 | + }, | |
| 1307 | + botaoCorta: function(){ | |
| 1308 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1309 | + var temp = document.createElement("div"); | |
| 1310 | + temp.className = "editorOLcortaItemInactive olButton"; | |
| 1311 | + temp.title = $trad("cortaf"); | |
| 1312 | + temp.onclick = function(){ | |
| 1313 | + var nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1314 | + if (nsel != 1) { | |
| 1315 | + alert("Selecione primeiro um elemento para ser cortado"); | |
| 1316 | + } else { | |
| 1317 | + i3GEO.janela.tempoMsg("Desenhe um polígono"); | |
| 1318 | + i3GEO.editorOL.marcaBotao("editorOLcorta"); | |
| 1319 | + var draw = new ol.interaction.Draw({ | |
| 1320 | + type : "Polygon" | |
| 1321 | + }); | |
| 1322 | + //adiciona a interacao para poder ser removida | |
| 1323 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1324 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1325 | + draw.on("drawend", function(evt) { | |
| 1326 | + var temp, f, c, format, fwkt, cwkt; | |
| 1327 | + f = evt.feature; | |
| 1328 | + c = i3GEO.desenho.layergrafico.getSource().getFeatureById(i3GEO.editorOL.idsSelecionados[nsel - 1]); | |
| 1329 | + i3GEO.editorOL.featuresBackup.push(c.clone()); | |
| 1330 | + i3GEO.editorOL.marcaBotao(); | |
| 1331 | + //corta | |
| 1332 | + format = new ol.format.WKT(); | |
| 1333 | + if(f && c){ | |
| 1334 | + fwkt = format.writeFeatures([f]); | |
| 1335 | + cwkt = format.writeFeatures([c]); | |
| 1336 | + if(fwkt && cwkt){ | |
| 1337 | + temp = function(retorno) { | |
| 1338 | + i3GEO.janela.fechaAguarde("i3GEO.cortador"); | |
| 1339 | + if (retorno != "" && retorno.data && retorno.data != "") { | |
| 1340 | + i3GEO.janela.fechaAguarde("i3GEO.cortador"); | |
| 1341 | + c.setGeometry(format.readGeometry(retorno.data)); | |
| 1342 | + if (document.getElementById("panellistagEditor")) { | |
| 1343 | + i3GEO.editorOL.listaGeometrias(); | |
| 1344 | + } | |
| 1345 | + } | |
| 1346 | + }; | |
| 1347 | + i3GEO.janela.abreAguarde("i3GEO.cortador", "Cortando"); | |
| 1348 | + i3GEO.php.funcoesGeometriasWkt(temp, cwkt + "|" + fwkt, "difference"); | |
| 1349 | + } | |
| 1350 | + } | |
| 1351 | + }); | |
| 1352 | + i3geoOL.addInteraction(draw); | |
| 1353 | + } | |
| 1354 | + }; | |
| 1355 | + return temp; | |
| 1356 | + }, | |
| 1357 | + botaoListaGeometrias: function(){ | |
| 1358 | + var temp = document.createElement("div"); | |
| 1359 | + temp.className = "editorOLlistagItemInactive olButton"; | |
| 1360 | + temp.title = $trad("listag"); | |
| 1361 | + temp.onclick = function(){ | |
| 1362 | + i3GEO.editorOL.listaGeometrias(); | |
| 1363 | + }; | |
| 1364 | + return temp; | |
| 1365 | + }, | |
| 1366 | + botaoAjuda: function(){ | |
| 1367 | + var temp = document.createElement("div"); | |
| 1368 | + temp.className = "editorOLajudaItemInactive olButton"; | |
| 1369 | + temp.title = $trad("s1"); | |
| 1370 | + temp.onclick = function(){ | |
| 1371 | + if(i3GEO.configura && i3GEO.configura.locaplic){ | |
| 1372 | + i3GEO.janela.cria("400px", "200px", i3GEO.configura.locaplic | |
| 1373 | + + "/mashups/openlayers_ajuda.php?completo=none", "", "", $trad("s1"), "editorOlAjuda"); | |
| 1374 | + } | |
| 1375 | + else{ | |
| 1376 | + window.open("openlayers_ajuda.php"); | |
| 1377 | + } | |
| 1378 | + }; | |
| 1379 | + return temp; | |
| 1380 | + }, | |
| 1381 | + botaoFecha: function(){ | |
| 1382 | + var temp = document.createElement("div"); | |
| 1383 | + temp.className = "editorOLfechaItemInactive olButton"; | |
| 1384 | + temp.title = $trad("x74"); | |
| 1385 | + temp.onclick = function(){ | |
| 1386 | + i3GEO.editorOL.unselTodos(); | |
| 1387 | + i3GEO.editorOL.featuresBackup = []; | |
| 1388 | + i3GEO.editorOL.marcaBotao(); | |
| 1389 | + i3GEO.eventos.cliquePerm.ativa(); | |
| 1390 | + $i("i3GEObarraEdicao").style.display = "none"; | |
| 1391 | + }; | |
| 1392 | + return temp; | |
| 1393 | + }, | |
| 1394 | + botaoTools: function(){ | |
| 1395 | + var temp = document.createElement("div"); | |
| 1396 | + temp.className = "editorOLtoolsItemInactive olButton"; | |
| 1397 | + temp.title = $trad("u15a"); | |
| 1398 | + temp.onclick = function(){ | |
| 1399 | + // fora do i3geo, usa o jsts | |
| 1400 | + if (i3GEO.php) { | |
| 1401 | + i3GEO.editorOL.ferramentas(); | |
| 1402 | + } else { | |
| 1403 | + i3GEO.editorOL.carregajts("i3GEO.editorOL.ferramentas()"); | |
| 1404 | + } | |
| 1405 | + }; | |
| 1406 | + return temp; | |
| 1407 | + }, | |
| 1408 | + botaoPropriedades: function(){ | |
| 1409 | + var temp = document.createElement("div"); | |
| 1410 | + temp.className = "editorOLpropriedadesItemInactive olButton"; | |
| 1411 | + temp.title = $trad("p13"); | |
| 1412 | + temp.onclick = function(){ | |
| 1413 | + i3GEO.editorOL.propriedades(); | |
| 1414 | + }; | |
| 1415 | + return temp; | |
| 1416 | + }, | |
| 1417 | + botaoIdentifica: function(){ | |
| 1418 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1419 | + var temp = document.createElement("div"); | |
| 1420 | + temp.className = "editorOLidentificaItemInactive olButton"; | |
| 1421 | + temp.title = $trad("d7t"); | |
| 1422 | + temp.onclick = function(){ | |
| 1423 | + i3GEO.editorOL.criaJanelaAtivaTema(); | |
| 1424 | + i3GEO.eventos.cliquePerm.desativa(); | |
| 1425 | + i3GEO.editorOL.marcaBotao("editorOLidentifica"); | |
| 1426 | + var draw = new ol.interaction.Draw({ | |
| 1427 | + type : "Point" | |
| 1428 | + }); | |
| 1429 | + //adiciona a interacao para poder ser removida | |
| 1430 | + i3GEO.editorOL.interacoes.push(draw); | |
| 1431 | + i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1432 | + draw.on("drawend", function(evt) { | |
| 1433 | + var xy, p, retorno, url, layer, tema = $i("i3GEOOLlistaTemasAtivos"); | |
| 1434 | + if(tema){ | |
| 1435 | + layer = i3geoOL.getLayersByName(tema.value)[0]; | |
| 1436 | + url = layer.getSource().getUrls()[0]; | |
| 1437 | + xy = evt.target.downPx_; | |
| 1438 | + retorno = function(r){ | |
| 1439 | + var valorunico = "", camada, texto = "", lonlattexto, xy, temp, temp1, n, i, f = [], textoN = r.split(":"); | |
| 1440 | + camada = i3GEO.arvoreDeCamadas.pegaTema(tema.value, "", "name"); | |
| 1441 | + xy = evt.feature.getGeometry().getFirstCoordinate(); | |
| 1442 | + i3GEO.eventos.cliquePerm.ativo = true; | |
| 1443 | + try { | |
| 1444 | + if (textoN.length > 1) { | |
| 1445 | + temp = textoN[2].replace(/\n\r/g, ""); | |
| 1446 | + temp = temp.replace(/'/g, ""); | |
| 1447 | + temp = temp.replace(/\n/g, "|"); | |
| 1448 | + temp = temp.replace(/_/g, " "); | |
| 1449 | + temp = temp.replace(/=/g, ":"); | |
| 1450 | + temp = temp.split("|"); | |
| 1451 | + n = temp.length; | |
| 1452 | + for (i = 0; i < n; i++) { | |
| 1453 | + temp1 = temp[i].replace(/^\s+/, ""); | |
| 1454 | + temp1 = temp1.replace(/\s+$/, ""); | |
| 1455 | + if (temp1 != ""){ | |
| 1456 | + //verifica se a coluna eh o idunico e pega o valor | |
| 1457 | + if(camada.colunaidunico != "" && temp1.split(":")[0].trim() == camada.colunaidunico){ | |
| 1458 | + valorunico = temp1.split(":")[1].trim(); | |
| 1459 | + temp1 = "(*) "+temp1; | |
| 1460 | + } | |
| 1461 | + f.push(temp1); | |
| 1462 | + } | |
| 1463 | + } | |
| 1464 | + texto = "<pre>" + f.join("<br>") + "</pre>"; | |
| 1465 | + } | |
| 1466 | + } catch (e) {} | |
| 1467 | + //funcao para capturar a geometria | |
| 1468 | + lonlattexto = | |
| 1469 | + "<span style=font-size:12px;color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(" + xy[0] | |
| 1470 | + + "," | |
| 1471 | + + xy[1] | |
| 1472 | + + ",\"" | |
| 1473 | + + tema.value | |
| 1474 | + + "\"" | |
| 1475 | + + ",\"" | |
| 1476 | + + valorunico | |
| 1477 | + + "\")'>edita geometria</span><br>"; | |
| 1478 | + i3GEO.Interface.openlayers.balao("<div style='text-align:left' >" + lonlattexto + texto + "</div>","", xy[0], xy[1], false, false); | |
| 1479 | + i3GEO.eventos.cliquePerm.ativo = false; | |
| 1480 | + }; | |
| 1481 | + p = i3GEO.configura.locaplic + "/classesphp/proxy.php?" | |
| 1482 | + + url | |
| 1483 | + + "&tipoRetornoProxy=string&REQUEST=GetFeatureInfo&TIPOIMAGEM=nenhum&DESLIGACACHE=sim&STYLES=&SERVICE=WMS&VERSION=1.1.1&FEATURE_COUNT=1" | |
| 1484 | + + "&FORMAT=image/png&INFO_FORMAT=text/plain&SRS=EPSG:4326" | |
| 1485 | + + "&LAYERS=" + tema.value | |
| 1486 | + + "&layer=" + tema.value | |
| 1487 | + + "&QUERY_LAYERS=" + tema.value | |
| 1488 | + + "&HEIGHT=" + i3GEO.parametros.h | |
| 1489 | + + "&WIDTH=" + i3GEO.parametros.w | |
| 1490 | + + "&BBOX=" + i3geoOL.getExtent().toBBOX().split(",").join(" ") | |
| 1491 | + + "&X=" + xy[0] + "&Y=" + xy[1]; | |
| 1492 | + cpJSON.call(p, "foo", retorno, ""); | |
| 1493 | + } | |
| 1494 | + }); | |
| 1495 | + i3geoOL.addInteraction(draw); | |
| 1496 | + }; | |
| 1497 | + return temp; | |
| 1498 | + }, | |
| 1499 | + botaoSalva: function(){ | |
| 1500 | + var temp = document.createElement("div"); | |
| 1501 | + temp.className = "editorOLsalvaItemInactive olButton"; | |
| 1502 | + temp.title = $trad("salva"); | |
| 1503 | + temp.onclick = function(){ | |
| 1504 | + i3GEO.editorOL.salvaGeometrias(); | |
| 1505 | + }; | |
| 1506 | + return temp; | |
| 1507 | + }, | |
| 984 | 1508 | criaBotoes : function(botoes) { |
| 985 | 1509 | if($i("i3GEObarraEdicao")){ |
| 986 | 1510 | $i("i3GEObarraEdicao").style.display = "block"; |
| 987 | 1511 | return; |
| 988 | 1512 | } |
| 989 | - var temp; | |
| 990 | - //cria o painel onde entrarão os icones | |
| 1513 | + //cria o painel onde entrarao os icones | |
| 991 | 1514 | i3GEOpanelEditor = document.createElement("div"); |
| 992 | 1515 | i3GEOpanelEditor.id = "i3GEObarraEdicao"; |
| 993 | 1516 | i3GEOpanelEditor.className = "olControlEditingToolbar1 noprint"; |
| 994 | 1517 | //cria os icones |
| 995 | 1518 | if (botoes.procura === true) { |
| 996 | - temp = document.createElement("div"); | |
| 997 | - temp.className = "editorOLprocuraItemInactive olButton"; | |
| 998 | - temp.title = $trad("t23"); | |
| 999 | - temp.onclick = function(){ | |
| 1000 | - YAHOO.procura.container.panel.show(); | |
| 1001 | - }; | |
| 1002 | - i3GEOpanelEditor.appendChild(temp); | |
| 1519 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoProcura()); | |
| 1003 | 1520 | } |
| 1004 | 1521 | if (botoes.pan === true) { |
| 1005 | - temp = document.createElement("div"); | |
| 1006 | - temp.className = "editorOLpanItemInactive olButton"; | |
| 1007 | - temp.title = "pan"; | |
| 1008 | - temp.onclick = function(){ | |
| 1009 | - i3GEO.editorOL.marcaBotao("editorOLpan"); | |
| 1010 | - }; | |
| 1011 | - i3GEOpanelEditor.appendChild(temp); | |
| 1522 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoPan()); | |
| 1012 | 1523 | } |
| 1013 | 1524 | if (botoes.zoombox === true) { |
| 1014 | - temp = document.createElement("div"); | |
| 1015 | - temp.className = "editorOLzoomboxItemInactive olButton"; | |
| 1016 | - temp.title = "zoombox"; | |
| 1017 | - temp.onclick = function(){ | |
| 1018 | - i3GEO.barraDeBotoes.defBotao("zoomli").funcaoonclick; | |
| 1019 | - }; | |
| 1020 | - i3GEOpanelEditor.appendChild(temp); | |
| 1525 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoZoomBox()); | |
| 1021 | 1526 | } |
| 1022 | 1527 | if (botoes.zoomtot === true) { |
| 1023 | - temp = document.createElement("div"); | |
| 1024 | - temp.className = "editorOLzoomtotItemInactive olButton"; | |
| 1025 | - temp.title = $trad("d2t"); | |
| 1026 | - temp.onclick = function(){ | |
| 1027 | - if (i3GEO.editorOL.mapext && i3GEO.editorOL.mapext != "") { | |
| 1028 | - i3GEO.Interface.openlayers.zoom2ext(i3GEO.editorOL.mapext.join(" ")); | |
| 1029 | - } else { | |
| 1030 | - i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.extentTotal); | |
| 1031 | - } | |
| 1032 | - }; | |
| 1033 | - i3GEOpanelEditor.appendChild(temp); | |
| 1528 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoZoomTot()); | |
| 1034 | 1529 | } |
| 1035 | 1530 | if (botoes.zoomin === true) { |
| 1036 | - temp = document.createElement("div"); | |
| 1037 | - temp.className = "editorOLzoominItemInactive olButton"; | |
| 1038 | - temp.title = $trad("d5t"); | |
| 1039 | - temp.onclick = function(){ | |
| 1040 | - var v = i3GEO.editorOL.mapa.getView(); | |
| 1041 | - v.setZoom(v.getZoom() + 1); | |
| 1042 | - }; | |
| 1043 | - i3GEOpanelEditor.appendChild(temp); | |
| 1531 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoZoomIn()); | |
| 1044 | 1532 | } |
| 1045 | 1533 | if (botoes.zoomout === true) { |
| 1046 | - temp = document.createElement("div"); | |
| 1047 | - temp.className = "editorOLzoomoutItemInactive olButton"; | |
| 1048 | - temp.title = $trad("d5t"); | |
| 1049 | - temp.onclick = function(){ | |
| 1050 | - var v = i3GEO.editorOL.mapa.getView(); | |
| 1051 | - v.setZoom(v.getZoom() - 1); | |
| 1052 | - }; | |
| 1053 | - i3GEOpanelEditor.appendChild(temp); | |
| 1534 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoZoomOut()); | |
| 1054 | 1535 | } |
| 1055 | 1536 | if (botoes.legenda === true) { |
| 1056 | - temp = document.createElement("div"); | |
| 1057 | - temp.className = "editorOLlegendaItemInactive olButton"; | |
| 1058 | - temp.title = $trad("p3"); | |
| 1059 | - temp.onclick = function(){ | |
| 1060 | - i3GEO.editorOL.mostraLegenda(); | |
| 1061 | - }; | |
| 1062 | - i3GEOpanelEditor.appendChild(temp); | |
| 1537 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoLegenda()); | |
| 1063 | 1538 | } |
| 1064 | 1539 | if (botoes.distancia === true) { |
| 1065 | - temp = document.createElement("div"); | |
| 1066 | - temp.className = "editorOLdistanciaItemInactive olButton"; | |
| 1067 | - temp.title = $trad("d21t"); | |
| 1068 | - temp.onclick = function(){ | |
| 1069 | - i3GEO.editorOL.marcaBotao("editorOLdistancia"); | |
| 1070 | - i3GEO.barraDeBotoes.defBotao("mede").funcaoonclick; | |
| 1071 | - }; | |
| 1072 | - i3GEOpanelEditor.appendChild(temp); | |
| 1540 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoDistancia()); | |
| 1073 | 1541 | } |
| 1074 | 1542 | if (botoes.area === true) { |
| 1075 | - temp = document.createElement("div"); | |
| 1076 | - temp.className = "editorOLareaItemInactive olButton"; | |
| 1077 | - temp.title = $trad("d21at"); | |
| 1078 | - temp.onclick = function(){ | |
| 1079 | - i3GEO.editorOL.marcaBotao("editorOLarea"); | |
| 1080 | - i3GEO.barraDeBotoes.defBotao("area").funcaoonclick; | |
| 1081 | - }; | |
| 1082 | - i3GEOpanelEditor.appendChild(temp); | |
| 1543 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoArea()); | |
| 1544 | + } | |
| 1545 | + if (botoes.identifica === true) { | |
| 1546 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoIdentifica()); | |
| 1083 | 1547 | } |
| 1084 | 1548 | if (botoes.linha === true) { |
| 1085 | - temp = document.createElement("div"); | |
| 1086 | - temp.className = "editorOLlinhaItemInactive olButton"; | |
| 1087 | - temp.title = $trad("dlinha"); | |
| 1088 | - temp.onclick = function(){ | |
| 1089 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1090 | - i3GEO.editorOL.marcaBotao("editorOLlinha"); | |
| 1091 | - var draw = new ol.interaction.Draw({ | |
| 1092 | - type : "LineString" | |
| 1093 | - }); | |
| 1094 | - //adiciona a interacao para poder ser removida | |
| 1095 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1096 | - //desativa ol.interaction.DoubleClickZoom | |
| 1097 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1098 | - draw.on("drawend", function(evt) { | |
| 1099 | - evt.feature.setStyle( | |
| 1100 | - new ol.style.Style({ | |
| 1101 | - stroke: new ol.style.Stroke({ | |
| 1102 | - color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1103 | - width: i3GEO.editorOL.simbologia.strokeWidth | |
| 1104 | - }), | |
| 1105 | - fill: new ol.style.Fill({ | |
| 1106 | - color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 1107 | - }) | |
| 1108 | - }) | |
| 1109 | - ); | |
| 1110 | - evt.feature.setId(i3GEO.util.uid()); | |
| 1111 | - i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1112 | - draw.setActive(false); | |
| 1113 | - draw.setActive(true); | |
| 1114 | - if (document.getElementById("panellistagEditor")) { | |
| 1115 | - i3GEO.editorOL.listaGeometrias(); | |
| 1116 | - } | |
| 1117 | - }); | |
| 1118 | - i3geoOL.addInteraction(draw); | |
| 1119 | - }; | |
| 1120 | - i3GEOpanelEditor.appendChild(temp); | |
| 1549 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoLinha()); | |
| 1121 | 1550 | } |
| 1122 | - //TODO falta definir imagem | |
| 1123 | 1551 | if (botoes.ponto === true) { |
| 1124 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1125 | - temp = document.createElement("div"); | |
| 1126 | - temp.className = "editorOLpontoItemInactive olButton"; | |
| 1127 | - temp.title = $trad("dponto"); | |
| 1128 | - temp.onclick = function(){ | |
| 1129 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1130 | - i3GEO.editorOL.marcaBotao("editorOLponto"); | |
| 1131 | - var draw = new ol.interaction.Draw({ | |
| 1132 | - type : "Point" | |
| 1133 | - }); | |
| 1134 | - //adiciona a interacao para poder ser removida | |
| 1135 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1136 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1137 | - draw.on("drawend", function(evt) { | |
| 1138 | - evt.feature.setStyle( | |
| 1139 | - new ol.style.Style({ | |
| 1140 | - image: new ol.style.Circle({ | |
| 1141 | - radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 1142 | - fill: new ol.style.Fill({ | |
| 1143 | - color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 1144 | - }), | |
| 1145 | - stroke: new ol.style.Stroke({ | |
| 1146 | - color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1147 | - width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 1148 | - }) | |
| 1149 | - }) | |
| 1150 | - }) | |
| 1151 | - ); | |
| 1152 | - evt.feature.setId(i3GEO.util.uid()); | |
| 1153 | - i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1154 | - draw.setActive(false); | |
| 1155 | - draw.setActive(true); | |
| 1156 | - if (document.getElementById("panellistagEditor")) { | |
| 1157 | - i3GEO.editorOL.listaGeometrias(); | |
| 1158 | - } | |
| 1159 | - }); | |
| 1160 | - i3geoOL.addInteraction(draw); | |
| 1161 | - }; | |
| 1162 | - i3GEOpanelEditor.appendChild(temp); | |
| 1552 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoPonto()); | |
| 1163 | 1553 | } |
| 1164 | 1554 | if (botoes.poligono === true) { |
| 1165 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1166 | - temp = document.createElement("div"); | |
| 1167 | - temp.className = "editorOLpoligonoItemInactive olButton"; | |
| 1168 | - temp.title = $trad("dpol"); | |
| 1169 | - temp.onclick = function(){ | |
| 1170 | - i3GEO.editorOL.marcaBotao("editorOLpoligono"); | |
| 1171 | - var draw = new ol.interaction.Draw({ | |
| 1172 | - type : "Polygon" | |
| 1173 | - }); | |
| 1174 | - /* | |
| 1175 | - snap = new ol.interaction.Snap({ | |
| 1176 | - source: i3GEO.desenho.layergrafico.getSource() | |
| 1177 | - }); | |
| 1178 | - i3GEO.editorOL.interacoes.push(snap); | |
| 1179 | - */ | |
| 1180 | - //adiciona a interacao para poder ser removida | |
| 1181 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1182 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1183 | - draw.on("drawend", function(evt) { | |
| 1184 | - evt.feature.setStyle( | |
| 1185 | - new ol.style.Style({ | |
| 1186 | - stroke: new ol.style.Stroke({ | |
| 1187 | - color: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1188 | - width: i3GEO.editorOL.simbologia.strokeWidth | |
| 1189 | - }), | |
| 1190 | - fill: new ol.style.Fill({ | |
| 1191 | - color: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')' | |
| 1192 | - }) | |
| 1193 | - }) | |
| 1194 | - ); | |
| 1195 | - evt.feature.setId(i3GEO.util.uid()); | |
| 1196 | - i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1197 | - draw.setActive(false); | |
| 1198 | - draw.setActive(true); | |
| 1199 | - if (document.getElementById("panellistagEditor")) { | |
| 1200 | - i3GEO.editorOL.listaGeometrias(); | |
| 1201 | - } | |
| 1202 | - }); | |
| 1203 | - i3geoOL.addInteraction(draw); | |
| 1204 | - }; | |
| 1205 | - i3GEOpanelEditor.appendChild(temp); | |
| 1555 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoPoligono()); | |
| 1206 | 1556 | } |
| 1207 | - | |
| 1208 | 1557 | if (botoes.texto === true) { |
| 1209 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1210 | - temp = document.createElement("div"); | |
| 1211 | - temp.className = "editorOLtextoItemInactive olButton"; | |
| 1212 | - temp.title = $trad("dtexto"); | |
| 1213 | - temp.onclick = function(){ | |
| 1214 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1215 | - i3GEO.editorOL.marcaBotao("editorOLtexto"); | |
| 1216 | - var draw = new ol.interaction.Draw({ | |
| 1217 | - type : "Point" | |
| 1218 | - }); | |
| 1219 | - //adiciona a interacao para poder ser removida | |
| 1220 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1221 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1222 | - draw.on("drawend", function(evt) { | |
| 1223 | - var texto = window.prompt("Texto", ""); | |
| 1224 | - evt.feature.setStyle( | |
| 1225 | - new ol.style.Style({ | |
| 1226 | - text: new ol.style.Text({ | |
| 1227 | - text: texto, | |
| 1228 | - font: 'Bold ' + parseInt(i3GEO.editorOL.simbologia.fontSize,10) + 'px Arial', | |
| 1229 | - textAlign: 'left', | |
| 1230 | - stroke: new ol.style.Stroke({ | |
| 1231 | - color: 'white', | |
| 1232 | - width: i3GEO.editorOL.simbologia.strokeWidth | |
| 1233 | - }), | |
| 1234 | - fill: new ol.style.Fill({ | |
| 1235 | - color: i3GEO.editorOL.simbologia.fontColor | |
| 1236 | - }), | |
| 1237 | - zIndex: 2000 | |
| 1238 | - }) | |
| 1239 | - }) | |
| 1240 | - ); | |
| 1241 | - evt.feature.setId(i3GEO.util.uid()); | |
| 1242 | - i3GEO.desenho.layergrafico.getSource().addFeature(evt.feature); | |
| 1243 | - draw.setActive(false); | |
| 1244 | - draw.setActive(true); | |
| 1245 | - i3GEO.editorOL.marcaBotao(); | |
| 1246 | - }); | |
| 1247 | - i3geoOL.addInteraction(draw); | |
| 1248 | - }; | |
| 1249 | - i3GEOpanelEditor.appendChild(temp); | |
| 1558 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoTexto()); | |
| 1559 | + } | |
| 1560 | + if (botoes.edita === true) { | |
| 1561 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoEdita()); | |
| 1250 | 1562 | } |
| 1251 | - | |
| 1252 | 1563 | if (botoes.selecao === true) { |
| 1253 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1254 | - temp = document.createElement("div"); | |
| 1255 | - temp.className = "editorOLselecaoItemInactive olButton"; | |
| 1256 | - temp.title = $trad("d24t"); | |
| 1257 | - temp.onclick = function(){ | |
| 1258 | - i3GEO.editorOL.marcaBotao("editorOLselecao"); | |
| 1259 | - var sel = new ol.interaction.Select(); | |
| 1260 | - //adiciona a interacao para poder ser removida | |
| 1261 | - i3GEO.editorOL.interacoes.push(sel); | |
| 1262 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1263 | - sel.on("select", function(evt) { | |
| 1264 | - var s,i, n, id, f; | |
| 1265 | - n = evt.selected.length; | |
| 1266 | - for(i=0; i<n; i++){ | |
| 1267 | - f = evt.selected[i]; | |
| 1268 | - id = f.getId(); | |
| 1269 | - if(id && i3GEO.util.in_array(id,i3GEO.editorOL.idsSelecionados)){ | |
| 1270 | - i3GEO.editorOL.unselFeature(id); | |
| 1271 | - } | |
| 1272 | - else{ | |
| 1273 | - id = i3GEO.util.uid(); | |
| 1274 | - i3GEO.editorOL.idsSelecionados.push(id); | |
| 1275 | - f.setId(id); | |
| 1276 | - s = f.getStyle(); | |
| 1277 | - if(s.getImage()){ | |
| 1278 | - f.setProperties({ | |
| 1279 | - fillColor: s.getImage().getFill().getColor(), | |
| 1280 | - strokeColor: s.getImage().getStroke().getColor() | |
| 1281 | - }); | |
| 1282 | - f.setStyle( | |
| 1283 | - new ol.style.Style({ | |
| 1284 | - image: new ol.style.Circle({ | |
| 1285 | - radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 1286 | - fill: new ol.style.Fill({ | |
| 1287 | - color: 'rgba(255, 255, 255, 0.5)' | |
| 1288 | - }), | |
| 1289 | - stroke: new ol.style.Stroke({ | |
| 1290 | - color: 'blue', | |
| 1291 | - width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 1292 | - }) | |
| 1293 | - }) | |
| 1294 | - }) | |
| 1295 | - ); | |
| 1296 | - } | |
| 1297 | - else{ | |
| 1298 | - f.setProperties({ | |
| 1299 | - fillColor: s.getFill().getColor(), | |
| 1300 | - strokeColor: s.getStroke().getColor() | |
| 1301 | - }); | |
| 1302 | - s.getFill().setColor('rgba(255, 255, 255, 0.5)'); | |
| 1303 | - s.getStroke().setColor('blue'); | |
| 1304 | - } | |
| 1305 | - } | |
| 1306 | - } | |
| 1307 | - if (n === 0){ | |
| 1308 | - i3GEO.editorOL.unselTodos(); | |
| 1309 | - } | |
| 1310 | - }); | |
| 1311 | - i3geoOL.addInteraction(sel); | |
| 1312 | - }; | |
| 1313 | - i3GEOpanelEditor.appendChild(temp); | |
| 1564 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoSelecao()); | |
| 1314 | 1565 | } |
| 1315 | - | |
| 1316 | 1566 | if (botoes.selecaotudo === true) { |
| 1317 | - temp = document.createElement("div"); | |
| 1318 | - temp.className = "editorOLselecaoTudoItemInactive olButton"; | |
| 1319 | - temp.title = $trad("studo"); | |
| 1320 | - temp.onclick = function(){ | |
| 1321 | - i3GEO.editorOL.marcaBotao(); | |
| 1322 | - i3GEO.editorOL.selTodos(); | |
| 1323 | - }; | |
| 1324 | - i3GEOpanelEditor.appendChild(temp); | |
| 1567 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoSelecaoTudo()); | |
| 1325 | 1568 | } |
| 1326 | - | |
| 1327 | 1569 | if (botoes.apaga === true) { |
| 1328 | - temp = document.createElement("div"); | |
| 1329 | - temp.className = "editorOLapagaItemInactive olButton"; | |
| 1330 | - temp.title = $trad("excsel"); | |
| 1331 | - temp.onclick = function(){ | |
| 1332 | - var x, nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1333 | - i3GEO.editorOL.featuresBackup = []; | |
| 1334 | - i3GEO.editorOL.marcaBotao(); | |
| 1335 | - if(nsel > 0){ | |
| 1336 | - x = window.confirm($trad("excsel") + "?"); | |
| 1337 | - if(x){ | |
| 1338 | - i3GEO.editorOL.removeFeaturesSel(); | |
| 1339 | - i3GEO.desenho.layergrafico.getSource().changed(); | |
| 1340 | - } | |
| 1341 | - } | |
| 1342 | - else{ | |
| 1343 | - i3GEO.janela.tempoMsg($trad("selum")); | |
| 1344 | - } | |
| 1345 | - }; | |
| 1346 | - i3GEOpanelEditor.appendChild(temp); | |
| 1570 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoApaga()); | |
| 1347 | 1571 | } |
| 1348 | - | |
| 1349 | 1572 | if (botoes.frente === true) { |
| 1350 | - temp = document.createElement("div"); | |
| 1351 | - temp.className = "editorOLfrenteItemInactive olButton"; | |
| 1352 | - temp.title = $trad("frente"); | |
| 1353 | - temp.onclick = function(){ | |
| 1354 | - var nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1355 | - if(nsel > 0){ | |
| 1356 | - i3GEO.editorOL.marcaBotao(); | |
| 1357 | - i3GEO.editorOL.trazParaFrente(); | |
| 1358 | - } | |
| 1359 | - else{ | |
| 1360 | - i3GEO.janela.tempoMsg($trad("selum")); | |
| 1361 | - } | |
| 1362 | - }; | |
| 1363 | - i3GEOpanelEditor.appendChild(temp); | |
| 1364 | - } | |
| 1365 | - //TODO Translate nao funciona nessa versao do openlayers 3x precisa atualizar | |
| 1366 | - if (botoes.edita === true) { | |
| 1367 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1368 | - temp = document.createElement("div"); | |
| 1369 | - temp.className = "editorOLeditaItemInactive olButton"; | |
| 1370 | - temp.title = $trad("dpol"); | |
| 1371 | - temp.onclick = function(){ | |
| 1372 | - i3GEO.editorOL.featuresBackup = []; | |
| 1373 | - var draw, nsel, f, c; | |
| 1374 | - nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1375 | - if(nsel > 0){ | |
| 1376 | - i3GEO.editorOL.marcaBotao("editorOLedita"); | |
| 1377 | - f = i3GEO.desenho.layergrafico.getSource().getFeatureById(i3GEO.editorOL.idsSelecionados[nsel - 1]); | |
| 1378 | - i3GEO.editorOL.featuresBackup.push(f.clone()); | |
| 1379 | - c = new ol.Collection(); | |
| 1380 | - c.push(f); | |
| 1381 | - draw = new ol.interaction.Modify({ | |
| 1382 | - features: c | |
| 1383 | - }); | |
| 1384 | - //adiciona a interacao para poder ser removida | |
| 1385 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1386 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1387 | - i3geoOL.addInteraction(draw); | |
| 1388 | - } | |
| 1389 | - else{ | |
| 1390 | - i3GEO.janela.tempoMsg($trad("selum")); | |
| 1391 | - } | |
| 1392 | - }; | |
| 1393 | - i3GEOpanelEditor.appendChild(temp); | |
| 1573 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoFrente()); | |
| 1394 | 1574 | } |
| 1395 | 1575 | if (botoes.edita === true && botoes.corta === true && i3GEO.php) { |
| 1396 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1397 | - temp = document.createElement("div"); | |
| 1398 | - temp.className = "editorOLcortaItemInactive olButton"; | |
| 1399 | - temp.title = $trad("cortaf"); | |
| 1400 | - temp.onclick = function(){ | |
| 1401 | - var nsel = i3GEO.editorOL.idsSelecionados.length; | |
| 1402 | - if (nsel != 1) { | |
| 1403 | - alert("Selecione primeiro um elemento para ser cortado"); | |
| 1404 | - } else { | |
| 1405 | - i3GEO.janela.tempoMsg("Desenhe um polígono"); | |
| 1406 | - i3GEO.editorOL.marcaBotao("editorOLcorta"); | |
| 1407 | - var draw = new ol.interaction.Draw({ | |
| 1408 | - type : "Polygon" | |
| 1409 | - }); | |
| 1410 | - //adiciona a interacao para poder ser removida | |
| 1411 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1412 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1413 | - draw.on("drawend", function(evt) { | |
| 1414 | - var temp, f, c, format, fwkt, cwkt; | |
| 1415 | - f = evt.feature; | |
| 1416 | - c = i3GEO.desenho.layergrafico.getSource().getFeatureById(i3GEO.editorOL.idsSelecionados[nsel - 1]); | |
| 1417 | - i3GEO.editorOL.featuresBackup.push(c.clone()); | |
| 1418 | - i3GEO.editorOL.marcaBotao(); | |
| 1419 | - //corta | |
| 1420 | - format = new ol.format.WKT(); | |
| 1421 | - if(f && c){ | |
| 1422 | - fwkt = format.writeFeatures([f]); | |
| 1423 | - cwkt = format.writeFeatures([c]); | |
| 1424 | - if(fwkt && cwkt){ | |
| 1425 | - temp = function(retorno) { | |
| 1426 | - i3GEO.janela.fechaAguarde("i3GEO.cortador"); | |
| 1427 | - if (retorno != "" && retorno.data && retorno.data != "") { | |
| 1428 | - i3GEO.janela.fechaAguarde("i3GEO.cortador"); | |
| 1429 | - c.setGeometry(format.readGeometry(retorno.data)); | |
| 1430 | - //i3GEO.editorOL.substituiFeaturesSel(retorno.data); | |
| 1431 | - if (document.getElementById("panellistagEditor")) { | |
| 1432 | - i3GEO.editorOL.listaGeometrias(); | |
| 1433 | - } | |
| 1434 | - } | |
| 1435 | - }; | |
| 1436 | - i3GEO.janela.abreAguarde("i3GEO.cortador", "Cortando"); | |
| 1437 | - i3GEO.php.funcoesGeometriasWkt(temp, cwkt + "|" + fwkt, "difference"); | |
| 1438 | - } | |
| 1439 | - } | |
| 1440 | - }); | |
| 1441 | - i3geoOL.addInteraction(draw); | |
| 1442 | - } | |
| 1443 | - }; | |
| 1444 | - i3GEOpanelEditor.appendChild(temp); | |
| 1576 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoCorta()); | |
| 1445 | 1577 | } |
| 1446 | 1578 | if (botoes.edita === true && botoes.listag === true) { |
| 1447 | - temp = document.createElement("div"); | |
| 1448 | - temp.className = "editorOLlistagItemInactive olButton"; | |
| 1449 | - temp.title = $trad("listag"); | |
| 1450 | - temp.onclick = function(){ | |
| 1451 | - i3GEO.editorOL.listaGeometrias(); | |
| 1452 | - }; | |
| 1453 | - i3GEOpanelEditor.appendChild(temp); | |
| 1454 | - } | |
| 1455 | - if (botoes.ajuda === true) { | |
| 1456 | - temp = document.createElement("div"); | |
| 1457 | - temp.className = "editorOLajudaItemInactive olButton"; | |
| 1458 | - temp.title = $trad("s1"); | |
| 1459 | - temp.onclick = function(){ | |
| 1460 | - if(i3GEO.configura && i3GEO.configura.locaplic){ | |
| 1461 | - i3GEO.janela.cria("400px", "200px", i3GEO.configura.locaplic | |
| 1462 | - + "/mashups/openlayers_ajuda.php?completo=none", "", "", $trad("s1"), "editorOlAjuda"); | |
| 1463 | - } | |
| 1464 | - else{ | |
| 1465 | - window.open("openlayers_ajuda.php"); | |
| 1466 | - } | |
| 1467 | - }; | |
| 1468 | - i3GEOpanelEditor.appendChild(temp); | |
| 1469 | - } | |
| 1470 | - if (botoes.fecha === true) { | |
| 1471 | - temp = document.createElement("div"); | |
| 1472 | - temp.className = "editorOLfechaItemInactive olButton"; | |
| 1473 | - temp.title = $trad("x74"); | |
| 1474 | - temp.onclick = function(){ | |
| 1475 | - i3GEO.editorOL.unselTodos(); | |
| 1476 | - i3GEO.editorOL.featuresBackup = []; | |
| 1477 | - i3GEO.editorOL.marcaBotao(); | |
| 1478 | - i3GEO.eventos.cliquePerm.ativa(); | |
| 1479 | - $i("i3GEObarraEdicao").style.display = "none"; | |
| 1480 | - }; | |
| 1481 | - i3GEOpanelEditor.appendChild(temp); | |
| 1579 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoListaGeometrias()); | |
| 1482 | 1580 | } |
| 1483 | 1581 | if (botoes.tools === true) { |
| 1484 | - temp = document.createElement("div"); | |
| 1485 | - temp.className = "editorOLtoolsItemInactive olButton"; | |
| 1486 | - temp.title = $trad("u15a"); | |
| 1487 | - temp.onclick = function(){ | |
| 1488 | - // fora do i3geo, usa o jsts | |
| 1489 | - if (i3GEO.php) { | |
| 1490 | - i3GEO.editorOL.ferramentas(); | |
| 1491 | - } else { | |
| 1492 | - i3GEO.editorOL.carregajts("i3GEO.editorOL.ferramentas()"); | |
| 1493 | - } | |
| 1494 | - }; | |
| 1495 | - i3GEOpanelEditor.appendChild(temp); | |
| 1582 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoTools()); | |
| 1496 | 1583 | } |
| 1497 | 1584 | if (botoes.propriedades === true) { |
| 1498 | - temp = document.createElement("div"); | |
| 1499 | - temp.className = "editorOLpropriedadesItemInactive olButton"; | |
| 1500 | - temp.title = $trad("p13"); | |
| 1501 | - temp.onclick = function(){ | |
| 1502 | - i3GEO.editorOL.propriedades(); | |
| 1503 | - }; | |
| 1504 | - i3GEOpanelEditor.appendChild(temp); | |
| 1585 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoPropriedades()); | |
| 1505 | 1586 | } |
| 1506 | - if (botoes.identifica === true) { | |
| 1507 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1508 | - temp = document.createElement("div"); | |
| 1509 | - temp.className = "editorOLidentificaItemInactive olButton"; | |
| 1510 | - temp.title = $trad("d7t"); | |
| 1511 | - temp.onclick = function(){ | |
| 1512 | - i3GEO.editorOL.criaJanelaAtivaTema(); | |
| 1513 | - i3GEO.eventos.cliquePerm.desativa(); | |
| 1514 | - i3GEO.editorOL.marcaBotao("editorOLidentifica"); | |
| 1515 | - var draw = new ol.interaction.Draw({ | |
| 1516 | - type : "Point" | |
| 1517 | - }); | |
| 1518 | - //adiciona a interacao para poder ser removida | |
| 1519 | - i3GEO.editorOL.interacoes.push(draw); | |
| 1520 | - i3GEO.Interface.openlayers.interacoes[0].setActive(false); | |
| 1521 | - draw.on("drawend", function(evt) { | |
| 1522 | - var xy, p, retorno, url, layer, tema = $i("i3GEOOLlistaTemasAtivos"); | |
| 1523 | - if(tema){ | |
| 1524 | - layer = i3geoOL.getLayersByName(tema.value)[0]; | |
| 1525 | - url = layer.getSource().getUrls()[0]; | |
| 1526 | - xy = evt.target.downPx_; | |
| 1527 | - retorno = function(r){ | |
| 1528 | - var texto = "", lonlattexto, xy, temp, temp1, n, i, f = [], textoN = r.split(":"); | |
| 1529 | - xy = evt.feature.getGeometry().getFirstCoordinate(); | |
| 1530 | - i3GEO.eventos.cliquePerm.ativo = true; | |
| 1531 | - try { | |
| 1532 | - if (textoN.length > 1) { | |
| 1533 | - temp = textoN[2].replace(/\n\r/g, ""); | |
| 1534 | - temp = temp.replace(/'/g, ""); | |
| 1535 | - temp = temp.replace(/\n/g, "|"); | |
| 1536 | - temp = temp.replace(/_/g, " "); | |
| 1537 | - temp = temp.replace(/=/g, ":"); | |
| 1538 | - temp = temp.split("|"); | |
| 1539 | - n = temp.length; | |
| 1540 | - for (i = 0; i < n; i++) { | |
| 1541 | - temp1 = temp[i].replace(/^\s+/, ""); | |
| 1542 | - temp1 = temp1.replace(/\s+$/, ""); | |
| 1543 | - if (temp1 != "") | |
| 1544 | - f.push(temp1); | |
| 1545 | - } | |
| 1546 | - texto = "<pre>" + f.join("<br>") + "</pre>"; | |
| 1547 | - } | |
| 1548 | - } catch (e) {} | |
| 1549 | - //funcao para capturar a geometria | |
| 1550 | - lonlattexto = | |
| 1551 | - "<span style=font-size:12px;color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(" + xy[0] | |
| 1552 | - + "," | |
| 1553 | - + xy[1] | |
| 1554 | - + ",\"" | |
| 1555 | - + tema.value | |
| 1556 | - + "\")'>edita geometria</span><br>"; | |
| 1557 | - i3GEO.Interface.openlayers.balao("<div style='text-align:left' >" + lonlattexto + texto + "</div>","", xy[0], xy[1], false, false); | |
| 1558 | - i3GEO.eventos.cliquePerm.ativo = false; | |
| 1559 | - }; | |
| 1560 | - p = i3GEO.configura.locaplic + "/classesphp/proxy.php?" | |
| 1561 | - + url | |
| 1562 | - + "&tipoRetornoProxy=string&REQUEST=GetFeatureInfo&TIPOIMAGEM=nenhum&DESLIGACACHE=sim&STYLES=&SERVICE=WMS&VERSION=1.1.1&FEATURE_COUNT=1" | |
| 1563 | - + "&FORMAT=image/png&INFO_FORMAT=text/plain&SRS=EPSG:4326" | |
| 1564 | - + "&LAYERS=" + tema.value | |
| 1565 | - + "&layer=" + tema.value | |
| 1566 | - + "&QUERY_LAYERS=" + tema.value | |
| 1567 | - + "&HEIGHT=" + i3GEO.parametros.h | |
| 1568 | - + "&WIDTH=" + i3GEO.parametros.w | |
| 1569 | - + "&BBOX=" + i3geoOL.getExtent().toBBOX().split(",").join(" ") | |
| 1570 | - + "&X=" + xy[0] + "&Y=" + xy[1]; | |
| 1571 | - cpJSON.call(p, "foo", retorno, ""); | |
| 1572 | - } | |
| 1573 | - //i3GEO.editorOL.marcaBotao(); | |
| 1574 | - }); | |
| 1575 | - i3geoOL.addInteraction(draw); | |
| 1576 | - }; | |
| 1577 | - i3GEOpanelEditor.appendChild(temp); | |
| 1587 | + if (botoes.salva === true) { | |
| 1588 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoSalva()); | |
| 1589 | + } | |
| 1590 | + if (botoes.ajuda === true) { | |
| 1591 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoAjuda()); | |
| 1592 | + } | |
| 1593 | + if (botoes.fecha === true) { | |
| 1594 | + i3GEOpanelEditor.appendChild(i3GEO.editorOL.botaoFecha()); | |
| 1578 | 1595 | } |
| 1579 | 1596 | i3GEOpanelEditor.style.width = i3GEOpanelEditor.getElementsByTagName("div").length * 33 + "px"; |
| 1580 | 1597 | i3GEO.editorOL.mapa.getViewport().getElementsByClassName("ol-overlaycontainer-stopevent")[0].appendChild(i3GEOpanelEditor); |
| 1581 | - | |
| 1582 | - /* | |
| 1583 | - if (botoes.salva === true) { | |
| 1584 | - | |
| 1585 | - button = new OpenLayers.Control.Button({ | |
| 1586 | - displayClass : "editorOLsalva", | |
| 1587 | - trigger : function() { | |
| 1588 | - i3GEO.editorOL.salvaGeometrias(); | |
| 1589 | - }, | |
| 1590 | - title : $trad("salva"), | |
| 1591 | - type : OpenLayers.Control.TYPE_BUTTON | |
| 1592 | - }); | |
| 1593 | - controles.push(button); | |
| 1594 | - adiciona = true; | |
| 1595 | - | |
| 1596 | - } | |
| 1597 | - */ | |
| 1598 | 1598 | }, |
| 1599 | 1599 | removeFeaturesSel : function(){ |
| 1600 | 1600 | var s, i, nsel, f; |
| ... | ... | @@ -1617,13 +1617,24 @@ i3GEO.editorOL = |
| 1617 | 1617 | for(i=0; i<nsel; i++){ |
| 1618 | 1618 | f = s.getFeatureById(i3GEO.editorOL.idsSelecionados[i]); |
| 1619 | 1619 | if(f){ |
| 1620 | - f.setProperties({ | |
| 1621 | - fillColor: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1622 | - strokeColor: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1623 | - width: i3GEO.editorOL.simbologia.strokeWidth, | |
| 1624 | - fontSize: i3GEO.editorOL.simbologia.fontSize, | |
| 1625 | - fontColor: i3GEO.editorOL.simbologia.fontColor | |
| 1626 | - }); | |
| 1620 | + if(estilo === "externalGraphic" || estilo === "graphicWidth" || estilo === "graphicHeight"){ | |
| 1621 | + f.setProperties({ | |
| 1622 | + src: i3GEO.editorOL.simbologia.externalGraphic, | |
| 1623 | + size: [ | |
| 1624 | + i3GEO.editorOL.simbologia.graphicWidth, | |
| 1625 | + i3GEO.editorOL.simbologia.graphicHeight | |
| 1626 | + ] | |
| 1627 | + }); | |
| 1628 | + } | |
| 1629 | + else{ | |
| 1630 | + f.setProperties({ | |
| 1631 | + fillColor: 'rgba(' + i3GEO.editorOL.simbologia.fillColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1632 | + strokeColor: 'rgba(' + i3GEO.editorOL.simbologia.strokeColor + ',' + i3GEO.editorOL.simbologia.opacidade + ')', | |
| 1633 | + width: i3GEO.editorOL.simbologia.strokeWidth, | |
| 1634 | + fontSize: i3GEO.editorOL.simbologia.fontSize, | |
| 1635 | + fontColor: i3GEO.editorOL.simbologia.fontColor, | |
| 1636 | + }); | |
| 1637 | + } | |
| 1627 | 1638 | } |
| 1628 | 1639 | } |
| 1629 | 1640 | }, |
| ... | ... | @@ -1733,43 +1744,39 @@ i3GEO.editorOL = |
| 1733 | 1744 | + '<div class="i3geoForm100 i3geoFormIconeAquarela" >' |
| 1734 | 1745 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'strokeColor\',\'i3GEOEditorOLcorContorno\');return false;" type="text" id="i3GEOEditorOLcorContorno" value="' + i3GEO.editorOL.simbologia.strokeColor + '" />' |
| 1735 | 1746 | + '</div>' |
| 1736 | - + '<p class=paragrafo >Cor do preenchimento</p>' | |
| 1747 | + + '<br><p class=paragrafo >Cor do preenchimento</p>' | |
| 1737 | 1748 | + '<div class="i3geoForm100 i3geoFormIconeAquarela" >' |
| 1738 | 1749 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'fillColor\',\'i3GEOEditorOLcorPre\');return false;" type="text" id="i3GEOEditorOLcorPre" value="' + i3GEO.editorOL.simbologia.fillColor + '" />' |
| 1739 | 1750 | + '</div>' |
| 1740 | - + '<p class=paragrafo >Cor da fonte</p>' | |
| 1751 | + + '<br><p class=paragrafo >Cor da fonte</p>' | |
| 1741 | 1752 | + '<div class="i3geoForm100 i3geoFormIconeAquarela" >' |
| 1742 | 1753 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'fontColor\',\'i3GEOEditorOLcorFonte\');return false;" type="text" id="i3GEOEditorOLcorFonte" value="' + i3GEO.editorOL.simbologia.fontColor + '" />' |
| 1743 | 1754 | + '</div>' |
| 1744 | - + '<p class=paragrafo >Tamanho da fonte</p>' | |
| 1755 | + + '<br><p class=paragrafo >Tamanho da fonte</p>' | |
| 1745 | 1756 | + '<div class="i3geoForm100 i3geoFormIconeEdita" >' |
| 1746 | 1757 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'fontSize\',\'i3GEOEditorOLfontsize\');return false;" type="text" id="i3GEOEditorOLfontsize" value="' + i3GEO.editorOL.simbologia.fontSize + '" />' |
| 1747 | 1758 | + '</div>' |
| 1748 | - + '<p class=paragrafo >Opacidade (de 0 a 1)</p>' | |
| 1759 | + + '<br><p class=paragrafo >Opacidade (de 0 a 1)</p>' | |
| 1749 | 1760 | + '<div class="i3geoForm100 i3geoFormIconeEdita" >' |
| 1750 | 1761 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'opacidade\',\'i3GEOEditorOLopacidade\');return false;" type="text" id="i3GEOEditorOLopacidade" value="' + i3GEO.editorOL.simbologia.opacidade + '" />' |
| 1751 | 1762 | + '</div>' |
| 1752 | - + '<p class=paragrafo >Largura da linha/contorno</p>' | |
| 1763 | + + '<br><p class=paragrafo >Largura da linha/contorno</p>' | |
| 1753 | 1764 | + '<div class="i3geoForm100 i3geoFormIconeEdita" >' |
| 1754 | 1765 | + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'strokeWidth\',\'i3GEOEditorOLlarguraLinha\');return false;" type="text" id="i3GEOEditorOLlarguraLinha" value="' + i3GEO.editorOL.simbologia.strokeWidth + '" />' |
| 1766 | + + '</div>' | |
| 1767 | + + '<br><p class=paragrafo >Url de uma imagem</p>' | |
| 1768 | + + '<div class="i3geoForm i3geoFormIconeEdita" >' | |
| 1769 | + + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'externalGraphic\',\'i3GEOEditorOLexternalGraphic\');return false;" type="text" id="i3GEOEditorOLexternalGraphic" value="' + i3GEO.editorOL.simbologia.externalGraphic + '" />' | |
| 1770 | + + '</div>' | |
| 1771 | + + '<br><p class=paragrafo >Largura da imagem</p>' | |
| 1772 | + + '<div class="i3geoForm100 i3geoFormIconeEdita" >' | |
| 1773 | + + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'graphicWidth\',\'i3GEOEditorOLgraphicWidth\');return false;" type="text" id="i3GEOEditorOLgraphicWidth" value="' + i3GEO.editorOL.simbologia.graphicWidth + '" />' | |
| 1774 | + + '</div>' | |
| 1775 | + + '<br><p class=paragrafo >Altura da imagem</p>' | |
| 1776 | + + '<div class="i3geoForm100 i3geoFormIconeEdita" >' | |
| 1777 | + + '<input onchange="i3GEO.editorOL.mudaSimbolo(\'graphicHeight\',\'i3GEOEditorOLgraphicHeight\');return false;" type="text" id="i3GEOEditorOLgraphicHeight" value="' + i3GEO.editorOL.simbologia.graphicHeight + '" />' | |
| 1755 | 1778 | + '</div>'; |
| 1756 | 1779 | |
| 1757 | - //TODO incluir propriedades de uma figura | |
| 1758 | - /* | |
| 1759 | - + ' <tr>' | |
| 1760 | - + ' <td>Url de uma figura</td><td><input onchange="i3GEO.editorOL.mudaSimbolo(\'externalGraphic\',\'i3GEOEditorOLexternalGraphic\')" type="text" style="cursor:text" id="i3GEOEditorOLexternalGraphic" size="22" value="' | |
| 1761 | - + i3GEO.editorOL.simbologia.externalGraphic | |
| 1762 | - + '" /></td><td></td>' | |
| 1763 | - + ' </tr>' | |
| 1764 | - + ' <tr>' | |
| 1765 | - + ' <td>Largura e altura</td><td><input onchange="i3GEO.editorOL.mudaSimbolo(\'graphicWidth\',\'i3GEOEditorOLgraphicWidth\')" type="text" style="cursor:text" id="i3GEOEditorOLgraphicWidth" size="4" value="' | |
| 1766 | - + i3GEO.editorOL.simbologia.graphicWidth | |
| 1767 | - + '" /> <input onchange="i3GEO.editorOL.mudaSimbolo(\'graphicHeight\',\'i3GEOEditorOLgraphicHeight\')" type="text" style="cursor:text" id="i3GEOEditorOLgraphicHeight" size="4" value="' | |
| 1768 | - + i3GEO.editorOL.simbologia.graphicHeight | |
| 1769 | - + '" /></td><td></td>' | |
| 1770 | - + ' </tr>' | |
| 1771 | - */ | |
| 1772 | - | |
| 1773 | 1780 | //TODO implementar ao atualizar OL3 |
| 1774 | 1781 | /* |
| 1775 | 1782 | + '<br />' |
| ... | ... | @@ -1993,9 +2000,6 @@ i3GEO.editorOL = |
| 1993 | 2000 | } |
| 1994 | 2001 | var polis, linhas, pontos, temp, nsel = i3GEO.editorOL.idsSelecionados.length; |
| 1995 | 2002 | if (nsel > 0) { |
| 1996 | - polis = i3GEO.editorOL.retornaGeometriasTipo("Polygon"); | |
| 1997 | - linhas = i3GEO.editorOL.retornaGeometriasTipo("LineString"); | |
| 1998 | - pontos = i3GEO.editorOL.retornaGeometriasTipo("Point"); | |
| 1999 | 2003 | temp = function(retorno) { |
| 2000 | 2004 | if (i3GEO.janela) { |
| 2001 | 2005 | i3GEO.janela.fechaAguarde("i3GEO.editorPoli"); |
| ... | ... | @@ -2011,6 +2015,9 @@ i3GEO.editorOL = |
| 2011 | 2015 | } |
| 2012 | 2016 | }; |
| 2013 | 2017 | if (operacao === "incorporar") { |
| 2018 | + polis = i3GEO.editorOL.retornaFeaturesTipo("Polygon"); | |
| 2019 | + linhas = i3GEO.editorOL.retornaFeaturesTipo("LineString"); | |
| 2020 | + pontos = i3GEO.editorOL.retornaFeaturesTipo("Point"); | |
| 2014 | 2021 | if (polis.length > 0) { |
| 2015 | 2022 | temp = i3GEO.editorOL.merge(polis); |
| 2016 | 2023 | } |
| ... | ... | @@ -2026,6 +2033,9 @@ i3GEO.editorOL = |
| 2026 | 2033 | return; |
| 2027 | 2034 | } |
| 2028 | 2035 | if (operacao === "union" && !i3GEO.php) { |
| 2036 | + polis = i3GEO.editorOL.retornaFeaturesTipo("Polygon"); | |
| 2037 | + linhas = i3GEO.editorOL.retornaFeaturesTipo("LineString"); | |
| 2038 | + pontos = i3GEO.editorOL.retornaFeaturesTipo("Point"); | |
| 2029 | 2039 | if (polis.length > 0) { |
| 2030 | 2040 | temp = i3GEO.editorOL.uniaojts(polis); |
| 2031 | 2041 | i3GEO.editorOL.substituiFeaturesSel(temp); |
| ... | ... | @@ -2039,6 +2049,9 @@ i3GEO.editorOL = |
| 2039 | 2049 | i3GEO.editorOL.substituiFeaturesSel(temp); |
| 2040 | 2050 | } |
| 2041 | 2051 | } else { |
| 2052 | + polis = i3GEO.editorOL.retornaGeometriasTipo("Polygon"); | |
| 2053 | + linhas = i3GEO.editorOL.retornaGeometriasTipo("LineString"); | |
| 2054 | + pontos = i3GEO.editorOL.retornaGeometriasTipo("Point"); | |
| 2042 | 2055 | if (polis.length > 0) { |
| 2043 | 2056 | i3GEO.janela.abreAguarde("i3GEO.editorPoli", "Poligonos"); |
| 2044 | 2057 | i3GEO.php.funcoesGeometriasWkt(temp, polis.join("|"), operacao); |
| ... | ... | @@ -2059,8 +2072,12 @@ i3GEO.editorOL = |
| 2059 | 2072 | } |
| 2060 | 2073 | }, |
| 2061 | 2074 | merge : function(geoms) { |
| 2062 | - var n = geoms.length, w = new Wkt.Wkt(), g, m, i, format = new ol.format.WKT(); | |
| 2063 | - w.read(format.writeFeatures([geoms[0]])); | |
| 2075 | + var n = geoms.length, | |
| 2076 | + w = new Wkt.Wkt(), | |
| 2077 | + g, m, i,f, | |
| 2078 | + format = new ol.format.WKT(); | |
| 2079 | + f = format.writeFeatures([geoms[0]]); | |
| 2080 | + w.read(f); | |
| 2064 | 2081 | if (n > 1) { |
| 2065 | 2082 | for (i = 1; i < n; i++) { |
| 2066 | 2083 | g = format.writeFeatures([geoms[i]]); |
| ... | ... | @@ -2078,12 +2095,15 @@ i3GEO.editorOL = |
| 2078 | 2095 | wwkt = new jsts.io.WKTWriter(), |
| 2079 | 2096 | g, i, uniao; |
| 2080 | 2097 | if (n > 1) { |
| 2098 | + //converte em wkt | |
| 2081 | 2099 | uniao = fwkt.writeFeatures([geoms[0]]); |
| 2100 | + //le na jsts | |
| 2082 | 2101 | uniao = rwkt.read(uniao); |
| 2083 | 2102 | for (i = 1; i <= n; i++) { |
| 2084 | 2103 | g = fwkt.writeFeatures([geoms[i]]); |
| 2085 | 2104 | uniao = uniao.union(rwkt.read(g)); |
| 2086 | 2105 | } |
| 2106 | + //gera em wkt | |
| 2087 | 2107 | uniao = wwkt.write(uniao); |
| 2088 | 2108 | return [ |
| 2089 | 2109 | fwkt.readFeatures(uniao) |
| ... | ... | @@ -2104,6 +2124,17 @@ i3GEO.editorOL = |
| 2104 | 2124 | } |
| 2105 | 2125 | return lista; |
| 2106 | 2126 | }, |
| 2127 | + retornaFeaturesTipo : function(tipo) { | |
| 2128 | + var n = i3GEO.editorOL.idsSelecionados.length, lista = [], i, | |
| 2129 | + s = i3GEO.desenho.layergrafico.getSource(); | |
| 2130 | + for (i = 0; i < n; i++) { | |
| 2131 | + f = s.getFeatureById(i3GEO.editorOL.idsSelecionados[i]); | |
| 2132 | + if (f.getGeometry().getType() == tipo) { | |
| 2133 | + lista.push(f); | |
| 2134 | + } | |
| 2135 | + } | |
| 2136 | + return lista; | |
| 2137 | + }, | |
| 2107 | 2138 | guardaBackup : function() { |
| 2108 | 2139 | return; |
| 2109 | 2140 | // if(!i3GEO.editorOL.backup) |
| ... | ... | @@ -2142,10 +2173,24 @@ i3GEO.editorOL = |
| 2142 | 2173 | }) |
| 2143 | 2174 | }) |
| 2144 | 2175 | ); |
| 2145 | - f.setProperties({ | |
| 2146 | - fillColor: st.getImage().getFill().getColor(), | |
| 2147 | - strokeColor: st.getImage().getStroke().getColor() | |
| 2148 | - }); | |
| 2176 | + if(st.getImage().getSrc){ | |
| 2177 | + f.setProperties({ | |
| 2178 | + fillColor: "", | |
| 2179 | + strokeColor: "", | |
| 2180 | + externalGraphic: st.getImage().getSrc(), | |
| 2181 | + graphicHeight : st.getImage().getSize()[1], | |
| 2182 | + graphicWidth : st.getImage().getSize()[0] | |
| 2183 | + }); | |
| 2184 | + } | |
| 2185 | + else{ | |
| 2186 | + f.setProperties({ | |
| 2187 | + fillColor: st.getImage().getFill().getColor(), | |
| 2188 | + strokeColor: st.getImage().getStroke().getColor(), | |
| 2189 | + externalGraphic: "", | |
| 2190 | + graphicHeight: "", | |
| 2191 | + graphicWidth: "" | |
| 2192 | + }); | |
| 2193 | + } | |
| 2149 | 2194 | } |
| 2150 | 2195 | else{ |
| 2151 | 2196 | f.setProperties({ |
| ... | ... | @@ -2168,20 +2213,32 @@ i3GEO.editorOL = |
| 2168 | 2213 | st = f.getStyle(); |
| 2169 | 2214 | //caso de ponto |
| 2170 | 2215 | if(st.getImage()){ |
| 2171 | - f.setStyle( | |
| 2172 | - new ol.style.Style({ | |
| 2173 | - image: new ol.style.Circle({ | |
| 2174 | - radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 2175 | - fill: new ol.style.Fill({ | |
| 2176 | - color: f.getProperties().fillColor | |
| 2177 | - }), | |
| 2178 | - stroke: new ol.style.Stroke({ | |
| 2179 | - color: f.getProperties().strokeColor, | |
| 2180 | - width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 2216 | + if(st.getImage().getSrc || f.getProperties().externalGraphic != ""){ | |
| 2217 | + f.setStyle( | |
| 2218 | + new ol.style.Style({ | |
| 2219 | + image: new ol.style.Icon({ | |
| 2220 | + src : f.getProperties().externalGraphic, | |
| 2221 | + size : [f.getProperties().graphicWidth,f.getProperties().graphicHeight] | |
| 2181 | 2222 | }) |
| 2182 | 2223 | }) |
| 2183 | - }) | |
| 2184 | - ); | |
| 2224 | + ); | |
| 2225 | + } | |
| 2226 | + else{ | |
| 2227 | + f.setStyle( | |
| 2228 | + new ol.style.Style({ | |
| 2229 | + image: new ol.style.Circle({ | |
| 2230 | + radius: i3GEO.editorOL.simbologia.pointRadius, | |
| 2231 | + fill: new ol.style.Fill({ | |
| 2232 | + color: f.getProperties().fillColor | |
| 2233 | + }), | |
| 2234 | + stroke: new ol.style.Stroke({ | |
| 2235 | + color: f.getProperties().strokeColor, | |
| 2236 | + width: i3GEO.editorOL.simbologia.pointRadius / 3 | |
| 2237 | + }) | |
| 2238 | + }) | |
| 2239 | + }) | |
| 2240 | + ); | |
| 2241 | + } | |
| 2185 | 2242 | } |
| 2186 | 2243 | else{ |
| 2187 | 2244 | st.getFill().setColor(f.getProperties().fillColor); |
| ... | ... | @@ -2205,8 +2262,14 @@ i3GEO.editorOL = |
| 2205 | 2262 | s = i3GEO.desenho.layergrafico.getSource(); |
| 2206 | 2263 | f = s.getFeatureById(id); |
| 2207 | 2264 | if(f){ |
| 2208 | - f.getStyle().getFill().setColor(f.getProperties().fillColor); | |
| 2209 | - f.getStyle().getStroke().setColor(f.getProperties().strokeColor); | |
| 2265 | + if(f.getStyle().getSrc()){ | |
| 2266 | + f.getStyle().setSrc(f.getProperties().externalGraphic); | |
| 2267 | + f.getStyle().setSize([f.getProperties().graphicWidth,f.getProperties().graphicHeight]); | |
| 2268 | + } | |
| 2269 | + else{ | |
| 2270 | + f.getStyle().getFill().setColor(f.getProperties().fillColor); | |
| 2271 | + f.getStyle().getStroke().setColor(f.getProperties().strokeColor); | |
| 2272 | + } | |
| 2210 | 2273 | } |
| 2211 | 2274 | i3GEO.editorOL.idsSelecionados.remove(id); |
| 2212 | 2275 | i3GEO.desenho.layergrafico.getSource().changed(); |
| ... | ... | @@ -2294,7 +2357,8 @@ i3GEO.editorOL = |
| 2294 | 2357 | i3GEO.editorOL.idsSelecionados.push(id); |
| 2295 | 2358 | f.setProperties({ |
| 2296 | 2359 | fillColor: f.getStyle().getFill().getColor(), |
| 2297 | - strokeColor: f.getStyle().getStroke().getColor() | |
| 2360 | + strokeColor: f.getStyle().getStroke().getColor(), | |
| 2361 | + externalGraphic: "" | |
| 2298 | 2362 | }); |
| 2299 | 2363 | f.getStyle().getFill().setColor('rgba(255, 255, 255, 0.5)'); |
| 2300 | 2364 | f.getStyle().getStroke().setColor('blue'); |
| ... | ... | @@ -2347,8 +2411,7 @@ i3GEO.editorOL = |
| 2347 | 2411 | }, |
| 2348 | 2412 | google2wgs : function(obj) { |
| 2349 | 2413 | if (i3GEO.Interface.openlayers.googleLike === true) { |
| 2350 | - var projWGS84 = new OpenLayers.Projection("EPSG:4326"), proj900913 = new OpenLayers.Projection("EPSG:900913"); | |
| 2351 | - return obj.transform(proj900913, projWGS84); | |
| 2414 | + return obj.transform("EPSG:900913","EPSG:4326"); | |
| 2352 | 2415 | } else { |
| 2353 | 2416 | return obj; |
| 2354 | 2417 | } | ... | ... |
ferramentas/importarwmc/upload.php
ferramentas/imprimir/a4l.htm
ferramentas/imprimir/a4p.htm
ferramentas/loginusuario/index.js
| ... | ... | @@ -113,11 +113,15 @@ i3GEOF.loginusuario = { |
| 113 | 113 | usuario = ""; |
| 114 | 114 | } |
| 115 | 115 | ins = '<div style=width:90%;margin:auto; ><p class="paragrafo" >'+$trad("x30")+': <b><i>'+u+"</i></b>" + |
| 116 | - '<p class="paragrafo" >'+$trad("x27")+':<br>' + | |
| 117 | - '<input id=i3geousuario type=text style="width:200px;" value="'+usuario+'"/>' + | |
| 118 | - '<p class="paragrafo" >'+$trad("x28")+':<br>' + | |
| 119 | - '<input id=i3geosenha type=password style="width:200px;" value=""/><br>' + | |
| 120 | - '<p class="paragrafo" ><input id=i3GEOFloginusuario size=20 type=button value="'+$trad("x29")+'" /> <input id=i3GEOFlogoutusuario size=20 type=button value="Logout" />' + | |
| 116 | + '<p class="paragrafo" >'+$trad("x27")+':</p>' + | |
| 117 | + '<div class="i3geoForm i3geoFormIconeUsuario">' + | |
| 118 | + '<input id=i3geousuario type=text value="'+usuario+'"/>' + | |
| 119 | + '</div>' + | |
| 120 | + '<br><p class="paragrafo" >'+$trad("x28")+':</p>' + | |
| 121 | + '<div class="i3geoForm i3geoFormIconeSenha">' + | |
| 122 | + '<input id=i3geosenha type=password value=""/><br>' + | |
| 123 | + '</div>' + | |
| 124 | + '<br><p class="paragrafo" ><input id=i3GEOFloginusuario size=20 type=button value="'+$trad("x29")+'" /> <input id=i3GEOFlogoutusuario size=20 type=button value="Logout" />' + | |
| 121 | 125 | '<p class="paragrafo" onclick="i3GEOF.loginusuario.recuperarSenha()" style="cursor:pointer;color:blue;">'+$trad("x32")+'</p>' + |
| 122 | 126 | '<p class="paragrafo" onclick="i3GEOF.loginusuario.alterarSenha()" style="cursor:pointer;color:blue;">'+$trad("x52")+'</p>' + |
| 123 | 127 | '</div>'; | ... | ... |
ferramentas/tabela/relatorio.php
| ... | ... | @@ -291,7 +291,7 @@ function calculaarea($geo) |
| 291 | 291 | $g = $geo->towkt(); |
| 292 | 292 | $shape = ms_shapeObjFromWkt($g); |
| 293 | 293 | $rect = $shape->bounds; |
| 294 | - $projInObj = ms_newprojectionobj("proj=latlong"); | |
| 294 | + $projInObj = ms_newprojectionobj("proj=longlat,ellps=WGS84,datum=WGS84,no_defs"); | |
| 295 | 295 | $projOutObj = ms_newprojectionobj("proj=laea,lat_0=".$rect->miny.",lon_0=".$rect->minx.",x_0=500000,y_0=10000000,ellps=GRS67,units=m,no_defs"); |
| 296 | 296 | $shape->project($projInObj, $projOutObj); |
| 297 | 297 | $s = $shape->towkt(); | ... | ... |
ferramentas/upload/upload.php
| ... | ... | @@ -19,6 +19,7 @@ if (ob_get_level() == 0) ob_start(); |
| 19 | 19 | <html> |
| 20 | 20 | <head> |
| 21 | 21 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 22 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 22 | 23 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 23 | 24 | <script src="../../classesjs/classe_util.js"></script> |
| 24 | 25 | <title></title> | ... | ... |
ferramentas/uploaddbf/upload.php
ferramentas/uploadgpx/upload.php
ferramentas/uploadkml/upload.php
ferramentas/uploadsimbolo/upload.php
| ... | ... | @@ -12,6 +12,7 @@ if (ob_get_level() == 0) ob_start(); |
| 12 | 12 | <html> |
| 13 | 13 | <head> |
| 14 | 14 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
| 15 | +<link rel="stylesheet" type="text/css" href="../../css/input.css" /> | |
| 15 | 16 | <link rel="stylesheet" type="text/css" href="../../css/geral.css" /> |
| 16 | 17 | <title></title> |
| 17 | 18 | </head> | ... | ... |
1.08 KB
1.11 KB