Commit ca7272b2047c81959b7ac8ead60567d7de780712

Authored by Edmar Moretti
1 parent cb3c5a13

Alteração no layout da lista de dados no sistema de admin

admin/admin.db
No preview for this file type
admin1/cadastros/identifica/exec.php
@@ -70,7 +70,7 @@ switch ($funcao) { @@ -70,7 +70,7 @@ switch ($funcao) {
70 exit (); 70 exit ();
71 break; 71 break;
72 case "LISTA" : 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 if ($d === false) { 74 if ($d === false) {
75 $dbhw = null; 75 $dbhw = null;
76 $dbh = null; 76 $dbh = null;
admin1/cadastros/perfis/exec.php
@@ -71,7 +71,7 @@ switch ($funcao) { @@ -71,7 +71,7 @@ switch ($funcao) {
71 exit (); 71 exit ();
72 break; 72 break;
73 case "LISTA" : 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 if ($dados === false) { 75 if ($dados === false) {
76 $dbhw = null; 76 $dbhw = null;
77 $dbh = null; 77 $dbh = null;
admin1/cadastros/servicos/exec.php
@@ -27,7 +27,9 @@ include_once (dirname ( __FILE__ ) . "/../../../admin/php/login.php"); @@ -27,7 +27,9 @@ include_once (dirname ( __FILE__ ) . "/../../../admin/php/login.php");
27 $funcoesEdicao = array ( 27 $funcoesEdicao = array (
28 "ADICIONAR", 28 "ADICIONAR",
29 "ALTERAR", 29 "ALTERAR",
30 - "EXCLUIR" 30 + "EXCLUIR",
  31 + "LISTA",
  32 + "LISTAUNICO"
31 ); 33 );
32 if (in_array ( strtoupper ( $funcao ), $funcoesEdicao )) { 34 if (in_array ( strtoupper ( $funcao ), $funcoesEdicao )) {
33 if (verificaOperacaoSessao ( "admin/html/webservices" ) === false) { 35 if (verificaOperacaoSessao ( "admin/html/webservices" ) === false) {
@@ -66,8 +68,20 @@ switch ($funcao) { @@ -66,8 +68,20 @@ switch ($funcao) {
66 retornaJSON ( $dados ); 68 retornaJSON ( $dados );
67 exit (); 69 exit ();
68 break; 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 case "LISTA" : 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 if ($ws === false) { 85 if ($ws === false) {
72 $dbhw = null; 86 $dbhw = null;
73 $dbh = null; 87 $dbh = null;
admin1/cadastros/servicos/index.js
@@ -27,6 +27,8 @@ i3GEOadmin.webservices = { @@ -27,6 +27,8 @@ i3GEOadmin.webservices = {
27 ondeLista: "", 27 ondeLista: "",
28 //conteudo html do formulario de adicao de operacao 28 //conteudo html do formulario de adicao de operacao
29 formAdiciona: "", 29 formAdiciona: "",
  30 + //parametros obtidos do formulario de edicao antes de abrir o modal de confirmacao
  31 + parametrosSalvar: "",
30 init: function(onde){ 32 init: function(onde){
31 i3GEOadmin.webservices.ondeLista = onde; 33 i3GEOadmin.webservices.ondeLista = onde;
32 i3GEOadmin.webservices.lista(); 34 i3GEOadmin.webservices.lista();
@@ -49,7 +51,7 @@ Obtém a lista de Webservices @@ -49,7 +51,7 @@ Obtém a lista de Webservices
49 var json = jQuery.parseJSON(data); 51 var json = jQuery.parseJSON(data);
50 //template do form de cada operacao 52 //template do form de cada operacao
51 var templateLista = $("#templateLista").html(); 53 var templateLista = $("#templateLista").html();
52 - templateLista = templateLista.replace("{{{templateFormLista}}}",$("#templateFormLista").html()); 54 + //templateLista = templateLista.replace("{{{templateFormLista}}}",$("#templateFormLista").html());
53 //lista todas as Webservices 55 //lista todas as Webservices
54 var html = Mustache.to_html( 56 var html = Mustache.to_html(
55 "{{#data}}" + templateLista + "{{/data}}", 57 "{{#data}}" + templateLista + "{{/data}}",
@@ -59,15 +61,7 @@ Obtém a lista de Webservices @@ -59,15 +61,7 @@ Obtém a lista de Webservices
59 { 61 {
60 "data": json, 62 "data": json,
61 "onExcluir": "i3GEOadmin.webservices.excluirDialogo",//funcao 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,6 +106,47 @@ Obtém a lista de Webservices
112 i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); 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 adicionaDialogo: function(){ 150 adicionaDialogo: function(){
116 i3GEOadmin.core.abreModalGeral(i3GEOadmin.webservices.formAdiciona); 151 i3GEOadmin.core.abreModalGeral(i3GEOadmin.webservices.formAdiciona);
117 }, 152 },
@@ -169,17 +204,18 @@ Obtém a lista de Webservices @@ -169,17 +204,18 @@ Obtém a lista de Webservices
169 ); 204 );
170 }, 205 },
171 salvarDialogo: function(id){ 206 salvarDialogo: function(id){
  207 + i3GEOadmin.webservices.parametrosSalvar = $("#form-edicao-" + id).serialize();
172 var hash = { 208 var hash = {
173 "mensagem": i3GEOadmin.webservices.dicionario.confirma, 209 "mensagem": i3GEOadmin.webservices.dicionario.confirma,
174 "onBotao1": "i3GEOadmin.webservices.salvar('"+id+"')", 210 "onBotao1": "i3GEOadmin.webservices.salvar('"+id+"')",
175 "botao1": i3GEOadmin.webservices.dicionario.sim, 211 "botao1": i3GEOadmin.webservices.dicionario.sim,
176 - "onBotao2": "i3GEOadmin.core.fechaModalConfirma();", 212 + "onBotao2": "i3GEOadmin.webservices.parametrosSalvar = '';i3GEOadmin.core.fechaModalConfirma();",
177 "botao2": i3GEOadmin.webservices.dicionario.nao 213 "botao2": i3GEOadmin.webservices.dicionario.nao
178 }; 214 };
179 i3GEOadmin.core.abreModalConfirma(hash); 215 i3GEOadmin.core.abreModalConfirma(hash);
180 }, 216 },
181 salvar: function(id){ 217 salvar: function(id){
182 - var parametros = $("#form-" + id + " form").serialize(); 218 + var parametros = i3GEOadmin.webservices.parametrosSalvar;
183 i3GEOadmin.core.fechaModalGeral(); 219 i3GEOadmin.core.fechaModalGeral();
184 i3GEOadmin.core.modalAguarde(true); 220 i3GEOadmin.core.modalAguarde(true);
185 $.post( 221 $.post(
@@ -188,6 +224,7 @@ Obtém a lista de Webservices @@ -188,6 +224,7 @@ Obtém a lista de Webservices
188 ) 224 )
189 .done( 225 .done(
190 function(data, status){ 226 function(data, status){
  227 + i3GEOadmin.webservices.parametrosSalvar = "";
191 i3GEOadmin.core.modalAguarde(false); 228 i3GEOadmin.core.modalAguarde(false);
192 i3GEOadmin.core.iconeAguarde(i3GEOadmin.webservices.ondeLista); 229 i3GEOadmin.core.iconeAguarde(i3GEOadmin.webservices.ondeLista);
193 i3GEOadmin.webservices.lista(); 230 i3GEOadmin.webservices.lista();
@@ -195,6 +232,7 @@ Obtém a lista de Webservices @@ -195,6 +232,7 @@ Obtém a lista de Webservices
195 ) 232 )
196 .fail( 233 .fail(
197 function(data){ 234 function(data){
  235 + i3GEOadmin.webservices.parametrosSalvar = "";
198 i3GEOadmin.core.modalAguarde(false); 236 i3GEOadmin.core.modalAguarde(false);
199 i3GEOadmin.core.mostraErro(data.status + " " +data.statusText); 237 i3GEOadmin.core.mostraErro(data.status + " " +data.statusText);
200 } 238 }
admin1/cadastros/servicos/index.php
@@ -61,7 +61,7 @@ include "../../head.php"; @@ -61,7 +61,7 @@ include "../../head.php";
61 <option value="form-{{id_ws}}">{{{nome_ws}}}</option> 61 <option value="form-{{id_ws}}">{{{nome_ws}}}</option>
62 </script> 62 </script>
63 <script id="templateFormLista" type="x-tmpl-mustache"> 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 <div class="row"> 65 <div class="row">
66 <div class="col-md-12"> 66 <div class="col-md-12">
67 <h4>{{{nome_ws}}}</h4> 67 <h4>{{{nome_ws}}}</h4>
@@ -106,20 +106,20 @@ include &quot;../../head.php&quot;; @@ -106,20 +106,20 @@ include &quot;../../head.php&quot;;
106 </form> 106 </form>
107 </script> 107 </script>
108 <script id="templateLista" type="x-tmpl-mustache"> 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">&nbsp;&nbsp;</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 </a> 119 </a>
115 - &nbsp;  
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 </h3> 120 </h3>
119 </div> 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 </div> 123 </div>
124 </script> 124 </script>
125 <script id="templateOpcoesTipo" type="x-tmpl-mustache"> 125 <script id="templateOpcoesTipo" type="x-tmpl-mustache">
admin1/cadastros/tags/exec.php
@@ -71,7 +71,7 @@ switch ($funcao) { @@ -71,7 +71,7 @@ switch ($funcao) {
71 exit (); 71 exit ();
72 break; 72 break;
73 case "LISTA" : 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 if ($dados === false) { 75 if ($dados === false) {
76 $dbhw = null; 76 $dbhw = null;
77 $dbh = null; 77 $dbh = null;
admin1/catalogo/atlas/exec.php
@@ -75,7 +75,7 @@ switch ($funcao) { @@ -75,7 +75,7 @@ switch ($funcao) {
75 exit (); 75 exit ();
76 break; 76 break;
77 case "LISTA" : 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 if ($dados === false) { 79 if ($dados === false) {
80 $dbhw = null; 80 $dbhw = null;
81 $dbh = null; 81 $dbh = null;
admin1/catalogo/mapas/exec.php
@@ -75,8 +75,8 @@ switch ($funcao) { @@ -75,8 +75,8 @@ switch ($funcao) {
75 exit (); 75 exit ();
76 break; 76 break;
77 case "LISTA" : 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 if ($semmapfile === false || $commapfile === false) { 80 if ($semmapfile === false || $commapfile === false) {
81 $dbhw = null; 81 $dbhw = null;
82 $dbh = null; 82 $dbh = null;
admin1/catalogo/menus/exec.php
@@ -75,7 +75,7 @@ switch ($funcao) { @@ -75,7 +75,7 @@ switch ($funcao) {
75 exit (); 75 exit ();
76 break; 76 break;
77 case "LISTA" : 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 if ($dados === false) { 79 if ($dados === false) {
80 $dbhw = null; 80 $dbhw = null;
81 $dbh = null; 81 $dbh = null;
admin1/catalogo/menus/grupos/exec.php
@@ -103,7 +103,7 @@ switch ($funcao) { @@ -103,7 +103,7 @@ switch ($funcao) {
103 exit (); 103 exit ();
104 break; 104 break;
105 case "LISTA" : 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 $dbhw = null; 107 $dbhw = null;
108 $dbh = null; 108 $dbh = null;
109 include($locaplic."/admin/php/classe_arvore.php"); 109 include($locaplic."/admin/php/classe_arvore.php");
admin1/catalogo/menus/grupos/listadegrupos/exec.php
@@ -73,7 +73,7 @@ switch ($funcao) { @@ -73,7 +73,7 @@ switch ($funcao) {
73 exit (); 73 exit ();
74 break; 74 break;
75 case "LISTA" : 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 if ($dados === false) { 77 if ($dados === false) {
78 $dbhw = null; 78 $dbhw = null;
79 $dbh = null; 79 $dbh = null;
admin1/catalogo/menus/grupos/subgrupos/exec.php
@@ -104,7 +104,7 @@ switch ($funcao) { @@ -104,7 +104,7 @@ switch ($funcao) {
104 exit (); 104 exit ();
105 break; 105 break;
106 case "LISTA" : 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 $dbhw = null; 108 $dbhw = null;
109 $dbh = null; 109 $dbh = null;
110 include($locaplic."/admin/php/classe_arvore.php"); 110 include($locaplic."/admin/php/classe_arvore.php");
admin1/catalogo/menus/grupos/subgrupos/listadesubgrupos/exec.php
@@ -73,7 +73,7 @@ switch ($funcao) { @@ -73,7 +73,7 @@ switch ($funcao) {
73 exit (); 73 exit ();
74 break; 74 break;
75 case "LISTA" : 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 if ($dados === false) { 77 if ($dados === false) {
78 $dbhw = null; 78 $dbhw = null;
79 $dbh = null; 79 $dbh = null;
admin1/catalogo/menus/grupos/subgrupos/temas/exec.php
@@ -103,7 +103,7 @@ switch ($funcao) { @@ -103,7 +103,7 @@ switch ($funcao) {
103 exit (); 103 exit ();
104 break; 104 break;
105 case "LISTA" : 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 $dbhw = null; 107 $dbhw = null;
108 $dbh = null; 108 $dbh = null;
109 include($locaplic."/admin/php/classe_arvore.php"); 109 include($locaplic."/admin/php/classe_arvore.php");
admin1/usuarios/cadastro/exec.php
@@ -136,7 +136,7 @@ switch ($funcao) { @@ -136,7 +136,7 @@ switch ($funcao) {
136 ) ); 136 ) );
137 break; 137 break;
138 case "LISTA" : 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 if ($usuarios === false) { 140 if ($usuarios === false) {
141 $dbhw = null; 141 $dbhw = null;
142 $dbh = null; 142 $dbh = null;
admin1/usuarios/grupos/exec.php
@@ -119,7 +119,7 @@ switch ($funcao) { @@ -119,7 +119,7 @@ switch ($funcao) {
119 ) ); 119 ) );
120 break; 120 break;
121 case "LISTA" : 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 if ($grupos === false) { 123 if ($grupos === false) {
124 $dbhw = null; 124 $dbhw = null;
125 $dbh = null; 125 $dbh = null;