diff --git a/admin/admin.db b/admin/admin.db index a40ac11..eb70ff7 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 4232113..d2cb0b3 100755 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -449,6 +449,7 @@ class Atributos $alias = $items; } $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa,true); + //error_reporting(E_ALL); $res_count = count($shapes); $resultadoFinal[] = array("totalSelecionados"=>$res_count,"itens"=>$items,"alias"=>$alias); $registros = array(); @@ -484,12 +485,18 @@ class Atributos } $classe = ""; if($dadosDaClasse == "sim"){ - $indice = $this->layer->getClassIndex($shape); - $nome = $this->layer->getclass($indice)->name; - $classe = array( - "indice"=>$indice, - "nome"=>$nome - ); + $indice = @$this->layer->getClassIndex($shape); + if($indice >= 0){ + $classei = @$this->layer->getclass($indice); + $nome = $classei->name; + if($convC == true && $nome != ""){ + $nome = $this->converte($nome); + } + $classe = array( + "indice"=>$indice, + "nome"=>$nome + ); + } } $ext = $this->extensaoShape($shape); $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe,"ext"=>$ext); @@ -554,6 +561,9 @@ class Atributos else{ $nome = ""; } + if($convC == true && $nome != ""){ + $nome = $this->converte($nome); + } $classe = array( "indice"=>$indice, "nome"=>$nome diff --git a/ferramentas/tabela/dicionario.js b/ferramentas/tabela/dicionario.js index 0bb2435..a238544 100755 --- a/ferramentas/tabela/dicionario.js +++ b/ferramentas/tabela/dicionario.js @@ -220,17 +220,17 @@ i3GEOF.tabela.dicionario = { en : "", es : "" } ], - 'selecionaTabela' : [ { + "selecionaTabela" : [ { pt : "Escolha uma tabela", en : "", es : "" } ], - 'selecionaSegundaTabela' : [ { + "selecionaSegundaTabela" : [ { pt : "Escolha uma segunda tabela", en : "", es : "" } ], - 'criaVinculo' : [ { + "criaVinculo" : [ { pt : "Criar vínculo", en : "", es : "" @@ -244,5 +244,10 @@ i3GEOF.tabela.dicionario = { pt : "Identificador da tabela", en : "", es : "" + } ], + 'selUmReg' : [ { + pt : "Selecione pelo menos um registro", + en : "", + es : "" } ] }; diff --git a/ferramentas/tabela/index.js b/ferramentas/tabela/index.js index 843d8c4..5a41d8a 100755 --- a/ferramentas/tabela/index.js +++ b/ferramentas/tabela/index.js @@ -260,7 +260,7 @@ i3GEOF.tabela = + ""; janela = i3GEO.janela.cria( - "570px", + "610px", "400px", "", "", @@ -911,8 +911,8 @@ i3GEOF.tabela = ordenaColuna : function(coluna, cid, idjanela) { i3GEOF.tabela.propJanelas[idjanela].aguarde.visibility = "visible"; try { - var tabela = $i(idjanela + "i3GEOtabelatabelai"), trs = tabela.getElementsByTagName("tr"), ntrs = trs.length, tds, nt, conta = - 0, psort = [], t, psortfim, npsortfim, ins, p, e; + var tabela = $i(idjanela + "i3GEOtabelatabelai"), trs = tabela.getElementsByTagName("tr"), + ntrs = trs.length, tds, nt, conta = 0, psort = [], t, psortfim, npsortfim, ins, p, e; // pega o indice correto tds = coluna.parentNode.parentNode.getElementsByTagName("td"); nt = tds.length; @@ -924,20 +924,21 @@ i3GEOF.tabela = } for (t = 0; t < ntrs; t++) { if (t < ntrs) { - if (trs[t].childNodes[cid].innerHTML) { - if (trs[t].childNodes[cid].innerHTML !== "undefined") { - psort[conta] = trs[t].childNodes[cid].innerHTML + "+" + conta; + //if (trs[t].childNodes[cid].innerHTML) { + //if (trs[t].getElementsByTagName("td")[cid].innerHTML !== "undefined") { + psort[conta] = trs[t].getElementsByTagName("td")[cid].innerHTML + "@$" + conta; conta = conta + 1; - } - } + //} + //} } } + // recosntroi a tabela psortfim = psort.sort(); ins = "
- |
{{{colunas}}}
diff --git a/ferramentas/tabela/template_mst.html b/ferramentas/tabela/template_mst.html
index 37f212c..30f8a08 100755
--- a/ferramentas/tabela/template_mst.html
+++ b/ferramentas/tabela/template_mst.html
@@ -33,21 +33,19 @@