forked from rebillar/site-accueil-insa
test ville
This commit is contained in:
parent
84d5433ffe
commit
6f13447a4f
1 changed files with 14 additions and 0 deletions
|
@ -110,6 +110,14 @@ if(isset($_POST['del_epreuve'])){
|
|||
|
||||
|
||||
|
||||
// reinitialiser la progression d'une equipe,
|
||||
// utile si l'on fait plusieurs sessions
|
||||
if(isset($_POST['reset_ekip'])){
|
||||
$req = $db->prepare("UPDATE ville_epreuve SET est_trouvee=0 WHERE id_equipe=?");
|
||||
$req->execute(array(htmlspecialchars((int)$_POST['id_ekip'])));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -146,6 +154,12 @@ if(isset($_POST['del_epreuve'])){
|
|||
<input type="submit" name="add_equipe" value="Ajouter l'équipe" class="submit_inline">
|
||||
</form>
|
||||
|
||||
<hr>
|
||||
<form method="POST">
|
||||
<input type="number" name="id_equipe" id="id_equipe" class="input_inline" value="<?= isset($_GET["ekip"]) ? (int)$_GET["ekip"]:1;?>">
|
||||
<input type="submit" name="reset_ekip" value="Reinitialiser la progression de l'équipe" class="submit_inline">
|
||||
</form>
|
||||
|
||||
<h4>Equipes déjà enregistrées :</h4>
|
||||
<table class="acces">
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue