Commit fa1441256afbfe9dcc8950341d51b17082a5560d
1 parent
4a5e9eb6
Exists in
master
and in
7 other branches
--no commit message
Showing
5 changed files
with
15 additions
and
14 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/html/admin.css
1 | .letras{ | 1 | .letras{ |
2 | - font-size: 0.5em; | 2 | + font-size: 1em; |
3 | } | 3 | } |
4 | 4 | ||
5 | .paragrafo{ | 5 | .paragrafo{ |
@@ -43,7 +43,7 @@ P { | @@ -43,7 +43,7 @@ P { | ||
43 | } | 43 | } |
44 | P b{ | 44 | P b{ |
45 | text-align: left; | 45 | text-align: left; |
46 | - font-size: 1.26em; | 46 | + font-size: 0.9em; |
47 | font-family: Verdana, Arial, Helvetica, sans-serif; | 47 | font-family: Verdana, Arial, Helvetica, sans-serif; |
48 | } | 48 | } |
49 | legend { | 49 | legend { |
admin/html/estat_editor.html
@@ -38,9 +38,9 @@ body { | @@ -38,9 +38,9 @@ body { | ||
38 | </div> | 38 | </div> |
39 | <div class="ft"></div> | 39 | <div class="ft"></div> |
40 | </div> | 40 | </div> |
41 | - <p><br> | 41 | + <p> |
42 | Atenção: para poder editar o banco de dados, o usuário da conexão escolhida deve ter direitos de edição<br> | 42 | Atenção: para poder editar o banco de dados, o usuário da conexão escolhida deve ter direitos de edição<br> |
43 | - Apenas as tabelas e os dados existentes no esquema i3geo_metaestat podem ser editados<br> | 43 | + Apenas as tabelas e os dados existentes no esquema i3geo_metaestat podem ser editados</p> |
44 | <div id="i3GEOadminEditorConexao" style="left: -5px;"></div><br> | 44 | <div id="i3GEOadminEditorConexao" style="left: -5px;"></div><br> |
45 | <div id="i3GEOadminEditorEsquema" style="left: -5px;"></div> | 45 | <div id="i3GEOadminEditorEsquema" style="left: -5px;"></div> |
46 | <div id="i3GEOadminEditorUpload" style="left: -5px;"></div> | 46 | <div id="i3GEOadminEditorUpload" style="left: -5px;"></div> |
admin/js/estat_editor.js
@@ -27,10 +27,10 @@ i3GEOadmin.editor = { | @@ -27,10 +27,10 @@ i3GEOadmin.editor = { | ||
27 | success:function(o){ | 27 | success:function(o){ |
28 | try { | 28 | try { |
29 | var dados = YAHOO.lang.JSON.parse(o.responseText), | 29 | var dados = YAHOO.lang.JSON.parse(o.responseText), |
30 | - temp = "Escolha a conexão com o banco: "; | 30 | + temp = "<p>Escolha a conexão com o banco: "; |
31 | temp += "<select id='i3GEOadmincodigo_estat_conexao' onchange='i3GEOadmin.editor.esquema.lista()'>"; | 31 | temp += "<select id='i3GEOadmincodigo_estat_conexao' onchange='i3GEOadmin.editor.esquema.lista()'>"; |
32 | temp += core_comboObjeto(dados,"codigo_estat_conexao","bancodedados","","usuario"); | 32 | temp += core_comboObjeto(dados,"codigo_estat_conexao","bancodedados","","usuario"); |
33 | - temp += "</select>"; | 33 | + temp += "</select></p>"; |
34 | $i(i3GEOadmin.editor.conexao.onde).innerHTML = temp; | 34 | $i(i3GEOadmin.editor.conexao.onde).innerHTML = temp; |
35 | core_carregando("desativa"); | 35 | core_carregando("desativa"); |
36 | } | 36 | } |
@@ -50,10 +50,10 @@ i3GEOadmin.editor = { | @@ -50,10 +50,10 @@ i3GEOadmin.editor = { | ||
50 | success:function(o){ | 50 | success:function(o){ |
51 | try { | 51 | try { |
52 | var dados = YAHOO.lang.JSON.parse(o.responseText), | 52 | var dados = YAHOO.lang.JSON.parse(o.responseText), |
53 | - temp = "<fieldset>Escolha um esquema: "; | 53 | + temp = "<fieldset><p>Escolha um esquema: "; |
54 | temp += "<select id='i3GEOadminesquema' onchange='i3GEOadmin.editor.tabela.lista()'>"; | 54 | temp += "<select id='i3GEOadminesquema' onchange='i3GEOadmin.editor.tabela.lista()'>"; |
55 | temp += core_comboObjeto(dados,"esquema","esquema"); | 55 | temp += core_comboObjeto(dados,"esquema","esquema"); |
56 | - temp += "</select>"; | 56 | + temp += "</select></p>"; |
57 | $i(i3GEOadmin.editor.esquema.onde).innerHTML = temp+"</fieldset>"; | 57 | $i(i3GEOadmin.editor.esquema.onde).innerHTML = temp+"</fieldset>"; |
58 | core_carregando("desativa"); | 58 | core_carregando("desativa"); |
59 | $i(i3GEOadmin.editor.tabela.onde).innerHTML = ""; | 59 | $i(i3GEOadmin.editor.tabela.onde).innerHTML = ""; |
@@ -82,13 +82,13 @@ i3GEOadmin.editor = { | @@ -82,13 +82,13 @@ i3GEOadmin.editor = { | ||
82 | try { | 82 | try { |
83 | var dados = YAHOO.lang.JSON.parse(o.responseText), | 83 | var dados = YAHOO.lang.JSON.parse(o.responseText), |
84 | temp = "<fieldset>" + | 84 | temp = "<fieldset>" + |
85 | - "<p><input type=button value='Upload Shapefile' id='i3GEOadmin_botaoupload' /></p>" + | 85 | + "<p class=paragrafo ><input type=button value='Upload Shapefile' id='i3GEOadmin_botaoupload' /></p>" + |
86 | "<div id='i3GEOadmin_formupload'></div>" + | 86 | "<div id='i3GEOadmin_formupload'></div>" + |
87 | - "Escolha uma tabela existente: " + | 87 | + "<p>Escolha uma tabela existente: " + |
88 | "<select id='i3GEOadmintabela' onchange='i3GEOadmin.editor.coluna.lista()'>"; | 88 | "<select id='i3GEOadmintabela' onchange='i3GEOadmin.editor.coluna.lista()'>"; |
89 | temp += core_comboObjeto(dados,"tabela","tabela"); | 89 | temp += core_comboObjeto(dados,"tabela","tabela"); |
90 | temp += "</select>" + | 90 | temp += "</select>" + |
91 | - "<p><input type=button value='Mostrar dados' id='i3GEOadmintabelaMostrar' />" + | 91 | + "<p class=paragrafo ><input type=button value='Mostrar dados' id='i3GEOadmintabelaMostrar' />" + |
92 | "<input type=button value='CSV' id='i3GEOadmintabelaCsv'/>" + | 92 | "<input type=button value='CSV' id='i3GEOadmintabelaCsv'/>" + |
93 | "<input type=button value='Criar uma nova tabela' id='i3GEOadmintabelaCriar' />" + | 93 | "<input type=button value='Criar uma nova tabela' id='i3GEOadmintabelaCriar' />" + |
94 | "<input type=button value='Alterar nome atual' id='i3GEOadmintabelaAlterarNome' />" + | 94 | "<input type=button value='Alterar nome atual' id='i3GEOadmintabelaAlterarNome' />" + |
@@ -300,12 +300,12 @@ i3GEOadmin.editor = { | @@ -300,12 +300,12 @@ i3GEOadmin.editor = { | ||
300 | success:function(o){ | 300 | success:function(o){ |
301 | try { | 301 | try { |
302 | var dados = YAHOO.lang.JSON.parse(o.responseText), | 302 | var dados = YAHOO.lang.JSON.parse(o.responseText), |
303 | - temp = "<fieldset>Escolha uma coluna: "; | 303 | + temp = "<fieldset><p>Escolha uma coluna: "; |
304 | temp += "<select id='i3GEOadmincoluna' >"; | 304 | temp += "<select id='i3GEOadmincoluna' >"; |
305 | temp += core_comboObjeto(dados,"",""); | 305 | temp += core_comboObjeto(dados,"",""); |
306 | - temp += "</select>"; | 306 | + temp += "</select></p>"; |
307 | temp += "" + | 307 | temp += "" + |
308 | - "<p><input type=button value='Adicionar uma nova coluna' id='i3GEOadmincolunaCriar' />" + | 308 | + "<p class=paragrafo ><input type=button value='Adicionar uma nova coluna' id='i3GEOadmincolunaCriar' />" + |
309 | "<input type=button value='Alterar o nome atual' id='i3GEOadmincolunaAlterarNome' />"; | 309 | "<input type=button value='Alterar o nome atual' id='i3GEOadmincolunaAlterarNome' />"; |
310 | $i(i3GEOadmin.editor.coluna.onde).innerHTML = temp+"</fieldset>"; | 310 | $i(i3GEOadmin.editor.coluna.onde).innerHTML = temp+"</fieldset>"; |
311 | new YAHOO.widget.Button( | 311 | new YAHOO.widget.Button( |
admin/php/classe_metaestat.php
@@ -560,6 +560,7 @@ class Metaestat{ | @@ -560,6 +560,7 @@ class Metaestat{ | ||
560 | $vis = str_replace(" ",",",$vis); | 560 | $vis = str_replace(" ",",",$vis); |
561 | $vis = str_replace(",,",",",$vis); | 561 | $vis = str_replace(",,",",",$vis); |
562 | $sqlf = $meta["colunageo"]." from (select st_setsrid(".$colunageo.",".$srid.") as $colunageo,$vis,gid from ".$meta["esquemadb"].".".$meta["tabela"]." /*FW*//*FW*/) as foo using unique gid using srid=".$srid; | 562 | $sqlf = $meta["colunageo"]." from (select st_setsrid(".$colunageo.",".$srid.") as $colunageo,$vis,gid from ".$meta["esquemadb"].".".$meta["tabela"]." /*FW*//*FW*/) as foo using unique gid using srid=".$srid; |
563 | + $sqlf = str_replace(",,",",",$sqlf); | ||
563 | $outlinecolor = str_replace(","," ",$outlinecolor); | 564 | $outlinecolor = str_replace(","," ",$outlinecolor); |
564 | $dados[] = "MAP"; | 565 | $dados[] = "MAP"; |
565 | $dados[] = 'SYMBOLSET "'.$this->locaplic.'/symbols/simbolosv6.sym"'; | 566 | $dados[] = 'SYMBOLSET "'.$this->locaplic.'/symbols/simbolosv6.sym"'; |