Commit 36bd56e1 authored by PkSM3's avatar PkSM3

ignore .db

parent c53d17f2
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
</div> </div>
<!-- </div> --> <!-- </div> -->
<!-- <div class="geomapCont"></div> --> <!-- <div class="geomapCont"></div> -->
<!-- <div id="closemodal2" data-dismiss="modal"></div> --> <div id="closegeomap" data-dismiss="modal"></div>
</div> </div>
......
...@@ -90,7 +90,13 @@ function initiateMap(db,query,submodName){ ...@@ -90,7 +90,13 @@ function initiateMap(db,query,submodName){
animDuration : 300 animDuration : 300
}, },
eventHandlers: { eventHandlers: {
dblclick: function(e, id, mapElem, textElem){console.log(id); console.log(partialGraph)} dblclick: function(e, id, mapElem, textElem) {
console.log(id);
console.log(partialGraph)
$.doTimeout(30,function (){
$("#closegeomap").click();
});
}
} }
}, },
afterInit : function($self, paper, areas, plots, options) { afterInit : function($self, paper, areas, plots, options) {
......
<?php
// Common parameters for all function proposing insight into the corpora
header('Content-Type: application/json');
ini_set('display_errors', 'On');
error_reporting(E_ALL);
$mainpath=dirname(dirname(getcwd()))."/"; // -> /var/www/ademe/data/
$db=json_decode($_GET["db"]);
$dbname="";
foreach($db as $d){
if (strpos($d, 'graph.db') !== false){
$db=$d;
break;
}
}
if($mainpath=="//") $mainpath="";
if ( is_array($db) ) $db = $db[0];
echo "[$mainpath] this is the mainpath\n";
echo "[$db] this is the db\n";
echo "sqlite:" .$mainpath.$db."\n";
echo "sqlite:" ."../../community.db";
//$dbname=$db[0];//getDB($mainpath);//'homework-20750-1-homework-db.db';;
$base = new PDO("sqlite:" ."/var/www/adasd/community.db");
echo "succeed?\n";
$max_item_displayed=6;
?>
...@@ -11,8 +11,10 @@ foreach($db as $d){ ...@@ -11,8 +11,10 @@ foreach($db as $d){
} }
} }
if($mainpath=="//") $mainpath=""; if($mainpath=="//") $mainpath="";
//$dbname=$db[0];//getDB($mainpath);//'homework-20750-1-homework-db.db';; //$dbname=$db[0];//getDB($mainpath);//'homework-20750-1-homework-db.db';;
$base = new PDO("sqlite:" .$mainpath.$db); $base = new PDO("sqlite:" .$mainpath.$db) or die("cannot open the database");
$max_item_displayed=6; $max_item_displayed=6;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment