Commit 0bc70a5b01c0178b95570f4bc4156c1c8e08a64a
1 parent
e3647b26
Exists in
master
and in
7 other branches
Correção na ferramenta de navegação usando a Wikipedia e ajustes no estilo de ap…
…resentação dos resultados
Showing
58 changed files
with
18 additions
and
15 deletions
Show diff stats
ferramentas/wiki/funcoes.php
@@ -9,7 +9,7 @@ include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); | @@ -9,7 +9,7 @@ include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); | ||
9 | $_GET = array_merge($_GET,$_POST); | 9 | $_GET = array_merge($_GET,$_POST); |
10 | $ret = $_GET["ret"]; | 10 | $ret = $_GET["ret"]; |
11 | require_once(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); | 11 | require_once(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); |
12 | -//error_reporting(0); | 12 | +error_reporting(0); |
13 | $cp = new cpaint(); | 13 | $cp = new cpaint(); |
14 | $cp->register('listaartigos'); | 14 | $cp->register('listaartigos'); |
15 | $cp->start(); | 15 | $cp->start(); |
@@ -19,7 +19,7 @@ function listaartigos() | @@ -19,7 +19,7 @@ function listaartigos() | ||
19 | global $ret, $cp, $usuarioGeonames; | 19 | global $ret, $cp, $usuarioGeonames; |
20 | $e = explode(" ",$ret); | 20 | $e = explode(" ",$ret); |
21 | $url = "http://api.geonames.org/wikipediaBoundingBox?username=".$usuarioGeonames."&style=full&north=".$e[3]."&south=".$e[1]."&east=".$e[2]."&west=".$e[0]."&maxRows=20"; | 21 | $url = "http://api.geonames.org/wikipediaBoundingBox?username=".$usuarioGeonames."&style=full&north=".$e[3]."&south=".$e[1]."&east=".$e[2]."&west=".$e[0]."&maxRows=20"; |
22 | - //echo $url; | 22 | + //echo $url;exit; |
23 | $xml = simplexml_load_file($url."&lang=pt"); | 23 | $xml = simplexml_load_file($url."&lang=pt"); |
24 | $conta = 0; | 24 | $conta = 0; |
25 | $fim = array(); | 25 | $fim = array(); |
@@ -29,17 +29,17 @@ function listaartigos() | @@ -29,17 +29,17 @@ function listaartigos() | ||
29 | $r = $e->xpath('title'); | 29 | $r = $e->xpath('title'); |
30 | if (function_exists(mb_convert_encoding)) | 30 | if (function_exists(mb_convert_encoding)) |
31 | {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} | 31 | {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} |
32 | - $resultado .= "<b>".$r."</b> - "; | 32 | + $resultado .= "<h4>".$r."</h4> "; |
33 | 33 | ||
34 | - $r = $e->xpath('feature'); | ||
35 | - if (function_exists(mb_convert_encoding)) | ||
36 | - {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} | ||
37 | - $resultado .= "<span style=color:red >".$r."</span><br>"; | 34 | + //$r = $e->xpath('feature'); |
35 | + //if (function_exists(mb_convert_encoding)) | ||
36 | + //{$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} | ||
37 | + //$resultado .= "<span style=color:red >".$r."</span><br>"; | ||
38 | 38 | ||
39 | $r = $e->xpath('summary'); | 39 | $r = $e->xpath('summary'); |
40 | if (function_exists(mb_convert_encoding)) | 40 | if (function_exists(mb_convert_encoding)) |
41 | {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} | 41 | {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} |
42 | - $resultado .= $r."<br>"; | 42 | + $resultado .= "<h5>" . $r . "</h5>"; |
43 | 43 | ||
44 | $r = $e->xpath('wikipediaUrl'); | 44 | $r = $e->xpath('wikipediaUrl'); |
45 | if (function_exists(mb_convert_encoding)) | 45 | if (function_exists(mb_convert_encoding)) |
ferramentas/wiki/index.js
@@ -129,8 +129,8 @@ i3GEOF.wiki = { | @@ -129,8 +129,8 @@ i3GEOF.wiki = { | ||
129 | //cria a janela flutuante | 129 | //cria a janela flutuante |
130 | titulo = "<span class='i3GeoTituloJanelaBsNolink' >Wikipédia</span></div>"; | 130 | titulo = "<span class='i3GeoTituloJanelaBsNolink' >Wikipédia</span></div>"; |
131 | janela = i3GEO.janela.cria( | 131 | janela = i3GEO.janela.cria( |
132 | - "250px", | ||
133 | - "190px", | 132 | + "450px", |
133 | + "220px", | ||
134 | "", | 134 | "", |
135 | "", | 135 | "", |
136 | "", | 136 | "", |
@@ -196,10 +196,12 @@ i3GEOF.wiki = { | @@ -196,10 +196,12 @@ i3GEOF.wiki = { | ||
196 | }; | 196 | }; |
197 | cp = new cpaint(); | 197 | cp = new cpaint(); |
198 | cp.set_response_type("JSON"); | 198 | cp.set_response_type("JSON"); |
199 | - if(i3GEO.parametros.mapexten) | ||
200 | - {ext = i3GEO.parametros.mapexten;} | ||
201 | - else | ||
202 | - {ext = "-49.1774741355 -16.379556709 -47.2737662565 -14.9806872512";} //apenas para exemplo | 199 | + if(i3GEO.parametros.mapexten){ |
200 | + ext = i3GEO.parametros.mapexten; | ||
201 | + } | ||
202 | + else{ | ||
203 | + ext = "-49.1774741355 -16.379556709 -47.2737662565 -14.9806872512"; | ||
204 | + } //apenas para exemplo | ||
203 | p = i3GEO.configura.locaplic+"/ferramentas/wiki/funcoes.php?funcao=listaartigos&ret="+ext; | 205 | p = i3GEO.configura.locaplic+"/ferramentas/wiki/funcoes.php?funcao=listaartigos&ret="+ext; |
204 | cp.call(p,"listaartigos",mostrar); | 206 | cp.call(p,"listaartigos",mostrar); |
205 | 207 |
ferramentas/wiki/template_mst.html
pacotes/yui290/build/container/container_compacto.js
100644 → 100755
pacotes/yui290/build/container/container_core_compacto.js
100644 → 100755
pacotes/yui290/build/utilities/utilities_compacto.js
100644 → 100755