Commit bc36ca771ea8ecdb9319632f6767baa0f592108c
1 parent
5c22cc17
Exists in
master
--no commit message
Showing
1 changed file
with
21 additions
and
6 deletions
Show diff stats
ogc.php
| ... | ... | @@ -530,21 +530,37 @@ else{ |
| 530 | 530 | $menus = $m->pegaListaDeMenus(); |
| 531 | 531 | foreach ($menus as $menu){ |
| 532 | 532 | $grupos = $m->pegaListaDeGrupos($menu["idmenu"],$listasistemas="nao",$listasgrupos="sim"); |
| 533 | + //temas na raiz do menu | |
| 534 | + $lts = $menu["temas"]; | |
| 535 | + //var_dump($lts);exit; | |
| 536 | + foreach($lts as $t){ | |
| 537 | + if(strtolower($t["ogc_tema"]) != "nao"){ | |
| 538 | + $codigosTema[$t["codigo_tema"]] = array("tema"=>$t["codigo_tema"],"fonte"=>$t["link_tema"]); | |
| 539 | + } | |
| 540 | + } | |
| 533 | 541 | foreach($grupos as $grupo){ |
| 542 | + $lts = $grupo["temasgrupo"]; | |
| 543 | + //var_dump($lts); | |
| 544 | + foreach($lts as $t){ | |
| 545 | + if(strtolower($t["ogc"]) != "nao"){ | |
| 546 | + $codigosTema[$t["tid"]] = array("tema"=>$t["tid"],"fonte"=>$t["link"]); | |
| 547 | + } | |
| 548 | + } | |
| 534 | 549 | if(strtolower($grupo["ogc"]) == "sim"){ |
| 535 | 550 | foreach($grupo["subgrupos"] as $sgrupo){ |
| 536 | 551 | if(strtolower($sgrupo["ogc"]) == "sim"){ |
| 537 | 552 | $lts = $m->pegaListaDeTemas($grupo["id_n1"],$sgrupo["id_n2"],$menu["idmenu"]); |
| 538 | 553 | foreach($lts as $t){ |
| 539 | 554 | if(strtolower($t["ogc"]) == "sim"){ |
| 540 | - $codigosTema[] = array("tema"=>$t["tid"],"fonte"=>$t["link"]); | |
| 555 | + $codigosTema[$t["tid"]] = array("tema"=>$t["tid"],"fonte"=>$t["link"]); | |
| 541 | 556 | } |
| 542 | 557 | } |
| 543 | 558 | } |
| 544 | 559 | } |
| 545 | 560 | } |
| 546 | 561 | } |
| 547 | - } | |
| 562 | + } | |
| 563 | + //echo "<pre>".var_dump($codigosTema);exit; | |
| 548 | 564 | foreach($codigosTema as $c){ |
| 549 | 565 | $codigoTema = $c["tema"]; |
| 550 | 566 | if(file_exists($locaplic."/temas/".$codigoTema.".map")){ |
| ... | ... | @@ -833,12 +849,11 @@ if(strtolower($req->getValueByName("REQUEST")) == "getfeatureinfo" && $_GET["inf |
| 833 | 849 | getfeatureinfoJson(); |
| 834 | 850 | exit; |
| 835 | 851 | } |
| 836 | - | |
| 837 | 852 | if(strtolower($request) == "getcapabilities"){ |
| 838 | - header('Content-Disposition: attachment; filename=getcapabilities.xml'); | |
| 853 | + //header('Content-Disposition: attachment; filename=getcapabilities.xml'); | |
| 839 | 854 | } |
| 840 | - | |
| 841 | -if(!isset($OUTPUTFORMAT)){ | |
| 855 | +elseif(!isset($OUTPUTFORMAT)){ | |
| 856 | + //$contenttype = ms_iostripstdoutbuffercontenttype(); | |
| 842 | 857 | header("Content-type: $contenttype"); |
| 843 | 858 | } |
| 844 | 859 | //$ogrOutput vem de ms_configura.php | ... | ... |