|
|
@ -95,15 +95,26 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '
|
|
|
|
echo '
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">';
|
|
|
|
<button type="submit" class="btn btn-success ms-1">✔
|
|
|
|
if(!$t->get_isDone()){
|
|
|
|
|
|
|
|
echo '<button type="submit" class="btn btn-success ms-1">✔
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
|
|
|
|
<input type="hidden" name="Tdone" value="'.$t->get_isDone().'"></input>
|
|
|
|
<input type="hidden" name="action" value="isDone">
|
|
|
|
<input type="hidden" name="action" value="isDone">
|
|
|
|
<input type="hidden" name="isPriv" value="true">
|
|
|
|
<input type="hidden" name="isPriv" value="true">
|
|
|
|
</button>
|
|
|
|
</button>';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
echo '<button type="submit" class="btn btn-secondary ms-1">✖
|
|
|
|
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
|
|
|
|
<input type="hidden" name="Tdone" value="'.$t->get_isDone().'"></input>
|
|
|
|
|
|
|
|
<input type="hidden" name="action" value="isDone">
|
|
|
|
|
|
|
|
<input type="hidden" name="isPriv" value="true">
|
|
|
|
|
|
|
|
</button>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
echo '
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">
|
|
|
|
<form action="index.php" method="post" class="d-inline-block">
|
|
|
|
<button type="submit" class="btn btn-danger">✖
|
|
|
|
<button type="submit" class="btn btn-danger">🗑
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
<input type="hidden" name="idT" value="'.$t->get_id().'"></input>
|
|
|
|
<input type="hidden" name="action" value="supprimerTache">
|
|
|
|
<input type="hidden" name="action" value="supprimerTache">
|
|
|
|
<input type="hidden" name="isPriv" value="true">
|
|
|
|
<input type="hidden" name="isPriv" value="true">
|
|
|
|