New function : filterStudents

This commit is contained in:
Divlo
2019-08-29 14:53:15 +02:00
parent bb6268af7b
commit 521f9ee24a
7 changed files with 91 additions and 2 deletions

View File

@ -36,6 +36,10 @@
<td><a href="./function-views/convertDistance.php">Conversion de Distance</a></td>
<td>Convertit la longueur (distance) avec les unités allant de picomètre au Téramètre.</td>
</tr>
<tr>
<td><a href="./function-views/filterStudents.php">Trie les prénoms par leur première lettre</a></td>
<td>Affiche uniquement les prénoms (qui sont dans la liste) qui commence par la lettre souhaitée.</td>
</tr>
</tbody>
</table>
</div>

View File

@ -0,0 +1,29 @@
<!-- Config -->
<?php include("../../php/config.php");?>
<!-- Header -->
<?php include("../../incl/header.php");?>
<!-- Page Content -->
<div class="container">
<h1><span class="important"><?php echo $title?></span> :</h1>
<p class="pt-3 text-center"><?php echo $description?></p>
<div class="form-group">
<label for="nameEntered">Entrez les prénoms :</label>
<input name="nameEntered" type="text" id="nameEntered" placeholder="(e.g : 'Prénom1, Prénom2, Prénom3, ...')" class="form-control">
<br>
<label for="filteredLetter">Entrez la lettre à filtré :</label>
<input name="filteredLetter" type="text" id="filteredLetter" placeholder="(e.g : 'A')" class="form-control">
<br>
<div class="form-row text-center">
<div class="col-12">
<button type="submit" id="submitFilterStudents" class="btn btn-dark text-center">Envoyer</button>
</div>
</div>
<br> <br>
<p class="results text-center"></p>
</div>
</div>
<!-- Footer -->
<?php include("../../incl/footer.php");?>