Commit fe2715b5c268d42bde40fecc80c91257e3ef2a69
1 parent
6da75a4c
Exists in
master
and in
6 other branches
Showing
2 changed files
with
10 additions
and
6 deletions
Show diff stats
ferramentas/parametrossql/exec.php
@@ -104,8 +104,10 @@ switch (strtoupper($funcao)) | @@ -104,8 +104,10 @@ switch (strtoupper($funcao)) | ||
104 | } | 104 | } |
105 | $layer->setmetadata("PLUGINI3GEO",'{"plugin":"parametrossql","ativo":"sim"}'); | 105 | $layer->setmetadata("PLUGINI3GEO",'{"plugin":"parametrossql","ativo":"sim"}'); |
106 | $layer->setmetadata("TEMA",$layer1->getmetadata("TEMA")." - ".$titulos); | 106 | $layer->setmetadata("TEMA",$layer1->getmetadata("TEMA")." - ".$titulos); |
107 | + | ||
107 | //$layer->set("name","plugin".nomeRandomico()); | 108 | //$layer->set("name","plugin".nomeRandomico()); |
108 | $layer->setmetadata("nomeoriginal",$layer1->name); | 109 | $layer->setmetadata("nomeoriginal",$layer1->name); |
110 | + $layer->setmetadata("CACHE","nao"); | ||
109 | if (connection_aborted()){ | 111 | if (connection_aborted()){ |
110 | exit(); | 112 | exit(); |
111 | } | 113 | } |
ferramentas/parametrossql/index.js
@@ -247,16 +247,16 @@ i3GEOF.parametrossql = { | @@ -247,16 +247,16 @@ i3GEOF.parametrossql = { | ||
247 | //nesse caso e inserido um div com um id para permitir o preenchimento posterior | 247 | //nesse caso e inserido um div com um id para permitir o preenchimento posterior |
248 | if(p.prog === ""){ | 248 | if(p.prog === ""){ |
249 | if(p.tipo === "input"){ | 249 | if(p.tipo === "input"){ |
250 | - ins += "<div class='i3geoForm i3geoFormIconeEdita'>" | ||
251 | - + "<input type='text' name='"+p.chave+"' value='"+p.valores+"' />" | ||
252 | - + "</div><br>"; | 250 | + ins += "<div class='form-group label-fixed condensed' >" |
251 | + + "<label class='control-label' for=''>"+p.titulo+"</label>" | ||
252 | + + "<input data-titulo='" + p.titulo + "' class='form-control input-lg' type='text' name='"+p.chave+"' value='"+p.valores+"' /></div>"; | ||
253 | } | 253 | } |
254 | if(p.tipo === "select"){ | 254 | if(p.tipo === "select"){ |
255 | ins += "<div style='width: 100%;' class='form-group label-fixed condensed'>" | 255 | ins += "<div style='width: 100%;' class='form-group label-fixed condensed'>" |
256 | + "<label class='control-label' for=''>" | 256 | + "<label class='control-label' for=''>" |
257 | + p.titulo | 257 | + p.titulo |
258 | + "</label><div style='width: 100%;' class='input-group'>" | 258 | + "</label><div style='width: 100%;' class='input-group'>" |
259 | - + "<select name='"+p.chave+"' >"; | 259 | + + "<select class='form-control' data-titulo='" + p.titulo + "' name='"+p.chave+"' >"; |
260 | l = p.valores.split(","); | 260 | l = p.valores.split(","); |
261 | nj = l.length; | 261 | nj = l.length; |
262 | for(j=0; j<nj; j++){ | 262 | for(j=0; j<nj; j++){ |
@@ -316,14 +316,16 @@ i3GEOF.parametrossql = { | @@ -316,14 +316,16 @@ i3GEOF.parametrossql = { | ||
316 | for (i = 0; i<n; i++) { | 316 | for (i = 0; i<n; i++) { |
317 | chaves.push(campos[i].name); | 317 | chaves.push(campos[i].name); |
318 | valores.push(campos[i].value); | 318 | valores.push(campos[i].value); |
319 | - titulos.push(campos[i].options[campos[i].selectedIndex].text); | 319 | + titulos.push($( campos[i] ).data( "titulo" )); |
320 | + //titulos.push(campos[i].options[campos[i].selectedIndex].text); | ||
320 | } | 321 | } |
321 | campos = onde.getElementsByTagName("select"); | 322 | campos = onde.getElementsByTagName("select"); |
322 | n = campos.length; | 323 | n = campos.length; |
323 | for (i = 0; i<n; i++) { | 324 | for (i = 0; i<n; i++) { |
324 | chaves.push(campos[i].name); | 325 | chaves.push(campos[i].name); |
325 | valores.push(campos[i].value); | 326 | valores.push(campos[i].value); |
326 | - titulos.push(campos[i].options[campos[i].selectedIndex].text); | 327 | + titulos.push($( campos[i] ).data( "titulo" )); |
328 | + //titulos.push(campos[i].options[campos[i].selectedIndex].text); | ||
327 | } | 329 | } |
328 | //verifica os objetos pois essa funcao pode ter sido chamada do mashup | 330 | //verifica os objetos pois essa funcao pode ter sido chamada do mashup |
329 | if(typeof i3geoOL != 'undefined' || typeof i3GeoMap != 'undefined'){ | 331 | if(typeof i3geoOL != 'undefined' || typeof i3GeoMap != 'undefined'){ |