corection zone dans latng & correction slide

This commit is contained in:
adriy 2019-01-07 15:14:10 +01:00
parent ed8403ac14
commit 22e8271b48
23 changed files with 24 additions and 22 deletions

0
bdd.js Normal file → Executable file
View File

0
config.json.sample Normal file → Executable file
View File

0
controllers/login-controller.js Normal file → Executable file
View File

0
controllers/register-controller.js Normal file → Executable file
View File

0
controllers/securepw.js Normal file → Executable file
View File

36
fonction.js Normal file → Executable file
View File

@ -1,22 +1,24 @@
exports.choixZone = function(zones){
var zone = zones[0];
var aireMin = (zones[0].Nord-zones[0].Sud)*(zones[0].Est-zones[0].Ouest)
for(var i = 1;i<zones.length;i++)
{
var aire = (zones[i].Nord-zones[i].Sud)*(zones[i].Est-zones[i].Ouest)
if(aire<aireMin){
zone = zones[i];
aireMin = aire;
}
}
return zone;
var zone = zones[0];
var aireMin = (zones[0].Nord-zones[0].Sud)*(zones[0].Est-zones[0].Ouest)
for(var i = 1;i<zones.length;i++)
{
var aire = (zones[i].Nord-zones[i].Sud)*(zones[i].Est-zones[i].Ouest)
if(aire<aireMin){
zone = zones[i];
aireMin = aire;
}
}
return zone;
}
exports.listPubDansZone = function(zone, callback){
var con = require('./bdd.js')
con.query("SELECT * FROM com_active INNER JOIN zone ON com_active.ID_Zone = zone.ID_Zone INNER JOIN communication ON com_active.ID_Com = communication.ID_Com WHERE zone.ID_Zone = ? ", [zone], function(err, result){
var data = JSON.stringify(result);
data = JSON.parse(data);
callback(err, data)
});
var con = require('./bdd.js')
con.query("SELECT * FROM com_active INNER JOIN zone ON com_active.ID_Zone = zone.ID_Zone INNER JOIN communication ON com_active.ID_Com = communication.ID_Com WHERE zone.ID_Zone = ? ", [zone], function(err, result){
var data = JSON.stringify(result);
console.log(data);
data = JSON.parse(data);
callback(err, data)
});
}

0
index.js Normal file → Executable file
View File

0
static/Icons/H1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
static/Icons/h0.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

0
static/Js/index.js Normal file → Executable file
View File

0
static/Js/map.js Normal file → Executable file
View File

0
static/Shapes/circle-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 276 B

0
static/Shapes/circles-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 828 B

After

Width:  |  Height:  |  Size: 828 B

0
static/Shapes/curve1-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

0
static/Shapes/curve2-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

0
static/Shapes/triangle-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

0
static/Shapes/water-shape.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 311 B

After

Width:  |  Height:  |  Size: 311 B

0
static/css/style.css Normal file → Executable file
View File

0
views/TV_old.ejs Normal file → Executable file
View File

0
views/_index2.ejs Normal file → Executable file
View File

0
views/index.ejs Normal file → Executable file
View File

0
views/login.ejs Normal file → Executable file
View File

0
views/map.ejs Normal file → Executable file
View File