From 2ccd3a7505bec99d4ff7ecdab2b57483be7d7d1e Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 29 Sep 2022 16:40:13 +0200 Subject: [PATCH] modif ui --- include/db.class.php | 2 +- include/entete.php | 61 ++++++++++++++++++++++++++++++++++++++++++++ session_init.php | 9 +++++-- 3 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 include/entete.php diff --git a/include/db.class.php b/include/db.class.php index a3a0ee9..50487ac 100644 --- a/include/db.class.php +++ b/include/db.class.php @@ -155,7 +155,7 @@ class dbcore function queryVotes($idVotation) { - $query = "SELECT id, lv.libelle, ms.libelle as methode FROM liste_votes as lv LEFT JOIN methods as ms ON lv.methode=ms.id WHERE idVotation='" . $idVotation . "'"; + $query = "SELECT lv.id, lv.libelle, ms.libelle as methode FROM liste_votes as lv LEFT JOIN methods as ms ON lv.methode=ms.id WHERE idVotation='" . $idVotation . "'"; $this->query($query); $votes = $this->result->fetch_all(MYSQLI_ASSOC); return $votes; diff --git a/include/entete.php b/include/entete.php new file mode 100644 index 0000000..e5f0271 --- /dev/null +++ b/include/entete.php @@ -0,0 +1,61 @@ + + + + + + + + + + + + Lyon Association Libre Informatique Solidaire + + + + + + + + + + + + + + + + diff --git a/session_init.php b/session_init.php index 9c03299..869aec3 100644 --- a/session_init.php +++ b/session_init.php @@ -12,7 +12,12 @@ session_start(); error_reporting(E_ALL); date_default_timezone_set("Europe/Paris"); -$base_path = "/var/www/html/vote"; -set_include_path(get_include_path() . ':' .$base_path . '/include'); +$base_path = "/var/www/html"; +set_include_path(get_include_path() . ':' .$base_path . '/vote/include'); +set_include_path(get_include_path() . ':' .$base_path . '/css'); +set_include_path(get_include_path() . ':' .$base_path . '/font-awesome'); +set_include_path(get_include_path() . ':' .$base_path . '/img'); +set_include_path(get_include_path() . ':' .$base_path . '/js'); ?> +