Commit 4f4ac832c0c3be4d01653d36c68401252d77a635

Authored by Edmar Moretti
1 parent 66690227

Ativação da opção de definição de quais itens da tabela de atributos poderm ser …

…vistos na ferramenta identifica
classesphp/classe_atributos.php
@@ -2275,6 +2275,7 @@ class Atributos @@ -2275,6 +2275,7 @@ class Atributos
2275 $tips = explode(",",$tips); 2275 $tips = explode(",",$tips);
2276 //o retorno deve ser do tipo TIP 2276 //o retorno deve ser do tipo TIP
2277 if($etip == true || $todosItens = true){ 2277 if($etip == true || $todosItens = true){
  2278 + $itensMetadata = $itens;
2278 $temp = array_combine($itens,$itensdesc); 2279 $temp = array_combine($itens,$itensdesc);
2279 $templ = array_combine($itens,$lks); 2280 $templ = array_combine($itens,$lks);
2280 $tempimg = array_combine($itens,$itemimg); 2281 $tempimg = array_combine($itens,$itemimg);
@@ -2284,32 +2285,33 @@ class Atributos @@ -2284,32 +2285,33 @@ class Atributos
2284 $lks = array(); 2285 $lks = array();
2285 $itemimg = array(); 2286 $itemimg = array();
2286 $locimg = array(); 2287 $locimg = array();
2287 -  
2288 foreach($itensLayer as $t){ 2288 foreach($itensLayer as $t){
2289 - $itens[] = $t;  
2290 - if($temp[$t] != ""){  
2291 - $itensdesc[] = $temp[$t];  
2292 - }  
2293 - else{  
2294 - $itensdesc[] = $t;  
2295 - }  
2296 - if($templ[$t] != ""){  
2297 - $lks[] = $templ[$t];  
2298 - }  
2299 - else{  
2300 - $lks[] = "";  
2301 - }  
2302 - if($tempimg[$t] != ""){  
2303 - $itemimg[] = $tempimg[$t];  
2304 - }  
2305 - else{  
2306 - $itemimg[] = "";  
2307 - }  
2308 - if($temploc[$t] != ""){  
2309 - $locimg[] = $temploc[$t];  
2310 - }  
2311 - else{  
2312 - $locimg[] = ""; 2289 + if(in_array($t,$itensMetadata)){
  2290 + $itens[] = $t;
  2291 + if($temp[$t] != ""){
  2292 + $itensdesc[] = $temp[$t];
  2293 + }
  2294 + else{
  2295 + $itensdesc[] = $t;
  2296 + }
  2297 + if($templ[$t] != ""){
  2298 + $lks[] = $templ[$t];
  2299 + }
  2300 + else{
  2301 + $lks[] = "";
  2302 + }
  2303 + if($tempimg[$t] != ""){
  2304 + $itemimg[] = $tempimg[$t];
  2305 + }
  2306 + else{
  2307 + $itemimg[] = "";
  2308 + }
  2309 + if($temploc[$t] != ""){
  2310 + $locimg[] = $temploc[$t];
  2311 + }
  2312 + else{
  2313 + $locimg[] = "";
  2314 + }
2313 } 2315 }
2314 } 2316 }
2315 } 2317 }
css/i3geo7.css.php 100644 → 100755
js/i3geo_tudo_compacto7.js.php 100644 → 100755