1
0

major commit

This commit is contained in:
Daniel Tartavel
2022-09-14 13:05:25 +02:00
parent 70261fcd71
commit d2e27f5cde
13 changed files with 34 additions and 29 deletions

View File

@ -1 +1 @@
daniel:$apr1$Up83RCLZ$x46wYId2latEFsJARi/cL/
daniel:$apr1$67uwe85A$ygTTmLOR/DxIJgPMqGVox.

View File

@ -3,7 +3,7 @@
require_once '../session_init.php';
require_once 'config.inc.php';
require_once 'db.class.php';
require_once 'entete.html';
require_once 'entete.php';
$idVotation =$_GET["id"];
@ -21,7 +21,7 @@ $dolibarr = new dbDolibarr();
if (empty($idVotation))
{
choixVotation('/gestionsite/envoiMailing.php') ;
choixVotation('./envoiMailing.php') ;
}else
{
//chargement des données de la votation
@ -59,6 +59,7 @@ if (empty($idVotation))
print '<pre>' . $adherent['email'] . ' ' . $adherent['firstname'] . ' ' . $adherent['lastname'] . EOLH . nl2br($text) . '</pre>';
if ( $_GET['status'] == 'Oui')
{
//print $text;
envoiMail($adherent['email'], $sujet, $text, $html=false, $cc='', $bcc='');
//envoiMail('dtux@free.fr', $sujet, $text, $html=false, $cc='', $bcc='');
}

View File

@ -2,7 +2,7 @@
require_once '../session_init.php';
require_once 'config.inc.php';
require_once './entete.html';
require_once 'entete.php';
print(' <br><br>
<!-- lalis Grid Section -->
@ -20,7 +20,7 @@ print(' <br><br>
<li><a href="creationVotation.php">nouvelle votations</a></li>
<li><a href="modifVotation.php">Modifier une votation</a></li>
<li><a href="cloturerVotation.php?action=cloture">Fermer une votation</a></li>
<li><a href="envoiMailing.php.php">Envoyer le mailing</a></li>
<li><a href="envoiMailing.php">Envoyer le mailing</a></li>
</ul>
</div>
</div>

View File

@ -3,7 +3,7 @@
require_once '../session_init.php';
require_once 'config.inc.php';
require_once 'db.class.php';
require_once './entete.html';
require_once './entete.php';
require_once 'fonctions.inc.php';
$action = $_GET["action"];
@ -22,7 +22,7 @@ $db = new db();
if (empty($action))
{
$action="modif";
choixVotation('/gestionsite/modifVotation.php') ;
choixVotation('./modifVotation.php') ;
}else
{
@ -31,7 +31,7 @@ if (empty($action))
if ( empty($idVotation))
{
// choix de la votation à cloturer
choixVotation('/gestionsite/modifVotation.php',1 );
choixVotation('./modifVotation.php',1 );
}else
{
$query = "UPDATE liste_votations SET status=0 WHERE id=" . $db->protect($idVotation); // clotûre