Commit 6821dc2f81016a2124c9bbaf481c1ddd3de4517c

Authored by Edmar Moretti
1 parent 8363153f

Aprimoramento dos códigos

.buildpath
... ... @@ -1,5 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<buildpath>
3   - <buildpathentry kind="src" path=""/>
4   - <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
5   -</buildpath>
... ... @@ -1,28 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<projectDescription>
3   - <name>i3geo</name>
4   - <comment></comment>
5   - <projects>
6   - </projects>
7   - <buildSpec>
8   - <buildCommand>
9   - <name>org.eclipse.wst.validation.validationbuilder</name>
10   - <arguments>
11   - </arguments>
12   - </buildCommand>
13   - <buildCommand>
14   - <name>org.eclipse.dltk.core.scriptbuilder</name>
15   - <arguments>
16   - </arguments>
17   - </buildCommand>
18   - <buildCommand>
19   - <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
20   - <arguments>
21   - </arguments>
22   - </buildCommand>
23   - </buildSpec>
24   - <natures>
25   - <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
26   - <nature>org.eclipse.php.core.PHPNature</nature>
27   - </natures>
28   -</projectDescription>
.settings/.jsdtscope
... ... @@ -1,161 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<classpath>
3   - <classpathentry kind="src" path="admin/js"/>
4   - <classpathentry excluding="compactados/|zerocal/" kind="src" path="classesjs"/>
5   - <classpathentry kind="src" path="classesjs/compactados"/>
6   - <classpathentry kind="src" path="classesjs/zerocal"/>
7   - <classpathentry kind="src" path="documentacao/javascript"/>
8   - <classpathentry kind="src" path="exemplos/atlas"/>
9   - <classpathentry excluding="depreciados/conectarwfs/|imprimir/|depreciados/exemplo/|template/|depreciados/inserexy/|depreciados/downloadbase/|depreciados/|scielo/|conectargeorss/|conectarwms/|navegacaodir_depreciado/|buscarapida/|wmstime/|nuvemtagsflash/" kind="src" path="ferramentas"/>
10   - <classpathentry kind="src" path="ferramentas/buscarapida"/>
11   - <classpathentry kind="src" path="ferramentas/conectargeorss"/>
12   - <classpathentry kind="src" path="ferramentas/conectarwms"/>
13   - <classpathentry excluding="conectarwfs/|exemplo/|inserexy/|downloadbase/" kind="src" path="ferramentas/depreciados"/>
14   - <classpathentry kind="src" path="ferramentas/depreciados/conectarwfs"/>
15   - <classpathentry kind="src" path="ferramentas/depreciados/downloadbase"/>
16   - <classpathentry kind="src" path="ferramentas/depreciados/exemplo"/>
17   - <classpathentry kind="src" path="ferramentas/depreciados/inserexy"/>
18   - <classpathentry kind="src" path="ferramentas/imprimir"/>
19   - <classpathentry kind="src" path="ferramentas/navegacaodir_depreciado"/>
20   - <classpathentry kind="src" path="ferramentas/nuvemtagsflash"/>
21   - <classpathentry kind="src" path="ferramentas/scielo"/>
22   - <classpathentry kind="src" path="ferramentas/template"/>
23   - <classpathentry kind="src" path="ferramentas/wmstime"/>
24   - <classpathentry kind="src" path="mashups"/>
25   - <classpathentry kind="src" path="pacotes/balloon-tooltips/htdocs_depreciado/js"/>
26   - <classpathentry kind="src" path="pacotes/balloon-tooltips/htdocs/js"/>
27   - <classpathentry excluding="JSON/" kind="src" path="pacotes/cpaint"/>
28   - <classpathentry kind="src" path="pacotes/cpaint/JSON"/>
29   - <classpathentry kind="src" path="pacotes/cswclient/lib/scripts"/>
30   - <classpathentry kind="src" path="pacotes/eudock/js"/>
31   - <classpathentry kind="src" path="pacotes/jsobjects/jsUI-Global"/>
32   - <classpathentry kind="src" path="pacotes/jsobjects/jsUI-Treeview"/>
33   - <classpathentry kind="src" path="pacotes/jsts/lib"/>
34   - <classpathentry kind="src" path="pacotes/mobileesp"/>
35   - <classpathentry kind="src" path="pacotes/openflashchart"/>
36   - <classpathentry excluding="depreciado29/" kind="src" path="pacotes/openlayers"/>
37   - <classpathentry kind="src" path="pacotes/openlayers/depreciado29"/>
38   - <classpathentry excluding="maps/" kind="src" path="pacotes/proj4js/demo"/>
39   - <classpathentry kind="src" path="pacotes/proj4js/demo/maps"/>
40   - <classpathentry kind="src" path="pacotes/proj4js/docs/NaturalDocs/javascript"/>
41   - <classpathentry excluding="projCode/|defs/" kind="src" path="pacotes/proj4js/lib"/>
42   - <classpathentry kind="src" path="pacotes/proj4js/lib/defs"/>
43   - <classpathentry kind="src" path="pacotes/proj4js/lib/projCode"/>
44   - <classpathentry kind="src" path="pacotes/richdraw"/>
45   - <classpathentry excluding="scripts/" kind="src" path="pacotes/simile/timeline_2.3.0/timeline_ajax"/>
46   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_ajax/scripts"/>
47   - <classpathentry excluding="scripts/l10n/zh/|scripts/l10n/en/|scripts/l10n/it/|scripts/l10n/cs/|scripts/l10n/nl/|scripts/l10n/fr/|scripts/l10n/es/|scripts/l10n/se/|scripts/l10n/vi/|scripts/l10n/tr/|scripts/l10n/ru/|scripts/l10n/de/" kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js"/>
48   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/cs"/>
49   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/de"/>
50   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/en"/>
51   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/es"/>
52   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/fr"/>
53   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/it"/>
54   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/nl"/>
55   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/ru"/>
56   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/se"/>
57   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/tr"/>
58   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/vi"/>
59   - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/zh"/>
60   - <classpathentry kind="src" path="pacotes/simile/timeline_local_example_1.0/local_example"/>
61   - <classpathentry kind="src" path="pacotes/tme/javascript"/>
62   - <classpathentry kind="src" path="pacotes/wpcumulus"/>
63   - <classpathentry kind="src" path="pacotes/yui270/assets"/>
64   - <classpathentry kind="src" path="pacotes/yui270/build/animation"/>
65   - <classpathentry kind="src" path="pacotes/yui270/build/autocomplete"/>
66   - <classpathentry kind="src" path="pacotes/yui270/build/button"/>
67   - <classpathentry kind="src" path="pacotes/yui270/build/calendar"/>
68   - <classpathentry kind="src" path="pacotes/yui270/build/carousel"/>
69   - <classpathentry kind="src" path="pacotes/yui270/build/charts"/>
70   - <classpathentry kind="src" path="pacotes/yui270/build/colorpicker"/>
71   - <classpathentry kind="src" path="pacotes/yui270/build/connection"/>
72   - <classpathentry kind="src" path="pacotes/yui270/build/container"/>
73   - <classpathentry kind="src" path="pacotes/yui270/build/cookie"/>
74   - <classpathentry kind="src" path="pacotes/yui270/build/datasource"/>
75   - <classpathentry kind="src" path="pacotes/yui270/build/datatable"/>
76   - <classpathentry kind="src" path="pacotes/yui270/build/dom"/>
77   - <classpathentry kind="src" path="pacotes/yui270/build/dragdrop"/>
78   - <classpathentry kind="src" path="pacotes/yui270/build/editor"/>
79   - <classpathentry kind="src" path="pacotes/yui270/build/element"/>
80   - <classpathentry kind="src" path="pacotes/yui270/build/event"/>
81   - <classpathentry kind="src" path="pacotes/yui270/build/get"/>
82   - <classpathentry kind="src" path="pacotes/yui270/build/history"/>
83   - <classpathentry kind="src" path="pacotes/yui270/build/imagecropper"/>
84   - <classpathentry kind="src" path="pacotes/yui270/build/imageloader"/>
85   - <classpathentry kind="src" path="pacotes/yui270/build/json"/>
86   - <classpathentry kind="src" path="pacotes/yui270/build/layout"/>
87   - <classpathentry kind="src" path="pacotes/yui270/build/logger"/>
88   - <classpathentry kind="src" path="pacotes/yui270/build/menu"/>
89   - <classpathentry kind="src" path="pacotes/yui270/build/paginator"/>
90   - <classpathentry kind="src" path="pacotes/yui270/build/profiler"/>
91   - <classpathentry kind="src" path="pacotes/yui270/build/profilerviewer"/>
92   - <classpathentry kind="src" path="pacotes/yui270/build/progressbar"/>
93   - <classpathentry kind="src" path="pacotes/yui270/build/resize"/>
94   - <classpathentry kind="src" path="pacotes/yui270/build/selector"/>
95   - <classpathentry kind="src" path="pacotes/yui270/build/slider"/>
96   - <classpathentry kind="src" path="pacotes/yui270/build/stylesheet"/>
97   - <classpathentry kind="src" path="pacotes/yui270/build/tabview"/>
98   - <classpathentry kind="src" path="pacotes/yui270/build/treeview"/>
99   - <classpathentry kind="src" path="pacotes/yui270/build/uploader"/>
100   - <classpathentry kind="src" path="pacotes/yui270/build/utilities"/>
101   - <classpathentry kind="src" path="pacotes/yui270/build/yahoo"/>
102   - <classpathentry kind="src" path="pacotes/yui270/build/yahoo-dom-event"/>
103   - <classpathentry kind="src" path="pacotes/yui270/build/yuiloader"/>
104   - <classpathentry kind="src" path="pacotes/yui270/build/yuiloader-dom-event"/>
105   - <classpathentry kind="src" path="pacotes/yui270/build/yuitest"/>
106   - <classpathentry kind="src" path="pacotes/yui290/assets"/>
107   - <classpathentry kind="src" path="pacotes/yui290/build/animation"/>
108   - <classpathentry kind="src" path="pacotes/yui290/build/autocomplete"/>
109   - <classpathentry kind="src" path="pacotes/yui290/build/button"/>
110   - <classpathentry kind="src" path="pacotes/yui290/build/calendar"/>
111   - <classpathentry kind="src" path="pacotes/yui290/build/carousel"/>
112   - <classpathentry kind="src" path="pacotes/yui290/build/charts"/>
113   - <classpathentry kind="src" path="pacotes/yui290/build/colorpicker"/>
114   - <classpathentry kind="src" path="pacotes/yui290/build/connection"/>
115   - <classpathentry kind="src" path="pacotes/yui290/build/container"/>
116   - <classpathentry kind="src" path="pacotes/yui290/build/cookie"/>
117   - <classpathentry kind="src" path="pacotes/yui290/build/datasource"/>
118   - <classpathentry kind="src" path="pacotes/yui290/build/datatable"/>
119   - <classpathentry kind="src" path="pacotes/yui290/build/datemath"/>
120   - <classpathentry kind="src" path="pacotes/yui290/build/dom"/>
121   - <classpathentry kind="src" path="pacotes/yui290/build/dragdrop"/>
122   - <classpathentry kind="src" path="pacotes/yui290/build/editor"/>
123   - <classpathentry kind="src" path="pacotes/yui290/build/element"/>
124   - <classpathentry kind="src" path="pacotes/yui290/build/element-delegate"/>
125   - <classpathentry kind="src" path="pacotes/yui290/build/event"/>
126   - <classpathentry kind="src" path="pacotes/yui290/build/event-delegate"/>
127   - <classpathentry kind="src" path="pacotes/yui290/build/event-mouseenter"/>
128   - <classpathentry kind="src" path="pacotes/yui290/build/event-simulate"/>
129   - <classpathentry kind="src" path="pacotes/yui290/build/get"/>
130   - <classpathentry kind="src" path="pacotes/yui290/build/history"/>
131   - <classpathentry kind="src" path="pacotes/yui290/build/imagecropper"/>
132   - <classpathentry kind="src" path="pacotes/yui290/build/imageloader"/>
133   - <classpathentry kind="src" path="pacotes/yui290/build/json"/>
134   - <classpathentry kind="src" path="pacotes/yui290/build/layout"/>
135   - <classpathentry kind="src" path="pacotes/yui290/build/logger"/>
136   - <classpathentry kind="src" path="pacotes/yui290/build/menu"/>
137   - <classpathentry kind="src" path="pacotes/yui290/build/paginator"/>
138   - <classpathentry kind="src" path="pacotes/yui290/build/profiler"/>
139   - <classpathentry kind="src" path="pacotes/yui290/build/profilerviewer"/>
140   - <classpathentry kind="src" path="pacotes/yui290/build/progressbar"/>
141   - <classpathentry kind="src" path="pacotes/yui290/build/resize"/>
142   - <classpathentry kind="src" path="pacotes/yui290/build/selector"/>
143   - <classpathentry kind="src" path="pacotes/yui290/build/slider"/>
144   - <classpathentry kind="src" path="pacotes/yui290/build/storage"/>
145   - <classpathentry kind="src" path="pacotes/yui290/build/stylesheet"/>
146   - <classpathentry kind="src" path="pacotes/yui290/build/swf"/>
147   - <classpathentry kind="src" path="pacotes/yui290/build/swfdetect"/>
148   - <classpathentry kind="src" path="pacotes/yui290/build/swfstore"/>
149   - <classpathentry kind="src" path="pacotes/yui290/build/tabview"/>
150   - <classpathentry kind="src" path="pacotes/yui290/build/treeview"/>
151   - <classpathentry kind="src" path="pacotes/yui290/build/uploader"/>
152   - <classpathentry kind="src" path="pacotes/yui290/build/utilities"/>
153   - <classpathentry kind="src" path="pacotes/yui290/build/yahoo"/>
154   - <classpathentry kind="src" path="pacotes/yui290/build/yahoo-dom-event"/>
155   - <classpathentry kind="src" path="pacotes/yui290/build/yuiloader"/>
156   - <classpathentry kind="src" path="pacotes/yui290/build/yuiloader-dom-event"/>
157   - <classpathentry kind="src" path="pacotes/yui290/build/yuitest"/>
158   - <classpathentry excluding="admin/js/|classesjs/|classesjs/compactados/|classesjs/zerocal/|documentacao/javascript/|exemplos/atlas/|ferramentas/|ferramentas/buscarapida/|ferramentas/conectargeorss/|ferramentas/conectarwms/|ferramentas/depreciados/|ferramentas/depreciados/conectarwfs/|ferramentas/depreciados/downloadbase/|ferramentas/depreciados/exemplo/|ferramentas/depreciados/inserexy/|ferramentas/imprimir/|ferramentas/navegacaodir_depreciado/|ferramentas/nuvemtagsflash/|ferramentas/scielo/|ferramentas/template/|ferramentas/wmstime/|mashups/|pacotes/balloon-tooltips/htdocs/js/|pacotes/balloon-tooltips/htdocs_depreciado/js/|pacotes/cpaint/|pacotes/cpaint/JSON/|pacotes/cswclient/lib/scripts/|pacotes/eudock/js/|pacotes/jsobjects/jsUI-Global/|pacotes/jsobjects/jsUI-Treeview/|pacotes/jsts/lib/|pacotes/mobileesp/|pacotes/openflashchart/|pacotes/openlayers/|pacotes/openlayers/depreciado29/|pacotes/proj4js/demo/|pacotes/proj4js/demo/maps/|pacotes/proj4js/docs/NaturalDocs/javascript/|pacotes/proj4js/lib/|pacotes/proj4js/lib/defs/|pacotes/proj4js/lib/projCode/|pacotes/richdraw/|pacotes/simile/timeline_2.3.0/timeline_ajax/|pacotes/simile/timeline_2.3.0/timeline_ajax/scripts/|pacotes/simile/timeline_2.3.0/timeline_js/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/cs/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/de/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/en/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/es/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/fr/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/it/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/nl/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/ru/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/se/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/tr/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/vi/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/zh/|pacotes/simile/timeline_local_example_1.0/local_example/|pacotes/tme/javascript/|pacotes/wpcumulus/|pacotes/yui270/assets/|pacotes/yui270/build/animation/|pacotes/yui270/build/autocomplete/|pacotes/yui270/build/button/|pacotes/yui270/build/calendar/|pacotes/yui270/build/carousel/|pacotes/yui270/build/charts/|pacotes/yui270/build/colorpicker/|pacotes/yui270/build/connection/|pacotes/yui270/build/container/|pacotes/yui270/build/cookie/|pacotes/yui270/build/datasource/|pacotes/yui270/build/datatable/|pacotes/yui270/build/dom/|pacotes/yui270/build/dragdrop/|pacotes/yui270/build/editor/|pacotes/yui270/build/element/|pacotes/yui270/build/event/|pacotes/yui270/build/get/|pacotes/yui270/build/history/|pacotes/yui270/build/imagecropper/|pacotes/yui270/build/imageloader/|pacotes/yui270/build/json/|pacotes/yui270/build/layout/|pacotes/yui270/build/logger/|pacotes/yui270/build/menu/|pacotes/yui270/build/paginator/|pacotes/yui270/build/profiler/|pacotes/yui270/build/profilerviewer/|pacotes/yui270/build/progressbar/|pacotes/yui270/build/resize/|pacotes/yui270/build/selector/|pacotes/yui270/build/slider/|pacotes/yui270/build/stylesheet/|pacotes/yui270/build/tabview/|pacotes/yui270/build/treeview/|pacotes/yui270/build/uploader/|pacotes/yui270/build/utilities/|pacotes/yui270/build/yahoo-dom-event/|pacotes/yui270/build/yahoo/|pacotes/yui270/build/yuiloader-dom-event/|pacotes/yui270/build/yuiloader/|pacotes/yui270/build/yuitest/|pacotes/yui290/assets/|pacotes/yui290/build/animation/|pacotes/yui290/build/autocomplete/|pacotes/yui290/build/button/|pacotes/yui290/build/calendar/|pacotes/yui290/build/carousel/|pacotes/yui290/build/charts/|pacotes/yui290/build/colorpicker/|pacotes/yui290/build/connection/|pacotes/yui290/build/container/|pacotes/yui290/build/cookie/|pacotes/yui290/build/datasource/|pacotes/yui290/build/datatable/|pacotes/yui290/build/datemath/|pacotes/yui290/build/dom/|pacotes/yui290/build/dragdrop/|pacotes/yui290/build/editor/|pacotes/yui290/build/element-delegate/|pacotes/yui290/build/element/|pacotes/yui290/build/event-delegate/|pacotes/yui290/build/event-mouseenter/|pacotes/yui290/build/event-simulate/|pacotes/yui290/build/event/|pacotes/yui290/build/get/|pacotes/yui290/build/history/|pacotes/yui290/build/imagecropper/|pacotes/yui290/build/imageloader/|pacotes/yui290/build/json/|pacotes/yui290/build/layout/|pacotes/yui290/build/logger/|pacotes/yui290/build/menu/|pacotes/yui290/build/paginator/|pacotes/yui290/build/profiler/|pacotes/yui290/build/profilerviewer/|pacotes/yui290/build/progressbar/|pacotes/yui290/build/resize/|pacotes/yui290/build/selector/|pacotes/yui290/build/slider/|pacotes/yui290/build/storage/|pacotes/yui290/build/stylesheet/|pacotes/yui290/build/swf/|pacotes/yui290/build/swfdetect/|pacotes/yui290/build/swfstore/|pacotes/yui290/build/tabview/|pacotes/yui290/build/treeview/|pacotes/yui290/build/uploader/|pacotes/yui290/build/utilities/|pacotes/yui290/build/yahoo-dom-event/|pacotes/yui290/build/yahoo/|pacotes/yui290/build/yuiloader-dom-event/|pacotes/yui290/build/yuiloader/|pacotes/yui290/build/yuitest/" including="admin/|classesjs/|ferramentas/|mashups/|pacotes/balloon-tooltips/|pacotes/cpaint/|pacotes/eudock/|pacotes/openlayers/|pacotes/richdraw/|pacotes/yui290/" kind="src" path=""/>
159   - <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
160   - <classpathentry kind="output" path=""/>
161   -</classpath>
.settings/org.eclipse.mylyn.tasks.ui.prefs
... ... @@ -1,3 +0,0 @@
1   -eclipse.preferences.version=1
2   -project.repository.kind=trac
3   -project.repository.url=http\://svn.softwarepublico.gov.br/trac/i3geo
.settings/org.eclipse.wst.jsdt.ui.superType.container
... ... @@ -1 +0,0 @@
1   -org.eclipse.wst.jsdt.launching.JRE_CONTAINER
2 0 \ No newline at end of file
.settings/org.eclipse.wst.jsdt.ui.superType.name
... ... @@ -1 +0,0 @@
1   -Global
2 0 \ No newline at end of file
admin/admin.db
No preview for this file type
admin/js/webservices.js
... ... @@ -39,7 +39,7 @@ Inicializa o editor
39 39 */
40 40 function initMenu()
41 41 {
42   - core_ativaBotaoAdicionaLinha("../php/webservices.php?funcao=alterarWS","adiciona")
  42 + core_ativaBotaoAdicionaLinha("../php/webservices.php?funcao=alterarWS","adiciona");
43 43 core_carregando("ativa");
44 44 core_ativaPainelAjuda("ajuda","botaoAjuda");
45 45 pegaWS();
... ... @@ -56,14 +56,14 @@ function pegaWS()
56 56 //
57 57 //pega o tipo de WS que será listado se tiver sido definido na url
58 58 //
59   - var tipows = "";
  59 + var tipows = "",u;
60 60 try{
61   - var u = window.location.href.split("?");
62   - var u = u[1].split("=");
  61 + u = window.location.href.split("?");
  62 + u = u[1].split("=");
63 63 tipows = u[1];
64 64 }
65 65 catch(e){tipows = "";}
66   - core_pegaDados("buscando endereços...","../php/webservices.php?funcao=pegaWS&tipows="+tipows,"montaTabela")
  66 + core_pegaDados("buscando endereços...","../php/webservices.php?funcao=pegaWS&tipows="+tipows,"montaTabela");
67 67 }
68 68 /*
69 69 Function: montaTabela
... ... @@ -132,7 +132,7 @@ function montaTabela(dados)
132 132 failure:core_handleFailure,
133 133 argument: { foo:"foo", bar:"bar" }
134 134 };
135   - core_makeRequest(sUrl,callback)
  135 + core_makeRequest(sUrl,callback);
136 136 }
137 137  
138 138 });
... ... @@ -155,7 +155,6 @@ function montaEditor(dados,id,recordid)
155 155 {
156 156 function on_editorCheckBoxChange(p_oEvent)
157 157 {
158   - var ins = "";
159 158 if(p_oEvent.newValue.get("value") == "OK")
160 159 {
161 160 gravaDados(id,recordid);
... ... @@ -186,7 +185,7 @@ function montaEditor(dados,id,recordid)
186 185 }
187 186 YAHOO.example.container.panelEditor.show();
188 187 //carrega os dados na janela
189   - $i("editor_bd").innerHTML = montaDiv(dados[0])
  188 + $i("editor_bd").innerHTML = montaDiv(dados[0]);
190 189 core_carregando("desativa");
191 190 }
192 191 function montaDiv(i)
... ... @@ -198,42 +197,42 @@ function montaDiv(i)
198 197 {titulo:"Autor:",id:"Eautor_ws",size:"50",value:i.autor_ws,tipo:"text",div:""},
199 198 {titulo:"Endereço:",id:"Elink_ws",size:"50",value:i.link_ws,tipo:"text",div:""}
200 199 ]
201   - }
202   - var ins = ""
203   - ins += core_geraLinhas(param)
  200 + };
  201 + var ins = "";
  202 + ins += core_geraLinhas(param);
204 203  
205   - ins += "<p>Tipo:<br>"
206   - ins += "<select id='Etipo_ws' />"
207   - ins += "<option value='' "
  204 + ins += "<p>Tipo:<br>";
  205 + ins += "<select id='Etipo_ws' />";
  206 + ins += "<option value='' ";
208 207 if (i.tipo_ws == ""){ins += "selected";}
209   - ins += ">---</option>"
210   - ins += "<option value='KML' "
  208 + ins += ">---</option>";
  209 + ins += "<option value='KML' ";
211 210 if (i.tipo_ws == "KML"){ins += "selected";}
212   - ins += " >KML</option>"
213   - ins += "<option value='WMS' "
  211 + ins += " >KML</option>";
  212 + ins += "<option value='WMS' ";
214 213 if (i.tipo_ws == "WMS"){ins += "selected";}
215   - ins += " >WMS</option>"
216   - ins += "<option value='GEORSS' "
  214 + ins += " >WMS</option>";
  215 + ins += "<option value='GEORSS' ";
217 216 if (i.tipo_ws == "GEORSS"){ins += "selected";}
218   - ins += " >GEORSS</option>"
219   - ins += "<option value='WS' "
  217 + ins += " >GEORSS</option>";
  218 + ins += "<option value='WS' ";
220 219 if (i.tipo_ws == "WS"){ins += "selected";}
221   - ins += " >WS</option>"
222   - ins += "<option value='DOWNLOAD' "
  220 + ins += " >WS</option>";
  221 + ins += "<option value='DOWNLOAD' ";
223 222 if (i.tipo_ws == "DOWNLOAD"){ins += "selected";}
224   - ins += " >DOWNLOAD</option>"
225   - ins += "<option value='GEOJSON' "
  223 + ins += " >DOWNLOAD</option>";
  224 + ins += "<option value='GEOJSON' ";
226 225 if (i.tipo_ws == "GEOJSON"){ins += "selected";}
227   - ins += " >GEOJSON</option>"
  226 + ins += " >GEOJSON</option>";
228 227  
229   - ins += "</select></p>"
230   - return(ins)
  228 + ins += "</select></p>";
  229 + return(ins);
231 230 }
232 231 function excluiLinha(id,row)
233 232 {
234 233 var mensagem = " excluindo o registro do id= "+id;
235 234 var sUrl = "../php/webservices.php?funcao=excluir&id="+id;
236   - core_excluiLinha(sUrl,row,mensagem)
  235 + core_excluiLinha(sUrl,row,mensagem);
237 236 }
238 237 /*
239 238 Function: gravaDados
... ... @@ -244,11 +243,12 @@ Aplica as alterações feitas em um WS
244 243 */
245 244 function gravaDados(id,recordid)
246 245 {
247   - var campos = new Array("desc","nome","link","tipo","autor")
248   - var par = ""
  246 + var campos = new Array("desc","nome","link","tipo","autor"),
  247 + par = "",
  248 + i;
249 249 for (i=0;i<campos.length;i++)
250 250 {par += "&"+campos[i]+"_ws="+($i("E"+campos[i]+"_ws").value)}
251   - par += "&id_ws="+id
  251 + par += "&id_ws="+id;
252 252 core_carregando("ativa");
253 253 core_carregando(" gravando o registro do id= "+id);
254 254 var sUrl = "../php/webservices.php?funcao=alterarWS"+par;
... ... @@ -261,12 +261,12 @@ function gravaDados(id,recordid)
261 261 if(YAHOO.lang.JSON.parse(o.responseText) == "erro")
262 262 {
263 263 core_carregando("<span style=color:red >Não foi possível excluir. Verifique se não existem registros vinculados</span>");
264   - setTimeout("core_carregando('desativa')",3000)
  264 + setTimeout("core_carregando('desativa')",3000);
265 265 }
266 266 else
267 267 {
268 268 var rec = myDataTable.getRecordSet().getRecord(recordid);
269   - myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0])
  269 + myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]);
270 270 core_carregando("desativa");
271 271 }
272 272 YAHOO.example.container.panelEditor.destroy();
... ...
atlas/geral.htm
... ... @@ -25,6 +25,7 @@
25 25 <!--
26 26 Guias principais, não mude o ID, apenas o nome se for desejado
27 27 -->
  28 + <td>
28 29 <div class=verdeescuro style="top:0px;cursor:pointer;">
29 30 <div id=guia1 class=guia ></div>
30 31 <div id=guia2 class=guia ></div>
... ...
classesjs/.project 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>i3geo classesjs</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + </buildSpec>
  14 + <natures>
  15 + <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  16 + </natures>
  17 +</projectDescription>
... ...
classesjs/.settings/.jsdtscope 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry excluding="compactados/|zerocal/" kind="src" path=""/>
  4 + <classpathentry kind="src" path="compactados"/>
  5 + <classpathentry kind="src" path="zerocal"/>
  6 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
  7 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.USER_LIBRARY/YUI"/>
  8 + <classpathentry kind="output" path=""/>
  9 +</classpath>
... ...
classesjs/.settings/org.eclipse.wst.jsdt.ui.superType.container 0 → 100644
... ... @@ -0,0 +1 @@
  1 +org.eclipse.wst.jsdt.launching.JRE_CONTAINER
0 2 \ No newline at end of file
... ...
classesjs/.settings/org.eclipse.wst.jsdt.ui.superType.name 0 → 100644
... ... @@ -0,0 +1 @@
  1 +Global
0 2 \ No newline at end of file
... ...
classesjs/.settings/org.eclipse.wst.validation.prefs 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +DELEGATES_PREFERENCE=delegateValidatorList
  2 +USER_BUILD_PREFERENCE=enabledBuildValidatorList
  3 +USER_MANUAL_PREFERENCE=enabledManualValidatorList
  4 +USER_PREFERENCE=overrideGlobalPreferencesfalse
  5 +eclipse.preferences.version=1
  6 +override=false
  7 +suspend=true
  8 +vf.version=3
... ...
classesjs/classe_analise.js
... ... @@ -69,7 +69,7 @@ i3GEO.analise = {
69 69 if(typeof(console) !== 'undefined'){console.info("i3GEO.analise.dialogo.linhaDoTempo()");}
70 70 i3GEO.janela.cria("450px","300px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","Linha do tempo <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=3&idajuda=88' >&nbsp;&nbsp;&nbsp;</a>");
71 71 atualizaLinhaDoTempo = function(){
72   - var doc,temp;
  72 + var doc = "";
73 73 try{
74 74 if (navn){
75 75 if ($i("wdocai"))
... ... @@ -79,7 +79,7 @@ i3GEO.analise = {
79 79 if(document.frames("wdocai"))
80 80 {doc = document.frames("wdocai").document;}
81 81 }
82   - temp = doc.getElementById("tl") ? window.parent.wdocai.carregaDados() : i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()");
  82 + doc.getElementById("tl") ? window.parent.wdocai.carregaDados() : i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()");
83 83 }
84 84 catch(e){
85 85 i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()");
... ... @@ -135,7 +135,7 @@ i3GEO.analise = {
135 135 Abre a janela de diálogo da ferramenta pontosdistri
136 136 */
137 137 pontosdistri: function(){
138   - var temp = i3GEO.parametros.r === "nao" ? alert("Opção não disponível") : i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri");
  138 + i3GEO.parametros.r === "nao" ? alert("Opção não disponível") : i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri");
139 139 },
140 140 /*
141 141 Function: pontoempoligono
... ... @@ -265,7 +265,7 @@ i3GEO.analise = {
265 265 Cria a janela para mostrar os resultados da medição
266 266 */
267 267 criaJanela: function(){
268   - var novoel,ins,imagemxy,temp,janela;
  268 + var novoel,ins,imagemxy,janela;
269 269 if (!$i("mostradistancia")){
270 270 novoel = document.createElement("div");
271 271 novoel.id = "mostradistancia";
... ... @@ -306,7 +306,7 @@ i3GEO.analise = {
306 306 //botao que abre a ferramenta de cálculo de perfis.
307 307 //pontosdistobj contém as coordenadas dos pontos
308 308 //
309   - temp = new YAHOO.widget.Button(
  309 + new YAHOO.widget.Button(
310 310 "i3GEObotaoPerfil",
311 311 {onclick:{fn: function(){
312 312 var js = i3GEO.configura.locaplic+"/ferramentas/perfil/index.js.php";
... ...
classesjs/classe_arvoredecamadas.js
... ... @@ -526,8 +526,9 @@ i3GEO.arvoreDeCamadas = {
526 526 i3GEO.arvoreDeCamadas.CAMADAS = "";
527 527 forca = false;
528 528 }
529   - var estilo,temp,currentIconMode,newVal,root,tempNode,titulo,d,c,ltema,temaNode,grupoNode,i,j,n,nk,k,noGrupo,
  529 + var estilo,temp,newVal,root,tempNode,titulo,d,c,ltema,temaNode,i,j,n,nk,k,noGrupo,
530 530 incluidos=[],
  531 + grupoNode = "",
531 532 grupoLayers = i3GEO.configura.grupoLayers,
532 533 textoTema = "";
533 534 //
... ... @@ -553,6 +554,7 @@ i3GEO.arvoreDeCamadas = {
553 554 {i3GEO.arvoreDeCamadas.CAMADASINICIAIS = temas;}
554 555 (function(){
555 556 function changeIconMode(){
  557 + var currentIconMode = "";
556 558 newVal = parseInt(this.value,10);
557 559 if (newVal !== currentIconMode)
558 560 {currentIconMode = newVal;}
... ... @@ -756,21 +758,20 @@ i3GEO.arvoreDeCamadas = {
756 758 ativaDragDrop: function(){
757 759 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.ativaDragDrop()");}
758 760 var Dom = YAHOO.util.Dom,
759   - Event = YAHOO.util.Event,
760   - DDM = YAHOO.util.DragDropMgr;
  761 + Event = YAHOO.util.Event;
761 762 YAHOO.example.DDList = "";
762 763 YAHOO.example.DDApp = {
763 764 init: function()
764 765 {
765   - var ddtarget,i,ltema,ddlist;
  766 + var i,ltema;
766 767 if($i("i3geo_lixeira") && i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true)
767   - {ddtarget = new YAHOO.util.DDTarget("i3geo_lixeira");}
  768 + {new YAHOO.util.DDTarget("i3geo_lixeira");}
768 769 i = i3GEO.arvoreDeCamadas.CAMADAS.length-1;
769 770 if (i3GEO.arvoreDeCamadas.CAMADAS.length-1 >= 0){
770 771 do{
771 772 ltema = i3GEO.arvoreDeCamadas.CAMADAS[i];
772 773 if($i("arrastar_"+ltema.name))
773   - {ddlist = new YAHOO.example.DDList("arrastar_"+ltema.name);}
  774 + {new YAHOO.example.DDList("arrastar_"+ltema.name);}
774 775 }
775 776 while(i--);
776 777 }
... ... @@ -827,7 +828,7 @@ i3GEO.arvoreDeCamadas = {
827 828 YAHOO.util.Dom.setStyle('i3geo_lixeira', 'border', '0px solid blue');
828 829 },
829 830 onDragDrop: function(e, id){
830   - var pt,region,tema,destEl,els,lista,noid,temp,
  831 + var pt,region,tema,destEl,els,lista,temp,
831 832 DDM = YAHOO.util.DragDropMgr,
832 833 Dom = YAHOO.util.Dom;
833 834 if (DDM.interactionInfo.drop.length === 1){
... ... @@ -847,11 +848,9 @@ i3GEO.arvoreDeCamadas = {
847 848 else{
848 849 if(i3GEO.arvoreDeCamadas.ARRASTARORDEM === true){
849 850 destEl = Dom.get(id);
850   - noid = id.split("arrastar_")[1];
851 851 destEl.appendChild(this.getEl());
852 852 els = i3GEO.arvoreDeCamadas.listaLigadosDesligados();
853 853 lista = els[2].join(",");
854   - //i3GEO.contadorAtualiza++;
855 854 temp = function(retorno){
856 855 i3GEO.atualiza(retorno);
857 856 if(i3GEO.Interface.ATUAL === "openlayers")
... ... @@ -878,8 +877,7 @@ i3GEO.arvoreDeCamadas = {
878 877 }
879 878 },
880 879 onDragOver: function(e, id){
881   - var srcEl,destEl;
882   - srcEl = this.getEl();
  880 + var destEl;
883 881 destEl = YAHOO.util.Dom.get(id);
884 882 // We are only concerned with list items, we ignore the dragover
885 883 // notifications for the list.
... ... @@ -907,7 +905,7 @@ i3GEO.arvoreDeCamadas = {
907 905 montaOpcoes: function(node){
908 906 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.montaOpcoes()");}
909 907 //YAHOO.log("Montando as opções da árvore de camadas", "i3geo");
910   - var d,conteudo,opcoesNode,idtema,ltema,farol,mfarol,tnome = "",iconesNode,
  908 + var opcoesNode,idtema,ltema,farol,mfarol,tnome = "",
911 909 imb = i3GEO.util.$im("branco.gif"),
912 910 funcoes = i3GEO.arvoreDeCamadas.FUNCOES;
913 911 idtema = node.data.id;
... ... @@ -943,7 +941,7 @@ i3GEO.arvoreDeCamadas = {
943 941 {tnome += "&nbsp;<img class='fonte' src='"+imb +"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
944 942 if( (ltema.zoomtema.toLowerCase() === "sim") && (funcoes.zoomtema === true))
945 943 {tnome += "&nbsp;<img class='extent' src='"+imb +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
946   - iconesNode = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node);
  944 + new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node);
947 945 if(funcoes.compartilhar === true && ltema.permitecomentario.toLowerCase() !== "nao")
948 946 {
949 947 temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&amp;temasa="+ltema.name;
... ... @@ -973,7 +971,7 @@ i3GEO.arvoreDeCamadas = {
973 971 mostraOpcoes: function(node){
974 972 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraOpcoes()");}
975 973 //YAHOO.log("Mostrando as opções da árvore de camadas", "i3geo");
976   - var tnome,d,n,temp,
  974 + var tnome,
977 975 idtema = node.data.idopcoes,
978 976 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema),
979 977 funcoes = i3GEO.arvoreDeCamadas.FUNCOES;
... ... @@ -982,21 +980,21 @@ i3GEO.arvoreDeCamadas = {
982 980 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' href='#' /a>";}
983 981 else
984 982 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
985   - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
  983 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
986 984 }
987 985 if(funcoes.temporizador === true){
988 986 if(navm)
989 987 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"&nbsp;<a class='tic' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' href='#' /a>";}
990 988 else
991 989 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
992   - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
  990 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
993 991 }
994 992 if(funcoes.mudanome === true){
995 993 if(navm)
996 994 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","8","")+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' href='#' />";}
997 995 else
998 996 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
999   - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
  997 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
1000 998 }
1001 999 if ((ltema.type < 3) && (ltema.connectiontype !== 7)){
1002 1000 if(funcoes.procurar === true)
... ... @@ -1051,8 +1049,8 @@ i3GEO.arvoreDeCamadas = {
1051 1049 node {String} - objeto node da árvore (YUI) que receberá o novo nó
1052 1050 */
1053 1051 adicionaOpcaoTema:function(dica,titulo,onclick,node){
1054   - var tnome = "<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>",
1055   - temp = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false}, node);
  1052 + var tnome = "<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>";
  1053 + new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false}, node);
1056 1054 },
1057 1055 /*
1058 1056 Function: mostraLegenda
... ... @@ -1066,10 +1064,10 @@ i3GEO.arvoreDeCamadas = {
1066 1064 mostraLegenda: function(node){
1067 1065 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraLegenda()");}
1068 1066 var retorna,
1069   - idtema = node.data.idlegenda,
1070   - ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema);
  1067 + idtema = node.data.idlegenda;
1071 1068 retorna = function(retorno){
1072   - var original,i,re,tabela,linhas,linha,colunas,id,exp,incluir,d,nodeLeg,elementos,nelementos,inputs,desativar,nindices;
  1069 + var original = {data:""},
  1070 + i,re,tabela,linhas,linha,colunas,incluir,elementos,nelementos,inputs,desativar,nindices;
1073 1071 if(retorno.data.legenda){
1074 1072 original = retorno;
1075 1073 retorno = retorno.data.legenda;
... ... @@ -1092,9 +1090,7 @@ i3GEO.arvoreDeCamadas = {
1092 1090 if(linha >= 0){
1093 1091 do{
1094 1092 colunas = linhas[linha].split("#");
1095   - id = colunas[0]+"-"+colunas[1];
1096 1093 re = new RegExp("'", "g");
1097   - exp = colunas[3].replace(re,'"');
1098 1094 tabela += "<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>";
1099 1095 }
1100 1096 while(linha--);
... ... @@ -1106,7 +1102,7 @@ i3GEO.arvoreDeCamadas = {
1106 1102 }
1107 1103 else {tabela = "<img src='"+retorno.data[0].imagem+"' />";} //o tema é um wms
1108 1104 incluir = "<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";
1109   - nodeLeg = new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false}, node);
  1105 + new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false}, node);
1110 1106 node.loadComplete();
1111 1107 //
1112 1108 //desliga os checkbox que foram desativados
... ... @@ -1235,7 +1231,7 @@ i3GEO.arvoreDeCamadas = {
1235 1231 {String} - texto formatado
1236 1232 */
1237 1233 montaTextoTema: function(tema){
1238   - var ck,html,display="none",estilo,
  1234 + var ck,html,estilo,
1239 1235 iu = i3GEO.util;
1240 1236 if(tema.status*1 === 2)
1241 1237 {ck = ' CHECKED ';}
... ... @@ -1349,7 +1345,8 @@ i3GEO.arvoreDeCamadas = {
1349 1345 if(arguments.length === 0)
1350 1346 {tipo = "normal";}
1351 1347 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.aplicaTemas()");}
1352   - var t,temp,ligar,desligar;
  1348 + var t = "",
  1349 + temp;
1353 1350 if(tipo === "normal")
1354 1351 {t = i3GEO.arvoreDeCamadas.listaLigadosDesligados("mantem");}
1355 1352 if(tipo === "ligartodos"){
... ... @@ -1407,7 +1404,7 @@ i3GEO.arvoreDeCamadas = {
1407 1404 if(arguments.length === 0)
1408 1405 {tipo = "manter";}
1409 1406 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.listaLigadosDesligados()");}
1410   - var no,cs,csn,j,c,temp,
  1407 + var no,cs,csn,j,c,
1411 1408 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"),
1412 1409 ligados = [],
1413 1410 desligados = [],
... ... @@ -1423,7 +1420,7 @@ i3GEO.arvoreDeCamadas = {
1423 1420 for(j=0;j<csn;j += 1){
1424 1421 c = cs[j];
1425 1422 if(c.name==="layer"){
1426   - temp = c.checked === true ? ligados.push(c.value) : desligados.push(c.value);
  1423 + c.checked === true ? ligados.push(c.value) : desligados.push(c.value);
1427 1424 todos.push(c.value);
1428 1425 if(tipo === "marca"){
1429 1426 c.checked = true;
... ... @@ -1461,7 +1458,7 @@ i3GEO.arvoreDeCamadas = {
1461 1458 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.capturaCheckBox()");}
1462 1459 if(!$i(i3GEO.arvoreDeCamadas.IDHTML))
1463 1460 {return;}
1464   - var nos,ligados,desligados,todos,n,i,no,cs,csn,j,c;
  1461 + var nos,n,i,no,cs,csn,j,c;
1465 1462 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");
1466 1463 n = nos.length;
1467 1464 i=0;
... ... @@ -1611,9 +1608,7 @@ i3GEO.arvoreDeCamadas = {
1611 1608 */
1612 1609 alteraPropCamadas: function(propriedade,valor,camada){
1613 1610 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.alteraPropCamadas()");}
1614   - var resultado = [],
1615   - i = 0,
1616   - temp,
  1611 + var i = 0,
1617 1612 nelementos = i3GEO.arvoreDeCamadas.CAMADAS.length,
1618 1613 ltema;
1619 1614 if (nelementos > 0){
... ...
classesjs/classe_arvoredetemas.js
... ... @@ -381,7 +381,7 @@ i3GEO.arvoreDeTemas = {
381 381 //node = no;
382 382 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaLayersWMS()");}
383 383 var monta = function(retorno){
384   - var n,cor,i,cabeca,tempNode,ns,j,tempNodeS,temp;
  384 + var n,cor,i,cabeca,tempNode,ns,j,temp;
385 385 n = 0;
386 386 try{n = retorno.data.length;}
387 387 catch(m){node.loadComplete();return;}
... ... @@ -408,7 +408,7 @@ i3GEO.arvoreDeTemas = {
408 408 if(temp.estilos){
409 409 ns = temp.estilos.length;
410 410 for (j=0;j<ns; j += 1){
411   - tempNodeS = new YAHOO.widget.HTMLNode(
  411 + new YAHOO.widget.HTMLNode(
412 412 {
413 413 html:i3GEO.arvoreDeTemas.montaTextoTemaWMS(
414 414 node.data.url,
... ... @@ -657,12 +657,13 @@ i3GEO.arvoreDeTemas = {
657 657 */
658 658 listaEstrelas: function(node){
659 659 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaEstrelas()");}
660   - var busca,root,montanos;
661   - montanos = function(retorno)
662   - {
663   - var mostra,tempNode,d,ig,
  660 + var montanos = function(retorno){
  661 + try{
  662 + var ig,
664 663 montaTexto = function(ngSgrupo){
665   - var tempn,ngTema,tempng,mostra,d,lk,tempNode,st,sg;
  664 + var tempn,ngTema,tempng,mostra,d,
  665 + lk = "",
  666 + st,sg;
666 667 tempn = ngSgrupo.length;
667 668 for(sg=0;sg<tempn;sg+=1){
668 669 ngTema = ngSgrupo[sg].temas;
... ... @@ -710,6 +711,8 @@ i3GEO.arvoreDeTemas = {
710 711 }
711 712 }
712 713 node.loadComplete();
  714 + }
  715 + catch(e){}
713 716 };
714 717 i3GEO.php.procurartemasestrela(montanos,node.data.nivel,i3GEO.arvoreDeTemas.FATORESTRELA*1);
715 718 },
... ... @@ -781,17 +784,13 @@ i3GEO.arvoreDeTemas = {
781 784 */
782 785 montaArvore: function() {
783 786 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaArvore()");}
784   - var newVal,currentIconMode,d,tempNode,tempNode1,retorno,nomeSis,root,insp,outrasOpcoes,dados,c,i,j,conteudo,editor;
  787 + var tempNode,tempNode1,retorno,root,insp,outrasOpcoes,dados,c,i,j,conteudo,editor;
785 788 (function(){
786 789 function changeIconMode(){
787   - newVal = parseInt(this.value,10);
788   - if (newVal !== currentIconMode)
789   - {currentIconMode = newVal;}
790 790 buildTree();
791 791 }
792 792 function buildTree(){
793 793 i3GEO.arvoreDeTemas.ARVORE = new YAHOO.widget.TreeView(i3GEO.arvoreDeTemas.IDHTML);
794   - tempNode = new YAHOO.widget.TextNode({html:'',expanded:false,isLeaf:false,enableHighlight:false},root);
795 794 }
796 795 buildTree();
797 796 })();
... ... @@ -800,7 +799,7 @@ i3GEO.arvoreDeTemas = {
800 799 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca === true){
801 800 insp = "<br><br><table><tr>" +
802 801 "<td><span style='font-size:12px'>&nbsp;"+$trad("a1")+" <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=4&idajuda=31' >&nbsp;&nbsp;&nbsp;</a></span></td>" +
803   - "<td><input onclick='javascript:i3GEO.arvoreDeTemas.select();' class='digitar' type='text' id='i3geo_buscatema' size='15' value='' /></td>" +
  802 + "<td><input onclick='javascript:this.select();' class='digitar' type='text' id='i3geo_buscatema' size='15' value='' /></td>" +
804 803 "<td><img class='tic' ";
805 804 if(navm){insp += "style='top:0px;'";}
806 805 else
... ... @@ -919,13 +918,13 @@ i3GEO.arvoreDeTemas = {
919 918 {html:conteudo,idmenu:dados[i].idmenu,enableHighlight:false,expanded:false},
920 919 root
921 920 );
922   - tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.montaGrupos, currentIconMode);
  921 + tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.montaGrupos, 1);
923 922 if(dados[i].status === "aberto")
924 923 {tempNode.expand();}
925 924 }
926 925 if(i3GEO.arvoreDeTemas.INCLUISISTEMAS){
927 926 retorno = function(){
928   - var sis,iglt,tempNode,ig,nomeSis,sisNode,funcoes,tempf,ig2,abre,nomeFunc,funcNode;
  927 + var sis,iglt,tempNode,ig,nomeSis,sisNode,funcoes,tempf,ig2,abre,nomeFunc;
929 928 try{
930 929 sis = i3GEO.arvoreDeTemas.SISTEMAS;
931 930 iglt = sis.length;
... ... @@ -953,7 +952,7 @@ i3GEO.arvoreDeTemas = {
953 952 for (ig2=0;ig2<tempf;ig2+=1){
954 953 abre = "i3GEO.janela.cria('"+(funcoes[ig2].W)+"px','"+(funcoes[ig2].H)+"px','"+(funcoes[ig2].ABRIR)+"','','','Sistemas')";
955 954 nomeFunc = "<a href='#' onclick=\""+abre+"\">"+funcoes[ig2].NOME+"</a>";
956   - funcNode = new YAHOO.widget.HTMLNode(
  955 + new YAHOO.widget.HTMLNode(
957 956 {html:nomeFunc,expanded:false,enableHighlight:false,isLeaf:true},
958 957 sisNode
959 958 );
... ... @@ -1018,7 +1017,7 @@ i3GEO.arvoreDeTemas = {
1018 1017 montaGrupos: function(node){
1019 1018 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaGrupos()");}
1020 1019 var temp=function(){
1021   - var grupos,c,raiz,nraiz,mostra,html,i,d,editor;
  1020 + var grupos,c,raiz,nraiz,mostra,i,d,editor;
1022 1021 grupos = i3GEO.arvoreDeTemas.GRUPOS.grupos;
1023 1022 c = grupos.length - 3;
1024 1023 raiz = grupos[c].temasraiz;
... ... @@ -1079,7 +1078,7 @@ i3GEO.arvoreDeTemas = {
1079 1078 montaSubGrupos: function(node){
1080 1079 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaSubGrupos()");}
1081 1080 var temp=function(){
1082   - var i,c,mostra,d,html,tempNode,nraiz,subgrupos,raiz;
  1081 + var i,c,mostra,d,tempNode,nraiz,subgrupos,raiz;
1083 1082 subgrupos = i3GEO.arvoreDeTemas.SUBGRUPOS.subgrupo;
1084 1083 c = subgrupos.length;
1085 1084 raiz = i3GEO.arvoreDeTemas.SUBGRUPOS.temasgrupo;
... ... @@ -1205,7 +1204,7 @@ i3GEO.arvoreDeTemas = {
1205 1204 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaDir()");}
1206 1205 var montaLista = function(retorno)
1207 1206 {
1208   - var ig,d,conteudo,dirs,tempNode,arquivos,nodeSHP;
  1207 + var ig,conteudo,dirs,tempNode,arquivos;
1209 1208 dirs = retorno.data.diretorios;
1210 1209 for (ig=0;ig<dirs.length;ig+=1)
1211 1210 {
... ... @@ -1227,7 +1226,7 @@ i3GEO.arvoreDeTemas = {
1227 1226 if(conteudo.search(".img") > 1 || conteudo.search(".tif") > 1 || conteudo.search(".TIF") > 1 || conteudo.search(".shp") > 1 || conteudo.search(".SHP") > 1)
1228 1227 {
1229 1228 conteudo = "<a href='#' title='"+$trad("g2")+"' onclick='i3GEO.util.adicionaSHP(\""+node.data.caminho+"/"+conteudo+"\")' >"+conteudo+"</a>";
1230   - nodeSHP = new YAHOO.widget.HTMLNode(
  1229 + new YAHOO.widget.HTMLNode(
1231 1230 {isLeaf:true,enableHighlight:false,expanded:false,html:conteudo,caminho:node.data.caminho+"/"+conteudo},
1232 1231 node
1233 1232 );
... ... @@ -1292,7 +1291,7 @@ i3GEO.arvoreDeTemas = {
1292 1291 */
1293 1292 propTemas: function(node){
1294 1293 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.propTemas()");}
1295   - var d,tempNode,html,lkmini,lkmini1,lkgrcode,lkgrcode1,n,ogc;
  1294 + var html,lkmini,lkmini1,lkgrcode,lkgrcode1,n,ogc;
1296 1295 if(node.data.fonte && node.data.fonte !== "" && node.data.fonte !== " "){
1297 1296 tempNode = new YAHOO.widget.HTMLNode(
1298 1297 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' href='"+node.data.fonte+"' target='_blank' >Fonte</a>"},
... ... @@ -1302,7 +1301,7 @@ i3GEO.arvoreDeTemas = {
1302 1301 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.mini === true){
1303 1302 lkmini = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=mini";
1304 1303 lkmini1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=grande";
1305   - tempNode = new YAHOO.widget.HTMLNode(
  1304 + new YAHOO.widget.HTMLNode(
1306 1305 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkmini+" />\")' href='"+lkmini1+"' target='blank' >Miniatura</a>"},
1307 1306 node
1308 1307 );
... ... @@ -1312,27 +1311,27 @@ i3GEO.arvoreDeTemas = {
1312 1311 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kml\")' >Kml</a>";
1313 1312 if (node.data.kmz.toLowerCase() === "sim")
1314 1313 {html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kmz\")' >Kml</a>";}
1315   - tempNode = new YAHOO.widget.HTMLNode(
  1314 + new YAHOO.widget.HTMLNode(
1316 1315 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1317 1316 node
1318 1317 );
1319 1318 }
1320 1319 ogc = i3GEO.arvoreDeTemas.LOCAPLIC+"/ogc.php?tema="+node.data.idtema+"&service=wms&request=getcapabilities";
1321   - tempNode = new YAHOO.widget.HTMLNode(
  1320 + new YAHOO.widget.HTMLNode(
1322 1321 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='getcapabilities' href='"+ogc+"' target='blank' >WMS - OGC</a>"},
1323 1322 node
1324 1323 );
1325 1324 }
1326 1325 if(node.data.download && node.data.download.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.TIPOBOTAO !== "download"){
1327 1326 html = "<a href='"+i3GEO.configura.locaplic+"/datadownload.htm?"+node.data.idtema+"' target='_blank'>Download</a>";
1328   - tempNode = new YAHOO.widget.HTMLNode(
  1327 + new YAHOO.widget.HTMLNode(
1329 1328 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1330 1329 node
1331 1330 );
1332 1331 }
1333 1332 if (node.data.permitecomentario && node.data.permitecomentario !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true){
1334 1333 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.comentario(\""+node.data.idtema+"\",\"comentario\")' >Comentário</a>";
1335   - tempNode = new YAHOO.widget.HTMLNode(
  1334 + new YAHOO.widget.HTMLNode(
1336 1335 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1337 1336 node
1338 1337 );
... ... @@ -1340,7 +1339,7 @@ i3GEO.arvoreDeTemas = {
1340 1339 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode === true){
1341 1340 lkgrcode = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_html.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema;
1342 1341 lkgrcode1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_img.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema;
1343   - tempNode = new YAHOO.widget.HTMLNode(
  1342 + new YAHOO.widget.HTMLNode(
1344 1343 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkgrcode1+" />\")' href='"+lkgrcode+"' target='blank' >Qrcode</a>"},
1345 1344 node
1346 1345 );
... ... @@ -1349,11 +1348,11 @@ i3GEO.arvoreDeTemas = {
1349 1348 n = parseInt(node.data.nacessos / (i3GEO.arvoreDeTemas.FATORESTRELA*1),10);
1350 1349 if(n >= 5){n = 5;}
1351 1350 html = (n > 0) ? "<img src='"+i3GEO.util.$im("e"+n+".png")+"'/>" : "<img src='"+i3GEO.util.$im("e0.png")+"'/>";
1352   - tempNode = new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
  1351 + new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
1353 1352 }
1354 1353 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.bookmark === true){
1355 1354 html = i3GEO.social.bookmark(i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+node.data.idtema);
1356   - tempNode = new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
  1355 + new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
1357 1356 }
1358 1357 node.loadComplete();
1359 1358 },
... ... @@ -1495,10 +1494,10 @@ i3GEO.arvoreDeTemas = {
1495 1494 buscaTema: function(palavra){
1496 1495 if(palavra === ""){return;}
1497 1496 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");}
1498   - var busca,root,nodePalavra;
  1497 + var busca,root,nodePalavra = "";
1499 1498 resultadoProcurar = function(retorno)
1500 1499 {
1501   - var mostra,tempNode,d,conta,ig,ngSgrupo,tempn,sg,ngTema,tempng,st,lk;
  1500 + var mostra,tempNode,d,conta,ig,ngSgrupo,tempn,sg,ngTema,tempng,st,lk = "";
1502 1501 if(!retorno.data)
1503 1502 {alert("Ocorreu um erro");}
1504 1503 else{
... ... @@ -1585,12 +1584,12 @@ i3GEO.arvoreDeTemas = {
1585 1584 buscaTema2: function(palavra){
1586 1585 if(palavra === ""){return;}
1587 1586 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");}
1588   - var busca,root,nodePalavra;
  1587 + var busca,root,nodePalavra = "";
1589 1588 resultadoProcurar = function(retorno)
1590 1589 {
1591   - var mostra,tempNode,d,ig,
  1590 + var ig,
1592 1591 montaTexto = function(ngSgrupo){
1593   - var tempn,ngTema,tempng,mostra,d,lk,tempNode,st,sg;
  1592 + var tempn,ngTema,tempng,mostra,d,lk = "",st,sg;
1594 1593 tempn = ngSgrupo.length;
1595 1594 for(sg=0;sg<tempn;sg+=1){
1596 1595 ngTema = ngSgrupo[sg].temas;
... ... @@ -1612,7 +1611,7 @@ i3GEO.arvoreDeTemas = {
1612 1611 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].subgrupo)+") "+lk+"</td>";}
1613 1612 else
1614 1613 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].grupo)+")"+lk+"</td>";}
1615   - tempNode = new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,html:d,expanded:false}, nodePalavra);
  1614 + new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,html:d,expanded:false}, nodePalavra);
1616 1615 }
1617 1616 conta+=1;
1618 1617 }
... ... @@ -1633,7 +1632,7 @@ i3GEO.arvoreDeTemas = {
1633 1632 while(ig--);
1634 1633 }
1635 1634 else{
1636   - tempNode = new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,expanded:false,html:"<span style='color:red'>Nada encontrado<br><br></span>"}, nodePalavra);
  1635 + new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,expanded:false,html:"<span style='color:red'>Nada encontrado<br><br></span>"}, nodePalavra);
1637 1636 }
1638 1637 }
1639 1638 }
... ... @@ -1876,7 +1875,7 @@ i3GEO.arvoreDeTemas = {
1876 1875 comboTemasMenu: function(locaplic,funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura,id_menu,temas){
1877 1876 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.comboTemasMenu()");}
1878 1877 var combo = function(retorno){
1879   - var ins,sg,ig,temas;
  1878 + var ins,sg,ig;
1880 1879 if(idSubGrupo != "")
1881 1880 {ins = "<select id='"+idCombo+"' size="+altura+" style=width:"+largura+"px onchange='"+funcaoOnchange+"("+idGrupo+","+idSubGrupo+",this.value)' ><option value='' >Escolha um tema:</option>";}
1882 1881 else
... ... @@ -1911,7 +1910,7 @@ i3GEO.arvoreDeTemas = {
1911 1910 Abre uma janela flutunate que permite abrir outras ferramentas para o upload de arquivos de determinados tipos
1912 1911 */
1913 1912 uploadarquivo: function(){
1914   - var janela,ins,temp,titulo,cabecalho,minimiza,
  1913 + var janela,ins,titulo,cabecalho,minimiza,
1915 1914 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS;
1916 1915  
1917 1916 cabecalho = function(){};
... ... @@ -1968,7 +1967,7 @@ i3GEO.arvoreDeTemas = {
1968 1967 Abre uma janela flutunate que permite abrir outras ferramentas para conexão com serviços externos
1969 1968 */
1970 1969 conectaservico: function(){
1971   - var janela,ins,temp,titulo,cabecalho,minimiza,
  1970 + var janela,ins,titulo,cabecalho,minimiza,
1972 1971 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS;
1973 1972  
1974 1973 cabecalho = function(){};
... ...
classesjs/classe_barradebotoes.js
... ... @@ -647,7 +647,7 @@ i3GEO.barraDeBotoes = {
647 647 */
648 648 ativaBotoes:function(padrao){
649 649 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaBotoes()");}
650   - var l,b,d,temp;
  650 + var l,b,temp;
651 651 if(arguments.length === 0)
652 652 {padrao = this.BOTAOPADRAO;}
653 653 this.BOTAOCLICADO = padrao;
... ... @@ -695,7 +695,6 @@ i3GEO.barraDeBotoes = {
695 695 */
696 696 execBotao: function(id,x,y,posX,posY){
697 697 var temp,
698   - n = 38,
699 698 botao = i3GEO.barraDeBotoes.defBotao(id);
700 699 i3GEO.barraDeBotoes.BOTAOCLICADO = id;
701 700 if(botao === false)
... ... @@ -706,8 +705,8 @@ i3GEO.barraDeBotoes = {
706 705 temp = $i("i3geoMarcaIcone");
707 706 if(temp){
708 707 temp.style.display = "block";
709   - temp.style.top = posY + 43 + "px";//(parseInt(y / n,10) * n) + 40;
710   - temp.style.left = posX + 18 + "px";//(parseInt(x / n,10) * n) + 6;
  708 + temp.style.top = posY + 43 + "px";
  709 + temp.style.left = posX + 18 + "px";
711 710 }
712 711 }
713 712 if(botao.funcaoonclick){
... ... @@ -728,9 +727,8 @@ i3GEO.barraDeBotoes = {
728 727 {objeto} - ver i3GEO.barraDeBotoes.LISTABOTOES
729 728 */
730 729 defBotao: function(iddiv){
731   - var l,b,d,temp;
732   - l = i3GEO.barraDeBotoes.LISTABOTOES;
733   - b = l.length-1;
  730 + var l = i3GEO.barraDeBotoes.LISTABOTOES,
  731 + b = l.length-1;
734 732 if (b >= 0){
735 733 do{
736 734 temp = l[b].iddiv;
... ... @@ -808,8 +806,7 @@ i3GEO.barraDeBotoes = {
808 806 i3GEO.ajuda.abreJanela();
809 807 };
810 808 $i(euEnv.euDockArray.euDock_0.bar.elementsArray.right.id).onclick = function(){
811   - var temp = "",
812   - dica,
  809 + var dica,
813 810 titulo,
814 811 chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO),
815 812 n = chaves.length,
... ... @@ -853,7 +850,7 @@ i3GEO.barraDeBotoes = {
853 850 };
854 851 //div que mostra o título do botão
855 852 if(!$i("euDockMensagem")){
856   - var temp = novoel = document.createElement("div");
  853 + temp = novoel = document.createElement("div");
857 854 temp.style.top = "38px";
858 855 temp.style.color = "gray";
859 856 temp.style.textAlign = "center";
... ... @@ -913,8 +910,8 @@ i3GEO.barraDeBotoes = {
913 910 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";}
914 911 if(this.TEMPLATEBOTAO === "" && i3GEO.Interface.TABLET === true)
915 912 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='margin:4px;border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";}
916   -
917   - var ticone,tipo,mostra,i,temp,elementos,e,wj,recuo,novoel,alturadisponivel,n,chaves,re,estilo,
  913 + var ticone,tipo,mostra,i,temp,e,wj,recuo,novoel,alturadisponivel,n,chaves,
  914 + elementos = "",
918 915 numerobotoes = 0,
919 916 nelementos = 0,
920 917 Dom = YAHOO.util.Dom,
... ... @@ -951,9 +948,6 @@ i3GEO.barraDeBotoes = {
951 948 if(typeof(onde) === 'undefined'){
952 949 novoel = document.createElement("div");
953 950 novoel.id = "barraDeBotoes2";
954   - estilo = "font-size:2px;";
955   - if(this.SOICONES === true)
956   - {estilo = "font-size:0px;";}
957 951 novoel.innerHTML = "<table style='width:100%'>"+
958 952 "<tr><td style='background-color:rgb(250,250,250);'><img title='' alt='sobe' src='"+branco+"' id='sobeferramentas'/></td></tr>"+
959 953 "</table>" +temp+
... ... @@ -1171,7 +1165,7 @@ i3GEO.barraDeBotoes = {
1171 1165 */
1172 1166 ativaMenuContexto: function(idbarra){
1173 1167 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaMenuContexto()");}
1174   - var oFieldContextMenuItemData,oFieldContextMenu,onFieldMenuRender,id;
  1168 + var oFieldContextMenuItemData,oFieldContextMenu,onFieldMenuRender;
1175 1169 function executar(a,b,c)
1176 1170 {eval(c);}
1177 1171 oFieldContextMenuItemData = [
... ... @@ -1190,7 +1184,7 @@ i3GEO.barraDeBotoes = {
1190 1184 }
1191 1185 );
1192 1186 onFieldMenuRender = function(){
1193   - eval("var id = 'contexto_"+idbarra+"'");
  1187 + var id = "contexto_"+idbarra;
1194 1188 $i(id).style.zIndex = 50000;
1195 1189 };
1196 1190 oFieldContextMenu.subscribe("render", onFieldMenuRender);
... ... @@ -1250,7 +1244,7 @@ i3GEO.barraDeBotoes = {
1250 1244 {$i("i3geoMarcaIcone").style.display = "none";}
1251 1245 return;
1252 1246 }
1253   - var n,temp,novoel,barraZoom,x,y,
  1247 + var i,n,temp,novoel,barraZoom,x,y,
1254 1248 BARRAS = i3GEO.barraDeBotoes.BARRAS,
1255 1249 iu = i3GEO.util;
1256 1250 i3GEO.barraDeBotoes.BARRAS = [];
... ... @@ -1296,7 +1290,8 @@ i3GEO.barraDeBotoes = {
1296 1290 */
1297 1291 fecha: function(id){
1298 1292 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.fecha()");}
1299   - var n = this.BARRAS.length;
  1293 + var i,
  1294 + n = this.BARRAS.length;
1300 1295 for(i=0;i<n;i+=1){
1301 1296 if(this.BARRAS[i] && this.BARRAS[i].id === id){
1302 1297 $i(id+"_c").style.visibility = "hidden";
... ... @@ -1418,7 +1413,7 @@ i3GEO.barraDeBotoes = {
1418 1413 criaJanela: function(){
1419 1414 if($i("i3GEOjanelaEditor"))
1420 1415 {return "i3GEOjanelaEditor";}
1421   - var janela,divid,temp,titulo,cabecalho,minimiza;
  1416 + var janela,divid,titulo,cabecalho,minimiza;
1422 1417 cabecalho = function(){};
1423 1418 minimiza = function(){
1424 1419 i3GEO.janela.minimiza("i3GEOjanelaEditor");
... ...
classesjs/classe_calculo.js
... ... @@ -109,7 +109,7 @@ i3GEO.calculo = {
109 109 */
110 110 dd2tela: function (vx,vy,docmapa,ext,cellsize){
111 111 try{
112   - var pos,latlng,xyn,dc,imgext,c,xy;
  112 + var pos,xyn,dc,imgext,c,xy;
113 113 if(i3GEO.Interface.ATUAL === "googlemaps" && docmapa.id !== "mapaReferencia"){
114 114 pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));
115 115 xyn = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(new google.maps.LatLng(vy,vx));
... ... @@ -156,7 +156,10 @@ i3GEO.calculo = {
156 156 {Array} - Array com o valor de x [0] e y [1] no formato dd mm ss
157 157 */
158 158 dd2dms: function(x,y){
159   - var restod,mx,sx,mm,restos,my,sy,s,dx,dy;
  159 + var restod = 0,
  160 + sx = "00.00",
  161 + sy = "00.00",
  162 + mx,mm,restos,my,s,dx,dy;
160 163 dx = parseInt(x,10);
161 164 if (dx > 0)
162 165 {restod = x - dx;}
... ... @@ -400,12 +403,12 @@ i3GEO.calculo = {
400 403 iterLimit = 20,
401 404 sinLambda,
402 405 cosLambda,
403   - sinSigma,
404   - cosSigma,
405   - sigma,
  406 + sinSigma = 0,
  407 + cosSigma = 0,
  408 + sigma = 0,
406 409 alpha,
407   - cosSqAlpha,
408   - cos2SigmaM,
  410 + cosSqAlpha = 0,
  411 + cos2SigmaM = 0,
409 412 C,
410 413 uSq,
411 414 A,
... ... @@ -540,7 +543,7 @@ i3GEO.calculo = {
540 543 */
541 544 rect2ext: function(idrect,mapext,pixel){
542 545 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.rect2ext()");}
543   - var bx,bxs,xfig,yfig,nx,ny,pix,piy,pos,amext,dx,dy,x1,y1,x2,y2,
  546 + var bx,bxs,xfig,yfig,nx,ny,pos,amext,dy,x1,y1,x2,y2,
544 547 pix = parseInt(document.getElementById(idrect).style.left,10),
545 548 piy = parseInt(document.getElementById(idrect).style.top,10);
546 549 if($i(idrect)){
... ... @@ -553,7 +556,6 @@ i3GEO.calculo = {
553 556 xfig = pix + (parseInt(bxs.width,10)) - pos[0];
554 557 yfig = piy + (parseInt(bxs.height,10)) - pos[1];
555 558 amext = mapext.split(" ");
556   - dx = ((amext[0] * -1) - (amext[2] * -1)) / -1;
557 559 dy = ((amext[1] * 1) - (amext[3] * 1)) / -1;
558 560 if (dy < 0)
559 561 {dy=dy * -1;}
... ... @@ -594,9 +596,8 @@ i3GEO.calculo = {
594 596 */
595 597 ext2rect: function(idrect,mapext,boxext,pixel,documento){
596 598 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.ext2rect()");}
597   - var rectbox,rectmap,xyMin,xyMax,w,h,tl,pos,t,l,d,box;
  599 + var rectbox,xyMin,xyMax,w,h,tl,pos,t,l,d,box;
598 600 rectbox = boxext.split(" ");
599   - rectmap = mapext.split(" ");
600 601 xyMin = i3GEO.calculo.dd2tela(rectbox[0],rectbox[1],documento,boxext,pixel);
601 602 xyMax = i3GEO.calculo.dd2tela(rectbox[2],rectbox[3],documento,boxext,pixel);
602 603 w = xyMax[0]-xyMin[0];
... ...
classesjs/classe_configura.js
... ... @@ -673,8 +673,8 @@ i3GEO.configura = {
673 673 ""
674 674 );
675 675 $i("janelaBuscaRapida_corpo").style.backgroundColor = "white";
  676 + i3GEO.gadgets.mostraBuscaRapida(janela[2].id);
676 677 }
677   - i3GEO.gadgets.mostraBuscaRapida(janela[2].id);
678 678 }
679 679 },
680 680 {
... ... @@ -745,77 +745,6 @@ i3GEO.configura = {
745 745 {i3GEO.Interface.openlayers.OLpanel.activateControl(i3GEO.Interface.openlayers.OLpan);}
746 746 return;
747 747 }
748   - panMapaInicia = function(exy){
749   - var k;
750   - leftinicial = 0;
751   - topinicial = 0;
752   - if ($i("img") && (g_tipoacao === "pan")){
753   - try{
754   - if(arguments.length > 0){
755   - if(navm)
756   - {k = event.button;}
757   - else
758   - {k = exy.button;}
759   - if(k === 2){return;}
760   - }
761   - }
762   - catch(h){
763   - if(typeof(console) !== 'undefined'){console.error(h);}
764   - }
765   - g_panM = "sim";
766   - if($i(i3GEO.Interface.IDCORPO)){
767   - leftinicial = parseInt($i(i3GEO.Interface.IDCORPO).style.left,10);
768   - topinicial = parseInt($i(i3GEO.Interface.IDCORPO).style.top,10);
769   - }
770   - clicinicialx = objposicaocursor.imgx;
771   - clicinicialy = objposicaocursor.imgy;
772   - ddinicialx = objposicaocursor.ddx;
773   - ddinicialy = objposicaocursor.ddy;
774   - //
775   - //faz os cálculos para o posicionamento do box sobre o mapa de referência
776   - //
777   - boxrefObj = $i("boxref");
778   - if(boxrefObj){
779   - proporcaoBox = i3GEO.parametros.w / parseInt(boxrefObj.style.width,10);
780   - boxrefObjLeft = parseInt(boxrefObj.style.left,10);
781   - boxrefObjTop = parseInt(boxrefObj.style.top,10);
782   - }
783   - }
784   - };
785   - panMapaDesloca = function(){
786   - var nx,ny,l,t;
787   - if (typeof(g_panM) !== 'undefined' && $i(i3GEO.Interface.IDMAPA) && (g_panM === "sim")){
788   - nx = objposicaocursor.telax - leftinicial - clicinicialx;
789   - ny = objposicaocursor.telay - topinicial - clicinicialy;
790   - }
791   - };
792   - panMapaTermina = function(){
793   - if (g_tipoacao === "pan"){
794   - marcadorZoom = "";
795   - g_panM = "nao";
796   - //alert(ddinicialx+","+ddinicialy+","+objposicaocursor.ddx+","+objposicaocursor.ddy)
797   - try{
798   - var f = "i3GEO.navega.timerNavega = null;if("+
799   - "i3GEO.navega.xy2xy('"+
800   - i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"',"+ddinicialx+","+ddinicialy+","+objposicaocursor.ddx+","+objposicaocursor.ddy+",'"+i3GEO.parametros.mapexten+"','"+i3GEO.configura.tipoimagem+"'"+
801   - ") == false"+
802   - "){"+
803   - "i3GEO.navega.zoompontoIMG('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"',"+objposicaocursor.imgx+","+objposicaocursor.imgy+")"+
804   - "}";
805   - clearTimeout(i3GEO.navega.timerNavega);
806   - i3GEO.navega.timerNavega = setTimeout(f,i3GEO.navega.TEMPONAVEGAR);
807   - }
808   - catch(e){
809   - if(typeof(console) !== 'undefined'){console.error(e);}
810   - }
811   - }
812   - };
813   - if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()") < 0)
814   - {i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()");}
815   - if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()") < 0)
816   - {i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()");}
817   - if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()") < 0)
818   - {i3GEO.eventos.MOUSEUP.push("panMapaTermina()");}
819 748 }
820 749 },
821 750 {
... ...
classesjs/classe_coordenadas.js
... ... @@ -260,13 +260,12 @@ i3GEO.coordenadas = {
260 260 if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10)
261 261 {return;}
262 262 if($i("wdoca")){return;}
263   - var tempUtm,s,n,i,t;
264 263 //
265 264 //cancela se existir alguma ferramenta ativa
266 265 //
267 266 if(i3GEO.util.verificaScriptTag("i3GEOF") === true)
268 267 {return;}
269   - tempUtm = function(retorno){
  268 + var tempUtm = function(retorno){
270 269 var funcao,temp,texto;
271 270 funcao = "$i(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';"+
272 271 "if(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasGEO.idhtml == i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml)"+
... ... @@ -303,7 +302,6 @@ i3GEO.coordenadas = {
303 302 mostraCoordenadasGEO: function(id){
304 303 if(typeof(console) !== 'undefined'){console.info("i3GEO.coordenadas.mostraCoordenadasGEO()");}
305 304 try{
306   - var ins;
307 305 if(arguments.length === 0 || id === "" || typeof(id) === 'undefined')
308 306 {id = this.PARAMETROS.mostraCoordenadasGEO.idhtml;}
309 307 else
... ... @@ -445,7 +443,8 @@ i3GEO.coordenadas = {
445 443  
446 444 */
447 445 atualizaProj4: function(onde,configProj,x,y){
448   - var destino,zona,temp,p,
  446 + var zona,temp,p,
  447 + destino = "",
449 448 iu = i3GEO.util;
450 449 try{
451 450 if(!$i(onde+configProj+"ZN"))
... ...
classesjs/classe_desenho.js
... ... @@ -229,7 +229,7 @@ i3GEO.desenho = {
229 229 texto {string} - texto que será inserido no tipo "insereTexto"
230 230 */
231 231 aplica: function(tipo,objeto,n,texto){
232   - var pos,r,elemento,elementos,dy,dx,w,i,nindice,ix,iy,dm;
  232 + var dy,dx,w;
233 233 if(i3GEO.desenho.richdraw && $i(i3GEO.Interface.IDCORPO)){
234 234 //pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));
235 235 //
... ... @@ -242,33 +242,6 @@ i3GEO.desenho = {
242 242 if(typeof(console) !== 'undefined'){console.error(erro);}
243 243 }
244 244 }
245   - /*
246   - if((tipo==="resizeLinha") && navm){
247   - r = $i(i3GEO.desenho.richdraw.container.id);
248   - elementos = r.childNodes;
249   - if(desenhoUltimaLinha !== "")
250   - {r.removeChild(desenhoUltimaLinha);}
251   - dy = objposicaocursor.imgy;
252   - dx = objposicaocursor.imgx;// - (i3GEO.parametros.w/2);
253   - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],dx,dy);
254   - desenhoUltimaLinha = r.childNodes[$i(i3GEO.desenho.richdraw.container.id).childNodes.length - 1];
255   - }
256   - if((tipo==="resizePoligono") && navm){
257   - try{
258   - r = $i(i3GEO.desenho.richdraw.container.id);
259   - elementos = r.childNodes;
260   - if(desenhoUltimaLinhaPol !== "")
261   - {r.removeChild(desenhoUltimaLinhaPol);}
262   - dy = objposicaocursor.imgy;
263   - dx = objposicaocursor.imgx;// - (i3GEO.parametros.w/2);
264   - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],dx,dy);
265   - desenhoUltimaLinhaPol = r.childNodes[$i(i3GEO.desenho.richdraw.container.id).childNodes.length - 1];
266   - }
267   - catch(men){
268   - if(typeof(console) !== 'undefined'){console.error(men);}
269   - }
270   - }
271   - */
272 245 if(tipo==="insereCirculo"){
273 246 dx = Math.pow(((pontosdistobj.xtela[n])*1) - ((pontosdistobj.xtela[n-1])*1),2);
274 247 dy = Math.pow(((pontosdistobj.ytela[n])*1) - ((pontosdistobj.ytela[n-1])*1),2);
... ... @@ -339,7 +312,7 @@ i3GEO.desenho = {
339 312 sel = "";
340 313 if(lista[i] === i3GEO.desenho.estiloPadrao)
341 314 {sel = "select";}
342   - caixa += "<option value='"+lista[i]+"' sel >"+lista[i]+"</option>";
  315 + caixa += "<option value='"+lista[i]+"'" + sel + ">"+lista[i]+"</option>";
343 316 }
344 317 caixa += "</select>";
345 318 return caixa;
... ...
classesjs/classe_eventos.js
... ... @@ -244,7 +244,7 @@ i3GEO.eventos = {
244 244 eventos {array} - array com os nomes das funções
245 245 */
246 246 executaEventos: function(eventos){
247   - var f,temp;
  247 + var f = 0;
248 248 try{
249 249 if (eventos.length > 0){
250 250 f = eventos.length-1;
... ... @@ -303,7 +303,10 @@ i3GEO.eventos = {
303 303 //Entretanto, nas ferramentas que usam o richdraw (distância e área) o posicionamento
304 304 //deve ser controlado pelo i3geo
305 305 //
306   - var teladd,teladms,container,targ,pos,mousex,mousey,xfig,yfig,xreffig,yreffig,xtela,ytela,c,ex,r;
  306 + var teladd,teladms,
  307 + container = "",
  308 + targ = "",
  309 + pos,mousex,mousey,xfig,yfig,xreffig,yreffig,xtela,ytela,c,ex,r;
307 310 if (!e){e = window.event;}
308 311 try{
309 312 if (e.target)
... ... @@ -311,7 +314,8 @@ i3GEO.eventos = {
311 314 else
312 315 if (e.srcElement)
313 316 {targ = e.srcElement;}
314   - container = targ.parentNode.id;
  317 + if(targ.parentNode)
  318 + {container = targ.parentNode.id;}
315 319 }
316 320 catch(erro){
317 321 if(typeof(console) !== 'undefined'){console.error(erro);}
... ... @@ -495,7 +499,7 @@ i3GEO.eventos = {
495 499 */
496 500 cliqueCapturaPt: function(ixg,ixm,ixs,iyg,iym,iys){
497 501 if(typeof(console) !== 'undefined'){console.info("i3GEO.eventos.cliqueCapturaPt()");}
498   - var x,y,doc;
  502 + var x,y,doc = document;
499 503 if(arguments.length === 0){
500 504 ixg = "ixg";
501 505 ixm = "ixm";
... ... @@ -506,9 +510,6 @@ i3GEO.eventos = {
506 510 if($i("wdocai"))
507 511 {doc = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument;}
508 512 }
509   - else{
510   - doc = document;
511   - }
512 513 //
513 514 //algumas operações de análise podem precisar das coordenadas
514 515 //nesses casos, g_tipoacao é definida como "capturaponto"
... ...
classesjs/classe_gadgets.js
... ... @@ -228,7 +228,7 @@ i3GEO.gadgets = {
228 228 */
229 229 mostraEscalaNumerica: function(id){
230 230 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraEscalaNumerica()");}
231   - var i,ins,temp,onde,fsubmit;
  231 + var i,ins,temp,onde;
232 232 if(arguments.length === 0)
233 233 {id = i3GEO.gadgets.PARAMETROS.mostraEscalaNumerica.idhtml;}
234 234 onde = $i(id);
... ... @@ -551,7 +551,7 @@ i3GEO.gadgets = {
551 551 */
552 552 mostraMenuSuspenso: function(id){
553 553 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraMenuSuspenso()");}
554   - var objid,sobe,n,i,estilo,t,onMenuBarBeforeRender,temp,ifr,i3GEOoMenuBarLocal,
  554 + var objid,n,i,estilo,t,onMenuBarBeforeRender,temp,ifr,i3GEOoMenuBarLocal,
555 555 ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso,
556 556 confm = i3GEO.configura.oMenuData,
557 557 ins = "",
... ... @@ -597,8 +597,13 @@ i3GEO.gadgets = {
597 597 ins += '</ul>';
598 598 ins += '</div>';
599 599 objid.innerHTML=ins;
  600 + if(i3GEO.Interface.ATUAL === "googleearth")
  601 + {ifr = true;}
  602 + else
  603 + {ifr = false;}
  604 + i3GEOoMenuBarLocal = new YAHOO.widget.MenuBar(id,{iframe:ifr,autosubmenudisplay: true, showdelay: 100, hidedelay: 500, lazyload: false});
600 605 onMenuBarBeforeRender = function (p_sType, p_sArgs){
601   - var conta,nomeMenu,nomeSub,
  606 + var nomeMenu = "",nomeSub,
602 607 subs = i3GEO.configura.oMenuData.submenus,
603 608 conta = 0;
604 609 for(nomeMenu in subs){
... ... @@ -617,11 +622,6 @@ i3GEO.gadgets = {
617 622 }
618 623 }
619 624 };
620   - if(i3GEO.Interface.ATUAL === "googleearth")
621   - {ifr = true;}
622   - else
623   - {ifr = false;}
624   - i3GEOoMenuBarLocal = new YAHOO.widget.MenuBar(id,{iframe:ifr,autosubmenudisplay: true, showdelay: 100, hidedelay: 500, lazyload: false});
625 625 i3GEOoMenuBar.addMenu(i3GEOoMenuBarLocal);
626 626 i3GEOoMenuBarLocal.beforeRenderEvent.subscribe(onMenuBarBeforeRender);
627 627 i3GEOoMenuBarLocal.render();
... ... @@ -718,7 +718,8 @@ i3GEO.gadgets = {
718 718 i3GEO.gadgets.PARAMETROS
719 719 */
720 720 mostraMenuLista: function(id){
721   - var objid,n,i,estilo,t,temp,nomeMenu,sub,
  721 + var objid,n,i,sub,
  722 + nomeMenu = "",
722 723 ms = i3GEO.gadgets.PARAMETROS.mostraMenuLista,
723 724 confm = i3GEO.configura.oMenuData,
724 725 ins = "",
... ... @@ -727,7 +728,6 @@ i3GEO.gadgets = {
727 728 {id = ms.idhtml;}
728 729 else
729 730 {ms.idhtml = id;}
730   -
731 731 objid = $i(id);
732 732 if(objid){
733 733 n = confm.menu.length;
... ...
classesjs/classe_i3geo.js
... ... @@ -250,7 +250,7 @@ i3GEO = {
250 250 if(typeof(console) !== 'undefined'){console.info("i3GEO.cria()");}
251 251 if(i3GEO.configura.ajustaDocType === true)
252 252 {i3GEO.util.ajustaDocType();}
253   - var temp,i,tamanho;
  253 + var temp,tamanho;
254 254 temp = window.location.href.split("?");
255 255 if (temp[1]){
256 256 i3GEO.configura.sid = temp[1];
... ... @@ -303,7 +303,7 @@ i3GEO = {
303 303 {i3GEOmantemCompatibilidade();}
304 304 montaMapa = function(retorno){
305 305 try{
306   - var tempo,titulo,temp,abreJM;
  306 + var temp,abreJM;
307 307 if(retorno === ""){
308 308 alert("Ocorreu um erro no mapa - montaMapa");
309 309 retorno = {data:{erro: "erro"}};
... ...
classesjs/classe_php.js
... ... @@ -107,7 +107,7 @@ i3GEO.php = {
107 107 par = "funcao=insereSHPgrafico&tipo=pizza&tema="+tema+"&x="+x+"&y="+y+"&itens="+itens+"&shadow_height="+shadow_height+"&width="+width+"&inclinacao="+inclinacao+"&g_sid="+i3GEO.configura.sid,
108 108 retorno = function(retorno){
109 109 i3GEO.janela.fechaAguarde("insereSHPgrafico");
110   - funcao.call(retorno);
  110 + funcao.call(funcao,retorno);
111 111 };
112 112 i3GEO.janela.abreAguarde("insereSHPgrafico",$trad("o1"));
113 113 cpJSON.call(p,"insereSHPgrafico",retorno,par);
... ... @@ -123,7 +123,7 @@ i3GEO.php = {
123 123 par = "funcao=insereSHP&item="+item+"&valor="+valoritem+"&tema="+tema+"&xy="+xy+"&projecao="+projecao+"&g_sid="+i3GEO.configura.sid,
124 124 retorno = function(retorno){
125 125 i3GEO.janela.fechaAguarde("insereSHPgrafico");
126   - funcao.call(retorno);
  126 + funcao.call(funcao,retorno);
127 127 };
128 128 cpJSON.call(p,"insereSHP",retorno,par);
129 129 },
... ... @@ -176,7 +176,7 @@ i3GEO.php = {
176 176 i3GeoMap.getFeatures().removeChild(indice);
177 177 }
178 178 }
179   - funcao.call(retorno);
  179 + funcao.call(funcao,retorno);
180 180 };
181 181 i3GEO.janela.abreAguarde("excluitema",$trad("o1"));
182 182 p = i3GEO.arvoreDeCamadas.LOCAPLIC+"/classesphp/mapa_controle.php";
... ... @@ -194,7 +194,7 @@ i3GEO.php = {
194 194 par = "funcao=reordenatemas&lista="+lista+"&g_sid="+i3GEO.arvoreDeCamadas.SID,
195 195 retorno = function(retorno){
196 196 i3GEO.janela.fechaAguarde("reordenatemas");
197   - funcao.call(retorno);
  197 + funcao.call(funcao,retorno);
198 198 };
199 199 i3GEO.janela.abreAguarde("reordenatemas",$trad("o1"));
200 200 cpJSON.call(p,"reordenatemas",retorno,par);
... ... @@ -227,7 +227,7 @@ i3GEO.php = {
227 227 par = "funcao=inverteStatusClasse&g_sid="+i3GEO.arvoreDeCamadas.SID+"&tema="+tema+"&classe="+classe,
228 228 retorno = function(retorno){
229 229 i3GEO.janela.fechaAguarde("inverteStatusClasse");
230   - funcao.call(retorno);
  230 + funcao.call(funcao,retorno);
231 231 };
232 232 i3GEO.janela.abreAguarde("inverteStatusClasse",$trad("o1"));
233 233 cpJSON.call(p,"inverteStatusClasse",retorno,par);
... ... @@ -245,7 +245,7 @@ i3GEO.php = {
245 245 par = "funcao=ligatemas&desligar="+desligar+"&ligar="+ligar+"&adicionar="+adicionar+"&g_sid="+i3GEO.configura.sid,
246 246 retorno = function(retorno){
247 247 //i3GEO.janela.fechaAguarde("ligatemas");
248   - funcao.call(retorno);
  248 + funcao.call(funcao,retorno);
249 249 };
250 250 //i3GEO.janela.abreAguarde("ligatemas",$trad("o1"));
251 251 cpJSON.call(p,"ligaDesligaTemas",retorno,par);
... ... @@ -430,7 +430,7 @@ i3GEO.php = {
430 430 par = "funcao=mudatamanho&altura="+altura+"&largura="+largura+"&g_sid="+i3GEO.configura.sid,
431 431 retorno = function(retorno){
432 432 i3GEO.janela.fechaAguarde("mudatamanho");
433   - funcao.call(retorno);
  433 + funcao.call(funcao,retorno);
434 434 };
435 435 i3GEO.janela.abreAguarde("mudatamanho",$trad("o1"));
436 436 cpJSON.call(p,"pegaSistemas",retorno,par);
... ... @@ -446,7 +446,7 @@ i3GEO.php = {
446 446 par = "funcao=ativalogo&g_sid="+i3GEO.configura.sid,
447 447 retorno = function(retorno){
448 448 i3GEO.janela.fechaAguarde("ativalogo");
449   - funcao.call(retorno);
  449 + funcao.call(funcao,retorno);
450 450 };
451 451 i3GEO.janela.abreAguarde("ativalogo",$trad("o1"));
452 452 cpJSON.call(p,"ativalogo",retorno,par);
... ... @@ -462,7 +462,7 @@ i3GEO.php = {
462 462 par = "funcao=inserefeature&pin="+pin+"&tipo=ANNOTATION&xy="+xy+"&texto="+texto+"&position="+position+"&partials="+partials+"&offsetx="+offsetx+"&offsety="+offsety+"&minfeaturesize="+minfeaturesize+"&mindistance="+mindistance+"&force="+force+"&shadowcolor="+shadowcolor+"&shadowsizex="+shadowsizex+"&shadowsizey="+shadowsizey+"&outlinecolor="+outlinecolor+"&cor="+cor+"&sombray="+sombray+"&sombrax="+sombrax+"&sombra="+sombra+"&fundo="+fundo+"&angulo="+angulo+"&tamanho="+tamanho+"&fonte="+fonte+"&g_sid="+i3GEO.configura.sid,
463 463 retorno = function(retorno){
464 464 i3GEO.janela.fechaAguarde("insereAnnotation");
465   - funcao.call(retorno);
  465 + funcao.call(funcao,retorno);
466 466 };
467 467 i3GEO.janela.abreAguarde("insereAnnotation",$trad("o1"));
468 468 cpJSON.call(p,"inserefeature",retorno,par);
... ... @@ -489,7 +489,7 @@ i3GEO.php = {
489 489 par = "funcao=recuperamapa&g_sid="+i3GEO.configura.sid,
490 490 retorno = function(retorno){
491 491 i3GEO.janela.fechaAguarde("recuperamapa");
492   - funcao.call(retorno);
  492 + funcao.call(funcao,retorno);
493 493 };
494 494 i3GEO.janela.abreAguarde("recuperamapa",$trad("o1"));
495 495 cpJSON.call(p,"recuperamapa",retorno,par);
... ... @@ -583,7 +583,7 @@ i3GEO.php = {
583 583 if(i3GEO.Interface.ATUAL === "googlemaps"){
584 584 i3GEO.Interface.googlemaps.pan2ponto(x,y);
585 585 }
586   - funcao.call(retorno);
  586 + funcao.call(funcao,retorno);
587 587 },
588 588 p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php",
589 589 par = "funcao=zoomponto&pin=pin&xy="+x+" "+y+"&g_sid="+i3GEO.configura.sid+"&marca="+simbolo+"&tamanho="+tamanho+"&cor="+cor;
... ... @@ -641,7 +641,7 @@ i3GEO.php = {
641 641 break;
642 642 }
643 643 try{
644   - funcao.call(retorno);
  644 + funcao.call(funcao,retorno);
645 645 }
646 646 catch(e){}
647 647 };
... ... @@ -660,7 +660,7 @@ i3GEO.php = {
660 660 par = "funcao=mudaescala&escala="+escala+"&g_sid="+i3GEO.configura.sid+"&tipoimagem="+i3GEO.configura.tipoimagem,
661 661 retorno = function(retorno){
662 662 i3GEO.janela.fechaAguarde("mudaescala");
663   - funcao.call(retorno);
  663 + funcao.call(funcao,retorno);
664 664 };
665 665 i3GEO.janela.abreAguarde("mudaescala",$trad("o1"));
666 666 cpJSON.call(p,"mudaescala",retorno,par);
... ... @@ -687,7 +687,7 @@ i3GEO.php = {
687 687 par = "funcao=geradestaque&tema="+tema+"&g_sid="+i3GEO.configura.sid+"&ext="+ext,
688 688 retorno = function(retorno){
689 689 i3GEO.janela.fechaAguarde("geradestaque");
690   - funcao.call(retorno);
  690 + funcao.call(funcao,retorno);
691 691 };
692 692 i3GEO.janela.abreAguarde("geradestaque",$trad("o1"));
693 693 cpJSON.call(p,"geradestaque",retorno,par);
... ... @@ -758,7 +758,7 @@ i3GEO.php = {
758 758 par = "funcao=sobetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
759 759 retorno = function(retorno){
760 760 i3GEO.janela.fechaAguarde("sobetema");
761   - funcao.call(retorno);
  761 + funcao.call(funcao,retorno);
762 762 };
763 763 i3GEO.janela.abreAguarde("sobetema",$trad("o1"));
764 764 cpJSON.call(p,"sobetema",retorno,par);
... ... @@ -774,7 +774,7 @@ i3GEO.php = {
774 774 par = "funcao=descetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
775 775 retorno = function(retorno){
776 776 i3GEO.janela.fechaAguarde("descetema");
777   - funcao.call(retorno);
  777 + funcao.call(funcao,retorno);
778 778 };
779 779 i3GEO.janela.abreAguarde("descetema",$trad("o1"));
780 780 cpJSON.call(p,"descetema",retorno,par);
... ... @@ -790,7 +790,7 @@ i3GEO.php = {
790 790 par = "funcao=fontetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
791 791 retorno = function(retorno){
792 792 i3GEO.janela.fechaAguarde("fontetema");
793   - funcao.call(retorno);
  793 + funcao.call(funcao,retorno);
794 794 };
795 795 i3GEO.janela.abreAguarde("fontetema",$trad("o1"));
796 796 cpJSON.call(p,"fontetema",retorno,par);
... ... @@ -872,7 +872,7 @@ i3GEO.php = {
872 872 par = "funcao=limpasel&tema="+tema+"&g_sid="+i3GEO.configura.sid,
873 873 retorno = function(retorno){
874 874 i3GEO.janela.fechaAguarde("limpasel");
875   - funcao.call(retorno);
  875 + funcao.call(funcao,retorno);
876 876 };
877 877 i3GEO.janela.abreAguarde("limpasel",$trad("o1"));
878 878 cpJSON.call(p,"limpasel",retorno,par);
... ... @@ -888,7 +888,7 @@ i3GEO.php = {
888 888 par = "funcao=invertestatuslegenda&tema="+tema+"&g_sid="+i3GEO.configura.sid,
889 889 retorno = function(retorno){
890 890 i3GEO.janela.fechaAguarde("invertestatuslegenda");
891   - funcao.call(retorno);
  891 + funcao.call(funcao,retorno);
892 892 };
893 893 i3GEO.janela.abreAguarde("invertestatuslegenda",$trad("o1"));
894 894 cpJSON.call(p,"invertestatuslegenda",retorno,par);
... ... @@ -904,7 +904,7 @@ i3GEO.php = {
904 904 par = "funcao=alteraclasse&opcao=alteracor&tema="+idtema+"&idclasse="+idclasse+"&cor="+rgb+"&g_sid="+i3GEO.configura.sid,
905 905 retorno = function(retorno){
906 906 i3GEO.janela.fechaAguarde("aplicaCorClasseTema");
907   - funcao.call(retorno);
  907 + funcao.call(funcao,retorno);
908 908 };
909 909 i3GEO.janela.abreAguarde("aplicaCorClasseTema",$trad("o1"));
910 910 cpJSON.call(p,"aplicaCorClasseTema",retorno,par);
... ... @@ -920,7 +920,7 @@ i3GEO.php = {
920 920 par = "funcao=mudatransp&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid,
921 921 retorno = function(retorno){
922 922 i3GEO.janela.fechaAguarde("mudatransp");
923   - funcao.call(retorno);
  923 + funcao.call(funcao,retorno);
924 924 };
925 925 i3GEO.janela.abreAguarde("mudatransp",$trad("o1"));
926 926 cpJSON.call(p,"mudatransp",retorno,par);
... ... @@ -936,7 +936,7 @@ i3GEO.php = {
936 936 par = "funcao=mudanome&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid,
937 937 retorno = function(retorno){
938 938 i3GEO.janela.fechaAguarde("mudanome");
939   - funcao.call(retorno);
  939 + funcao.call(funcao,retorno);
940 940 };
941 941 i3GEO.janela.abreAguarde("mudanome",$trad("o1"));
942 942 cpJSON.call(p,"mudanome",retorno,par);
... ... @@ -967,7 +967,7 @@ i3GEO.php = {
967 967 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaSHP&arq="+path,
968 968 retorno = function(retorno){
969 969 i3GEO.janela.fechaAguarde("adicionaTemaSHP");
970   - funcao.call(retorno);
  970 + funcao.call(funcao,retorno);
971 971 };
972 972 i3GEO.janela.abreAguarde("adicionaTemaSHP",$trad("o1"));
973 973 cpJSON.call(p,"adicionaTemaSHP",retorno,par);
... ... @@ -983,7 +983,7 @@ i3GEO.php = {
983 983 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaIMG&arq="+path,
984 984 retorno = function(retorno){
985 985 i3GEO.janela.fechaAguarde("adicionaTemaIMG");
986   - funcao.call(retorno);
  986 + funcao.call(funcao,retorno);
987 987 };
988 988 i3GEO.janela.abreAguarde("adicionaTemaIMG",$trad("o1"));
989 989 cpJSON.call(p,"adicionaTemaIMG",retorno,par);
... ... @@ -1037,7 +1037,7 @@ i3GEO.php = {
1037 1037 par = "funcao=reiniciaMapa&g_sid="+i3GEO.configura.sid,
1038 1038 retorno = function(retorno){
1039 1039 i3GEO.janela.fechaAguarde("reiniciaMapa");
1040   - funcao.call(retorno);
  1040 + funcao.call(funcao,retorno);
1041 1041 };
1042 1042 i3GEO.janela.abreAguarde("reiniciaMapa",$trad("o1"));
1043 1043 cpJSON.call(p,"reiniciaMapa",retorno,par);
... ... @@ -1053,7 +1053,7 @@ i3GEO.php = {
1053 1053 par = "funcao=procurartemas&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL,
1054 1054 retorno = function(retorno){
1055 1055 i3GEO.janela.fechaAguarde("procurartemas");
1056   - funcao.call(retorno);
  1056 + funcao.call(funcao,retorno);
1057 1057 };
1058 1058 i3GEO.janela.abreAguarde("procurartemas",$trad("o1"));
1059 1059 cpJSON.call(p,"procurartemas",retorno,par);
... ... @@ -1072,7 +1072,7 @@ i3GEO.php = {
1072 1072 par = "funcao=procurartemas2&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL,
1073 1073 retorno = function(retorno){
1074 1074 i3GEO.janela.fechaAguarde("procurartemas");
1075   - funcao.call(retorno);
  1075 + funcao.call(funcao,retorno);
1076 1076 };
1077 1077 i3GEO.janela.abreAguarde("procurartemas",$trad("o1"));
1078 1078 cpJSON.call(p,"procurartemas",retorno,par);
... ... @@ -1091,7 +1091,7 @@ i3GEO.php = {
1091 1091 par = "funcao=procurartemasestrela&map_file=&nivel="+nivel+"&fatorestrela="+fatorestrela+"&idioma="+i3GEO.idioma.ATUAL,
1092 1092 retorno = function(retorno){
1093 1093 i3GEO.janela.fechaAguarde("procurartemasestrela");
1094   - funcao.call(retorno);
  1094 + funcao.call(funcao,retorno);
1095 1095 };
1096 1096 i3GEO.janela.abreAguarde("procurartemasestrela",$trad("o1"));
1097 1097 cpJSON.call(p,"foo",retorno,par);
... ... @@ -1112,7 +1112,7 @@ i3GEO.php = {
1112 1112 par = "funcao=adtema&temas="+temas+"&g_sid="+sid,
1113 1113 retorno = function(retorno){
1114 1114 i3GEO.janela.fechaAguarde("adtema");
1115   - funcao.call(retorno);
  1115 + funcao.call(funcao,retorno);
1116 1116 };
1117 1117 i3GEO.janela.abreAguarde("adtema",$trad("o1"));
1118 1118 cpJSON.call(p,"adtema",retorno,par);
... ... @@ -1139,7 +1139,7 @@ i3GEO.php = {
1139 1139 par = "funcao=googlemaps&g_sid="+i3GEO.configura.sid,
1140 1140 retorno = function(retorno){
1141 1141 i3GEO.janela.fechaAguarde("googlemaps");
1142   - funcao.call(retorno);
  1142 + funcao.call(funcao,retorno);
1143 1143 };
1144 1144 i3GEO.janela.abreAguarde("googlemaps",$trad("o1"));
1145 1145 cpJSON.call(p,"googlemaps",retorno,par);
... ... @@ -1155,7 +1155,7 @@ i3GEO.php = {
1155 1155 par = "funcao=googleearth&g_sid="+i3GEO.configura.sid,
1156 1156 retorno = function(retorno){
1157 1157 i3GEO.janela.fechaAguarde("googleearth");
1158   - funcao.call(retorno);
  1158 + funcao.call(funcao,retorno);
1159 1159 };
1160 1160 i3GEO.janela.abreAguarde("googleearth",$trad("o1"));
1161 1161 cpJSON.call(p,"googleearth",retorno,par);
... ... @@ -1171,7 +1171,7 @@ i3GEO.php = {
1171 1171 par = "funcao=openlayers&g_sid="+i3GEO.configura.sid,
1172 1172 retorno = function(retorno){
1173 1173 i3GEO.janela.fechaAguarde("openlayers");
1174   - funcao.call(retorno);
  1174 + funcao.call(funcao,retorno);
1175 1175 };
1176 1176 i3GEO.janela.abreAguarde("openlayers",$trad("o1"));
1177 1177 cpJSON.call(p,"openlayers",retorno,par);
... ... @@ -1203,7 +1203,7 @@ i3GEO.php = {
1203 1203 par = "funcao=converte2googlemaps&g_sid="+i3GEO.configura.sid,
1204 1204 retorno = function(retorno){
1205 1205 i3GEO.janela.fechaAguarde("converte2googlemaps");
1206   - funcao.call(retorno);
  1206 + funcao.call(funcao,retorno);
1207 1207 };
1208 1208 i3GEO.janela.abreAguarde("converte2googlemaps",$trad("o1"));
1209 1209 cpJSON.call(p,"converte2googlemaps",retorno,par);
... ... @@ -1219,7 +1219,7 @@ i3GEO.php = {
1219 1219 par = "funcao=converte2openlayers&g_sid="+i3GEO.configura.sid,
1220 1220 retorno = function(retorno){
1221 1221 i3GEO.janela.fechaAguarde("converte2openlayers");
1222   - funcao.call(retorno);
  1222 + funcao.call(funcao,retorno);
1223 1223 };
1224 1224 i3GEO.janela.abreAguarde("converte2openlayers",$trad("o1"));
1225 1225 cpJSON.call(p,"converte2openlayers",retorno,par);
... ... @@ -1363,7 +1363,7 @@ i3GEO.php = {
1363 1363 par = "g_sid="+i3GEO.configura.sid+"&funcao=criatemasel&tema="+tema+"&nome=Novo tema "+tema,
1364 1364 retorno = function(retorno){
1365 1365 i3GEO.janela.fechaAguarde("criatemaSel");
1366   - funcao.call(retorno);
  1366 + funcao.call(funcao,retorno);
1367 1367 };
1368 1368 i3GEO.janela.abreAguarde("criatemaSel",$trad("o1"));
1369 1369 cpJSON.call(p,"chavegoogle",retorno,par);
... ...