ajout de la liste des votants lors de l'affichage des résultats
This commit is contained in:
@ -35,7 +35,7 @@ if ($dolibarr->result->num_rows == 0)
|
||||
{
|
||||
$dolibarr->close();
|
||||
$db = new db();
|
||||
$query = 'SELECT *, UNIX_TIMESTAMP(dateDebut) as td, UNIX_TIMESTAMP(dateFin) as tf FROM liste_votations WHERE id=' . $db->protect($idVotation);
|
||||
$query = 'SELECT *, UNIX_TIMESTAMP(dateDebut) as td, UNIX_TIMESTAMP( DATE_ADD(dateFin, INTERVAL 1 DAY)) as tf FROM liste_votations WHERE id=' . $db->protect($idVotation);
|
||||
$resultVotation = $db->query($query);
|
||||
$votation = $db->result->fetch_array();
|
||||
$now = date('Y-m-d');
|
||||
|
Reference in New Issue
Block a user