ajout saisieModification
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user