Commit 79e65a09c4da943af961f05e809554703dc0d324
1 parent
be901b4e
Exists in
master
and in
7 other branches
Correções na ferramenta de busca de espécies
Showing
2 changed files
with
10 additions
and
8 deletions
Show diff stats
ferramentas/especies/pesquisa.htm
... | ... | @@ -113,7 +113,7 @@ Banco de dados NatureServer . <a href="http://www.natureserve.org/infonatura/" t |
113 | 113 | </select> |
114 | 114 | </DIV> |
115 | 115 | </form> |
116 | -<DIV id=ResultadoPesquisa></DIV> | |
116 | +<DIV id=ResultadoPesquisa ></DIV> | |
117 | 117 | </body> |
118 | 118 | <script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> |
119 | 119 | <script language="JavaScript" type="text/javascript" src="index.js"></script> |
... | ... | @@ -237,18 +237,20 @@ function executa() |
237 | 237 | { |
238 | 238 | var banco = document.getElementById("comboFiltros").value |
239 | 239 | if (banco == "") |
240 | - {alert("Escolha um tipo!");return} | |
240 | + {$i("ResultadoPesquisa").innerHTML = "";alert("Escolha um tipo!");return} | |
241 | 241 | document.getElementById("ResultadoPesquisa").innerHTML = "Aguarde! Pesquisando....."; |
242 | 242 | if (document.getElementById("comboFamilias")) |
243 | 243 | { |
244 | 244 | var familia = document.getElementById("comboFamilias").value |
245 | 245 | if (familia == "") |
246 | - {alert("Escolha uma familia!");return} | |
246 | + {$i("ResultadoPesquisa").innerHTML = "";alert("Escolha uma familia!");return} | |
247 | 247 | } |
248 | 248 | var especie = "" |
249 | 249 | if (document.getElementById("comboEspecies")) |
250 | 250 | { |
251 | 251 | var especie = (document.getElementById("comboEspecies").value) |
252 | + if (especie == "") | |
253 | + {$i("ResultadoPesquisa").innerHTML = "";alert("Escolha uma especie!");return} | |
252 | 254 | } |
253 | 255 | var cor = document.getElementById("cor").value |
254 | 256 | var p = "pesquisa.php?g_sid="+g_sid+"&funcao=adicionatema&banco="+banco+"&familia="+familia+"&especie="+especie+"&cor="+cor | ... | ... |
ferramentas/especies/pesquisa.php
... | ... | @@ -113,11 +113,11 @@ function adicionatema() |
113 | 113 | $mapa = ms_newMapObj($map_file); |
114 | 114 | include("../../classesphp/classe_mapa.php"); |
115 | 115 | include("../../classesphp/funcoes_gerais.php"); |
116 | - $nomeslegenda["munamb1"] = "pássaros (poligonos)"; | |
117 | - $nomeslegenda["munamb2"] = "anfíbios (poligonos)"; | |
118 | - $nomeslegenda["munamb3"] = "mamíferos (poligonos)"; | |
119 | - $nomeslegenda["munamb4"] = "pássaros (pontos)"; | |
120 | - $nomeslegenda["munamb5"] = "mamíferos (pontos)"; | |
116 | + $nomeslegenda["munamb1"] = "pássaros (poligonos) ".$especie; | |
117 | + $nomeslegenda["munamb2"] = "anfíbios (poligonos) ".$especie; | |
118 | + $nomeslegenda["munamb3"] = "mamíferos (poligonos) ".$especie; | |
119 | + $nomeslegenda["munamb4"] = "pássaros (pontos) ".$especie; | |
120 | + $nomeslegenda["munamb5"] = "mamíferos (pontos) ".$especie; | |
121 | 121 | foreach ($tabelas as $tabela) |
122 | 122 | { |
123 | 123 | if ($tabela["gids"] != '') | ... | ... |