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 | 9 | $_GET = array_merge($_GET,$_POST); |
10 | 10 | $ret = $_GET["ret"]; |
11 | 11 | require_once(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); |
12 | -//error_reporting(0); | |
12 | +error_reporting(0); | |
13 | 13 | $cp = new cpaint(); |
14 | 14 | $cp->register('listaartigos'); |
15 | 15 | $cp->start(); |
... | ... | @@ -19,7 +19,7 @@ function listaartigos() |
19 | 19 | global $ret, $cp, $usuarioGeonames; |
20 | 20 | $e = explode(" ",$ret); |
21 | 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 | 23 | $xml = simplexml_load_file($url."&lang=pt"); |
24 | 24 | $conta = 0; |
25 | 25 | $fim = array(); |
... | ... | @@ -29,17 +29,17 @@ function listaartigos() |
29 | 29 | $r = $e->xpath('title'); |
30 | 30 | if (function_exists(mb_convert_encoding)) |
31 | 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 | 39 | $r = $e->xpath('summary'); |
40 | 40 | if (function_exists(mb_convert_encoding)) |
41 | 41 | {$r = mb_convert_encoding($r[0],"HTML-ENTITIES","auto");} |
42 | - $resultado .= $r."<br>"; | |
42 | + $resultado .= "<h5>" . $r . "</h5>"; | |
43 | 43 | |
44 | 44 | $r = $e->xpath('wikipediaUrl'); |
45 | 45 | if (function_exists(mb_convert_encoding)) | ... | ... |
ferramentas/wiki/index.js
... | ... | @@ -129,8 +129,8 @@ i3GEOF.wiki = { |
129 | 129 | //cria a janela flutuante |
130 | 130 | titulo = "<span class='i3GeoTituloJanelaBsNolink' >Wikipédia</span></div>"; |
131 | 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 | 196 | }; |
197 | 197 | cp = new cpaint(); |
198 | 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 | 205 | p = i3GEO.configura.locaplic+"/ferramentas/wiki/funcoes.php?funcao=listaartigos&ret="+ext; |
204 | 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