debu
This commit is contained in:
parent
c4e1568207
commit
1217276932
42
gestion/index2.php
Normal file
42
gestion/index2.php
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
require_once '../session_init.php';
|
||||||
|
require_once 'config.inc.php';
|
||||||
|
require_once 'db.class.php';
|
||||||
|
require_once 'entete.php';
|
||||||
|
|
||||||
|
$db = new db();
|
||||||
|
print(' <br><br>
|
||||||
|
<!-- lalis Grid Section -->
|
||||||
|
|
||||||
|
<section id="content">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12 text-center">
|
||||||
|
<h3>Gestion des votes</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
');
|
||||||
|
$votationsList = $db->queryVotationList();
|
||||||
|
print ("<table>");
|
||||||
|
foreach($votationsList as $votation)
|
||||||
|
{
|
||||||
|
print("<tr><td>");
|
||||||
|
print('<a href="' . $vote_url . 'gestion/saisieVotes.php?idVotation=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
||||||
|
if ($votation["status"] == 1)
|
||||||
|
{
|
||||||
|
print(_("Cloturé"));
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
print(_("En cours"));
|
||||||
|
}
|
||||||
|
print('</td></tr>');
|
||||||
|
}
|
||||||
|
print('</table>');
|
||||||
|
print('
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>');
|
||||||
|
|
||||||
|
require_once 'footer.html';
|
||||||
|
?>
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'session_init.php';
|
require_once '../session_init.php';
|
||||||
require_once 'config.inc.php';
|
require_once 'config.inc.php';
|
||||||
require_once 'db.class.php';
|
require_once 'db.class.php';
|
||||||
require_once 'entete.php';
|
require_once 'entete.php';
|
||||||
@ -22,7 +22,7 @@ print ("<table>");
|
|||||||
foreach($votationsList as $votation)
|
foreach($votationsList as $votation)
|
||||||
{
|
{
|
||||||
print("<tr><td>");
|
print("<tr><td>");
|
||||||
print('<a href="' . $vote_url . 'gestion/saisieVotes.php?idVotation=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
print('<a href="' . $vote_url . 'vote.form.php?v=' . $votation["id"] . '">' . $votation["libelle"] . '</a></td><td>');
|
||||||
if ($votation["status"] == 1)
|
if ($votation["status"] == 1)
|
||||||
{
|
{
|
||||||
print(_("Cloturé"));
|
print(_("Cloturé"));
|
||||||
@ -38,5 +38,5 @@ print('
|
|||||||
</div>
|
</div>
|
||||||
</section>');
|
</section>');
|
||||||
|
|
||||||
require_once './footer.html';
|
require_once 'footer.html';
|
||||||
?>
|
?>
|
||||||
|
@ -87,7 +87,16 @@ if ($dolibarr->result->num_rows == 0)
|
|||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
print " Bonjour " . $votant['firstname'] . " " . $votant['lastname'] . ',</h4>' . EOLH . EOLH . "Le vote ne sera ouvert qu'à partir du " . formattedate('fr', $votation['td'] , "Europe/Paris") . " et jusqu'au " . formattedate('fr', $votation['df'] , "Europe/Paris") . '.' . EOLH . "Si vous pensez que ceci est une erreur, veuillez prendre contact avec les responsables de l'association.</h4>";
|
print('
|
||||||
|
<h3>VOTE</h3>
|
||||||
|
<h4>');
|
||||||
|
$db->resultats($idVotation);
|
||||||
|
print (' <div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>');
|
||||||
|
//print " Bonjour " . $votant['firstname'] . " " . $votant['lastname'] . ',</h4>' . EOLH . EOLH . "Le vote n'est ouvert que du " . formattedate('fr', $votation['td'] , "Europe/Paris") . " au " . formattedate('fr', $votation['df'] , "Europe/Paris") . '.' . EOLH . "Si vous pensez que ceci est une erreur, veuillez prendre contact avec les responsables de l'association.</h4>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$db->close();
|
$db->close();
|
||||||
|
Reference in New Issue
Block a user