Commit e32238c5b1174e707e7013f6333530997408afba

Authored by Edmar Moretti
1 parent efb60313

#262

ferramentas/inseretxt/exemplo.htm 0 → 100644
@@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2 +<html>
  3 +<head>
  4 +<script type="text/javascript" src="../../classesjs/i3geo.js"></script>
  5 +</head>
  6 +<body name="ancora" id="i3geo" class=yui-skin-sam >
  7 +<script type="text/javascript">
  8 +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
  9 +var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens";
  10 +i3GEO.parametros.mapfile = "x"
  11 +i3GEO.mapa.dialogo.cliqueTexto()
  12 +</script>
  13 +</body>
  14 +</html>
0 \ No newline at end of file 15 \ No newline at end of file
ferramentas/inseretxt/index.htm
@@ -1,162 +0,0 @@ @@ -1,162 +0,0 @@
1 -<html>  
2 -<head>  
3 -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">  
4 -<link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas.css">  
5 -<title></title>  
6 -<style type="text/css" >button{background:url(../../imagens/tic.png) 98% 50% no-repeat;}</style>  
7 -<link rel="stylesheet" type="text/css" href="../../pacotes/yui270/build/button/assets/skins/sam/button.css"/>  
8 -<style type="text/css">  
9 -body {  
10 - margin:0;  
11 - padding:0;border:0px;  
12 -}  
13 -</style>  
14 -</head>  
15 -<body name="ancora" class="yui-skin-sam" >  
16 - <div id=guiasYUI class="yui-navset" style="top:0px;cursor:pointer;left:0px;">  
17 - <ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;">  
18 - <li><a href="#ancora"><em><div id="guia1" style="text-align:center;font-size:10px;left:0px;" >Digitar</div></em></a></li>  
19 - <li><a href="#ancora"><em><div id="guia2" style="text-align:center;font-size:10px;left:0px;" >Capturar</div></em></a></li>  
20 - <li><a href="#ancora"><em><div id="guia3" style="text-align:center;font-size:10px;left:0px;" >Propriedades</div></em></a></li>  
21 - <li><a href="#ancora"><em><div id="guia4" style="text-align:center;font-size:10px;left:0px;" >Fundo</div></em></a></li>  
22 - <li><a href="#ancora"><em><div id="guia5" style="text-align:center;font-size:10px;left:0px;" >Geral</div></em></a></li>  
23 - </ul>  
24 - </div>  
25 - <div id=geral style="left:0px;top:0px;">  
26 - <div id=guia1obj style="width:95%;text-align:left">  
27 - <div style="width:95%;top:5px;left:0px">  
28 - <input onclick='javascript:this.select();' size=55 class=digitar type=text value="" id=texto />  
29 - </div>  
30 - <div id=men1 style="text-align:left;top:10px;left:-5px;" >  
31 - Digite o texto e clique no mapa no ponto de inclus&atilde;o.  
32 - Para definir os par&acirc;metros de fonte, tamanho, etc, utilize a guia de  
33 - propriedades.  
34 - </div>  
35 - </div>  
36 - <div id=guia2obj style="width:95%;text-align:left">  
37 - <div id=opc1 style=top:0px;left:5px; >  
38 - Escolha o tema:  
39 - <div id=temasi style="display:block;position:relative;top:10px;left:0px">  
40 - </div><br>  
41 - Escolha o item:  
42 - <div id=listai style="display:block;position:relative;top:10px;left:0px"></div>  
43 - <br><br>  
44 - </div>  
45 - <div id=men2 style=top:5px;left:5px >Após escolher o tema e o item da tabela de atributos, clique no mapa no lugar desejado para incluir o texto.</div>  
46 - </div>  
47 - <div id=guia3obj style="width:90%;display:none">  
48 - <div style="width:90%;top:5px;left:0px" >  
49 - <table summary="" class=lista2 width="100%">  
50 - <tr>  
51 - <td>Fonte:</td>  
52 - <td><span style="text-align:left" id=listaf ></span></td>  
53 - </tr>  
54 - <tr>  
55 - <td>Tamanho:</td>  
56 - <td><input onclick='javascript:this.select();' size=2 type=text value=8 id=tamanho /></td>  
57 - </tr>  
58 - <tr>  
59 - <td>&Acirc;ngulo (no caso de linhas pode ser utilizado AUTO):</td>  
60 - <td><input onclick='javascript:this.select();' size=4 type=text value=0 id=angulo /></td>  
61 - </tr>  
62 - <tr>  
63 - <td>Deslocamento do texto em rela&ccedil;&atilde;o ao ponto de inclus&atilde;o:</td>  
64 - <td>x <input onclick='javascript:this.select();' size=2 type=text value=0 id=offsetx /> y <input size=2 type=text value=0 id=offsety /></td>  
65 - </tr>  
66 - <tr>  
67 - <td>Cor do texto (digite os valores em vermelho, verde e azul, p.ex. 20 20 20):</td>  
68 - <td><input onclick='javascript:this.select();' onkeyup="icor(this)" size=11 type=text value="0 0 0" id=frente /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('frente')" /></td>  
69 - </tr>  
70 - <tr>  
71 - <td>Cor da m&aacute;scara de um pixel de entorno:</td>  
72 - <td><input onclick='javascript:this.select();' onkeyup="icor(this)" size=11 type=text value="" id=mascara /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('mascara')" /></td>  
73 - </tr>  
74 - <tr>  
75 - <td>Posi&ccedil;&atilde;o do texto em rela&ccedil;&atilde;o ao ponto de inclus&atilde;o:</td>  
76 - <td>  
77 - <select id=position >  
78 - <option value="MS_AUTO" >autom&aacute;tico</option>  
79 - <option value="MS_UL" >superior esquerdo</option>  
80 - <option value="MS_UC" >superior centro</option>  
81 - <option value="MS_UR" >superior direito</option>  
82 - <option value="MS_CL" >centro esquerdo</option>  
83 - <option value="MS_CC" >centro</option>  
84 - <option value="MS_CR" >centro direito</option>  
85 - <option value="MS_LL" >inferior esquerdo</option>  
86 - <option value="MS_LC" >inferior centro</option>  
87 - <option value="MS_LR" >inferior direito</option>  
88 - </select>  
89 - </td>  
90 - </tr>  
91 - </table>  
92 - </div>  
93 - </div>  
94 - <div id=guia4obj style="width:90%;display:none">  
95 - <div style="width:95%;top:5px;left:0px" >  
96 - <table summary="" class=lista2 width="95%">  
97 - <tr>  
98 - <td>Cor do fundo:</td>  
99 - <td><input onclick='javascript:this.select();' onkeyup="icor(this)" size=9 type=text value="" id=fundoc /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('fundoc')" /></td>  
100 - </tr>  
101 - <tr>  
102 - <td>Cor da sombra do fundo:</td>  
103 - <td><input onclick='javascript:this.select();' onkeyup="icor(this)" size=9 type=text value="" id=sombra /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('sombra')" /></td>  
104 - </tr>  
105 - <tr>  
106 - <td>Desl. da sombra do fundo:</td>  
107 - <td>x <input onclick='javascript:this.select();' size=1 type=text value="1" id=sombrax /> y <input size=1 type=text value="1" id=sombray /></td>  
108 - </tr>  
109 - <tr>  
110 - <td>Cor da sombra:</td>  
111 - <td><input onclick='javascript:this.select();' onkeyup="icor(this)" size=9 type=text value="" id=frentes /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('frentes')" /></td>  
112 - </tr>  
113 - <tr>  
114 - <td>Deslocamento da sombra:</td>  
115 - <td>x <input onclick='javascript:this.select();' size=1 type=text value="1" id=frentex /> y <input size=1 type=text value="1" id=frentey /></td>  
116 - </tr>  
117 - </table>  
118 - </div>  
119 - </div>  
120 - <div id=guia5obj style="width:90%;display:none">  
121 - <div style="width:90%;top:5px;left:0px" >  
122 - <table summary="" class=lista2 width="90%">  
123 - <tr>  
124 - <td>For&ccedil;a colis&otilde;es entre textos?:</td>  
125 - <td>  
126 - <select id=force >  
127 - <option value="0" >n&atilde;o</option>  
128 - <option value="1" >sim</option>  
129 - </select>  
130 - </td>  
131 - </tr>  
132 - <tr>  
133 - <td>Dist&acirc;ncia m&iacute;nima entre textos duplicados (em pixel):</td>  
134 - <td><input onclick='javascript:this.select();' size=4 type=text value="auto" id=mindistance /></td>  
135 - </tr>  
136 - <tr>  
137 - <td>Tamanho m&iacute;nimo do elemento cartogr&aacute;fico(em pixel):</td>  
138 - <td><input onclick='javascript:this.select();' size=4 type=text value="auto" id=minfeaturesize /></td>  
139 - </tr>  
140 - <tr>  
141 - <td>O texto pode ultrapassar o mapa?:</td>  
142 - <td>  
143 - <select id=partials >  
144 - <option value="1" >sim</option>  
145 - <option value="0" >n&atilde;o</option>  
146 - </select>  
147 - </td>  
148 - </tr>  
149 - </table>  
150 - </div>  
151 - </div>  
152 - </div>  
153 - <div id="aguarde">  
154 - <img alt="" src="../../imagens/aguarde.gif" />Aguarde...  
155 - </div>  
156 -<input type=hidden id="tipoInsere" value="digitando" />  
157 -  
158 -  
159 -<script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script>  
160 -<script language="JavaScript" type="text/javascript" src="index.js"></script>  
161 -</body>  
162 -</html>  
163 \ No newline at end of file 0 \ No newline at end of file
ferramentas/inseretxt/index.js.php
1 <?php if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/javascript"); ?> 1 <?php if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/javascript"); ?>
2 /*jslint plusplus:false,white:false,undef: false, rhino: true, onevar: true, evil: true */ 2 /*jslint plusplus:false,white:false,undef: false, rhino: true, onevar: true, evil: true */
3 -  
4 /* 3 /*
5 About: Licença 4 About: Licença
6 5
@@ -265,7 +264,6 @@ i3GEOF.inseretxt = { @@ -265,7 +264,6 @@ i3GEOF.inseretxt = {
265 i3GEOF.inseretxt.aguarde = $i("i3GEOF.inseretxt_imagemCabecalho").style; 264 i3GEOF.inseretxt.aguarde = $i("i3GEOF.inseretxt_imagemCabecalho").style;
266 $i("i3GEOF.inseretxt_corpo").style.backgroundColor = "white"; 265 $i("i3GEOF.inseretxt_corpo").style.backgroundColor = "white";
267 i3GEOF.inseretxt.inicia(divid); 266 i3GEOF.inseretxt.inicia(divid);
268 -  
269 if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inseretxt.cria()") < 0) 267 if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEOF.inseretxt.cria()") < 0)
270 {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inseretxt.cria()");} 268 {i3GEO.eventos.MOUSECLIQUE.push("i3GEOF.inseretxt.cria()");}
271 temp = function(){ 269 temp = function(){
@@ -357,7 +355,7 @@ i3GEOF.inseretxt = { @@ -357,7 +355,7 @@ i3GEOF.inseretxt = {
357 } 355 }
358 } 356 }
359 else{ 357 else{
360 - var temp = function(retorno){ 358 + temp = function(retorno){
361 i3GEOF.inseretxt.insere(retorno.data); 359 i3GEOF.inseretxt.insere(retorno.data);
362 }; 360 };
363 tema = $i("i3GEOinseretxtComboTemas").value; 361 tema = $i("i3GEOinseretxtComboTemas").value;
@@ -396,68 +394,4 @@ i3GEOF.inseretxt = { @@ -396,68 +394,4 @@ i3GEOF.inseretxt = {
396 cp.call(p,"inserefeature",monta); 394 cp.call(p,"inserefeature",monta);
397 } 395 }
398 }; 396 };
399 -<?php if(extension_loaded('zlib')){ob_end_flush();}?>  
400 -/*  
401 -parametrosURL()  
402 -aguarde("block")  
403 -ativaGuias("")  
404 -mostraGuia("guia1")  
405 -comboi = ""  
406 -mensagemAjuda("men2",$i("men2").innerHTML);  
407 -$i("guia1").onclick = function()  
408 -{mostraGuia("guia1");$i("tipoInsere").value = "digitando"}  
409 -$i("guia2").onclick = function()  
410 -{  
411 - mostraGuia("guia2");  
412 - $i("tipoInsere").value = "clicando"  
413 - comboTemasLigados("temasLigados",function(retorno)  
414 - {  
415 - $i("temasi").innerHTML = retorno.dados  
416 - aguarde("none")  
417 - if ($i("temasLigados"))  
418 - {  
419 - $i("temasLigados").onchange = function()  
420 - {  
421 - aguarde("block")  
422 - var tema = $i("temasLigados").value  
423 - $i("men1").style.display = "block"  
424 - var cp = new cpaint();  
425 - //cp.set_debug(2)  
426 - cp.set_response_type("JSON");  
427 - cp.call(g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=listaitens&tema="+tema,"listaItens",listaItens);  
428 - }  
429 - }  
430 - },"temasi");  
431 -}  
432 -$i("guia3").onclick = function()  
433 -{mostraGuia("guia3")}  
434 -$i("guia4").onclick = function()  
435 -{mostraGuia("guia4")}  
436 -$i("guia5").onclick = function()  
437 -{mostraGuia("guia5")}  
438 -mensagemAjuda("men1",$i("men1").innerHTML)  
439 -comboTrueType(function(retorno)  
440 -{  
441 - $i("listaf").innerHTML = retorno.dados  
442 - aguarde("none")  
443 -},"listaf")  
444 -function listaItens()  
445 -{  
446 - comboitens(  
447 - "itemsel",  
448 - $i("temasLigados").value,  
449 - function(retorno)  
450 - {  
451 - if (retorno.tipo == "dados")  
452 - {$i("listai").innerHTML = retorno.dados}  
453 - else  
454 - {document.body.innerHTML = retorno.dados}  
455 - aguarde("none");  
456 - }  
457 - ,"listai"  
458 - )  
459 -}  
460 -  
461 -function corj(obj)  
462 -{window.parent.i3GEO.util.abreCor("wdocai",obj)}  
463 -*/  
464 \ No newline at end of file 397 \ No newline at end of file
  398 +<?php if(extension_loaded('zlib')){ob_end_flush();}?>
465 \ No newline at end of file 399 \ No newline at end of file
ferramentas/uploaddbf/index.js.php
@@ -133,48 +133,4 @@ i3GEOF.uploaddbf = { @@ -133,48 +133,4 @@ i3GEOF.uploaddbf = {
133 $i("i3GEOuploaddbff").submit(); 133 $i("i3GEOuploaddbff").submit();
134 } 134 }
135 }; 135 };
136 -<?php if(extension_loaded('zlib')){ob_end_flush();}?>  
137 -/*  
138 -parametrosURL()  
139 -if($i("temas")){  
140 - aguarde("block")  
141 - comboTemasLigados("tema",function(retorno)  
142 - {  
143 - $i("temas").innerHTML = retorno.dados  
144 - aguarde("none")  
145 - $i("tema").onchange = function()  
146 - {  
147 - $i("itens").innerHTML = "";  
148 - comboitens("item",$i("tema").value,function(retorno)  
149 - {  
150 - $i("itens").innerHTML = retorno.dados  
151 - },"itens","item")  
152 - if ($i("temas").value == "")  
153 - alert("Selecione um tema");  
154 - }  
155 - },"temas","tema")  
156 -}  
157 -YAHOO.example.init = function ()  
158 -{  
159 - function onPushButtonsMarkupReady()  
160 - {  
161 - new YAHOO.widget.Button("botao1");  
162 - }  
163 - YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady);  
164 -}()  
165 -function submete()  
166 -{  
167 - $i("f").submit()  
168 -}  
169 -if($i("listaepsg"))  
170 -{  
171 - radioepsg  
172 - (  
173 - function(retorno)  
174 - {  
175 - $i("listaepsg").innerHTML = retorno.dados  
176 - },  
177 - "listaepsg"  
178 - )  
179 -}  
180 -*/  
181 \ No newline at end of file 136 \ No newline at end of file
  137 +<?php if(extension_loaded('zlib')){ob_end_flush();}?>
182 \ No newline at end of file 138 \ No newline at end of file