Commit a2a9c50561bdec8d94cafbf8b0d679664133a025
1 parent
8127c6ba
Exists in
master
and in
7 other branches
Correção na função que controla as operações de "proximo" e "anterior" nas ferramentas de análise.
Showing
5 changed files
with
20 additions
and
16 deletions
Show diff stats
ferramentas/funcoes.js
... | ... | @@ -181,13 +181,17 @@ function mostraOpcao(anterior,proxima,texto,idatual) |
181 | 181 | lazyloadmenu:true |
182 | 182 | }}); |
183 | 183 | var i = $i(idatual+"proxima_-button"); |
184 | - i.style.backgroundImage = "url('../../imagens/player_avanca.png')"; | |
185 | - i.style.backgroundRepeat = "no-repeat"; | |
186 | - i.style.backgroundPosition = "center center"; | |
184 | + if(i){ | |
185 | + i.style.backgroundImage = "url('../../imagens/player_avanca.png')"; | |
186 | + i.style.backgroundRepeat = "no-repeat"; | |
187 | + i.style.backgroundPosition = "center center"; | |
188 | + } | |
187 | 189 | var i = $i(idatual+"anterior_-button"); |
188 | - i.style.backgroundImage = "url('../../imagens/player_volta.png')"; | |
189 | - i.style.backgroundRepeat = "no-repeat"; | |
190 | - i.style.backgroundPosition = "center center"; | |
190 | + if(i){ | |
191 | + i.style.backgroundImage = "url('../../imagens/player_volta.png')"; | |
192 | + i.style.backgroundRepeat = "no-repeat"; | |
193 | + i.style.backgroundPosition = "center center"; | |
194 | + } | |
191 | 195 | } |
192 | 196 | var ids = new Array("t0","t1","t2","t3","t4","t5","t6","t7"); |
193 | 197 | for (i=0;i<ids.length;i++) | ... | ... |
ferramentas/funcoes_compacto.js
... | ... | @@ -22,7 +22,8 @@ document.body.style.backgroundColor="#F0F0F0";$tradAjuda=function(tipo,id){ eval |
22 | 22 | document.getElementById("aguardeTotal").style.display=tipo; document.getElementById("aguardeTotal1").style.display=tipo;}function cor(obj){window.parent.i3GEO.util.abreCor("wdocai",obj);} function mostraOpcao(anterior,proxima,texto,idatual){ if(document.getElementById(idatual)){document.getElementById("resultado").removeChild(document.getElementById(idatual))} |
23 | 23 | if(!document.getElementById(idatual)){ var ndiv=document.createElement("div"); ndiv.id=idatual; texto+="<br><br><table style='width:100%;background-color:#F2F2F2;' ><tr style='width:100%'>"; if(anterior !=""){texto+="<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"anterior_ onclick='"+anterior+"' type='button' value=' '/></td>";} |
24 | 24 | if(proxima !=""){texto+="<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"proxima_ onclick='"+proxima+"' type='button' value=' '/></td>";} |
25 | - ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center"; var i=$i(idatual+"anterior_-button"); i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
25 | + ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
26 | + var i=$i(idatual+"anterior_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";}} | |
26 | 27 | var ids=new Array("t0","t1","t2","t3","t4","t5","t6","t7"); for(i=0;i<ids.length;i++){ if(document.getElementById(ids[i])){document.getElementById(ids[i]).style.display="none";}} |
27 | 28 | document.getElementById(idatual).style.display="block";}function simnao(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE selected>sim</option>"; combo+="<option value=FALSE >não</option>"; combo+="</select>"; return(combo);}function naosim(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE >sim</option>"; combo+="<option value=FALSE selected >não</option>"; combo+="</select>"; return(combo);}function combocor(id,def,s){ var combo="<select name="+id+" id="+id+" >"; if(def==0){s='selected';} |
28 | 29 | combo+='<option value="0" '+s+' >branco</option>'; s=""; combo+='<option value="2">vermelho</option>'; combo+='<option value="7">amarelo</option>'; if(def==1){s='selected'}; combo+='<option value="1" '+s+' >preto</option>'; combo+='<option value="rgb(1,1,0.8)">bege</option>'; combo+='<option value="3">verde</option>'; combo+='<option value="8">cinza</option>'; combo+='<option value="4">azul</option>'; combo+='<option value="5">ciano</option>'; combo+='<option value="6">magenta</option>'; combo+="</select>"; return(combo);} function comboitens(id,tema,funcao,onde,nome){ if(arguments.length > 3) $i(onde).innerHTML="<span style=color:red;font-size:10px;>buscando itens...</span>"; if(arguments.length !=5){nome="";} | ... | ... |
ferramentas/gradepol/index.js
... | ... | @@ -71,14 +71,11 @@ function t3() |
71 | 71 | function t4() |
72 | 72 | { |
73 | 73 | ins = "A grade será acrescentada como um novo tema no mapa" |
74 | - ins += "<br><br><div style='text-align:left;left:0px' onclick='criargrade()' ><input id=botao1 size=18 class=executar type='button' value='Criar grade' /></div>" | |
74 | + ins += "<br><br><input id=botaoExec size=18 class=executar type='button' value='Criar grade' />" | |
75 | 75 | mostraOpcao("t3()","",ins,"t4") |
76 | - YAHOO.example.init = function () | |
77 | - { | |
78 | - function onPushButtonsMarkupReady() | |
79 | - {new YAHOO.widget.Button("botao1");} | |
80 | - YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); | |
81 | - }() | |
76 | + new YAHOO.widget.Button("botaoExec",{onclick:{fn: function(){ | |
77 | + criargrade(); | |
78 | + }}}); | |
82 | 79 | } |
83 | 80 | function criargrade() |
84 | 81 | { | ... | ... |
ferramentas/i3geo_tudo_compacto.js
... | ... | @@ -23,7 +23,8 @@ document.body.style.backgroundColor="#F0F0F0";$tradAjuda=function(tipo,id){ eval |
23 | 23 | document.getElementById("aguardeTotal").style.display=tipo; document.getElementById("aguardeTotal1").style.display=tipo;}function cor(obj){window.parent.i3GEO.util.abreCor("wdocai",obj);} function mostraOpcao(anterior,proxima,texto,idatual){ if(document.getElementById(idatual)){document.getElementById("resultado").removeChild(document.getElementById(idatual))} |
24 | 24 | if(!document.getElementById(idatual)){ var ndiv=document.createElement("div"); ndiv.id=idatual; texto+="<br><br><table style='width:100%;background-color:#F2F2F2;' ><tr style='width:100%'>"; if(anterior !=""){texto+="<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"anterior_ onclick='"+anterior+"' type='button' value=' '/></td>";} |
25 | 25 | if(proxima !=""){texto+="<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"proxima_ onclick='"+proxima+"' type='button' value=' '/></td>";} |
26 | - ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center"; var i=$i(idatual+"anterior_-button"); i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
26 | + ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
27 | + var i=$i(idatual+"anterior_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";}} | |
27 | 28 | var ids=new Array("t0","t1","t2","t3","t4","t5","t6","t7"); for(i=0;i<ids.length;i++){ if(document.getElementById(ids[i])){document.getElementById(ids[i]).style.display="none";}} |
28 | 29 | document.getElementById(idatual).style.display="block";}function simnao(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE selected>sim</option>"; combo+="<option value=FALSE >não</option>"; combo+="</select>"; return(combo);}function naosim(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE >sim</option>"; combo+="<option value=FALSE selected >não</option>"; combo+="</select>"; return(combo);}function combocor(id,def,s){ var combo="<select name="+id+" id="+id+" >"; if(def==0){s='selected';} |
29 | 30 | combo+='<option value="0" '+s+' >branco</option>'; s=""; combo+='<option value="2">vermelho</option>'; combo+='<option value="7">amarelo</option>'; if(def==1){s='selected'}; combo+='<option value="1" '+s+' >preto</option>'; combo+='<option value="rgb(1,1,0.8)">bege</option>'; combo+='<option value="3">verde</option>'; combo+='<option value="8">cinza</option>'; combo+='<option value="4">azul</option>'; combo+='<option value="5">ciano</option>'; combo+='<option value="6">magenta</option>'; combo+="</select>"; return(combo);} function comboitens(id,tema,funcao,onde,nome){ if(arguments.length > 3) $i(onde).innerHTML="<span style=color:red;font-size:10px;>buscando itens...</span>"; if(arguments.length !=5){nome="";} | ... | ... |
ferramentas/i3geo_tudo_compacto.js.php
... | ... | @@ -23,7 +23,8 @@ document.body.style.backgroundColor="#F0F0F0";$tradAjuda=function(tipo,id){ eval |
23 | 23 | document.getElementById("aguardeTotal").style.display=tipo; document.getElementById("aguardeTotal1").style.display=tipo;}function cor(obj){window.parent.i3GEO.util.abreCor("wdocai",obj);} function mostraOpcao(anterior,proxima,texto,idatual){ if(document.getElementById(idatual)){document.getElementById("resultado").removeChild(document.getElementById(idatual))} |
24 | 24 | if(!document.getElementById(idatual)){ var ndiv=document.createElement("div"); ndiv.id=idatual; texto+="<br><br><table style='width:100%;background-color:#F2F2F2;' ><tr style='width:100%'>"; if(anterior !=""){texto+="<td style='border:0px solid white;text-align:left;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"anterior_ onclick='"+anterior+"' type='button' value=' '/></td>";} |
25 | 25 | if(proxima !=""){texto+="<td style='border:0px solid white;text-align:right;cursor:pointer;background-color:#F2F2F2;'><input id="+idatual+"proxima_ onclick='"+proxima+"' type='button' value=' '/></td>";} |
26 | - ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center"; var i=$i(idatual+"anterior_-button"); i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
26 | + ndiv.innerHTML=texto+"</tr></table>"; document.getElementById("resultado").appendChild(ndiv); new YAHOO.widget.Button(idatual+"anterior_",{ onclick:{fn: function(){ eval(anterior+"()");}, lazyloadmenu:true }}); new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn: function(){ eval(proxima+"()");}, lazyloadmenu:true }}); var i=$i(idatual+"proxima_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_avanca.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";} | |
27 | + var i=$i(idatual+"anterior_-button"); if(i){ i.style.backgroundImage="url('../../imagens/player_volta.png')"; i.style.backgroundRepeat="no-repeat"; i.style.backgroundPosition="center center";}} | |
27 | 28 | var ids=new Array("t0","t1","t2","t3","t4","t5","t6","t7"); for(i=0;i<ids.length;i++){ if(document.getElementById(ids[i])){document.getElementById(ids[i]).style.display="none";}} |
28 | 29 | document.getElementById(idatual).style.display="block";}function simnao(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE selected>sim</option>"; combo+="<option value=FALSE >não</option>"; combo+="</select>"; return(combo);}function naosim(id){ var combo="<select name="+id+" id="+id+" >"; combo+="<option value=TRUE >sim</option>"; combo+="<option value=FALSE selected >não</option>"; combo+="</select>"; return(combo);}function combocor(id,def,s){ var combo="<select name="+id+" id="+id+" >"; if(def==0){s='selected';} |
29 | 30 | combo+='<option value="0" '+s+' >branco</option>'; s=""; combo+='<option value="2">vermelho</option>'; combo+='<option value="7">amarelo</option>'; if(def==1){s='selected'}; combo+='<option value="1" '+s+' >preto</option>'; combo+='<option value="rgb(1,1,0.8)">bege</option>'; combo+='<option value="3">verde</option>'; combo+='<option value="8">cinza</option>'; combo+='<option value="4">azul</option>'; combo+='<option value="5">ciano</option>'; combo+='<option value="6">magenta</option>'; combo+="</select>"; return(combo);} function comboitens(id,tema,funcao,onde,nome){ if(arguments.length > 3) $i(onde).innerHTML="<span style=color:red;font-size:10px;>buscando itens...</span>"; if(arguments.length !=5){nome="";} | ... | ... |