debug
This commit is contained in:
parent
6383cedf89
commit
87e612e6f9
@ -35,7 +35,15 @@ if (!empty($idCandidat))
|
|||||||
choixVote($path, $idVotation);
|
choixVote($path, $idVotation);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
print('<h3>Nouveau candidat pour le vote');
|
$votationName = $db->queryVotationName($idVotation);
|
||||||
|
$voteName = $db->queryVoteName($idVote);
|
||||||
|
$candidatsList = $db->queryCandidatsList($idVotation, $idVote);
|
||||||
|
print('<h3>Nouveau candidat pour le vote ' . $voteName . ' de la votation ' . $votationName . '</h3>');
|
||||||
|
print('Liste des candidats');
|
||||||
|
foreach($candidatsList as $line)
|
||||||
|
{
|
||||||
|
print($line["libelle"] . EOLH);
|
||||||
|
}
|
||||||
candidatsForm($path, $idVotation, $idVote);
|
candidatsForm($path, $idVotation, $idVote);
|
||||||
}
|
}
|
||||||
print(' </div>
|
print(' </div>
|
||||||
|
@ -141,7 +141,7 @@ class dbcore
|
|||||||
{
|
{
|
||||||
$query = "SELECT * FROM liste_candidats WHERE idVotation='" . $idVotation . "' AND idVote='" . $idVote . "'";
|
$query = "SELECT * FROM liste_candidats WHERE idVotation='" . $idVotation . "' AND idVote='" . $idVote . "'";
|
||||||
$this->query($query);
|
$this->query($query);
|
||||||
$candidats = $this->result->fetch_all();
|
$candidats = $this->result->fetch_all(MYSQL_ASSOC);
|
||||||
return $candidats;
|
return $candidats;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user