1
0
This commit is contained in:
Daniel Tartavel 2022-09-29 16:40:13 +02:00
parent e0296f3756
commit 2ccd3a7505
3 changed files with 69 additions and 3 deletions

View File

@ -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;

61
include/entete.php Normal file
View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Daniel Tartavel">
<title>Lyon Association Libre Informatique Solidaire</title>
<!-- Custom CSS -->
<link href="../css/freelancer.css" rel="stylesheet">
<!-- Custom Fonts >
<link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css"-->
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body id="page-top" class="index">
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<!--button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button-->
<a class="navbar-brand" href="#page-top">LALIS</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="page-scroll">
<a href="index.html">Accueil</a>
</li>
<li class="page-scroll">
<a href="https://lalis.fr">Site Web LALIS</a>
</li>
</ul>
</div><div><a>Association loi 1901</a></div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>

View File

@ -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');
?>