From bf6b1102ed1bbc8d427951d4a0f0f173f913c3d6 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 6 Nov 2008 10:34:52 +0000 Subject: [PATCH] --- classesphp/classe_atlas.php | 2 +- classesphp/classe_menutemas.php | 46 +++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/classesphp/classe_atlas.php b/classesphp/classe_atlas.php index d82574b..7f697fe 100644 --- a/classesphp/classe_atlas.php +++ b/classesphp/classe_atlas.php @@ -45,7 +45,7 @@ $atlasxml - Objeto xml com o atlas. */ function __construct($xml,$arquivo) { - error_reporting(E_ALL); + error_reporting(0); $this->xml = $xml; $this->arquivo = $arquivo; } diff --git a/classesphp/classe_menutemas.php b/classesphp/classe_menutemas.php index 182e8f1..241d9ba 100644 --- a/classesphp/classe_menutemas.php +++ b/classesphp/classe_menutemas.php @@ -58,7 +58,7 @@ $editores - (opcional) array com os editores cadastrados no ms_configura.php */ function __construct($map_file="",$perfil="",$locsistemas="",$locaplic="",$menutemas="",$urli3geo="",$editores="") { - error_reporting(E_ALL); + error_reporting(0); $perfil = str_replace(" ",",",$perfil); $this->perfil = explode(",",$perfil); $this->locsistemas = $locsistemas; @@ -334,7 +334,7 @@ array $temp = ixml($tema,"DOWNLOAD"); if (($temp == "sim") || ($temp == "SIM")) {$down = "sim";} - $temp = ixml($temar,"OGC"); + $temp = ixml($tema,"OGC"); if (($temp != "nao") || ($temp != "NAO")) {$ogc = "sim";} } @@ -425,7 +425,8 @@ array {$this->xml = simplexml_load_file($ondexml);} else //pega o xml do sistema de administração { - $this->xml = simplexml_load_string(geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic)); + $this->xml = simplexml_load_string(geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic)); + //echo geraXmlMenutemas(implode(" ",$this->perfil),$idmenu,$tipo,$this->locaplic);exit; } } } @@ -470,26 +471,25 @@ array } } } - $temas = array(); - foreach($grupo->TEMA as $temar) - { - $down = "nao"; - $ogc = "sim"; - $temp = ixml($temar,"DOWNLOAD"); - if (($temp == "sim") || ($temp == "SIM")) - {$down = "sim";} - $temp = ixml($temar,"OGC"); - if (($temp == "nao") || ($temp == "NAO")) - {$ogc = "nao";} - $link = " "; - $temp = ixml($temar,"TLINK"); - if ($temp != "") - {$link = $temp;} - $tid = ixml($temar,"TID"); - $nome = ixml($temar,"TNOME"); - $temas[] = array("tid"=>$tid,"nome"=>$nome,"link"=>$link,"down"=>$down,"ogc"=>$ogc); - } - + $temas = array(); + foreach($grupo->TEMA as $temar) + { + $down = "nao"; + $ogc = "sim"; + $temp = ixml($temar,"DOWNLOAD"); + if (($temp == "sim") || ($temp == "SIM")) + {$down = "sim";} + $temp = ixml($temar,"OGC"); + if (($temp == "nao") || ($temp == "NAO")) + {$ogc = "nao";} + $link = " "; + $temp = ixml($temar,"TLINK"); + if ($temp != "") + {$link = $temp;} + $tid = ixml($temar,"TID"); + $nome = ixml($temar,"TNOME"); + $temas[] = array("tid"=>$tid,"nome"=>$nome,"link"=>$link,"down"=>$down,"ogc"=>$ogc); + } } $conta = $conta + 1; } -- libgit2 0.21.2