-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajoutGroupe.php
More file actions
37 lines (36 loc) · 1.31 KB
/
ajoutGroupe.php
File metadata and controls
37 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php include("topPage.php"); ?>
<html>
<?php include("head.php"); ?>
<body>
<?php include("enTete.php"); ?>
<form method="post" name="formulaire" action="ajoutGroupeFonction.php">
<?php if(isSet($_GET['ok'])){ ?>
<span class=success>Le groupe <?php echo $_GET['ok']?> a été ajouté</span>
<?php } ?>
<table class=form>
<tr>
<td><label for="nom">Nom du groupe</label></td>
<td><input type="text" name="nom" id="nom"/></td>
<?php if(isSet($_GET['errNomVide'])){ ?>
<td class=erreur>Le nom du groupe ne peut être vide</td>
<?php } ?>
<?php if(isSet($_GET['errNomExiste'])){ ?>
<td class=erreur>Le groupe ne doit pas déjà exister</td>
<?php } ?>
</tr>
<tr>
<td><label for="couleur">Couleur du groupe</label></td>
<td><input type="color" name="couleur" id="couleur"/></td>
</tr>
<tr>
<td><label for="type">Est une personne ?</label></td>
<td><input type="checkbox" name="type" id="type" /></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="#" onClick=formulaire.submit()><span class="logo valider">W</span></a></td>
</tr>
</table>
</form>
<?php include("footer.php"); ?>
</body>
</html>