Commit eed23d4f8b737645b4faddbea515d8fef593ca15
1 parent
576967a1
Exists in
master
and in
7 other branches
correção nos sqls que listam grupos e subgrupos em função das mudanças na versão nova do postgres
Showing
3 changed files
with
10 additions
and
8 deletions
Show diff stats
admin/php/classe_arvore.php
... | ... | @@ -169,13 +169,13 @@ class Arvore |
169 | 169 | function pegaSubgruposGrupo($id_menu,$id_n1) |
170 | 170 | { |
171 | 171 | $subgrupos = $this->execSQL($this->sql_subgrupos."where ".$this->pubsql." i3geoadmin_n2.id_n1='$id_n1' order by ordem"); |
172 | - $raiz = $this->execSQL($this->sql_temasraiz."where i3geoadmin_raiz.id_menu='$id_menu' and i3geoadmin_raiz.nivel = 1 and i3geoadmin_raiz.id_nivel = $id_n1 order by ordem"); | |
172 | + $raiz = $this->execSQL($this->sql_temasraiz."where i3geoadmin_raiz.nivel = 1 and i3geoadmin_raiz.id_nivel = $id_n1 order by ordem"); | |
173 | 173 | return array("raiz"=>$raiz,"subgrupos"=>$subgrupos); |
174 | 174 | } |
175 | 175 | //pega os temas na raiz de um grupo |
176 | 176 | function pegaTemasRaizGrupo($id_menu,$id_n1) |
177 | 177 | { |
178 | - return $this->execSQL($this->sql_temasraiz."where i3geoadmin_raiz.id_menu='$id_menu' and i3geoadmin_raiz.nivel = 1 and i3geoadmin_raiz.id_nivel = $id_n1 order by ordem"); | |
178 | + return $this->execSQL($this->sql_temasraiz."where i3geoadmin_raiz.nivel = 1 and i3geoadmin_raiz.id_nivel = $id_n1 order by ordem"); | |
179 | 179 | } |
180 | 180 | //pega os dados de um tema |
181 | 181 | function pegaTema($id_tema) |
... | ... | @@ -190,7 +190,7 @@ class Arvore |
190 | 190 | //formata os dados com grupos e temas na raiz do menu |
191 | 191 | function formataGruposMenu ($id_menu,$perfil,$listasgrupos) |
192 | 192 | { |
193 | - error_reporting(E_ALL); | |
193 | + //error_reporting(E_ALL); | |
194 | 194 | $dados = $this->pegaGruposMenu($id_menu); |
195 | 195 | $resultado = array(); |
196 | 196 | $temasraiz = array(); |
... | ... | @@ -322,7 +322,9 @@ class Arvore |
322 | 322 | //executa o sql |
323 | 323 | function execSQL($sql) |
324 | 324 | { |
325 | - $q = $this->dbh->query($sql,PDO::FETCH_ASSOC); | |
325 | + //echo "<br>".$sql; | |
326 | + //error_reporting(E_ALL); | |
327 | + $q = $this->dbh->query($sql,PDO::FETCH_ASSOC); | |
326 | 328 | return $q->fetchAll(); |
327 | 329 | } |
328 | 330 | function verificaOcorrencia($procurar,$em) | ... | ... |
geradordelinks.htm
... | ... | @@ -18,11 +18,11 @@ P |
18 | 18 | <img style=left:0px; src="imagens/barrasuperior_geradordelinks_2006.jpg" width="765" > |
19 | 19 | </div>--> |
20 | 20 | <div style=width:550px;position:relative;top:10px;left:10px;background-color:rgb(250,250,250) > |
21 | -<div id=bandeiras style=width:80px ></div><br> | |
22 | -<p class=paragrafo >Aqui você pode gerar links para abrir o I3Geo de forma personalizada. | |
21 | + <div id=bandeiras style=width:80px ></div><br> | |
22 | + <p class=paragrafo >Aqui você pode gerar links para abrir o I3Geo de forma personalizada. | |
23 | 23 | Os links podem ser incluídos em qualquer página WEB, sendo possível |
24 | -definir quais os temas serão mostrados e qual a extensão geográfica do mapa.</p> | |
25 | -</div> | |
24 | +definir quais os temas serão mostrados e qual a extensão geográfica do mapa.<br><br></p> | |
25 | + </div> | |
26 | 26 | <div style=width:550px;left:10px;text-align:left; ><p class=paragrafo >Este é o link para abrir o mapa. Copie e cole em sua página |
27 | 27 | na internet ou clique para testar: |
28 | 28 | <a style=color:blue;font-size:12px href="" id=link target=blanck ></a> | ... | ... |
menutemas/admin.db
No preview for this file type