Commit ca7272b2047c81959b7ac8ead60567d7de780712
1 parent
cb3c5a13
Exists in
master
and in
7 other branches
Alteração no layout da lista de dados no sistema de admin
Showing
17 changed files
with
92 additions
and
40 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin1/cadastros/identifica/exec.php
| ... | ... | @@ -70,7 +70,7 @@ switch ($funcao) { |
| 70 | 70 | exit (); |
| 71 | 71 | break; |
| 72 | 72 | case "LISTA" : |
| 73 | - $d = pegaDados ( "SELECT id_i, publicado_i, abrir_i, nome_i, target_i from ".$esquemaadmin."i3geoadmin_identifica order by nome_i", $dbh, false ); | |
| 73 | + $d = pegaDados ( "SELECT id_i, publicado_i, abrir_i, nome_i, target_i from ".$esquemaadmin."i3geoadmin_identifica order by lower(nome_i)", $dbh, false ); | |
| 74 | 74 | if ($d === false) { |
| 75 | 75 | $dbhw = null; |
| 76 | 76 | $dbh = null; | ... | ... |
admin1/cadastros/perfis/exec.php
| ... | ... | @@ -71,7 +71,7 @@ switch ($funcao) { |
| 71 | 71 | exit (); |
| 72 | 72 | break; |
| 73 | 73 | case "LISTA" : |
| 74 | - $dados = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by perfil", $dbh, false ); | |
| 74 | + $dados = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by lower(perfil)", $dbh, false ); | |
| 75 | 75 | if ($dados === false) { |
| 76 | 76 | $dbhw = null; |
| 77 | 77 | $dbh = null; | ... | ... |
admin1/cadastros/servicos/exec.php
| ... | ... | @@ -27,7 +27,9 @@ include_once (dirname ( __FILE__ ) . "/../../../admin/php/login.php"); |
| 27 | 27 | $funcoesEdicao = array ( |
| 28 | 28 | "ADICIONAR", |
| 29 | 29 | "ALTERAR", |
| 30 | - "EXCLUIR" | |
| 30 | + "EXCLUIR", | |
| 31 | + "LISTA", | |
| 32 | + "LISTAUNICO" | |
| 31 | 33 | ); |
| 32 | 34 | if (in_array ( strtoupper ( $funcao ), $funcoesEdicao )) { |
| 33 | 35 | if (verificaOperacaoSessao ( "admin/html/webservices" ) === false) { |
| ... | ... | @@ -66,8 +68,20 @@ switch ($funcao) { |
| 66 | 68 | retornaJSON ( $dados ); |
| 67 | 69 | exit (); |
| 68 | 70 | break; |
| 71 | + case "LISTAUNICO" : | |
| 72 | + $ws = pegaDados ( "SELECT id_ws,autor_ws,desc_ws,link_ws,nome_ws,tipo_ws from ".$esquemaadmin."i3geoadmin_ws WHERE id_ws = $id_ws ", $dbh, false ); | |
| 73 | + if ($ws === false) { | |
| 74 | + $dbhw = null; | |
| 75 | + $dbh = null; | |
| 76 | + header ( "HTTP/1.1 500 erro ao consultar banco de dados" ); | |
| 77 | + exit (); | |
| 78 | + } | |
| 79 | + $dbhw = null; | |
| 80 | + $dbh = null; | |
| 81 | + retornaJSON ( $ws[0] ); | |
| 82 | + break; | |
| 69 | 83 | case "LISTA" : |
| 70 | - $ws = pegaDados ( "SELECT id_ws,autor_ws,desc_ws,link_ws,nome_ws,tipo_ws from ".$esquemaadmin."i3geoadmin_ws order by nome_ws", $dbh, false ); | |
| 84 | + $ws = pegaDados ( "SELECT id_ws,nome_ws from ".$esquemaadmin."i3geoadmin_ws order by lower (nome_ws)", $dbh, false ); | |
| 71 | 85 | if ($ws === false) { |
| 72 | 86 | $dbhw = null; |
| 73 | 87 | $dbh = null; | ... | ... |
admin1/cadastros/servicos/index.js
| ... | ... | @@ -27,6 +27,8 @@ i3GEOadmin.webservices = { |
| 27 | 27 | ondeLista: "", |
| 28 | 28 | //conteudo html do formulario de adicao de operacao |
| 29 | 29 | formAdiciona: "", |
| 30 | + //parametros obtidos do formulario de edicao antes de abrir o modal de confirmacao | |
| 31 | + parametrosSalvar: "", | |
| 30 | 32 | init: function(onde){ |
| 31 | 33 | i3GEOadmin.webservices.ondeLista = onde; |
| 32 | 34 | i3GEOadmin.webservices.lista(); |
| ... | ... | @@ -49,7 +51,7 @@ Obtém a lista de Webservices |
| 49 | 51 | var json = jQuery.parseJSON(data); |
| 50 | 52 | //template do form de cada operacao |
| 51 | 53 | var templateLista = $("#templateLista").html(); |
| 52 | - templateLista = templateLista.replace("{{{templateFormLista}}}",$("#templateFormLista").html()); | |
| 54 | + //templateLista = templateLista.replace("{{{templateFormLista}}}",$("#templateFormLista").html()); | |
| 53 | 55 | //lista todas as Webservices |
| 54 | 56 | var html = Mustache.to_html( |
| 55 | 57 | "{{#data}}" + templateLista + "{{/data}}", |
| ... | ... | @@ -59,15 +61,7 @@ Obtém a lista de Webservices |
| 59 | 61 | { |
| 60 | 62 | "data": json, |
| 61 | 63 | "onExcluir": "i3GEOadmin.webservices.excluirDialogo",//funcao |
| 62 | - "onSalvar": "i3GEOadmin.webservices.salvarDialogo",//funcao | |
| 63 | - "opcoesTipo": function(){ | |
| 64 | - var hash = {}; | |
| 65 | - hash[this.tipo_ws + "-sel"] = "selected"; | |
| 66 | - return Mustache.to_html( | |
| 67 | - $("#templateOpcoesTipo").html(), | |
| 68 | - hash | |
| 69 | - ); | |
| 70 | - } | |
| 64 | + "onEditar": "i3GEOadmin.webservices.editarDialogo" | |
| 71 | 65 | } |
| 72 | 66 | ) |
| 73 | 67 | ); |
| ... | ... | @@ -112,6 +106,47 @@ Obtém a lista de Webservices |
| 112 | 106 | i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); |
| 113 | 107 | }); |
| 114 | 108 | }, |
| 109 | + editarDialogo: function(id){ | |
| 110 | + i3GEOadmin.core.fechaModalGeral(); | |
| 111 | + i3GEOadmin.core.modalAguarde(true); | |
| 112 | + $.post( | |
| 113 | + "exec.php?funcao=listaunico", | |
| 114 | + "id_ws=" + id | |
| 115 | + ) | |
| 116 | + .done( | |
| 117 | + function(data, status){ | |
| 118 | + var json = jQuery.parseJSON(data); | |
| 119 | + //lista todas as Webservices | |
| 120 | + var html = Mustache.to_html( | |
| 121 | + "{{#data}}" + $("#templateFormLista").html() + "{{/data}}", | |
| 122 | + $.extend( | |
| 123 | + {}, | |
| 124 | + i3GEOadmin.webservices.dicionario, | |
| 125 | + { | |
| 126 | + "data": json, | |
| 127 | + "onExcluir": "i3GEOadmin.webservices.excluirDialogo",//funcao | |
| 128 | + "onSalvar": "i3GEOadmin.webservices.salvarDialogo",//funcao | |
| 129 | + "opcoesTipo": function(){ | |
| 130 | + var hash = {}; | |
| 131 | + hash[this.tipo_ws + "-sel"] = "selected"; | |
| 132 | + return Mustache.to_html( | |
| 133 | + $("#templateOpcoesTipo").html(), | |
| 134 | + hash | |
| 135 | + ); | |
| 136 | + } | |
| 137 | + } | |
| 138 | + ) | |
| 139 | + ); | |
| 140 | + i3GEOadmin.core.abreModalGeral(html); | |
| 141 | + } | |
| 142 | + ) | |
| 143 | + .fail( | |
| 144 | + function(data){ | |
| 145 | + i3GEOadmin.core.modalAguarde(false); | |
| 146 | + i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); | |
| 147 | + } | |
| 148 | + ); | |
| 149 | + }, | |
| 115 | 150 | adicionaDialogo: function(){ |
| 116 | 151 | i3GEOadmin.core.abreModalGeral(i3GEOadmin.webservices.formAdiciona); |
| 117 | 152 | }, |
| ... | ... | @@ -169,17 +204,18 @@ Obtém a lista de Webservices |
| 169 | 204 | ); |
| 170 | 205 | }, |
| 171 | 206 | salvarDialogo: function(id){ |
| 207 | + i3GEOadmin.webservices.parametrosSalvar = $("#form-edicao-" + id).serialize(); | |
| 172 | 208 | var hash = { |
| 173 | 209 | "mensagem": i3GEOadmin.webservices.dicionario.confirma, |
| 174 | 210 | "onBotao1": "i3GEOadmin.webservices.salvar('"+id+"')", |
| 175 | 211 | "botao1": i3GEOadmin.webservices.dicionario.sim, |
| 176 | - "onBotao2": "i3GEOadmin.core.fechaModalConfirma();", | |
| 212 | + "onBotao2": "i3GEOadmin.webservices.parametrosSalvar = '';i3GEOadmin.core.fechaModalConfirma();", | |
| 177 | 213 | "botao2": i3GEOadmin.webservices.dicionario.nao |
| 178 | 214 | }; |
| 179 | 215 | i3GEOadmin.core.abreModalConfirma(hash); |
| 180 | 216 | }, |
| 181 | 217 | salvar: function(id){ |
| 182 | - var parametros = $("#form-" + id + " form").serialize(); | |
| 218 | + var parametros = i3GEOadmin.webservices.parametrosSalvar; | |
| 183 | 219 | i3GEOadmin.core.fechaModalGeral(); |
| 184 | 220 | i3GEOadmin.core.modalAguarde(true); |
| 185 | 221 | $.post( |
| ... | ... | @@ -188,6 +224,7 @@ Obtém a lista de Webservices |
| 188 | 224 | ) |
| 189 | 225 | .done( |
| 190 | 226 | function(data, status){ |
| 227 | + i3GEOadmin.webservices.parametrosSalvar = ""; | |
| 191 | 228 | i3GEOadmin.core.modalAguarde(false); |
| 192 | 229 | i3GEOadmin.core.iconeAguarde(i3GEOadmin.webservices.ondeLista); |
| 193 | 230 | i3GEOadmin.webservices.lista(); |
| ... | ... | @@ -195,6 +232,7 @@ Obtém a lista de Webservices |
| 195 | 232 | ) |
| 196 | 233 | .fail( |
| 197 | 234 | function(data){ |
| 235 | + i3GEOadmin.webservices.parametrosSalvar = ""; | |
| 198 | 236 | i3GEOadmin.core.modalAguarde(false); |
| 199 | 237 | i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); |
| 200 | 238 | } | ... | ... |
admin1/cadastros/servicos/index.php
| ... | ... | @@ -61,7 +61,7 @@ include "../../head.php"; |
| 61 | 61 | <option value="form-{{id_ws}}">{{{nome_ws}}}</option> |
| 62 | 62 | </script> |
| 63 | 63 | <script id="templateFormLista" type="x-tmpl-mustache"> |
| 64 | -<form style="" action="#" onsubmit="{{onSalvar}}('{{id_ws}}');return false;" onchange="this.style.boxShadow='2px 2px 5px 0 #009688';" class="form-horizontal" role="form" method="post" > | |
| 64 | +<form id="form-edicao-{{id_ws}}" style="" action="#" onsubmit="{{onSalvar}}('{{id_ws}}');return false;" onchange="this.style.boxShadow='2px 2px 5px 0 #009688';" class="form-horizontal" role="form" method="post" > | |
| 65 | 65 | <div class="row"> |
| 66 | 66 | <div class="col-md-12"> |
| 67 | 67 | <h4>{{{nome_ws}}}</h4> |
| ... | ... | @@ -106,20 +106,20 @@ include "../../head.php"; |
| 106 | 106 | </form> |
| 107 | 107 | </script> |
| 108 | 108 | <script id="templateLista" type="x-tmpl-mustache"> |
| 109 | -<div class="panel panel-default" id="form-{{id_ws}}"> | |
| 110 | - <div class="panel-heading icon" role="tab"> | |
| 111 | - <h3 class="panel-title {{escondido}}"> | |
| 112 | - <a href="javascript:void(0)" onclick="{{onExcluir}}('{{id_ws}}')" class="btn btn-danger btn-fab btn-fab-mini" role="button"> | |
| 113 | - <i class="material-icons">delete_forever</i> | |
| 109 | +<div class="list-group-item" id="form-{{id_ws}}"> | |
| 110 | + <div class="row-content" > | |
| 111 | + <h3 class="list-group-item-heading {{escondido}}"> | |
| 112 | + {{{nome_ws}}} | |
| 113 | + <a href="javascript:void(0)" onclick="{{onEditar}}('{{id_ws}}')" class="btn btn-danger btn-fab btn-fab-mini pull-right" role="button" aria-expanded="false" > | |
| 114 | + <i class="material-icons md-18">edit</i> | |
| 115 | + </a> | |
| 116 | + <span class="pull-right"> </span> | |
| 117 | + <a href="javascript:void(0)" onclick="{{onExcluir}}('{{id_ws}}')" class="btn btn-danger btn-fab btn-fab-mini pull-right" role="button"> | |
| 118 | + <i class="material-icons md-18">delete_forever</i> | |
| 114 | 119 | </a> |
| 115 | - | |
| 116 | - <a class="collapsed in" role="button" data-toggle="collapse" href="#body-form-{{id_ws}}" | |
| 117 | - aria-expanded="false" aria-controls="#body-form-{{id_ws}}"> {{{nome_ws}}} </a> | |
| 118 | 120 | </h3> |
| 119 | 121 | </div> |
| 120 | - <div class="panel-body panel-collapse collapse" id="body-form-{{id_ws}}"> | |
| 121 | - {{{templateFormLista}}} | |
| 122 | - </div> | |
| 122 | + <div class="list-group-separator"></div> | |
| 123 | 123 | </div> |
| 124 | 124 | </script> |
| 125 | 125 | <script id="templateOpcoesTipo" type="x-tmpl-mustache"> | ... | ... |
admin1/cadastros/tags/exec.php
| ... | ... | @@ -71,7 +71,7 @@ switch ($funcao) { |
| 71 | 71 | exit (); |
| 72 | 72 | break; |
| 73 | 73 | case "LISTA" : |
| 74 | - $dados = pegaDados ( "SELECT id_tag, nome from ".$esquemaadmin."i3geoadmin_tags order by nome", $dbh, false ); | |
| 74 | + $dados = pegaDados ( "SELECT id_tag, nome from ".$esquemaadmin."i3geoadmin_tags order by lower(nome)", $dbh, false ); | |
| 75 | 75 | if ($dados === false) { |
| 76 | 76 | $dbhw = null; |
| 77 | 77 | $dbh = null; | ... | ... |
admin1/catalogo/atlas/exec.php
| ... | ... | @@ -75,7 +75,7 @@ switch ($funcao) { |
| 75 | 75 | exit (); |
| 76 | 76 | break; |
| 77 | 77 | case "LISTA" : |
| 78 | - $dados = pegaDados("SELECT id_atlas, titulo_atlas, publicado_atlas, ordem_atlas, basemapfile_atlas, desc_atlas, h_atlas, w_atlas, icone_atlas, link_atlas, pranchadefault_atlas, template_atlas, tipoguias_atlas from ".$esquemaadmin."i3geoadmin_atlas ORDER BY titulo_atlas, ordem_atlas", $dbh, false); | |
| 78 | + $dados = pegaDados("SELECT id_atlas, titulo_atlas, publicado_atlas, ordem_atlas, basemapfile_atlas, desc_atlas, h_atlas, w_atlas, icone_atlas, link_atlas, pranchadefault_atlas, template_atlas, tipoguias_atlas from ".$esquemaadmin."i3geoadmin_atlas ORDER BY lower(titulo_atlas), ordem_atlas", $dbh, false); | |
| 79 | 79 | if ($dados === false) { |
| 80 | 80 | $dbhw = null; |
| 81 | 81 | $dbh = null; | ... | ... |
admin1/catalogo/mapas/exec.php
| ... | ... | @@ -75,8 +75,8 @@ switch ($funcao) { |
| 75 | 75 | exit (); |
| 76 | 76 | break; |
| 77 | 77 | case "LISTA" : |
| 78 | - $semmapfile = pegaDados ( "SELECT id_mapa, publicado_mapa, ordem_mapa, perfil_mapa, ligados_mapa, temas_mapa, desc_mapa, ext_mapa, imagem_mapa, linkdireto_mapa, nome_mapa, outros_mapa, 'nao' as contemmapfile from " . $esquemaadmin . "i3geoadmin_mapas where mapfile = '' or mapfile is null order by ordem_mapa, nome_mapa", $dbh, false ); | |
| 79 | - $commapfile = pegaDados ( "SELECT id_mapa, publicado_mapa, ordem_mapa, perfil_mapa, ligados_mapa, temas_mapa, desc_mapa, ext_mapa, imagem_mapa, linkdireto_mapa, nome_mapa, outros_mapa, 'sim' as contemmapfile from " . $esquemaadmin . "i3geoadmin_mapas where mapfile != '' and mapfile is not null order by ordem_mapa, nome_mapa", $dbh, false ); | |
| 78 | + $semmapfile = pegaDados ( "SELECT id_mapa, publicado_mapa, ordem_mapa, perfil_mapa, ligados_mapa, temas_mapa, desc_mapa, ext_mapa, imagem_mapa, linkdireto_mapa, nome_mapa, outros_mapa, 'nao' as contemmapfile from " . $esquemaadmin . "i3geoadmin_mapas where mapfile = '' or mapfile is null order by ordem_mapa, lower(nome_mapa)", $dbh, false ); | |
| 79 | + $commapfile = pegaDados ( "SELECT id_mapa, publicado_mapa, ordem_mapa, perfil_mapa, ligados_mapa, temas_mapa, desc_mapa, ext_mapa, imagem_mapa, linkdireto_mapa, nome_mapa, outros_mapa, 'sim' as contemmapfile from " . $esquemaadmin . "i3geoadmin_mapas where mapfile != '' and mapfile is not null order by ordem_mapa, lower(nome_mapa)", $dbh, false ); | |
| 80 | 80 | if ($semmapfile === false || $commapfile === false) { |
| 81 | 81 | $dbhw = null; |
| 82 | 82 | $dbh = null; | ... | ... |
admin1/catalogo/menus/exec.php
| ... | ... | @@ -75,7 +75,7 @@ switch ($funcao) { |
| 75 | 75 | exit (); |
| 76 | 76 | break; |
| 77 | 77 | case "LISTA" : |
| 78 | - $dados = pegaDados ( "SELECT id_menu, publicado_menu, perfil_menu, aberto, desc_menu, nome_menu, es, en from ".$esquemaadmin."i3geoadmin_menus order by nome_menu", $dbh, false ); | |
| 78 | + $dados = pegaDados ( "SELECT id_menu, publicado_menu, perfil_menu, aberto, desc_menu, nome_menu, es, en from ".$esquemaadmin."i3geoadmin_menus order by lower(nome_menu)", $dbh, false ); | |
| 79 | 79 | if ($dados === false) { |
| 80 | 80 | $dbhw = null; |
| 81 | 81 | $dbh = null; | ... | ... |
admin1/catalogo/menus/grupos/exec.php
| ... | ... | @@ -103,7 +103,7 @@ switch ($funcao) { |
| 103 | 103 | exit (); |
| 104 | 104 | break; |
| 105 | 105 | case "LISTA" : |
| 106 | - $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by perfil", $dbh, false ); | |
| 106 | + $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by lower(perfil)", $dbh, false ); | |
| 107 | 107 | $dbhw = null; |
| 108 | 108 | $dbh = null; |
| 109 | 109 | include($locaplic."/admin/php/classe_arvore.php"); | ... | ... |
admin1/catalogo/menus/grupos/listadegrupos/exec.php
| ... | ... | @@ -73,7 +73,7 @@ switch ($funcao) { |
| 73 | 73 | exit (); |
| 74 | 74 | break; |
| 75 | 75 | case "LISTA" : |
| 76 | - $dados = pegaDados ( "SELECT * from ".$esquemaadmin."i3geoadmin_grupos order by nome_grupo", $dbh, false ); | |
| 76 | + $dados = pegaDados ( "SELECT * from ".$esquemaadmin."i3geoadmin_grupos order by lower(nome_grupo)", $dbh, false ); | |
| 77 | 77 | if ($dados === false) { |
| 78 | 78 | $dbhw = null; |
| 79 | 79 | $dbh = null; | ... | ... |
admin1/catalogo/menus/grupos/subgrupos/exec.php
| ... | ... | @@ -104,7 +104,7 @@ switch ($funcao) { |
| 104 | 104 | exit (); |
| 105 | 105 | break; |
| 106 | 106 | case "LISTA" : |
| 107 | - $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by perfil", $dbh, false ); | |
| 107 | + $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by lower(perfil)", $dbh, false ); | |
| 108 | 108 | $dbhw = null; |
| 109 | 109 | $dbh = null; |
| 110 | 110 | include($locaplic."/admin/php/classe_arvore.php"); | ... | ... |
admin1/catalogo/menus/grupos/subgrupos/listadesubgrupos/exec.php
| ... | ... | @@ -73,7 +73,7 @@ switch ($funcao) { |
| 73 | 73 | exit (); |
| 74 | 74 | break; |
| 75 | 75 | case "LISTA" : |
| 76 | - $dados = pegaDados ( "SELECT * from ".$esquemaadmin."i3geoadmin_subgrupos order by nome_subgrupo", $dbh, false ); | |
| 76 | + $dados = pegaDados ( "SELECT * from ".$esquemaadmin."i3geoadmin_subgrupos order by lower(nome_subgrupo)", $dbh, false ); | |
| 77 | 77 | if ($dados === false) { |
| 78 | 78 | $dbhw = null; |
| 79 | 79 | $dbh = null; | ... | ... |
admin1/catalogo/menus/grupos/subgrupos/temas/exec.php
| ... | ... | @@ -103,7 +103,7 @@ switch ($funcao) { |
| 103 | 103 | exit (); |
| 104 | 104 | break; |
| 105 | 105 | case "LISTA" : |
| 106 | - $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by perfil", $dbh, false ); | |
| 106 | + $perfis = pegaDados ( "SELECT id_perfil, perfil from ".$esquemaadmin."i3geoadmin_perfis order by lower(perfil)", $dbh, false ); | |
| 107 | 107 | $dbhw = null; |
| 108 | 108 | $dbh = null; |
| 109 | 109 | include($locaplic."/admin/php/classe_arvore.php"); | ... | ... |
admin1/usuarios/cadastro/exec.php
| ... | ... | @@ -136,7 +136,7 @@ switch ($funcao) { |
| 136 | 136 | ) ); |
| 137 | 137 | break; |
| 138 | 138 | case "LISTA" : |
| 139 | - $usuarios = pegaDados ( "SELECT id_usuario,nome_usuario from " . $esquemaadmin . "i3geousr_usuarios order by nome_usuario", $dbh, false ); | |
| 139 | + $usuarios = pegaDados ( "SELECT id_usuario,nome_usuario from " . $esquemaadmin . "i3geousr_usuarios order by lower(nome_usuario)", $dbh, false ); | |
| 140 | 140 | if ($usuarios === false) { |
| 141 | 141 | $dbhw = null; |
| 142 | 142 | $dbh = null; | ... | ... |
admin1/usuarios/grupos/exec.php
| ... | ... | @@ -119,7 +119,7 @@ switch ($funcao) { |
| 119 | 119 | ) ); |
| 120 | 120 | break; |
| 121 | 121 | case "LISTA" : |
| 122 | - $grupos = pegaDados ( "SELECT id_grupo,nome from ".$esquemaadmin."i3geousr_grupos order by nome", $dbh, false ); | |
| 122 | + $grupos = pegaDados ( "SELECT id_grupo,nome from ".$esquemaadmin."i3geousr_grupos order by lower(nome)", $dbh, false ); | |
| 123 | 123 | if ($grupos === false) { |
| 124 | 124 | $dbhw = null; |
| 125 | 125 | $dbh = null; | ... | ... |