From: <sk...@us...> - 2008-09-29 11:45:32
|
Revision: 1297 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1297&view=rev Author: sknappe Date: 2008-09-29 11:45:24 +0000 (Mon, 29 Sep 2008) Log Message: ----------- if there are positives or negatives in session, they are shown now Modified Paths: -------------- trunk/src/dbpedia-navigator/index.php Modified: trunk/src/dbpedia-navigator/index.php =================================================================== --- trunk/src/dbpedia-navigator/index.php 2008-09-29 11:15:23 UTC (rev 1296) +++ trunk/src/dbpedia-navigator/index.php 2008-09-29 11:45:24 UTC (rev 1297) @@ -17,6 +17,7 @@ //what happens onLoad $onLoad="onLoad=\"document.getElementById('label').focus();"; if (isset($_GET['positives'])||isset($_GET['negatives'])) $onLoad.="setPositivesAndNegatives('positives=".$_GET['positives']."&negatives=".$_GET['negatives']."');"; +else if (isset($_SESSION['positives'])||isset($_SESSION['negatives'])) $onLoad.="setPositivesAndNegatives('positives=".$_SESSION['positives']."&negatives=".$_SESSION['negatives']."');"; if (isset($_GET['showArticle'])) $onLoad.="get_article('label=".$_GET['showArticle']."&cache=-1');"; else if (isset($_GET['search'])) $onLoad.="search_it('label=".$_GET['search']."&number=10');"; else if (isset($_GET['showClass'])) $onLoad.="get_class('class=http://dbpedia.org/class/yago/".$_GET['showClass']."&cache=-1');"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |