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 | 104 | } |
105 | 105 | $layer->setmetadata("PLUGINI3GEO",'{"plugin":"parametrossql","ativo":"sim"}'); |
106 | 106 | $layer->setmetadata("TEMA",$layer1->getmetadata("TEMA")." - ".$titulos); |
107 | + | |
107 | 108 | //$layer->set("name","plugin".nomeRandomico()); |
108 | 109 | $layer->setmetadata("nomeoriginal",$layer1->name); |
110 | + $layer->setmetadata("CACHE","nao"); | |
109 | 111 | if (connection_aborted()){ |
110 | 112 | exit(); |
111 | 113 | } | ... | ... |
ferramentas/parametrossql/index.js
... | ... | @@ -247,16 +247,16 @@ i3GEOF.parametrossql = { |
247 | 247 | //nesse caso e inserido um div com um id para permitir o preenchimento posterior |
248 | 248 | if(p.prog === ""){ |
249 | 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 | 254 | if(p.tipo === "select"){ |
255 | 255 | ins += "<div style='width: 100%;' class='form-group label-fixed condensed'>" |
256 | 256 | + "<label class='control-label' for=''>" |
257 | 257 | + p.titulo |
258 | 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 | 260 | l = p.valores.split(","); |
261 | 261 | nj = l.length; |
262 | 262 | for(j=0; j<nj; j++){ |
... | ... | @@ -316,14 +316,16 @@ i3GEOF.parametrossql = { |
316 | 316 | for (i = 0; i<n; i++) { |
317 | 317 | chaves.push(campos[i].name); |
318 | 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 | 322 | campos = onde.getElementsByTagName("select"); |
322 | 323 | n = campos.length; |
323 | 324 | for (i = 0; i<n; i++) { |
324 | 325 | chaves.push(campos[i].name); |
325 | 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 | 330 | //verifica os objetos pois essa funcao pode ter sido chamada do mashup |
329 | 331 | if(typeof i3geoOL != 'undefined' || typeof i3GeoMap != 'undefined'){ | ... | ... |