Commit 88f3d8dcc416b3de3b9b7c4dcfea56d5ec1e8296
1 parent
4ab45ba4
Exists in
master
and in
7 other branches
Uniformização do uso de exemple.container nos javascripts do sistema de administ…
…ração, passando a usar admin.container
Showing
27 changed files
with
214 additions
and
435 deletions
Show diff stats
admin/js/admin.js
@@ -1,210 +0,0 @@ | @@ -1,210 +0,0 @@ | ||
1 | -// | ||
2 | -//usado apenas no importador de xml | ||
3 | -// | ||
4 | -//variáveis globais | ||
5 | -navn = false; | ||
6 | -navm = false; | ||
7 | -//seta as variáveis navn e navm | ||
8 | -app = navigator.appName.substring(0,1); | ||
9 | -if (app==='N'){navn=true;}else{navm=true;} | ||
10 | - | ||
11 | -$mensagemAguarde = "<img src='../../imagens/aguarde.gif' />";//"<span style=color:red ><p>Aguarde...</p></span>" | ||
12 | -$i = function(i) | ||
13 | -{return document.getElementById(i);}; | ||
14 | -cPaint = new cpaint(); | ||
15 | -cPaint.set_async("true"); | ||
16 | -cPaint.set_response_type("JSON"); | ||
17 | -function ativaIndice(onde) | ||
18 | -{ | ||
19 | - var f = document.getElementsByTagName("fieldset"); | ||
20 | - for(var t = 0;t < f.length;t++) | ||
21 | - {} | ||
22 | - var etrs = document.getElementsByTagName("legend"); | ||
23 | - var ins = "<fieldset><legend><a name='indice' ><b>Índice</b></a></legend>"; | ||
24 | - for(t = 0;t < etrs.length;t++) | ||
25 | - { | ||
26 | - ins += "<a href='#"+etrs[t].innerHTML+"'><p>"+etrs[t].innerHTML+"</p></a>"; | ||
27 | - etrs[t].innerHTML = "<a name='"+etrs[t].innerHTML+"'>"+etrs[t].innerHTML+"</a>"; | ||
28 | - | ||
29 | - } | ||
30 | - document.getElementById(onde).innerHTML = ins+"</fieldset>"; | ||
31 | -} | ||
32 | -function ativaTR() | ||
33 | -{ | ||
34 | - var etrs = document.getElementsByTagName("tr"); | ||
35 | - for(var t = 0;t < etrs.length;t++) | ||
36 | - { | ||
37 | - etrs[t].onmouseover = function() | ||
38 | - {this.style.backgroundColor = "beige";}; | ||
39 | - etrs[t].onmouseout = function() | ||
40 | - {this.style.backgroundColor = "";}; | ||
41 | - } | ||
42 | -} | ||
43 | -function ativaLegenda() | ||
44 | -{ | ||
45 | - var etrs = document.getElementsByTagName("legend"); | ||
46 | - for(var t = 0;t < etrs.length;t++) | ||
47 | - { | ||
48 | - etrs[t].innerHTML = "<img src='../imagens/desce.gif' id='img_"+t+"' > " + etrs[t].innerHTML; | ||
49 | - etrs[t].onclick = function() | ||
50 | - { | ||
51 | - var c = this.parentNode.childNodes; | ||
52 | - for(var h = 0;h < c.length;h++) | ||
53 | - { | ||
54 | - if(c[h].style && c[h].tagName != "LEGEND") | ||
55 | - { | ||
56 | - var i = this.getElementsByTagName("img"); | ||
57 | - if(c[h].style.display=="none"){ | ||
58 | - c[h].style.display="block"; | ||
59 | - i[0].src = '../imagens/sobe.gif'; | ||
60 | - } | ||
61 | - else{ | ||
62 | - c[h].style.display="none"; | ||
63 | - i[0].src = '../imagens/desce.gif'; | ||
64 | - } | ||
65 | - } | ||
66 | - } | ||
67 | - }; | ||
68 | - } | ||
69 | -} | ||
70 | -function abre(url) | ||
71 | -{ | ||
72 | - window.location.href = url; | ||
73 | -} | ||
74 | -function verificaEditores() | ||
75 | -{ | ||
76 | - var retorna = function(retorno) | ||
77 | - { | ||
78 | - if(retorno.data=="nao") | ||
79 | - {document.body.innerHTML += "<p style=color:red >Você não está cadastrado como um editor";return;} | ||
80 | - montaParametros(); | ||
81 | - }; | ||
82 | - var p = "../php/mapfiles.php?funcao=verificaEditores"; | ||
83 | - cPaint.call(p,"",retorna); | ||
84 | -} | ||
85 | -function combosimnao(marcar) | ||
86 | -{ | ||
87 | - var ins = "<option value='' "; | ||
88 | - if (marcar == ""){ins += "selected";} | ||
89 | - ins += ">---</option>"; | ||
90 | - ins += "<option value='SIM' "; | ||
91 | - if (marcar == "sim" || marcar == "SIM"){ins += "selected";} | ||
92 | - ins += ">sim</option>"; | ||
93 | - ins += "<option value='NAO' "; | ||
94 | - if (marcar == "nao" || marcar == "NAO"){ins += "selected";} | ||
95 | - ins += ">nao</option>"; | ||
96 | - return(ins); | ||
97 | -} | ||
98 | -function combolista(lista,marcar) | ||
99 | -{ | ||
100 | - var ins = "<option value='' "; | ||
101 | - if (marcar == ""){ins += "selected";} | ||
102 | - ins += ">---</option>"; | ||
103 | - for (var k=0;k<lista.length;k++) | ||
104 | - { | ||
105 | - ins += "<option value='"+lista[k]+"' "; | ||
106 | - if (marcar == lista[k] || marcar == lista[k].toLowerCase()){ins += "selected";} | ||
107 | - ins += ">"+lista[k]+"</option>"; | ||
108 | - } | ||
109 | - return(ins); | ||
110 | -} | ||
111 | -function comboObjeto(obj,valor,texto,marcar) | ||
112 | -{ | ||
113 | - var ins = "<option value='' "; | ||
114 | - //if (marcar == ""){ins += "selected"} | ||
115 | - ins += ">---</option>"; | ||
116 | - for (var k=0;k<obj.length;k++) | ||
117 | - { | ||
118 | - var v = eval("obj[k]."+valor); | ||
119 | - var t = eval("obj[k]."+texto); | ||
120 | - ins += "<option value='"+v+"' "; | ||
121 | - if (marcar == v){ins += "selected";} | ||
122 | - ins += ">"+t+"</option>"; | ||
123 | - } | ||
124 | - return(ins); | ||
125 | -} | ||
126 | -function montaCampos() | ||
127 | -{ | ||
128 | - var ins = ""; | ||
129 | - for (var i=0;i<$parametros.simples.length;i++) | ||
130 | - { | ||
131 | - ins += "<fieldset><legend><b>"+$parametros.simples[i].cabeca+"</b></legend>"; | ||
132 | - ins += "<p class=mensagem >"+$parametros.simples[i].mensagem+"</p>"; | ||
133 | - ins += "<table><tr><td><img style=cursor:pointer src=../imagens/02.png title='aplicar' onclick='salva(\""+$parametros.simples[i].variavel+"\")' /></td>"; | ||
134 | - ins += "<td><input type=text size=70 id='"+$parametros.simples[i].variavel+"' /></td></tr></table>"; | ||
135 | - ins += "</fieldset><br>"; | ||
136 | - } | ||
137 | - document.body.innerHTML += ins; | ||
138 | -} | ||
139 | -function geraLinhas(dados,param,ncolunas) | ||
140 | -{ | ||
141 | - var nparam = param.linhas.length; | ||
142 | - var contaParam = 0; | ||
143 | - var resultado = ""; | ||
144 | - do | ||
145 | - { | ||
146 | - var p = param.linhas[contaParam]; | ||
147 | - var idd = eval("dados."+p.id); | ||
148 | - var id; | ||
149 | - var texto; | ||
150 | - if(idd != undefined) | ||
151 | - id = p.prefixoid+idd; | ||
152 | - else | ||
153 | - id = p.prefixoid+p.id; | ||
154 | - var valor = eval("dados."+p.valor); | ||
155 | - var titulo = p.titulo; | ||
156 | - if(p.texto) | ||
157 | - {texto = p.texto;} | ||
158 | - else | ||
159 | - {texto = "";} | ||
160 | - resultado += "<tr colspan='"+ncolunas+"' ><td style='background-color:rgb(250,250,250);' ><b>"+texto+"</b></td></tr>"; | ||
161 | - resultado += "<tr>"; | ||
162 | - resultado += "<td>"+titulo+": </td>"; | ||
163 | - resultado += "<td><input size=60 onchange='this.style.color=\"blue\"' type=text id='"+id+"' value='"+valor+"' /></td>"; | ||
164 | - if(ncolunas = 3) | ||
165 | - resultado += "<td></td>"; | ||
166 | - resultado += "</tr>"; | ||
167 | - contaParam++; | ||
168 | - } | ||
169 | - while(contaParam < nparam) | ||
170 | - return(resultado); | ||
171 | -} | ||
172 | -function geraLinhas2(dados,param,funcao) | ||
173 | -{ | ||
174 | - var nparam = param.linhas.length; | ||
175 | - var contaParam = 0; | ||
176 | - var resultado = ""; | ||
177 | - do | ||
178 | - { | ||
179 | - var p = param.linhas[contaParam]; | ||
180 | - var id; | ||
181 | - var idd = eval("dados."+p.id); | ||
182 | - if(idd != undefined) | ||
183 | - id = p.prefixoid+idd; | ||
184 | - else | ||
185 | - id = p.prefixoid+p.id; | ||
186 | - var valor = eval("dados."+p.valor); | ||
187 | - var titulo = p.titulo; | ||
188 | - var texto; | ||
189 | - if(p.texto) | ||
190 | - {texto = p.texto;} | ||
191 | - else | ||
192 | - {texto = "";} | ||
193 | - resultado += "<br><fieldset><legend>+- "+titulo+"</legend><div style=display:none >"; | ||
194 | - resultado += "<p class=textoAjuda style='background-color:rgb(250,250,250);' >"+texto+"</p>"; | ||
195 | - resultado += "<p>"; | ||
196 | - resultado += "<input size=65 onchange='this.style.color=\"blue\"' type=text id='"+id+"' value='"+valor+"' />"; | ||
197 | - resultado += "<img src=../imagens/02.png style=cursor:pointer title='Aplicar' onclick='"+funcao+"(\""+p.id+"\",\""+p.valor+"\",this)'/>"; | ||
198 | - resultado += "</p></div></fieldset>"; | ||
199 | - contaParam++; | ||
200 | - } | ||
201 | - while(contaParam < nparam) | ||
202 | - return(resultado); | ||
203 | -} | ||
204 | -function registraPerfil(id,perfil) | ||
205 | -{ | ||
206 | - if(perfil == "") | ||
207 | - $i(id).value = perfil; | ||
208 | - else | ||
209 | - $i(id).value = $i(id).value+" "+perfil; | ||
210 | -} | ||
211 | \ No newline at end of file | 0 | \ No newline at end of file |
admin/js/arvore.js
@@ -37,53 +37,48 @@ Arquivo: | @@ -37,53 +37,48 @@ Arquivo: | ||
37 | 37 | ||
38 | i3geo/admin/js/arvore.js | 38 | i3geo/admin/js/arvore.js |
39 | */ | 39 | */ |
40 | -YAHOO.namespace("example.container"); | ||
41 | // | 40 | // |
42 | //obtem os parametros da url | 41 | //obtem os parametros da url |
43 | // | 42 | // |
43 | +YAHOO.namespace("admin.container"); | ||
44 | (function(){ | 44 | (function(){ |
45 | -$id_menu = ""; | ||
46 | -$id_grupo = ""; | ||
47 | -$id_subgrupo = ""; | ||
48 | -try{ | ||
49 | - var u = window.location.href.split("?")[1]; | ||
50 | - u = u.split("&"); | ||
51 | - for(var i=0;i<u.length;i++){ | ||
52 | - var p = u[i].split("="); | ||
53 | - eval("$"+p[0]+"='"+p[1]+"';"); | 45 | + $id_menu = ""; |
46 | + $id_grupo = ""; | ||
47 | + $id_subgrupo = ""; | ||
48 | + try{ | ||
49 | + var i,p,u = window.location.href.split("?")[1]; | ||
50 | + u = u.split("&"); | ||
51 | + for(i=0;i<u.length;i++){ | ||
52 | + p = u[i].split("="); | ||
53 | + eval("$"+p[0]+"='"+p[1]+"';"); | ||
54 | + } | ||
54 | } | 55 | } |
55 | -} | ||
56 | -catch(e){} | 56 | + catch(e){} |
57 | })(); | 57 | })(); |
58 | /* | 58 | /* |
59 | Function: initMenu | 59 | Function: initMenu |
60 | 60 | ||
61 | Inicializa a �rvore | 61 | Inicializa a �rvore |
62 | */ | 62 | */ |
63 | -function initMenu() | ||
64 | -{ | ||
65 | - var editorDeMenus = function() | ||
66 | - { | ||
67 | - if($i("editor_bd")){return;} | ||
68 | - core_montaEditor("","600px","500px","pegaMenus","Menu"); | ||
69 | - $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoMenu value="Adicionar um novo menu" style="left:-5px;" /><br><br><div id="tabela" style="left:-5px;"> </div>'; | ||
70 | - initEditorMenu(); | ||
71 | - }; | ||
72 | - var editorDeGrupos = function() | ||
73 | - { | ||
74 | - if($i("editor_bd")){return;} | ||
75 | - core_montaEditor("","600px","500px","","Grupos"); | ||
76 | - $i("editor_bd").innerHTML = '<p class=paragrafo >Clique nas células da tabela para editar a característica de cada item. Finalize com "enter". Após editar, salve o item.</p><p class=paragrafo ><input type=button id=adicionaNovoGrupo value="Adicionar um novo grupo" style="left:-5px;" /></p><p><br><div id="tabela" style="left:-5px;"> </div>'; | ||
77 | - initEditorGrupos(); | ||
78 | - }; | ||
79 | - var editorDeSubGrupos = function() | ||
80 | - { | ||
81 | - if($i("editor_bd")){return;} | ||
82 | - core_montaEditor("","600px","500px","","Subgrupos"); | ||
83 | - $i("editor_bd").innerHTML = '<p class=paragrafo >Clique nas c�lulas da tabela para editar a caracter�stica de cada item. Finalize com "enter". Ap�s editar, salve o item.</p><p class=paragrafo ><input type=button id=adicionaNovoSubGrupo value="Adicionar um novo sub-grupo" style="left:-5px;" /></p><br><div id="tabela" style="left:-5px;"> </div>'; | ||
84 | - initEditorSubGrupos(); | ||
85 | - }; | ||
86 | - | 63 | +function initMenu(){ |
64 | + var editorDeMenus = function() { | ||
65 | + if($i("editor_bd")){return;} | ||
66 | + core_montaEditor("","600px","500px","pegaMenus","Menu"); | ||
67 | + $i("editor_bd").innerHTML = '<input type=button id=adicionaNovoMenu value="Adicionar um novo menu" style="left:-5px;" /><br><br><div id="tabela" style="left:-5px;"> </div>'; | ||
68 | + initEditorMenu(); | ||
69 | + }, | ||
70 | + editorDeGrupos = function(){ | ||
71 | + if($i("editor_bd")){return;} | ||
72 | + core_montaEditor("","600px","500px","","Grupos"); | ||
73 | + $i("editor_bd").innerHTML = '<p class=paragrafo >Clique nas células da tabela para editar a característica de cada item. Finalize com "enter". Após editar, salve o item.</p><p class=paragrafo ><input type=button id=adicionaNovoGrupo value="Adicionar um novo grupo" style="left:-5px;" /></p><p><br><div id="tabela" style="left:-5px;"> </div>'; | ||
74 | + initEditorGrupos(); | ||
75 | + }, | ||
76 | + editorDeSubGrupos = function() { | ||
77 | + if($i("editor_bd")){return;} | ||
78 | + core_montaEditor("","600px","500px","","Subgrupos"); | ||
79 | + $i("editor_bd").innerHTML = '<p class=paragrafo >Clique nas c�lulas da tabela para editar a caracter�stica de cada item. Finalize com "enter". Ap�s editar, salve o item.</p><p class=paragrafo ><input type=button id=adicionaNovoSubGrupo value="Adicionar um novo sub-grupo" style="left:-5px;" /></p><br><div id="tabela" style="left:-5px;"> </div>'; | ||
80 | + initEditorSubGrupos(); | ||
81 | + }; | ||
87 | new YAHOO.widget.Button("botaoEditorMenu",{ onclick: { fn: editorDeMenus } }); | 82 | new YAHOO.widget.Button("botaoEditorMenu",{ onclick: { fn: editorDeMenus } }); |
88 | new YAHOO.widget.Button("botaoEditorGrupo",{ onclick: { fn: editorDeGrupos } }); | 83 | new YAHOO.widget.Button("botaoEditorGrupo",{ onclick: { fn: editorDeGrupos } }); |
89 | new YAHOO.widget.Button("botaoEditorSubGrupo",{ onclick: { fn: editorDeSubGrupos } }); | 84 | new YAHOO.widget.Button("botaoEditorSubGrupo",{ onclick: { fn: editorDeSubGrupos } }); |
@@ -102,7 +97,7 @@ Obt�m a lista de menus e monta os n�s principais da �rvore | @@ -102,7 +97,7 @@ Obt�m a lista de menus e monta os n�s principais da �rvore | ||
102 | function pegaMenus() | 97 | function pegaMenus() |
103 | { | 98 | { |
104 | try | 99 | try |
105 | - {YAHOO.util.Event.removeListener(YAHOO.example.container.panelEditor.close, "click");} | 100 | + {YAHOO.util.Event.removeListener(YAHOO.admin.container.panelEditor.close, "click");} |
106 | catch(e){} | 101 | catch(e){} |
107 | core_pegaDados("buscando menus...","../php/menutemas.php?funcao=pegaMenus2&idioma="+idiomaSel(),"montaArvore"); | 102 | core_pegaDados("buscando menus...","../php/menutemas.php?funcao=pegaMenus2&idioma="+idiomaSel(),"montaArvore"); |
108 | } | 103 | } |
@@ -115,8 +110,7 @@ Monta a �rvore de temas | @@ -115,8 +110,7 @@ Monta a �rvore de temas | ||
115 | */ | 110 | */ |
116 | function montaArvore(dados) | 111 | function montaArvore(dados) |
117 | { | 112 | { |
118 | - | ||
119 | - YAHOO.example.treeExample = new function() | 113 | + YAHOO.tree = new function() |
120 | { | 114 | { |
121 | tree = ""; | 115 | tree = ""; |
122 | function changeIconMode() | 116 | function changeIconMode() |
@@ -810,12 +804,9 @@ function gravaDados(tipo,id) | @@ -810,12 +804,9 @@ function gravaDados(tipo,id) | ||
810 | { | 804 | { |
811 | if(tipo == "grupo") | 805 | if(tipo == "grupo") |
812 | { | 806 | { |
813 | - var obj = document.getElementById("Eid_grupo"); | ||
814 | var texto = obj.options[obj.selectedIndex].text; | 807 | var texto = obj.options[obj.selectedIndex].text; |
815 | - | ||
816 | var objpub = document.getElementById("Epublicado"); | 808 | var objpub = document.getElementById("Epublicado"); |
817 | var publicado = objpub.options[objpub.selectedIndex].value; | 809 | var publicado = objpub.options[objpub.selectedIndex].value; |
818 | - | ||
819 | var no = tree.getNodeByProperty("id_n1",id); | 810 | var no = tree.getNodeByProperty("id_n1",id); |
820 | no.getContentEl().getElementsByTagName("span")[0].innerHTML = texto; | 811 | no.getContentEl().getElementsByTagName("span")[0].innerHTML = texto; |
821 | 812 | ||
@@ -828,7 +819,6 @@ function gravaDados(tipo,id) | @@ -828,7 +819,6 @@ function gravaDados(tipo,id) | ||
828 | } | 819 | } |
829 | if(tipo == "subgrupo") | 820 | if(tipo == "subgrupo") |
830 | { | 821 | { |
831 | - var obj = document.getElementById("Eid_subgrupo"); | ||
832 | var texto = obj.options[obj.selectedIndex].text; | 822 | var texto = obj.options[obj.selectedIndex].text; |
833 | 823 | ||
834 | var objpub = document.getElementById("Epublicado"); | 824 | var objpub = document.getElementById("Epublicado"); |
@@ -846,7 +836,6 @@ function gravaDados(tipo,id) | @@ -846,7 +836,6 @@ function gravaDados(tipo,id) | ||
846 | } | 836 | } |
847 | if(tipo == "tema") | 837 | if(tipo == "tema") |
848 | { | 838 | { |
849 | - var obj = document.getElementById("Eid_tema"); | ||
850 | var texto = obj.options[obj.selectedIndex].text; | 839 | var texto = obj.options[obj.selectedIndex].text; |
851 | 840 | ||
852 | var objpub = document.getElementById("Epublicado"); | 841 | var objpub = document.getElementById("Epublicado"); |
@@ -865,7 +854,6 @@ function gravaDados(tipo,id) | @@ -865,7 +854,6 @@ function gravaDados(tipo,id) | ||
865 | } | 854 | } |
866 | if(tipo == "raizmenu" || tipo == "raizgrupo") | 855 | if(tipo == "raizmenu" || tipo == "raizgrupo") |
867 | { | 856 | { |
868 | - var obj = document.getElementById("Eid_tema"); | ||
869 | var texto = obj.options[obj.selectedIndex].text; | 857 | var texto = obj.options[obj.selectedIndex].text; |
870 | var no = tree.getNodeByProperty("id_raiz",id); | 858 | var no = tree.getNodeByProperty("id_raiz",id); |
871 | no.getContentEl().getElementsByTagName("span")[0].innerHTML = texto; | 859 | no.getContentEl().getElementsByTagName("span")[0].innerHTML = texto; |
@@ -873,8 +861,8 @@ function gravaDados(tipo,id) | @@ -873,8 +861,8 @@ function gravaDados(tipo,id) | ||
873 | } | 861 | } |
874 | core_carregando("desativa"); | 862 | core_carregando("desativa"); |
875 | } | 863 | } |
876 | - YAHOO.example.container.panelEditor.destroy(); | ||
877 | - YAHOO.example.container.panelEditor = null; | 864 | + YAHOO.admin.container.panelEditor.destroy(); |
865 | + YAHOO.admin.container.panelEditor = null; | ||
878 | } | 866 | } |
879 | catch(e){core_handleFailure(e,o.responseText);} | 867 | catch(e){core_handleFailure(e,o.responseText);} |
880 | }, | 868 | }, |
admin/js/atlas.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/atlas.js | 30 | i3geo/admin/js/atlas.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -568,8 +568,8 @@ function gravaDados(tipo,id) | @@ -568,8 +568,8 @@ function gravaDados(tipo,id) | ||
568 | } | 568 | } |
569 | core_carregando("desativa"); | 569 | core_carregando("desativa"); |
570 | } | 570 | } |
571 | - YAHOO.example.container.panelEditor.destroy(); | ||
572 | - YAHOO.example.container.panelEditor = null; | 571 | + YAHOO.admin.container.panelEditor.destroy(); |
572 | + YAHOO.admin.container.panelEditor = null; | ||
573 | } | 573 | } |
574 | catch(e){core_handleFailure(e,o.responseText);} | 574 | catch(e){core_handleFailure(e,o.responseText);} |
575 | }, | 575 | }, |
admin/js/core.js
@@ -304,14 +304,14 @@ function core_handleFailure(o,texto) | @@ -304,14 +304,14 @@ function core_handleFailure(o,texto) | ||
304 | log.innerHTML += "<li>PHP message: " + texto + "</li></ul>"; | 304 | log.innerHTML += "<li>PHP message: " + texto + "</li></ul>"; |
305 | } | 305 | } |
306 | } | 306 | } |
307 | - if (!YAHOO.example.container.wait) | 307 | + if (!YAHOO.carregando.container.wait) |
308 | { | 308 | { |
309 | - YAHOO.example.container.wait = new YAHOO.widget.Panel("wait",{width: "240px",fixedcenter: true,close: true,draggable: false,zindex:4,modal: true,visible: false}); | ||
310 | - YAHOO.example.container.wait.setHeader("Aguarde..."); | ||
311 | - YAHOO.example.container.wait.render(document.body); | 309 | + YAHOO.carregando.container.wait = new YAHOO.widget.Panel("wait",{width: "240px",fixedcenter: true,close: true,draggable: false,zindex:4,modal: true,visible: false}); |
310 | + YAHOO.carregando.container.wait.setHeader("Aguarde..."); | ||
311 | + YAHOO.carregando.container.wait.render(document.body); | ||
312 | } | 312 | } |
313 | else | 313 | else |
314 | - {YAHOO.example.container.wait.setBody(log.innerHTML);} | 314 | + {YAHOO.carregando.container.wait.setBody(log.innerHTML);} |
315 | } | 315 | } |
316 | /* | 316 | /* |
317 | Function: core_makeRequest | 317 | Function: core_makeRequest |
@@ -359,22 +359,23 @@ tipo - ativa|desativa|string com uma mensagem | @@ -359,22 +359,23 @@ tipo - ativa|desativa|string com uma mensagem | ||
359 | */ | 359 | */ |
360 | function core_carregando(tipo) | 360 | function core_carregando(tipo) |
361 | { | 361 | { |
362 | - if (!YAHOO.example.container.wait) | 362 | + YAHOO.namespace("carregando.container"); |
363 | + if (!YAHOO.carregando.container.wait) | ||
363 | { | 364 | { |
364 | - YAHOO.example.container.wait = new YAHOO.widget.Panel("wait",{width: "240px",fixedcenter: true,close: true,draggable: false,zindex:4,modal: true,visible: false}); | ||
365 | - YAHOO.example.container.wait.setHeader("Aguarde..."); | ||
366 | - YAHOO.example.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/>"); | ||
367 | - YAHOO.example.container.wait.render(document.body); | 365 | + YAHOO.carregando.container.wait = new YAHOO.widget.Panel("wait",{width: "240px",fixedcenter: true,close: true,draggable: false,zindex:4,modal: true,visible: false}); |
366 | + YAHOO.carregando.container.wait.setHeader("Aguarde..."); | ||
367 | + YAHOO.carregando.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/>"); | ||
368 | + YAHOO.carregando.container.wait.render(document.body); | ||
368 | } | 369 | } |
369 | else | 370 | else |
370 | - {YAHOO.example.container.wait.show();} | ||
371 | - YAHOO.example.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/>"); | 371 | + {YAHOO.carregando.container.wait.show();} |
372 | + YAHOO.carregando.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/>"); | ||
372 | if(tipo == "ativa") | 373 | if(tipo == "ativa") |
373 | - {YAHOO.example.container.wait.show();} | 374 | + {YAHOO.carregando.container.wait.show();} |
374 | if(tipo == "desativa") | 375 | if(tipo == "desativa") |
375 | - {YAHOO.example.container.wait.hide();} | 376 | + {YAHOO.carregando.container.wait.hide();} |
376 | if(tipo != "ativa" && tipo != "desativa") | 377 | if(tipo != "ativa" && tipo != "desativa") |
377 | - {YAHOO.example.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/> "+tipo);} | 378 | + {YAHOO.carregando.container.wait.setBody("<img src=\"../../imagens/aguarde.gif\"/> "+tipo);} |
378 | } | 379 | } |
379 | /* | 380 | /* |
380 | Function: core_dialogoContinua | 381 | Function: core_dialogoContinua |
@@ -465,15 +466,15 @@ botao - id do elemento que dever&aacute; ser lcicado para abrir o painel | @@ -465,15 +466,15 @@ botao - id do elemento que dever&aacute; ser lcicado para abrir o painel | ||
465 | function core_ativaPainelAjuda(id,botao) | 466 | function core_ativaPainelAjuda(id,botao) |
466 | { | 467 | { |
467 | $i(id).style.display = "block"; | 468 | $i(id).style.display = "block"; |
468 | - if(!YAHOO.example.container.panelAjuda) | 469 | + if(!YAHOO.admin.container.panelAjuda) |
469 | { | 470 | { |
470 | - YAHOO.example.container.panelAjuda = new YAHOO.widget.Panel(id, { width:"350px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
471 | - YAHOO.example.container.panelAjuda.render(); | 471 | + YAHOO.admin.container.panelAjuda = new YAHOO.widget.Panel(id, { width:"350px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); |
472 | + YAHOO.admin.container.panelAjuda.render(); | ||
472 | } | 473 | } |
473 | if(arguments.length == 2) | 474 | if(arguments.length == 2) |
474 | - YAHOO.util.Event.addListener(botao, "click", YAHOO.example.container.panelAjuda.show, YAHOO.example.container.panelAjuda, true); | 475 | + YAHOO.util.Event.addListener(botao, "click", YAHOO.admin.container.panelAjuda.show, YAHOO.admin.container.panelAjuda, true); |
475 | else | 476 | else |
476 | - YAHOO.example.container.panelAjuda.show(); | 477 | + YAHOO.admin.container.panelAjuda.show(); |
477 | } | 478 | } |
478 | /* | 479 | /* |
479 | Function: core_ativaPainelTexto | 480 | Function: core_ativaPainelTexto |
@@ -484,9 +485,9 @@ id - id do elemento que receber&aacute; o painel | @@ -484,9 +485,9 @@ id - id do elemento que receber&aacute; o painel | ||
484 | */ | 485 | */ |
485 | function core_ativaPainelTexto(id) | 486 | function core_ativaPainelTexto(id) |
486 | { | 487 | { |
487 | - YAHOO.example.container.panelTexto = new YAHOO.widget.Panel(id, { width:"350px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
488 | - YAHOO.example.container.panelTexto.render(); | ||
489 | - YAHOO.example.container.panelTexto.show(); | 488 | + YAHOO.admin.container.panelTexto = new YAHOO.widget.Panel(id, { width:"350px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); |
489 | + YAHOO.admin.container.panelTexto.render(); | ||
490 | + YAHOO.admin.container.panelTexto.show(); | ||
490 | } | 491 | } |
491 | /* | 492 | /* |
492 | function: core_pegaPerfis | 493 | function: core_pegaPerfis |
@@ -917,10 +918,10 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | @@ -917,10 +918,10 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | ||
917 | target.innerHTML = "<pre ><p>"+ins.toString()+"</pre>"; | 918 | target.innerHTML = "<pre ><p>"+ins.toString()+"</pre>"; |
918 | record.setData(key,ins.toString()); | 919 | record.setData(key,ins.toString()); |
919 | } | 920 | } |
920 | - YAHOO.example.container.panelCK.destroy(); | ||
921 | - YAHOO.example.container.panelCK = null; | 921 | + YAHOO.admin.container.panelCK.destroy(); |
922 | + YAHOO.admin.container.panelCK = null; | ||
922 | }; | 923 | }; |
923 | - if(!YAHOO.example.container.panelCK) | 924 | + if(!YAHOO.admin.container.panelCK) |
924 | { | 925 | { |
925 | var novoel = document.createElement("div"); | 926 | var novoel = document.createElement("div"); |
926 | novoel.id = "core_menuCK"; | 927 | novoel.id = "core_menuCK"; |
@@ -937,8 +938,8 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | @@ -937,8 +938,8 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | ||
937 | { label: "Cancel", value: "CANCEL", checked: false } | 938 | { label: "Cancel", value: "CANCEL", checked: false } |
938 | ]); | 939 | ]); |
939 | og_core.on("checkedButtonChange", on_menuCheckBoxChange); | 940 | og_core.on("checkedButtonChange", on_menuCheckBoxChange); |
940 | - YAHOO.example.container.panelCK = new YAHOO.widget.Overlay("core_menuCK", { zindex:"100",close:false,underlay:false,width:"200px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
941 | - YAHOO.example.container.panelCK.render(); | 941 | + YAHOO.admin.container.panelCK = new YAHOO.widget.Overlay("core_menuCK", { zindex:"100",close:false,underlay:false,width:"200px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } ); |
942 | + YAHOO.admin.container.panelCK.render(); | ||
942 | } | 943 | } |
943 | var onde = $i("core_menuCK_bd"); | 944 | var onde = $i("core_menuCK_bd"); |
944 | onde.innerHTML = ""; | 945 | onde.innerHTML = ""; |
@@ -955,8 +956,8 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | @@ -955,8 +956,8 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key) | ||
955 | novoCK.innerHTML = ins; | 956 | novoCK.innerHTML = ins; |
956 | onde.appendChild(novoCK); | 957 | onde.appendChild(novoCK); |
957 | } | 958 | } |
958 | - YAHOO.example.container.panelCK.moveTo(YAHOO.util.Dom.getX(target),YAHOO.util.Dom.getY(target)); | ||
959 | - YAHOO.example.container.panelCK.show(); | 959 | + YAHOO.admin.container.panelCK.moveTo(YAHOO.util.Dom.getX(target),YAHOO.util.Dom.getY(target)); |
960 | + YAHOO.admin.container.panelCK.show(); | ||
960 | } | 961 | } |
961 | /* | 962 | /* |
962 | Function: core_combosimnao | 963 | Function: core_combosimnao |
@@ -1396,13 +1397,13 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | @@ -1396,13 +1397,13 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | ||
1396 | new YAHOO.widget.Button( | 1397 | new YAHOO.widget.Button( |
1397 | "okcancel_checkboxCANCEL", | 1398 | "okcancel_checkboxCANCEL", |
1398 | {onclick:{fn: function(){ | 1399 | {onclick:{fn: function(){ |
1399 | - YAHOO.example.container.panelEditor.destroy(); | ||
1400 | - YAHOO.example.container.panelEditor = null; | 1400 | + YAHOO.admin.container.panelEditor.destroy(); |
1401 | + YAHOO.admin.container.panelEditor = null; | ||
1401 | }}} | 1402 | }}} |
1402 | ); | 1403 | ); |
1403 | } | 1404 | } |
1404 | - YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: false,visible:false,constraintoviewport:true } ); | ||
1405 | - YAHOO.example.container.panelEditor.render(); | 1405 | + YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: false,visible:false,constraintoviewport:true } ); |
1406 | + YAHOO.admin.container.panelEditor.render(); | ||
1406 | } | 1407 | } |
1407 | else | 1408 | else |
1408 | { | 1409 | { |
@@ -1412,8 +1413,8 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | @@ -1412,8 +1413,8 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | ||
1412 | var fecha = function() | 1413 | var fecha = function() |
1413 | { | 1414 | { |
1414 | try{ | 1415 | try{ |
1415 | - YAHOO.example.container.panelEditor.destroy(); | ||
1416 | - YAHOO.example.container.panelEditor = null; | 1416 | + YAHOO.admin.container.panelEditor.destroy(); |
1417 | + YAHOO.admin.container.panelEditor = null; | ||
1417 | } | 1418 | } |
1418 | catch(e){} | 1419 | catch(e){} |
1419 | try{ | 1420 | try{ |
@@ -1422,8 +1423,8 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | @@ -1422,8 +1423,8 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) | ||
1422 | } | 1423 | } |
1423 | catch(e){}; | 1424 | catch(e){}; |
1424 | }; | 1425 | }; |
1425 | - YAHOO.util.Event.addListener(YAHOO.example.container.panelEditor.close, "click", fecha); | ||
1426 | - YAHOO.example.container.panelEditor.show(); | 1426 | + YAHOO.util.Event.addListener(YAHOO.admin.container.panelEditor.close, "click", fecha); |
1427 | + YAHOO.admin.container.panelEditor.show(); | ||
1427 | } | 1428 | } |
1428 | /* | 1429 | /* |
1429 | Function idiomaSel | 1430 | Function idiomaSel |
admin/js/editormapfile.js
@@ -132,7 +132,7 @@ objtipooriginal = [ | @@ -132,7 +132,7 @@ objtipooriginal = [ | ||
132 | {texto:"pontual",valor:"pontual"} | 132 | {texto:"pontual",valor:"pontual"} |
133 | ]; | 133 | ]; |
134 | 134 | ||
135 | -YAHOO.namespace("example.container"); | 135 | +YAHOO.namespace("admin.container"); |
136 | /* | 136 | /* |
137 | Function: initMenu | 137 | Function: initMenu |
138 | 138 | ||
@@ -601,8 +601,8 @@ function verificaOrfaos() | @@ -601,8 +601,8 @@ function verificaOrfaos() | ||
601 | } | 601 | } |
602 | function excluirOrfao(codigo_tema){ | 602 | function excluirOrfao(codigo_tema){ |
603 | excluirMapfile(codigo_tema); | 603 | excluirMapfile(codigo_tema); |
604 | - YAHOO.example.container.panelEditor.destroy(); | ||
605 | - YAHOO.example.container.panelEditor = null; | 604 | + YAHOO.admin.container.panelEditor.destroy(); |
605 | + YAHOO.admin.container.panelEditor = null; | ||
606 | } | 606 | } |
607 | /* | 607 | /* |
608 | Function: adicionaNovoMapfile | 608 | Function: adicionaNovoMapfile |
@@ -637,8 +637,8 @@ function adicionaNovoMapfile() | @@ -637,8 +637,8 @@ function adicionaNovoMapfile() | ||
637 | } | 637 | } |
638 | else | 638 | else |
639 | { | 639 | { |
640 | - YAHOO.example.container.panelEditor.destroy(); | ||
641 | - YAHOO.example.container.panelEditor = null; | 640 | + YAHOO.admin.container.panelEditor.destroy(); |
641 | + YAHOO.admin.container.panelEditor = null; | ||
642 | core_pegaMapfiles("montaArvore()"); | 642 | core_pegaMapfiles("montaArvore()"); |
643 | } | 643 | } |
644 | } | 644 | } |
@@ -768,8 +768,8 @@ function classesAuto(codigoMap,codigoLayer) | @@ -768,8 +768,8 @@ function classesAuto(codigoMap,codigoLayer) | ||
768 | var no = tree.getNodeByProperty("etiquetaClasses",codigoMap+"_"+codigoLayer); | 768 | var no = tree.getNodeByProperty("etiquetaClasses",codigoMap+"_"+codigoLayer); |
769 | montaParametrosTemas(no,dados); | 769 | montaParametrosTemas(no,dados); |
770 | core_carregando("desativa"); | 770 | core_carregando("desativa"); |
771 | - YAHOO.example.container.panelEditorAutoClasses.destroy(); | ||
772 | - YAHOO.example.container.panelEditorAutoClasses = null; | 771 | + YAHOO.admin.container.panelEditorAutoClasses.destroy(); |
772 | + YAHOO.admin.container.panelEditorAutoClasses = null; | ||
773 | } | 773 | } |
774 | catch(e){core_handleFailure(o,o.responseText);core_carregando("desativa");} | 774 | catch(e){core_handleFailure(o,o.responseText);core_carregando("desativa");} |
775 | }, | 775 | }, |
@@ -780,11 +780,11 @@ function classesAuto(codigoMap,codigoLayer) | @@ -780,11 +780,11 @@ function classesAuto(codigoMap,codigoLayer) | ||
780 | } | 780 | } |
781 | else | 781 | else |
782 | { | 782 | { |
783 | - YAHOO.example.container.panelEditorAutoClasses.destroy(); | ||
784 | - YAHOO.example.container.panelEditorAutoClasses = null; | 783 | + YAHOO.admin.container.panelEditorAutoClasses.destroy(); |
784 | + YAHOO.admin.container.panelEditorAutoClasses = null; | ||
785 | } | 785 | } |
786 | }; | 786 | }; |
787 | - if(!YAHOO.example.container.panelEditorAutoClasses) | 787 | + if(!YAHOO.admin.container.panelEditorAutoClasses) |
788 | { | 788 | { |
789 | var novoel = document.createElement("div"); | 789 | var novoel = document.createElement("div"); |
790 | novoel.id = "janela_editor_auto"; | 790 | novoel.id = "janela_editor_auto"; |
@@ -799,8 +799,8 @@ function classesAuto(codigoMap,codigoLayer) | @@ -799,8 +799,8 @@ function classesAuto(codigoMap,codigoLayer) | ||
799 | { label: "Cancela", value: "CANCEL", checked: false } | 799 | { label: "Cancela", value: "CANCEL", checked: false } |
800 | ]); | 800 | ]); |
801 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 801 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
802 | - YAHOO.example.container.panelEditorAutoClasses = new YAHOO.widget.Panel("janela_editor_auto", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
803 | - YAHOO.example.container.panelEditorAutoClasses.render(); | 802 | + YAHOO.admin.container.panelEditorAutoClasses = new YAHOO.widget.Panel("janela_editor_auto", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
803 | + YAHOO.admin.container.panelEditorAutoClasses.render(); | ||
804 | var sUrl = "../php/editormapfile.php?funcao=pegaItensLayer&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; | 804 | var sUrl = "../php/editormapfile.php?funcao=pegaItensLayer&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; |
805 | var callback = | 805 | var callback = |
806 | { | 806 | { |
@@ -827,7 +827,7 @@ function classesAuto(codigoMap,codigoLayer) | @@ -827,7 +827,7 @@ function classesAuto(codigoMap,codigoLayer) | ||
827 | }; | 827 | }; |
828 | core_makeRequest(sUrl,callback); | 828 | core_makeRequest(sUrl,callback); |
829 | } | 829 | } |
830 | - YAHOO.example.container.panelEditorAutoClasses.show(); | 830 | + YAHOO.admin.container.panelEditorAutoClasses.show(); |
831 | } | 831 | } |
832 | /* | 832 | /* |
833 | Function: adicionaNovoEstilo | 833 | Function: adicionaNovoEstilo |
@@ -1947,8 +1947,8 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, | @@ -1947,8 +1947,8 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, | ||
1947 | if(d.name != codigoLayer) | 1947 | if(d.name != codigoLayer) |
1948 | { | 1948 | { |
1949 | core_pegaMapfiles("montaArvore()"); | 1949 | core_pegaMapfiles("montaArvore()"); |
1950 | - YAHOO.example.container.panelEditor.destroy(); | ||
1951 | - YAHOO.example.container.panelEditor = null; | 1950 | + YAHOO.admin.container.panelEditor.destroy(); |
1951 | + YAHOO.admin.container.panelEditor = null; | ||
1952 | } | 1952 | } |
1953 | } | 1953 | } |
1954 | if(tipo=="classeGeral") | 1954 | if(tipo=="classeGeral") |
admin/js/estat_conexao.js
1 | function initEditor(){ | 1 | function initEditor(){ |
2 | - YAHOO.namespace("example.container"); | 2 | + YAHOO.namespace("admin.container"); |
3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarConexao","adicionaNovaLinha","pegaDados"); | 3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarConexao","adicionaNovaLinha","pegaDados"); |
4 | pegaDados(); | 4 | pegaDados(); |
5 | } | 5 | } |
@@ -48,9 +48,9 @@ function montaTabela(dados){ | @@ -48,9 +48,9 @@ function montaTabela(dados){ | ||
48 | var record,$clicouId,$recordid,sUrl,callback, | 48 | var record,$clicouId,$recordid,sUrl,callback, |
49 | target = YAHOO.util.Event.getTarget(ev), | 49 | target = YAHOO.util.Event.getTarget(ev), |
50 | column = this.getColumn(target); | 50 | column = this.getColumn(target); |
51 | - if(YAHOO.example.container.panelCK){ | ||
52 | - YAHOO.example.container.panelCK.destroy(); | ||
53 | - YAHOO.example.container.panelCK = null; | 51 | + if(YAHOO.admin.container.panelCK){ |
52 | + YAHOO.admin.container.panelCK.destroy(); | ||
53 | + YAHOO.admin.container.panelCK = null; | ||
54 | } | 54 | } |
55 | if (column.key == 'excluir'){ | 55 | if (column.key == 'excluir'){ |
56 | record = this.getRecord(target); | 56 | record = this.getRecord(target); |
@@ -85,8 +85,8 @@ function montaEditor(dados,id,recordid){ | @@ -85,8 +85,8 @@ function montaEditor(dados,id,recordid){ | ||
85 | if(p_oEvent.newValue.get("value") == "OK"){ | 85 | if(p_oEvent.newValue.get("value") == "OK"){ |
86 | gravaDados(id,recordid); | 86 | gravaDados(id,recordid); |
87 | } | 87 | } |
88 | - YAHOO.example.container.panelEditor2.destroy(); | ||
89 | - YAHOO.example.container.panelEditor2 = null; | 88 | + YAHOO.admin.container.panelEditor2.destroy(); |
89 | + YAHOO.admin.container.panelEditor2 = null; | ||
90 | }; | 90 | }; |
91 | if(!$i("janela_editor2")){ | 91 | if(!$i("janela_editor2")){ |
92 | var ins,editorBotoes, | 92 | var ins,editorBotoes, |
@@ -104,10 +104,10 @@ function montaEditor(dados,id,recordid){ | @@ -104,10 +104,10 @@ function montaEditor(dados,id,recordid){ | ||
104 | { label: "Cancela", value: "CANCEL", checked: false } | 104 | { label: "Cancela", value: "CANCEL", checked: false } |
105 | ]); | 105 | ]); |
106 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 106 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
107 | - YAHOO.example.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
108 | - YAHOO.example.container.panelEditor2.render(); | 107 | + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); |
108 | + YAHOO.admin.container.panelEditor2.render(); | ||
109 | } | 109 | } |
110 | - YAHOO.example.container.panelEditor2.show(); | 110 | + YAHOO.admin.container.panelEditor2.show(); |
111 | $i("editor_bd2").innerHTML = montaDiv(dados); | 111 | $i("editor_bd2").innerHTML = montaDiv(dados); |
112 | core_carregando("desativa"); | 112 | core_carregando("desativa"); |
113 | } | 113 | } |
admin/js/estat_tipo_periodo.js
1 | function initEditor(){ | 1 | function initEditor(){ |
2 | - YAHOO.namespace("example.container"); | 2 | + YAHOO.namespace("admin.container"); |
3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarTipoPeriodo","adicionaNovaLinha","pegaDados"); | 3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarTipoPeriodo","adicionaNovaLinha","pegaDados"); |
4 | pegaDados(); | 4 | pegaDados(); |
5 | } | 5 | } |
@@ -42,9 +42,9 @@ function montaTabela(dados){ | @@ -42,9 +42,9 @@ function montaTabela(dados){ | ||
42 | var record,$clicouId,$recordid,sUrl,callback, | 42 | var record,$clicouId,$recordid,sUrl,callback, |
43 | target = YAHOO.util.Event.getTarget(ev), | 43 | target = YAHOO.util.Event.getTarget(ev), |
44 | column = this.getColumn(target); | 44 | column = this.getColumn(target); |
45 | - if(YAHOO.example.container.panelCK){ | ||
46 | - YAHOO.example.container.panelCK.destroy(); | ||
47 | - YAHOO.example.container.panelCK = null; | 45 | + if(YAHOO.admin.container.panelCK){ |
46 | + YAHOO.admin.container.panelCK.destroy(); | ||
47 | + YAHOO.admin.container.panelCK = null; | ||
48 | } | 48 | } |
49 | if (column.key == 'excluir'){ | 49 | if (column.key == 'excluir'){ |
50 | record = this.getRecord(target); | 50 | record = this.getRecord(target); |
@@ -79,8 +79,8 @@ function montaEditor(dados,id,recordid){ | @@ -79,8 +79,8 @@ function montaEditor(dados,id,recordid){ | ||
79 | if(p_oEvent.newValue.get("value") == "OK"){ | 79 | if(p_oEvent.newValue.get("value") == "OK"){ |
80 | gravaDados(id,recordid); | 80 | gravaDados(id,recordid); |
81 | } | 81 | } |
82 | - YAHOO.example.container.panelEditor2.destroy(); | ||
83 | - YAHOO.example.container.panelEditor2 = null; | 82 | + YAHOO.admin.container.panelEditor2.destroy(); |
83 | + YAHOO.admin.container.panelEditor2 = null; | ||
84 | }; | 84 | }; |
85 | if(!$i("janela_editor2")){ | 85 | if(!$i("janela_editor2")){ |
86 | var ins,editorBotoes, | 86 | var ins,editorBotoes, |
@@ -98,10 +98,10 @@ function montaEditor(dados,id,recordid){ | @@ -98,10 +98,10 @@ function montaEditor(dados,id,recordid){ | ||
98 | { label: "Cancela", value: "CANCEL", checked: false } | 98 | { label: "Cancela", value: "CANCEL", checked: false } |
99 | ]); | 99 | ]); |
100 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 100 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
101 | - YAHOO.example.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
102 | - YAHOO.example.container.panelEditor2.render(); | 101 | + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); |
102 | + YAHOO.admin.container.panelEditor2.render(); | ||
103 | } | 103 | } |
104 | - YAHOO.example.container.panelEditor2.show(); | 104 | + YAHOO.admin.container.panelEditor2.show(); |
105 | $i("editor_bd2").innerHTML = montaDiv(dados); | 105 | $i("editor_bd2").innerHTML = montaDiv(dados); |
106 | core_carregando("desativa"); | 106 | core_carregando("desativa"); |
107 | } | 107 | } |
admin/js/estat_tipo_regiao.js
1 | function initEditor(){ | 1 | function initEditor(){ |
2 | - YAHOO.namespace("example.container"); | 2 | + YAHOO.namespace("admin.container"); |
3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarTipoRegiao","adicionaNovaLinha","pegaDados"); | 3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarTipoRegiao","adicionaNovaLinha","pegaDados"); |
4 | pegaDados(); | 4 | pegaDados(); |
5 | } | 5 | } |
@@ -50,9 +50,9 @@ function montaTabela(dados){ | @@ -50,9 +50,9 @@ function montaTabela(dados){ | ||
50 | var record,$clicouId,$recordid,sUrl,callback, | 50 | var record,$clicouId,$recordid,sUrl,callback, |
51 | target = YAHOO.util.Event.getTarget(ev), | 51 | target = YAHOO.util.Event.getTarget(ev), |
52 | column = this.getColumn(target); | 52 | column = this.getColumn(target); |
53 | - if(YAHOO.example.container.panelCK){ | ||
54 | - YAHOO.example.container.panelCK.destroy(); | ||
55 | - YAHOO.example.container.panelCK = null; | 53 | + if(YAHOO.admin.container.panelCK){ |
54 | + YAHOO.admin.container.panelCK.destroy(); | ||
55 | + YAHOO.admin.container.panelCK = null; | ||
56 | } | 56 | } |
57 | if (column.key == 'excluir'){ | 57 | if (column.key == 'excluir'){ |
58 | record = this.getRecord(target); | 58 | record = this.getRecord(target); |
@@ -87,8 +87,8 @@ function montaEditor(dados,id,recordid){ | @@ -87,8 +87,8 @@ function montaEditor(dados,id,recordid){ | ||
87 | if(p_oEvent.newValue.get("value") == "OK"){ | 87 | if(p_oEvent.newValue.get("value") == "OK"){ |
88 | gravaDados(id,recordid); | 88 | gravaDados(id,recordid); |
89 | } | 89 | } |
90 | - YAHOO.example.container.panelEditor2.destroy(); | ||
91 | - YAHOO.example.container.panelEditor2 = null; | 90 | + YAHOO.admin.container.panelEditor2.destroy(); |
91 | + YAHOO.admin.container.panelEditor2 = null; | ||
92 | }; | 92 | }; |
93 | if(!$i("janela_editor2")){ | 93 | if(!$i("janela_editor2")){ |
94 | var ins,editorBotoes, | 94 | var ins,editorBotoes, |
@@ -106,10 +106,10 @@ function montaEditor(dados,id,recordid){ | @@ -106,10 +106,10 @@ function montaEditor(dados,id,recordid){ | ||
106 | { label: "Cancela", value: "CANCEL", checked: false } | 106 | { label: "Cancela", value: "CANCEL", checked: false } |
107 | ]); | 107 | ]); |
108 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 108 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
109 | - YAHOO.example.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
110 | - YAHOO.example.container.panelEditor2.render(); | 109 | + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); |
110 | + YAHOO.admin.container.panelEditor2.render(); | ||
111 | } | 111 | } |
112 | - YAHOO.example.container.panelEditor2.show(); | 112 | + YAHOO.admin.container.panelEditor2.show(); |
113 | $i("editor_bd2").innerHTML = montaDiv(dados); | 113 | $i("editor_bd2").innerHTML = montaDiv(dados); |
114 | core_carregando("desativa"); | 114 | core_carregando("desativa"); |
115 | } | 115 | } |
admin/js/estat_unidade_medida.js
1 | function initEditor(){ | 1 | function initEditor(){ |
2 | - YAHOO.namespace("example.container"); | 2 | + YAHOO.namespace("admin.container"); |
3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarUnidadeMedida","adicionaNovaLinha","pegaDados"); | 3 | core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarUnidadeMedida","adicionaNovaLinha","pegaDados"); |
4 | pegaDados(); | 4 | pegaDados(); |
5 | } | 5 | } |
@@ -44,9 +44,9 @@ function montaTabela(dados){ | @@ -44,9 +44,9 @@ function montaTabela(dados){ | ||
44 | var record,$clicouId,$recordid,sUrl,callback, | 44 | var record,$clicouId,$recordid,sUrl,callback, |
45 | target = YAHOO.util.Event.getTarget(ev), | 45 | target = YAHOO.util.Event.getTarget(ev), |
46 | column = this.getColumn(target); | 46 | column = this.getColumn(target); |
47 | - if(YAHOO.example.container.panelCK){ | ||
48 | - YAHOO.example.container.panelCK.destroy(); | ||
49 | - YAHOO.example.container.panelCK = null; | 47 | + if(YAHOO.admin.container.panelCK){ |
48 | + YAHOO.admin.container.panelCK.destroy(); | ||
49 | + YAHOO.admin.container.panelCK = null; | ||
50 | } | 50 | } |
51 | if (column.key == 'excluir'){ | 51 | if (column.key == 'excluir'){ |
52 | record = this.getRecord(target); | 52 | record = this.getRecord(target); |
@@ -81,8 +81,8 @@ function montaEditor(dados,id,recordid){ | @@ -81,8 +81,8 @@ function montaEditor(dados,id,recordid){ | ||
81 | if(p_oEvent.newValue.get("value") == "OK"){ | 81 | if(p_oEvent.newValue.get("value") == "OK"){ |
82 | gravaDados(id,recordid); | 82 | gravaDados(id,recordid); |
83 | } | 83 | } |
84 | - YAHOO.example.container.panelEditor2.destroy(); | ||
85 | - YAHOO.example.container.panelEditor2 = null; | 84 | + YAHOO.admin.container.panelEditor2.destroy(); |
85 | + YAHOO.admin.container.panelEditor2 = null; | ||
86 | }; | 86 | }; |
87 | if(!$i("janela_editor2")){ | 87 | if(!$i("janela_editor2")){ |
88 | var ins,editorBotoes, | 88 | var ins,editorBotoes, |
@@ -100,10 +100,10 @@ function montaEditor(dados,id,recordid){ | @@ -100,10 +100,10 @@ function montaEditor(dados,id,recordid){ | ||
100 | { label: "Cancela", value: "CANCEL", checked: false } | 100 | { label: "Cancela", value: "CANCEL", checked: false } |
101 | ]); | 101 | ]); |
102 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 102 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
103 | - YAHOO.example.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
104 | - YAHOO.example.container.panelEditor2.render(); | 103 | + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } ); |
104 | + YAHOO.admin.container.panelEditor2.render(); | ||
105 | } | 105 | } |
106 | - YAHOO.example.container.panelEditor2.show(); | 106 | + YAHOO.admin.container.panelEditor2.show(); |
107 | $i("editor_bd2").innerHTML = montaDiv(dados); | 107 | $i("editor_bd2").innerHTML = montaDiv(dados); |
108 | core_carregando("desativa"); | 108 | core_carregando("desativa"); |
109 | } | 109 | } |
admin/js/estat_variavel.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/usuarios.js | 30 | i3geo/admin/js/usuarios.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | //armazena os dados das tabelas auxiliares, como tipos de unidades de medida, etc | 33 | //armazena os dados das tabelas auxiliares, como tipos de unidades de medida, etc |
34 | var dadosAuxiliares = []; | 34 | var dadosAuxiliares = []; |
35 | /* | 35 | /* |
@@ -935,8 +935,8 @@ function gravaDados(tipo,id){ | @@ -935,8 +935,8 @@ function gravaDados(tipo,id){ | ||
935 | } | 935 | } |
936 | core_carregando("desativa"); | 936 | core_carregando("desativa"); |
937 | } | 937 | } |
938 | - YAHOO.example.container.panelEditor.destroy(); | ||
939 | - YAHOO.example.container.panelEditor = null; | 938 | + YAHOO.admin.container.panelEditor.destroy(); |
939 | + YAHOO.admin.container.panelEditor = null; | ||
940 | } | 940 | } |
941 | catch(e){core_handleFailure(e,o.responseText);} | 941 | catch(e){core_handleFailure(e,o.responseText);} |
942 | }, | 942 | }, |
admin/js/grupos.js
@@ -119,10 +119,10 @@ function montaTabela_G(dados) | @@ -119,10 +119,10 @@ function montaTabela_G(dados) | ||
119 | { | 119 | { |
120 | var target = YAHOO.util.Event.getTarget(ev); | 120 | var target = YAHOO.util.Event.getTarget(ev); |
121 | var column = this.getColumn(target); | 121 | var column = this.getColumn(target); |
122 | - if(YAHOO.example.container.panelCK) | 122 | + if(YAHOO.admin.container.panelCK) |
123 | { | 123 | { |
124 | - YAHOO.example.container.panelCK.destroy(); | ||
125 | - YAHOO.example.container.panelCK = null; | 124 | + YAHOO.admin.container.panelCK.destroy(); |
125 | + YAHOO.admin.container.panelCK = null; | ||
126 | } | 126 | } |
127 | if (column.key == 'excluir') | 127 | if (column.key == 'excluir') |
128 | { | 128 | { |
admin/js/gruposusuarios.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/gruposusuarios.js | 30 | i3geo/admin/js/gruposusuarios.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -289,8 +289,8 @@ function gravaDados(tipo,id){ | @@ -289,8 +289,8 @@ function gravaDados(tipo,id){ | ||
289 | } | 289 | } |
290 | core_carregando("desativa"); | 290 | core_carregando("desativa"); |
291 | } | 291 | } |
292 | - YAHOO.example.container.panelEditor.destroy(); | ||
293 | - YAHOO.example.container.panelEditor = null; | 292 | + YAHOO.admin.container.panelEditor.destroy(); |
293 | + YAHOO.admin.container.panelEditor = null; | ||
294 | } | 294 | } |
295 | catch(e){core_handleFailure(e,o.responseText);} | 295 | catch(e){core_handleFailure(e,o.responseText);} |
296 | }, | 296 | }, |
admin/js/identifica.js
@@ -30,7 +30,7 @@ Arquivo: | @@ -30,7 +30,7 @@ Arquivo: | ||
30 | i3geo/admin/js/identifica.js | 30 | i3geo/admin/js/identifica.js |
31 | */ | 31 | */ |
32 | 32 | ||
33 | -YAHOO.namespace("example.container"); | 33 | +YAHOO.namespace("admin.container"); |
34 | function initMenu() | 34 | function initMenu() |
35 | { | 35 | { |
36 | core_ativaBotaoAdicionaLinha("../php/identifica.php?funcao=alterarFuncoes"); | 36 | core_ativaBotaoAdicionaLinha("../php/identifica.php?funcao=alterarFuncoes"); |
@@ -79,10 +79,10 @@ function montaTabela(dados) | @@ -79,10 +79,10 @@ function montaTabela(dados) | ||
79 | { | 79 | { |
80 | var target = YAHOO.util.Event.getTarget(ev); | 80 | var target = YAHOO.util.Event.getTarget(ev); |
81 | var column = this.getColumn(target); | 81 | var column = this.getColumn(target); |
82 | - if(YAHOO.example.container.panelCK) | 82 | + if(YAHOO.admin.container.panelCK) |
83 | { | 83 | { |
84 | - YAHOO.example.container.panelCK.destroy(); | ||
85 | - YAHOO.example.container.panelCK = null; | 84 | + YAHOO.admin.container.panelCK.destroy(); |
85 | + YAHOO.admin.container.panelCK = null; | ||
86 | } | 86 | } |
87 | if (column.key == 'excluir') | 87 | if (column.key == 'excluir') |
88 | { | 88 | { |
@@ -127,11 +127,11 @@ function montaEditor(dados,id,recordid) | @@ -127,11 +127,11 @@ function montaEditor(dados,id,recordid) | ||
127 | } | 127 | } |
128 | else | 128 | else |
129 | { | 129 | { |
130 | - YAHOO.example.container.panelEditor.destroy(); | ||
131 | - YAHOO.example.container.panelEditor = null; | 130 | + YAHOO.admin.container.panelEditor.destroy(); |
131 | + YAHOO.admin.container.panelEditor = null; | ||
132 | } | 132 | } |
133 | }; | 133 | }; |
134 | - if(!YAHOO.example.container.panelEditor) | 134 | + if(!YAHOO.admin.container.panelEditor) |
135 | { | 135 | { |
136 | var novoel = document.createElement("div"); | 136 | var novoel = document.createElement("div"); |
137 | novoel.id = "janela_editor"; | 137 | novoel.id = "janela_editor"; |
@@ -146,10 +146,10 @@ function montaEditor(dados,id,recordid) | @@ -146,10 +146,10 @@ function montaEditor(dados,id,recordid) | ||
146 | { label: "Cancela", value: "CANCEL", checked: false } | 146 | { label: "Cancela", value: "CANCEL", checked: false } |
147 | ]); | 147 | ]); |
148 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 148 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
149 | - YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
150 | - YAHOO.example.container.panelEditor.render(); | 149 | + YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
150 | + YAHOO.admin.container.panelEditor.render(); | ||
151 | } | 151 | } |
152 | - YAHOO.example.container.panelEditor.show(); | 152 | + YAHOO.admin.container.panelEditor.show(); |
153 | //carrega os dados na janela | 153 | //carrega os dados na janela |
154 | $i("editor_bd").innerHTML = montaDiv(dados[0]); | 154 | $i("editor_bd").innerHTML = montaDiv(dados[0]); |
155 | core_carregando("desativa"); | 155 | core_carregando("desativa"); |
@@ -214,8 +214,8 @@ function gravaDados(id,recordid) | @@ -214,8 +214,8 @@ function gravaDados(id,recordid) | ||
214 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); | 214 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); |
215 | core_carregando("desativa"); | 215 | core_carregando("desativa"); |
216 | } | 216 | } |
217 | - YAHOO.example.container.panelEditor.destroy(); | ||
218 | - YAHOO.example.container.panelEditor = null; | 217 | + YAHOO.admin.container.panelEditor.destroy(); |
218 | + YAHOO.admin.container.panelEditor = null; | ||
219 | } | 219 | } |
220 | catch(e){core_handleFailure(e,o.responseText);} | 220 | catch(e){core_handleFailure(e,o.responseText);} |
221 | }, | 221 | }, |
admin/js/importar.js
@@ -30,7 +30,7 @@ Arquivo: | @@ -30,7 +30,7 @@ Arquivo: | ||
30 | i3geo/admin/js/importar.js | 30 | i3geo/admin/js/importar.js |
31 | */ | 31 | */ |
32 | 32 | ||
33 | -YAHOO.namespace("example.container"); | 33 | +YAHOO.namespace("admin.container"); |
34 | function fim () | 34 | function fim () |
35 | { | 35 | { |
36 | core_carregando("desativa"); | 36 | core_carregando("desativa"); |
admin/js/listatemas.js
@@ -17,11 +17,11 @@ function montaEditorTema(dados) | @@ -17,11 +17,11 @@ function montaEditorTema(dados) | ||
17 | } | 17 | } |
18 | else | 18 | else |
19 | { | 19 | { |
20 | - YAHOO.example.container.panelEditorTema.destroy(); | ||
21 | - YAHOO.example.container.panelEditorTema = null; | 20 | + YAHOO.admin.container.panelEditorTema.destroy(); |
21 | + YAHOO.admin.container.panelEditorTema = null; | ||
22 | } | 22 | } |
23 | }; | 23 | }; |
24 | - if(!YAHOO.example.container.panelEditorTema) | 24 | + if(!YAHOO.admin.container.panelEditorTema) |
25 | { | 25 | { |
26 | var novoel = document.createElement("div"); | 26 | var novoel = document.createElement("div"); |
27 | novoel.id = "janela_editor_tema"; | 27 | novoel.id = "janela_editor_tema"; |
@@ -36,16 +36,16 @@ function montaEditorTema(dados) | @@ -36,16 +36,16 @@ function montaEditorTema(dados) | ||
36 | { label: "Cancela", value: "CANCEL", checked: false } | 36 | { label: "Cancela", value: "CANCEL", checked: false } |
37 | ]); | 37 | ]); |
38 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 38 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
39 | - YAHOO.example.container.panelEditorTema = new YAHOO.widget.Panel("janela_editor_tema", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
40 | - YAHOO.example.container.panelEditorTema.render(); | 39 | + YAHOO.admin.container.panelEditorTema = new YAHOO.widget.Panel("janela_editor_tema", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
40 | + YAHOO.admin.container.panelEditorTema.render(); | ||
41 | var fecha = function() | 41 | var fecha = function() |
42 | { | 42 | { |
43 | - YAHOO.example.container.panelEditorTema.destroy(); | ||
44 | - YAHOO.example.container.panelEditorTema = null; | 43 | + YAHOO.admin.container.panelEditorTema.destroy(); |
44 | + YAHOO.admin.container.panelEditorTema = null; | ||
45 | }; | 45 | }; |
46 | - YAHOO.util.Event.addListener(YAHOO.example.container.panelEditorTema.close, "click", fecha); | 46 | + YAHOO.util.Event.addListener(YAHOO.admin.container.panelEditorTema.close, "click", fecha); |
47 | } | 47 | } |
48 | - YAHOO.example.container.panelEditorTema.show(); | 48 | + YAHOO.admin.container.panelEditorTema.show(); |
49 | //carrega os dados na janela | 49 | //carrega os dados na janela |
50 | $i("editor_bd").innerHTML = montaDivTemas(dados[0]); | 50 | $i("editor_bd").innerHTML = montaDivTemas(dados[0]); |
51 | core_carregando("desativa"); | 51 | core_carregando("desativa"); |
@@ -183,8 +183,8 @@ function gravaDadosTema(id) | @@ -183,8 +183,8 @@ function gravaDadosTema(id) | ||
183 | //myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) | 183 | //myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) |
184 | core_carregando("desativa"); | 184 | core_carregando("desativa"); |
185 | } | 185 | } |
186 | - YAHOO.example.container.panelEditorTema.destroy(); | ||
187 | - YAHOO.example.container.panelEditorTema = null; | 186 | + YAHOO.admin.container.panelEditorTema.destroy(); |
187 | + YAHOO.admin.container.panelEditorTema = null; | ||
188 | } | 188 | } |
189 | catch(e){core_handleFailure(e,o.responseText);} | 189 | catch(e){core_handleFailure(e,o.responseText);} |
190 | }, | 190 | }, |
admin/js/mapas.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/mapas.js | 30 | i3geo/admin/js/mapas.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -154,11 +154,11 @@ function montaEditorMapa(dados,id,recordid) | @@ -154,11 +154,11 @@ function montaEditorMapa(dados,id,recordid) | ||
154 | } | 154 | } |
155 | else | 155 | else |
156 | { | 156 | { |
157 | - YAHOO.example.container.panelEditorMapa.destroy(); | ||
158 | - YAHOO.example.container.panelEditorMapa = null; | 157 | + YAHOO.admin.container.panelEditorMapa.destroy(); |
158 | + YAHOO.admin.container.panelEditorMapa = null; | ||
159 | } | 159 | } |
160 | }; | 160 | }; |
161 | - if(!YAHOO.example.container.panelEditorMapa) | 161 | + if(!YAHOO.admin.container.panelEditorMapa) |
162 | { | 162 | { |
163 | var novoel = document.createElement("div"); | 163 | var novoel = document.createElement("div"); |
164 | novoel.id = "janela_editor"; | 164 | novoel.id = "janela_editor"; |
@@ -173,10 +173,10 @@ function montaEditorMapa(dados,id,recordid) | @@ -173,10 +173,10 @@ function montaEditorMapa(dados,id,recordid) | ||
173 | { label: "Cancela", value: "CANCEL", checked: false } | 173 | { label: "Cancela", value: "CANCEL", checked: false } |
174 | ]); | 174 | ]); |
175 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 175 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
176 | - YAHOO.example.container.panelEditorMapa = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
177 | - YAHOO.example.container.panelEditorMapa.render(); | 176 | + YAHOO.admin.container.panelEditorMapa = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
177 | + YAHOO.admin.container.panelEditorMapa.render(); | ||
178 | } | 178 | } |
179 | - YAHOO.example.container.panelEditorMapa.show(); | 179 | + YAHOO.admin.container.panelEditorMapa.show(); |
180 | //carrega os dados na janela | 180 | //carrega os dados na janela |
181 | $i("editor_bd").innerHTML = montaDivMapas(dados[0]); | 181 | $i("editor_bd").innerHTML = montaDivMapas(dados[0]); |
182 | core_carregando("desativa"); | 182 | core_carregando("desativa"); |
@@ -293,8 +293,8 @@ function gravaDadosMapa(id,recordid) | @@ -293,8 +293,8 @@ function gravaDadosMapa(id,recordid) | ||
293 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); | 293 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); |
294 | core_carregando("desativa"); | 294 | core_carregando("desativa"); |
295 | } | 295 | } |
296 | - YAHOO.example.container.panelEditorMapa.destroy(); | ||
297 | - YAHOO.example.container.panelEditorMapa = null; | 296 | + YAHOO.admin.container.panelEditorMapa.destroy(); |
297 | + YAHOO.admin.container.panelEditorMapa = null; | ||
298 | } | 298 | } |
299 | catch(e){core_handleFailure(e,o.responseText);} | 299 | catch(e){core_handleFailure(e,o.responseText);} |
300 | }, | 300 | }, |
admin/js/mapfiles.js
admin/js/menu.js
@@ -38,7 +38,7 @@ Inicializa o editor | @@ -38,7 +38,7 @@ Inicializa o editor | ||
38 | */ | 38 | */ |
39 | function initEditorMenu() | 39 | function initEditorMenu() |
40 | { | 40 | { |
41 | - YAHOO.namespace("example.container"); | 41 | + YAHOO.namespace("admin.container"); |
42 | core_ativaBotaoAdicionaLinha("../php/menutemas.php?funcao=alteraMenus&publicado_menu=&perfil=&nome=&desc=&id=&aberto=","adicionaNovoMenu","pegaMenus_M"); | 42 | core_ativaBotaoAdicionaLinha("../php/menutemas.php?funcao=alteraMenus&publicado_menu=&perfil=&nome=&desc=&id=&aberto=","adicionaNovoMenu","pegaMenus_M"); |
43 | pegaMenus_M(); | 43 | pegaMenus_M(); |
44 | } | 44 | } |
@@ -99,10 +99,10 @@ function montaTabela_M(dados) | @@ -99,10 +99,10 @@ function montaTabela_M(dados) | ||
99 | { | 99 | { |
100 | var target = YAHOO.util.Event.getTarget(ev); | 100 | var target = YAHOO.util.Event.getTarget(ev); |
101 | var column = this.getColumn(target); | 101 | var column = this.getColumn(target); |
102 | - if(YAHOO.example.container.panelCK) | 102 | + if(YAHOO.admin.container.panelCK) |
103 | { | 103 | { |
104 | - YAHOO.example.container.panelCK.destroy(); | ||
105 | - YAHOO.example.container.panelCK = null; | 104 | + YAHOO.admin.container.panelCK.destroy(); |
105 | + YAHOO.admin.container.panelCK = null; | ||
106 | } | 106 | } |
107 | if (column.key == 'excluir') | 107 | if (column.key == 'excluir') |
108 | { | 108 | { |
@@ -144,8 +144,8 @@ function montaEditor_M(dados,id,recordid) | @@ -144,8 +144,8 @@ function montaEditor_M(dados,id,recordid) | ||
144 | { | 144 | { |
145 | gravaDados_M(id,recordid); | 145 | gravaDados_M(id,recordid); |
146 | } | 146 | } |
147 | - YAHOO.example.container.panelEditor2.destroy(); | ||
148 | - YAHOO.example.container.panelEditor2 = null; | 147 | + YAHOO.admin.container.panelEditor2.destroy(); |
148 | + YAHOO.admin.container.panelEditor2 = null; | ||
149 | }; | 149 | }; |
150 | if(!$i("janela_editor2")) | 150 | if(!$i("janela_editor2")) |
151 | { | 151 | { |
@@ -162,10 +162,10 @@ function montaEditor_M(dados,id,recordid) | @@ -162,10 +162,10 @@ function montaEditor_M(dados,id,recordid) | ||
162 | { label: "Cancela", value: "CANCEL", checked: false } | 162 | { label: "Cancela", value: "CANCEL", checked: false } |
163 | ]); | 163 | ]); |
164 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 164 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
165 | - YAHOO.example.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"480px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
166 | - YAHOO.example.container.panelEditor2.render(); | 165 | + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"480px",overflow:"auto", visible:false,constraintoviewport:true } ); |
166 | + YAHOO.admin.container.panelEditor2.render(); | ||
167 | } | 167 | } |
168 | - YAHOO.example.container.panelEditor2.show(); | 168 | + YAHOO.admin.container.panelEditor2.show(); |
169 | $i("editor_bd2").innerHTML = montaDiv_M(dados[0]); | 169 | $i("editor_bd2").innerHTML = montaDiv_M(dados[0]); |
170 | core_carregando("desativa"); | 170 | core_carregando("desativa"); |
171 | } | 171 | } |
admin/js/ms_configura.js
admin/js/ogcws.js
admin/js/operacoes.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/operacoes.js | 30 | i3geo/admin/js/operacoes.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -307,8 +307,8 @@ function gravaDados(tipo,id) | @@ -307,8 +307,8 @@ function gravaDados(tipo,id) | ||
307 | } | 307 | } |
308 | core_carregando("desativa"); | 308 | core_carregando("desativa"); |
309 | } | 309 | } |
310 | - YAHOO.example.container.panelEditor.destroy(); | ||
311 | - YAHOO.example.container.panelEditor = null; | 310 | + YAHOO.admin.container.panelEditor.destroy(); |
311 | + YAHOO.admin.container.panelEditor = null; | ||
312 | } | 312 | } |
313 | catch(e){core_handleFailure(e,o.responseText);} | 313 | catch(e){core_handleFailure(e,o.responseText);} |
314 | }, | 314 | }, |
admin/js/perfis.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/perfis.js | 30 | i3geo/admin/js/perfis.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -114,10 +114,10 @@ function montaTabela(dados) | @@ -114,10 +114,10 @@ function montaTabela(dados) | ||
114 | { | 114 | { |
115 | var target = YAHOO.util.Event.getTarget(ev); | 115 | var target = YAHOO.util.Event.getTarget(ev); |
116 | var column = this.getColumn(target); | 116 | var column = this.getColumn(target); |
117 | - if(YAHOO.example.container.panelCK) | 117 | + if(YAHOO.admin.container.panelCK) |
118 | { | 118 | { |
119 | - YAHOO.example.container.panelCK.destroy(); | ||
120 | - YAHOO.example.container.panelCK = null; | 119 | + YAHOO.admin.container.panelCK.destroy(); |
120 | + YAHOO.admin.container.panelCK = null; | ||
121 | } | 121 | } |
122 | if (column.key == 'excluir') | 122 | if (column.key == 'excluir') |
123 | { | 123 | { |
admin/js/sistemas.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/sistemas.js | 30 | i3geo/admin/js/sistemas.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -353,8 +353,8 @@ function gravaDadosFuncao(id) | @@ -353,8 +353,8 @@ function gravaDadosFuncao(id) | ||
353 | no.html = no.getContentEl().innerHTML; | 353 | no.html = no.getContentEl().innerHTML; |
354 | core_carregando("desativa"); | 354 | core_carregando("desativa"); |
355 | } | 355 | } |
356 | - YAHOO.example.container.panelEditor.destroy(); | ||
357 | - YAHOO.example.container.panelEditor = null; | 356 | + YAHOO.admin.container.panelEditor.destroy(); |
357 | + YAHOO.admin.container.panelEditor = null; | ||
358 | } | 358 | } |
359 | catch(e){core_handleFailure(e,o.responseText);} | 359 | catch(e){core_handleFailure(e,o.responseText);} |
360 | }, | 360 | }, |
@@ -398,8 +398,8 @@ function gravaDadosSistema(id) | @@ -398,8 +398,8 @@ function gravaDadosSistema(id) | ||
398 | no.html = no.getContentEl().innerHTML; | 398 | no.html = no.getContentEl().innerHTML; |
399 | core_carregando("desativa"); | 399 | core_carregando("desativa"); |
400 | } | 400 | } |
401 | - YAHOO.example.container.panelEditor.destroy(); | ||
402 | - YAHOO.example.container.panelEditor = null; | 401 | + YAHOO.admin.container.panelEditor.destroy(); |
402 | + YAHOO.admin.container.panelEditor = null; | ||
403 | } | 403 | } |
404 | catch(e){core_handleFailure(e,o.responseText);} | 404 | catch(e){core_handleFailure(e,o.responseText);} |
405 | }, | 405 | }, |
admin/js/subgrupos.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/subgrupos.js | 30 | i3geo/admin/js/subgrupos.js |
31 | */ | 31 | */ |
32 | -//YAHOO.namespace("example.container"); | 32 | +//YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initEditorSubGrupos | 34 | Function: initEditorSubGrupos |
35 | 35 | ||
@@ -121,10 +121,10 @@ function montaTabela_S(dados) | @@ -121,10 +121,10 @@ function montaTabela_S(dados) | ||
121 | { | 121 | { |
122 | var target = YAHOO.util.Event.getTarget(ev); | 122 | var target = YAHOO.util.Event.getTarget(ev); |
123 | var column = this.getColumn(target); | 123 | var column = this.getColumn(target); |
124 | - if(YAHOO.example.container.panelCK) | 124 | + if(YAHOO.admin.container.panelCK) |
125 | { | 125 | { |
126 | - YAHOO.example.container.panelCK.destroy(); | ||
127 | - YAHOO.example.container.panelCK = null; | 126 | + YAHOO.admin.container.panelCK.destroy(); |
127 | + YAHOO.admin.container.panelCK = null; | ||
128 | } | 128 | } |
129 | if (column.key == 'excluir') | 129 | if (column.key == 'excluir') |
130 | { | 130 | { |
admin/js/tags.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/tags.js | 30 | i3geo/admin/js/tags.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -114,10 +114,10 @@ function montaTabela(dados) | @@ -114,10 +114,10 @@ function montaTabela(dados) | ||
114 | { | 114 | { |
115 | var target = YAHOO.util.Event.getTarget(ev); | 115 | var target = YAHOO.util.Event.getTarget(ev); |
116 | var column = this.getColumn(target); | 116 | var column = this.getColumn(target); |
117 | - if(YAHOO.example.container.panelCK) | 117 | + if(YAHOO.admin.container.panelCK) |
118 | { | 118 | { |
119 | - YAHOO.example.container.panelCK.destroy(); | ||
120 | - YAHOO.example.container.panelCK = null; | 119 | + YAHOO.admin.container.panelCK.destroy(); |
120 | + YAHOO.admin.container.panelCK = null; | ||
121 | } | 121 | } |
122 | if (column.key == 'excluir') | 122 | if (column.key == 'excluir') |
123 | { | 123 | { |
admin/js/usuarios.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/usuarios.js | 30 | i3geo/admin/js/usuarios.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -356,8 +356,8 @@ function gravaDados(tipo,id) | @@ -356,8 +356,8 @@ function gravaDados(tipo,id) | ||
356 | } | 356 | } |
357 | core_carregando("desativa"); | 357 | core_carregando("desativa"); |
358 | } | 358 | } |
359 | - YAHOO.example.container.panelEditor.destroy(); | ||
360 | - YAHOO.example.container.panelEditor = null; | 359 | + YAHOO.admin.container.panelEditor.destroy(); |
360 | + YAHOO.admin.container.panelEditor = null; | ||
361 | } | 361 | } |
362 | catch(e){core_handleFailure(e,o.responseText);} | 362 | catch(e){core_handleFailure(e,o.responseText);} |
363 | }, | 363 | }, |
admin/js/webservices.js
@@ -29,7 +29,7 @@ Arquivo: | @@ -29,7 +29,7 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/webservices.js | 30 | i3geo/admin/js/webservices.js |
31 | */ | 31 | */ |
32 | -YAHOO.namespace("example.container"); | 32 | +YAHOO.namespace("admin.container"); |
33 | /* | 33 | /* |
34 | Function: initMenu | 34 | Function: initMenu |
35 | 35 | ||
@@ -161,11 +161,11 @@ function montaEditor(dados,id,recordid) | @@ -161,11 +161,11 @@ function montaEditor(dados,id,recordid) | ||
161 | } | 161 | } |
162 | else | 162 | else |
163 | { | 163 | { |
164 | - YAHOO.example.container.panelEditor.destroy(); | ||
165 | - YAHOO.example.container.panelEditor = null; | 164 | + YAHOO.admin.container.panelEditor.destroy(); |
165 | + YAHOO.admin.container.panelEditor = null; | ||
166 | } | 166 | } |
167 | }; | 167 | }; |
168 | - if(!YAHOO.example.container.panelEditor) | 168 | + if(!YAHOO.admin.container.panelEditor) |
169 | { | 169 | { |
170 | var novoel = document.createElement("div"); | 170 | var novoel = document.createElement("div"); |
171 | novoel.id = "janela_editor"; | 171 | novoel.id = "janela_editor"; |
@@ -180,10 +180,10 @@ function montaEditor(dados,id,recordid) | @@ -180,10 +180,10 @@ function montaEditor(dados,id,recordid) | ||
180 | { label: "Cancela", value: "CANCEL", checked: false } | 180 | { label: "Cancela", value: "CANCEL", checked: false } |
181 | ]); | 181 | ]); |
182 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); | 182 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
183 | - YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); | ||
184 | - YAHOO.example.container.panelEditor.render(); | 183 | + YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:false,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
184 | + YAHOO.admin.container.panelEditor.render(); | ||
185 | } | 185 | } |
186 | - YAHOO.example.container.panelEditor.show(); | 186 | + YAHOO.admin.container.panelEditor.show(); |
187 | //carrega os dados na janela | 187 | //carrega os dados na janela |
188 | $i("editor_bd").innerHTML = montaDiv(dados[0]); | 188 | $i("editor_bd").innerHTML = montaDiv(dados[0]); |
189 | core_carregando("desativa"); | 189 | core_carregando("desativa"); |
@@ -272,8 +272,8 @@ function gravaDados(id,recordid) | @@ -272,8 +272,8 @@ function gravaDados(id,recordid) | ||
272 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); | 272 | myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]); |
273 | core_carregando("desativa"); | 273 | core_carregando("desativa"); |
274 | } | 274 | } |
275 | - YAHOO.example.container.panelEditor.destroy(); | ||
276 | - YAHOO.example.container.panelEditor = null; | 275 | + YAHOO.admin.container.panelEditor.destroy(); |
276 | + YAHOO.admin.container.panelEditor = null; | ||
277 | } | 277 | } |
278 | catch(e){core_handleFailure(e,o.responseText);} | 278 | catch(e){core_handleFailure(e,o.responseText);} |
279 | }, | 279 | }, |