From: <sk...@us...> - 2008-02-16 13:45:36
|
Revision: 582 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=582&view=rev Author: sknappe Date: 2008-02-16 05:45:26 -0800 (Sat, 16 Feb 2008) Log Message: ----------- added an icon for the google maps refreshing a site should now be no problem (search not perfect yet) Modified Paths: -------------- trunk/src/dbpedia-navigator/ajaxfunctions.php trunk/src/dbpedia-navigator/default.css trunk/src/dbpedia-navigator/index.php Added Paths: ----------- trunk/src/dbpedia-navigator/images/mobmaps_googlemapsicon.jpg Modified: trunk/src/dbpedia-navigator/ajaxfunctions.php =================================================================== --- trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-02-16 12:44:28 UTC (rev 581) +++ trunk/src/dbpedia-navigator/ajaxfunctions.php 2008-02-16 13:45:26 UTC (rev 582) @@ -97,7 +97,7 @@ // give the link to the corresponding Wikipedia article if(isset($triples['http://xmlns.com/foaf/0.1/page'])) - $content .= '<p><img src="'.$_GET['path'].'images/wikipedia_favicon.png" alt"Wikipedia" /> <a href="'.$triples['http://xmlns.com/foaf/0.1/page'][0].'">view Wikipedia article</a>, '; + $content .= '<p><img src="'.$_GET['path'].'images/wikipedia_favicon.png" alt="Wikipedia" /> <a href="'.$triples['http://xmlns.com/foaf/0.1/page'][0].'">view Wikipedia article</a>, '; $content .= '<a href="'.$uri.'">view DBpedia resource description</a></p>'; // display a list of classes @@ -110,9 +110,9 @@ $content .= '<li><a href="'.$reference.'">'.$reference.'</a></li>'; $content .= '</ul></p>'; } - + //display a Google Map if Geo-koordinates are available if (isset($triples['http://www.w3.org/2003/01/geo/wgs84_pos#long'])&&isset($triples['http://www.w3.org/2003/01/geo/wgs84_pos#lat'])){ - $content.="<br/><a href=\"\" onClick=\"loadGoogleMap(".$triples['http://www.w3.org/2003/01/geo/wgs84_pos#lat'][0].",".$triples['http://www.w3.org/2003/01/geo/wgs84_pos#long'][0].");return false;\">a map of the location</a><div id=\"map\" style=\"width: 500px; height: 300px;display:none;\"></div>"; + $content.="<br/><img src=\"".$_GET['path']."images/mobmaps_googlemapsicon.jpg\" alt=\"Google Maps\" style=\"max-width:30px;\" /> <a href=\"\" onClick=\"loadGoogleMap(".$triples['http://www.w3.org/2003/01/geo/wgs84_pos#lat'][0].",".$triples['http://www.w3.org/2003/01/geo/wgs84_pos#long'][0].");return false;\">a map of the location</a><div id=\"map\" style=\"width: 500px; height: 300px;display:none;\"></div>"; } Modified: trunk/src/dbpedia-navigator/default.css =================================================================== --- trunk/src/dbpedia-navigator/default.css 2008-02-16 12:44:28 UTC (rev 581) +++ trunk/src/dbpedia-navigator/default.css 2008-02-16 13:45:26 UTC (rev 582) @@ -45,8 +45,8 @@ } #content { - /*margin: 0 19em; - overflow: hidden;*/ + /*margin: 0 19em;*/ + overflow: hidden; /*width: 10%;*/ width: 60%; float: left; Added: trunk/src/dbpedia-navigator/images/mobmaps_googlemapsicon.jpg =================================================================== (Binary files differ) Property changes on: trunk/src/dbpedia-navigator/images/mobmaps_googlemapsicon.jpg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-02-16 12:44:28 UTC (rev 581) +++ trunk/src/dbpedia-navigator/index.php 2008-02-16 13:45:26 UTC (rev 582) @@ -17,6 +17,16 @@ require_once 'Settings.php'; $settings=new Settings(); +//what happens onLoad +$onload=""; +if (isset($_GET['resource'])){ + $onLoad.="onLoad=\"xajax_getarticle('".$_GET['resource']."',-1);return false;\""; + unset($_GET['resource']); +} +else if (isset($_SESSION['currentArticle'])){ + $onLoad.="onLoad=\"xajax_getarticle('',".$_SESSION['currentArticle'].");return false;\""; +} + require("ajax.php"); echo '<?xml version="1.0" encoding="UTF-8"?>'; @@ -55,14 +65,14 @@ if (GBrowserIsCompatible()) { // Create and Center a Map var map = new GMap2(document.getElementById("map")); - map.setCenter(new GLatLng(Lat, Lng), 10); + map.setCenter(new GLatLng(Lat, Lng), 12); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); } } </script> </head> - <body <?php if (isset($_GET['resource'])) print "onLoad=\"xajax_getarticle('".$_GET['resource']."',-1);return false;\"";unset($_GET['resource']);?>> + <body <?php print $onLoad;?>> <!-- <h1>DBpedia Navigator</h1> --> <div><table border="0" width="100%"><tr><td width="35%"><img src="<?php print $path;?>images/dbpedia_navigator.png" alt="DBpedia Navigator" style="padding:5px" /></td><td width="50%"><span id="conceptlink"></span></td><td width="15%"><span id="Loading" style="display:none">Server Call... <img src="<?php print $path;?>images/remove.png" onclick="xajax_stopServerCall();return false;" /></span></td></tr></table></div> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |