Commit 9746fc1c2adba4f2bf771d3d2232955c9d8c2493
1 parent
43bcdd51
Exists in
master
and in
7 other branches
Modificação no estilo dos campos do tipo texto (input)
Showing
5 changed files
with
65 additions
and
25 deletions
Show diff stats
ferramentas/busca/index.js.php
... | ... | @@ -79,7 +79,8 @@ i3GEOF.busca = { |
79 | 79 | */ |
80 | 80 | html:function(){ |
81 | 81 | var ins = ''; |
82 | - ins += '<p class="paragrafo" ><input onclick="javascript:this.select();" style="cursor:text" class=digitar type=text size=47 id=i3GEObuscapalavra value="digite aqui o texto..."/>'; | |
82 | + ins += '<p class="paragrafo" >'; | |
83 | + ins += $inputText("","","i3GEObuscapalavra","",47,"digite aqui o texto..."); | |
83 | 84 | ins += '<p class="paragrafo" ><input id=i3GEObuscabotao1 size=20 type=button value="Procurar" />'; |
84 | 85 | ins += '<br><br><table summary="Lista de opcoes" class=lista3 width="250px">'; |
85 | 86 | ins += ' <tr>'; | ... | ... |
ferramentas/graficotema/index.js.php
... | ... | @@ -88,8 +88,7 @@ i3GEOF.graficoTema = { |
88 | 88 | ins += ' <li><a href="#ancora"><em><div id="i3GEOgraficotemaguia1" style="text-align:center;left:0px;" >Fonte dos dados</div></em></a></li>'; |
89 | 89 | ins += ' <li><a href="#ancora"><em><div id="i3GEOgraficotemaguia2" style="text-align:center;left:0px;" >Propriedades</div></em></a></li>'; |
90 | 90 | ins += ' </ul>'; |
91 | - ins += '</div>'; | |
92 | - ins += '<div class="geralFerramentas" style="left:0px;top:0px;width:98%;height:86%;">'; | |
91 | + ins += '</div><br>'; | |
93 | 92 | ins += ' <div class=guiaobj id="i3GEOgraficotemaguia1obj" style="left:1px;90%;display:none;">'; |
94 | 93 | ins += ' <div id=i3GEOgraficotemacombot style="display:none;position:relative;top:5px;left:0px;">'; |
95 | 94 | ins += ' </div>'; |
... | ... | @@ -112,19 +111,23 @@ i3GEOF.graficoTema = { |
112 | 111 | ins += ' </tr><tr><td> </td><td></td></tr>'; |
113 | 112 | ins += ' <tr>'; |
114 | 113 | ins += ' <td>Largura (em pixels):</td>'; |
115 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOgraficotemalargura value="50" /></td>'; | |
114 | + ins += ' <td>'; | |
115 | + ins += $inputText("","","i3GEOgraficotemalargura","",4,"50")+'</td>'; | |
116 | 116 | ins += ' </tr><tr><td> </td><td></td></tr>'; |
117 | 117 | ins += ' <tr>'; |
118 | 118 | ins += ' <td>Altura (em pixels) - relevante apenas para o tipo Barras:</td>'; |
119 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOgraficotemaaltura value="50" /></td>'; | |
119 | + ins += ' <td>'; | |
120 | + ins += $inputText("","","i3GEOgraficotemaaltura","",4,"50")+'</td>'; | |
120 | 121 | ins += ' </tr><tr><td> </td><td></td></tr>'; |
121 | 122 | ins += ' <tr>'; |
122 | 123 | ins += ' <td>Deslocamento das fatias (em pixels) - relevante apenas para o tipo Pizza:</td>'; |
123 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOgraficotemaoffset value="0" /></td>'; | |
124 | + ins += ' <td>'; | |
125 | + ins += $inputText("","","i3GEOgraficotemaoffset","",4,"0")+'</td>'; | |
124 | 126 | ins += ' </tr><tr><td> </td><td></td></tr>'; |
125 | 127 | ins += ' <tr>'; |
126 | 128 | ins += ' <td>Cor do contorno:</td>'; |
127 | - ins += ' <td style=width:40% ><input onclick="javascript:this.select();" style="cursor:text" size=12 class=digitar type="text" id="i3GEOgraficotemaoutlinecolor" value="0,0,0" /><img alt="aquarela.gif" style=cursor:pointer src="../imagens/aquarela.gif" onclick="i3GEOF.graficoTema.corj(\'i3GEOgraficotemaoutlinecolor\')" /></td>'; | |
129 | + ins += ' <td style=width:40% >'; | |
130 | + ins += $inputText("","","i3GEOgraficotemaoutlinecolor","",12,"0,0,0")+'</td>'; | |
128 | 131 | ins += ' </tr><tr><td> </td><td></td></tr>'; |
129 | 132 | ins += ' </table>'; |
130 | 133 | ins += ' </div>'; |
... | ... | @@ -153,6 +156,7 @@ i3GEOF.graficoTema = { |
153 | 156 | ); |
154 | 157 | divid = janela[2].id; |
155 | 158 | i3GEOF.graficoTema.aguarde = $i("i3GEOF.graficoTema_imagemCabecalho").style; |
159 | + $i("i3GEOF.graficoTema_corpo").style.backgroundColor = "white"; | |
156 | 160 | i3GEOF.graficoTema.inicia(divid); |
157 | 161 | }, |
158 | 162 | /* | ... | ... |
ferramentas/i3geo_tudo_compacto.js
... | ... | @@ -6506,16 +6506,30 @@ i3GEO.php = { |
6506 | 6506 | Function: listaItensTema |
6507 | 6507 | |
6508 | 6508 | PHP: |
6509 | - classesphp/classe_atributoss.php | |
6509 | + classesphp/classe_atributos.php | |
6510 | 6510 | |
6511 | 6511 | <listaItens> |
6512 | 6512 | */ |
6513 | 6513 | listaItensTema: function(funcao,tema){ |
6514 | 6514 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=listaitens&tema="+tema; |
6515 | 6515 | cpJSON.call(p,"listaItensTema",funcao); |
6516 | + }, | |
6517 | + /* | |
6518 | + Function: extRegistros | |
6519 | + | |
6520 | + PHP: | |
6521 | + classesphp/classe_atributos.php | |
6522 | + | |
6523 | + <extensaoRegistro> | |
6524 | + */ | |
6525 | + extRegistros: function(funcao,tema,reg){ | |
6526 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=extregistros®istro="+reg+"&tema="+tema; | |
6527 | + cpJSON.call(p,"listaItensTema",funcao); | |
6516 | 6528 | } |
6517 | 6529 | }; |
6518 | -//YAHOO.log("carregou classe php", "Classes i3geo"); | |
6530 | +//incluisel - tabela | |
6531 | +//criatemasel - tabela | |
6532 | +//estatistica - tabela | |
6519 | 6533 | /*jslint plusplus:false,white:false,undef: false, rhino: true, onevar: true, evil: true */ |
6520 | 6534 | /* |
6521 | 6535 | Title: Utilitários |
... | ... | @@ -7881,17 +7895,19 @@ i3GEO.util = { |
7881 | 7895 | var temp = $i(idatual), |
7882 | 7896 | ndiv = document.createElement("div"), |
7883 | 7897 | nids, |
7884 | - i; | |
7898 | + i, | |
7899 | + fundo; | |
7885 | 7900 | |
7886 | 7901 | if(temp){$i(container).removeChild(temp);} |
7887 | 7902 | if (!document.getElementById(idatual)) |
7888 | 7903 | { |
7904 | + fundo = $i(container).style.backgroundColor; | |
7889 | 7905 | ndiv.id = idatual; |
7890 | - texto += "<br><br><table style='width:100%;background-color:#F2F2F2;' ><tr style='width:100%'>"; | |
7906 | + texto += "<br><br><table style='width:100%;background-color:"+fundo+";' ><tr style='width:100%'>"; | |
7891 | 7907 | if (anterior !== "") |
7892 | - {texto += "<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:#F2F2F2;'><input id='"+idatual+"anterior_' onclick='"+anterior+"' type='button' value=' ' /></td>";} | |
7908 | + {texto += "<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:"+fundo+";'><input id='"+idatual+"anterior_' onclick='"+anterior+"' type='button' value=' ' /></td>";} | |
7893 | 7909 | if (proxima !== "") |
7894 | - {texto += "<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:#F2F2F2;'><input id='"+idatual+"proxima_' onclick='"+proxima+"' type='button' value=' ' /></td>";} | |
7910 | + {texto += "<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:"+fundo+";'><input id='"+idatual+"proxima_' onclick='"+proxima+"' type='button' value=' ' /></td>";} | |
7895 | 7911 | ndiv.innerHTML = texto+"</tr></table>"; |
7896 | 7912 | |
7897 | 7913 | $i(container).appendChild(ndiv); | ... | ... |
ferramentas/i3geo_tudo_compacto.js.php
... | ... | @@ -6506,16 +6506,30 @@ i3GEO.php = { |
6506 | 6506 | Function: listaItensTema |
6507 | 6507 | |
6508 | 6508 | PHP: |
6509 | - classesphp/classe_atributoss.php | |
6509 | + classesphp/classe_atributos.php | |
6510 | 6510 | |
6511 | 6511 | <listaItens> |
6512 | 6512 | */ |
6513 | 6513 | listaItensTema: function(funcao,tema){ |
6514 | 6514 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=listaitens&tema="+tema; |
6515 | 6515 | cpJSON.call(p,"listaItensTema",funcao); |
6516 | + }, | |
6517 | + /* | |
6518 | + Function: extRegistros | |
6519 | + | |
6520 | + PHP: | |
6521 | + classesphp/classe_atributos.php | |
6522 | + | |
6523 | + <extensaoRegistro> | |
6524 | + */ | |
6525 | + extRegistros: function(funcao,tema,reg){ | |
6526 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=extregistros®istro="+reg+"&tema="+tema; | |
6527 | + cpJSON.call(p,"listaItensTema",funcao); | |
6516 | 6528 | } |
6517 | 6529 | }; |
6518 | -//YAHOO.log("carregou classe php", "Classes i3geo"); | |
6530 | +//incluisel - tabela | |
6531 | +//criatemasel - tabela | |
6532 | +//estatistica - tabela | |
6519 | 6533 | /*jslint plusplus:false,white:false,undef: false, rhino: true, onevar: true, evil: true */ |
6520 | 6534 | /* |
6521 | 6535 | Title: Utilitários |
... | ... | @@ -7881,17 +7895,19 @@ i3GEO.util = { |
7881 | 7895 | var temp = $i(idatual), |
7882 | 7896 | ndiv = document.createElement("div"), |
7883 | 7897 | nids, |
7884 | - i; | |
7898 | + i, | |
7899 | + fundo; | |
7885 | 7900 | |
7886 | 7901 | if(temp){$i(container).removeChild(temp);} |
7887 | 7902 | if (!document.getElementById(idatual)) |
7888 | 7903 | { |
7904 | + fundo = $i(container).style.backgroundColor; | |
7889 | 7905 | ndiv.id = idatual; |
7890 | - texto += "<br><br><table style='width:100%;background-color:#F2F2F2;' ><tr style='width:100%'>"; | |
7906 | + texto += "<br><br><table style='width:100%;background-color:"+fundo+";' ><tr style='width:100%'>"; | |
7891 | 7907 | if (anterior !== "") |
7892 | - {texto += "<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:#F2F2F2;'><input id='"+idatual+"anterior_' onclick='"+anterior+"' type='button' value=' ' /></td>";} | |
7908 | + {texto += "<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:"+fundo+";'><input id='"+idatual+"anterior_' onclick='"+anterior+"' type='button' value=' ' /></td>";} | |
7893 | 7909 | if (proxima !== "") |
7894 | - {texto += "<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:#F2F2F2;'><input id='"+idatual+"proxima_' onclick='"+proxima+"' type='button' value=' ' /></td>";} | |
7910 | + {texto += "<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:"+fundo+";'><input id='"+idatual+"proxima_' onclick='"+proxima+"' type='button' value=' ' /></td>";} | |
7895 | 7911 | ndiv.innerHTML = texto+"</tr></table>"; |
7896 | 7912 | |
7897 | 7913 | $i(container).appendChild(ndiv); | ... | ... |
ferramentas/inseregrafico/index.js.php
... | ... | @@ -88,9 +88,8 @@ i3GEOF.insereGrafico = { |
88 | 88 | ins += ' <li><a href="#ancora"><em><div id="i3GEOinseregraficoguia1" style="text-align:center;left:0px;" >Fonte dos dados</div></em></a></li>'; |
89 | 89 | ins += ' <li><a href="#ancora"><em><div id="i3GEOinseregraficoguia2" style="text-align:center;left:0px;" >Propriedades</div></em></a></li>'; |
90 | 90 | ins += ' </ul>'; |
91 | - ins += '</div>'; | |
92 | - ins += '<div class="geralFerramentas" style="left:0px;top:0px;width:98%;height:86%;">'; | |
93 | - ins += ' <div class=guiaobj id="i3GEOinseregraficoguia1obj" style="left:1px;90%;display:none;">'; | |
91 | + ins += '</div><br>'; | |
92 | + ins += ' <div class=guiaobj id="i3GEOinseregraficoguia1obj" style="left:1px;display:none;">'; | |
94 | 93 | ins += ' <p class="paragrafo">Escolha o tema com os dados:'; |
95 | 94 | ins += ' <div id=i3GEOinseregraficotemasi style="display:block;position:relative;top:10px;left:0px;text-align:left;">Aguarde...'; |
96 | 95 | ins += ' </div>'; |
... | ... | @@ -103,15 +102,18 @@ i3GEOF.insereGrafico = { |
103 | 102 | ins += ' <table summary="" class=lista width="70%">'; |
104 | 103 | ins += ' <tr> '; |
105 | 104 | ins += ' <td>Tamanho do círculo:</td>'; |
106 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOinseregraficow value="50" /></td>'; | |
105 | + ins += ' <td>'; | |
106 | + ins += $inputText("","","i3GEOinseregraficow","",50,"0,0,0")+'</td>'; | |
107 | 107 | ins += ' </tr><tr><td></td><td> </td></tr>'; |
108 | 108 | ins += ' <tr>'; |
109 | 109 | ins += ' <td>Inclinação do círculo:</td>'; |
110 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOinseregraficoinclinacao value="1.5" /></td>'; | |
110 | + ins += ' <td>'; | |
111 | + ins += $inputText("","","i3GEOinseregraficoinclinacao","",4,"1.5")+'</td>'; | |
111 | 112 | ins += ' </tr><tr><td></td><td> </td></tr>'; |
112 | 113 | ins += ' <tr>'; |
113 | 114 | ins += ' <td>Tamanho da sombra:</td>'; |
114 | - ins += ' <td><input onclick="javascript:this.select();" style="cursor:text" size=4 class=digitar type="text" id=i3GEOinseregraficosombra value="5" /></td>'; | |
115 | + ins += ' <td>'; | |
116 | + ins += $inputText("","","i3GEOinseregraficosombra","",4,"5")+'</td>'; | |
115 | 117 | ins += ' </tr><tr><td></td><td> </td></tr>'; |
116 | 118 | ins += ' </table>'; |
117 | 119 | ins += ' </div>'; |
... | ... | @@ -154,6 +156,7 @@ i3GEOF.insereGrafico = { |
154 | 156 | minimiza |
155 | 157 | ); |
156 | 158 | divid = janela[2].id; |
159 | + $i("i3GEOF.insereGrafico_corpo").style.backgroundColor = "white"; | |
157 | 160 | i3GEOF.insereGrafico.aguarde = $i("i3GEOF.insereGrafico_imagemCabecalho").style; |
158 | 161 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.insereGrafico.insere()") < 0) |
159 | 162 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.insereGrafico.insere()");} | ... | ... |