Commit 15ed224bf1d0f215141046c1b8bad6b30e1312cd

Authored by Edmar Moretti
1 parent 9f2b01bd

--no commit message

ferramentas/opcoes_fundo/exemplo.htm
... ... @@ -1,13 +0,0 @@
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.mapa.dialogo.corFundo()
11   -</script>
12   -</body>
13   -</html>
14 0 \ No newline at end of file
ferramentas/opcoes_fundo/index.js.php
... ... @@ -1,157 +0,0 @@
1   -<?php error_reporting(0);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 */
3   -
4   -/*
5   -About: Licença
6   -
7   -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
8   -
9   -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
10   -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
11   -
12   -Este programa é software livre; você pode redistribuí-lo
13   -e/ou modificá-lo sob os termos da Licença Pública Geral
14   -GNU conforme publicada pela Free Software Foundation;
15   -tanto a versão 2 da Licença.
16   -Este programa é distribuído na expectativa de que seja útil,
17   -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
18   -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
19   -Consulte a Licença Pública Geral do GNU para mais detalhes.
20   -Você deve ter recebido uma cópia da Licença Pública Geral do
21   -GNU junto com este programa; se não, escreva para a
22   -Free Software Foundation, Inc., no endereço
23   -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
24   -*/
25   -if(typeof(i3GEOF) === 'undefined'){
26   - i3GEOF = [];
27   -}
28   -/*
29   -Class: i3GEOF.editorsql
30   -
31   -Altera as propriedades do fundo do mapa.
32   -*/
33   -i3GEOF.editorsql = {
34   - /*
35   - Variavel: aguarde
36   -
37   - Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela.
38   - */
39   - aguarde: "",
40   - /*
41   - Function: inicia
42   -
43   - Inicia a ferramenta. É chamado por criaJanelaFlutuante
44   -
45   - Parametro:
46   -
47   - iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
48   - */
49   - inicia: function(iddiv){
50   - try{
51   - $i(iddiv).innerHTML = i3GEOF.editorsql.html();
52   - new YAHOO.widget.Button(
53   - "i3GEOeditorsqlbotao1",
54   - {onclick:{fn: i3GEOF.editorsql.altera}}
55   - );
56   - i3GEOF.editorsql.pega();
57   -
58   - i3GEO.util.comboItens(
59   - "i3GEOeditorsqlItem",
60   - i3GEO.temaAtivo,
61   - function(retorno){
62   - $i("i3GEOeditorsqlDivItem").innerHTML = retorno.dados;
63   - $i("i3GEOeditorsqlItem").onchange = function(){
64   - i3GEO.util.comboValoresItem(
65   - "i3GEOeditorsqlitens",
66   - i3GEO.temaAtivo,
67   - $i("i3GEOeditorsqlItem").value,
68   - function(retorno){
69   - $i("i3GEOeditorsqlvalores").innerHTML = "<p class=paragrafo >Valores encontrados:<br><br>"+retorno.dados+"</p>";
70   - },
71   - "i3GEOeditorsqlvalores"
72   - );
73   -
74   - };
75   - },
76   - "i3GEOeditorsqlDivItem"
77   - );
78   -
79   - }
80   - catch(erro){alert(erro);}
81   - },
82   - /*
83   - Function: html
84   -
85   - Gera o código html para apresentação das opções da ferramenta
86   -
87   - Retorno:
88   -
89   - String com o código html
90   - */
91   - html:function(){
92   - var ins = "<textarea rows='4' colums='20' cols='38' id=i3GEOeditorsqlSQL ></textarea>" +
93   - '<br><br><p class=paragrafo ><input size=20 id=i3GEOeditorsqlbotao1 type=button value="Aplica" />' +
94   - '<br><br><a class=paragrafo href="http://postgis.refractions.net/documentation/manual-1.4/ch07.html" target=_blank >Veja aqui o manual de funções SQL do Postgis</a>' +
95   - '<br><p class=paragrafo >Lista de itens existentes na tabela de atributos do tema (escolha um para ver os valores):</p>' +
96   - '<div class=paragrafo id=i3GEOeditorsqlDivItem ></div>' +
97   - '<div class=paragrafo id=i3GEOeditorsqlvalores ></div>';
98   - return ins;
99   - },
100   - /*
101   - Function: criaJanelaFlutuante
102   -
103   - Cria a janela flutuante para controle da ferramenta.
104   - */
105   - criaJanelaFlutuante: function(){
106   - var janela,divid,temp,titulo;
107   - //cria a janela flutuante
108   - titulo = "Altera SQL <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=5&idajuda=86' >&nbsp;&nbsp;&nbsp;</a>";
109   - janela = i3GEO.janela.cria(
110   - "300px",
111   - "260px",
112   - "",
113   - "",
114   - "",
115   - titulo,
116   - "i3GEOF.editorsql",
117   - true,
118   - "hd"
119   - );
120   - divid = janela[2].id;
121   - $i("i3GEOF.editorsql_corpo").style.backgroundColor = "white";
122   - $i("i3GEOF.editorsql_corpo").style.textAlign = "left";
123   - i3GEOF.editorsql.aguarde = $i("i3GEOF.editorsql_imagemCabecalho").style;
124   - i3GEOF.editorsql.inicia(divid);
125   - },
126   - /*
127   - Function: pega
128   -
129   - Pega o SQL
130   - */
131   - pega: function(){
132   - if(i3GEOF.editorsql.aguarde.visibility === "visible")
133   - {return;}
134   - i3GEOF.editorsql.aguarde.visibility = "visible";
135   - var temp = function(retorno){
136   - i3GEOF.editorsql.aguarde.visibility = "hidden";
137   - $i("i3GEOeditorsqlSQL").innerHTML = retorno.data;
138   - };
139   - i3GEO.php.pegaData(temp,i3GEO.temaAtivo);
140   - },
141   - /*
142   - Function: altera
143   -
144   - Altera o SQL
145   - */
146   - altera: function(){
147   - if(i3GEOF.editorsql.aguarde.visibility === "visible")
148   - {return;}
149   - i3GEOF.editorsql.aguarde.visibility = "visible";
150   - var temp = function(){
151   - i3GEOF.editorsql.aguarde.visibility = "hidden";
152   - i3GEO.atualiza();
153   - };
154   - i3GEO.php.alteraData(temp,i3GEO.temaAtivo,$i("i3GEOeditorsqlSQL").value);
155   - }
156   -};
157   -<?php error_reporting(0);if(extension_loaded('zlib')){ob_end_flush();}?>
158 0 \ No newline at end of file