ajout saisieModification
This commit is contained in:
@ -52,7 +52,7 @@ if (empty($idVotation))
|
||||
|
||||
$sujet = "[LALIS] Convocation à un vote";
|
||||
$textDebut = "Bonjour,\nL'association Lalis vous invite à un vote du " . formatteDate('fr', $votation['dd'], 'Europe/Paris') . " 0h00 au " . formatteDate('fr', $votation['df'], 'Europe/Paris') . " minuit.\nMotif du vote : " . $votation['libelle'] . "\n\nPour voter, cliquez sur le lien suivant :\nhttps://lalis69.ddns.net:10443/vote.form.php?v=" . $idVotation . "&id=";
|
||||
$textFin = "\n\nNous vous rappelons que pour pouvoir voter, vous devez être à jour de cotisation à la date du vote.\nLes résultats seront visibles dès le " . formatteDate('fr', $votation['tf'], 'Europe/Paris') . " par le lien suivant : https://lalis69.ddns.net:10443/vote.resultat.php?id=" . $idVotation . "\n\nPour Lalis, Le Président, David Larochette.";
|
||||
$textFin = "\n\nNous vous rappelons que pour pouvoir voter, vous devez être à jour de cotisation à la date du vote.\nLes résultats seront visibles dès le " . formatteDate('fr', $votation['tf'], 'Europe/Paris') . " par le lien suivant : https://lalis69.ddns.net:10443/vote.resultat.php?id=" . $idVotation . "\nAttention: ce lien contient votre identifiant de vote, ne le transmettez, sinon la personne pourra voter à votre place.\n\nPour Lalis, Le Président, David Larochette.";
|
||||
foreach($adherents as $adherent)
|
||||
{
|
||||
$text = $textDebut . base64_encode($adherent['login']) . $textFin;
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
require_once '../session_init.php';
|
||||
require_once 'session_init.php';
|
||||
require_once 'config.inc.php';
|
||||
require_once 'db.class.php';
|
||||
require_once './entete.php';
|
||||
require_once 'entete.php';
|
||||
require_once 'fonctions.inc.php';
|
||||
|
||||
$action = $_GET["action"];
|
||||
@ -35,10 +35,15 @@ if (empty($action))
|
||||
}else
|
||||
{
|
||||
//TODO alert "Do you want to delete ..."
|
||||
$query = "UPDATE liste_votations SET status=0 WHERE id=" . $db->protect($idVotation); // clotûre
|
||||
$query = "UPDATE liste_votations SET status=0 WHERE id='" . $db->protect($idVotation) . "'"; // clotûre
|
||||
$db->query($query);
|
||||
}
|
||||
}elseif ($action == "modif")
|
||||
{
|
||||
//TODO
|
||||
votationForm($path, $titre, $libelle, $dateDebut, $dateFin, $status);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
print(' </div>
|
||||
|
32
gestionsite/saisieVotation.php
Normal file
32
gestionsite/saisieVotation.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
require_once 'session_init.php';
|
||||
require_once 'config.inc.php';
|
||||
require_once 'db.class.php';
|
||||
require_once 'entete.php';
|
||||
require_once 'fonctions.inc.php';
|
||||
|
||||
$path = $_SERVER["PHP_SELF"];
|
||||
print('<br><br>
|
||||
<!-- lalis Grid Section -->
|
||||
|
||||
<section id="content">
|
||||
<div class="container">';
|
||||
print(' <div class="row">
|
||||
<div class="col-lg-12 text-center">
|
||||
<h3>Nouvelle votation</h3>
|
||||
<h4>');
|
||||
|
||||
if (array_key_exists("titre"), $_GET)
|
||||
{
|
||||
|
||||
}
|
||||
votationForm($path);
|
||||
print(' </div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>');
|
||||
require_once("footer.html");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user