Blame view

site/formInscription.php 1.72 KB
011cb454   grouille   Ajout compte
1
  <?php
c71ae98a   grouille   Test
2
  if(getGroupe($_SESSION['Login'])!=1)
011cb454   grouille   Ajout compte
3
  { header("Location: accueil.php"); }
2f67e41a   grouille   Test
4
  //$groupes = getGroupes();
011cb454   grouille   Ajout compte
5
  ?>
19ae2416   jnduwamu   MAJ du site
6
7
8
  <div class="row">
  	<div class="col-4 col-md-4 offset-md-4 offset-4">
  	<br/>
39579493   root   MAJ Site
9
  		<h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fa fa-user-circle"></i> Inscription</h1>
19ae2416   jnduwamu   MAJ du site
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  		<form action="inscription.php" method="post">
  			<table class="table table-striped table-bordered">
  				<tbody>
  					<tr>
  						<td>Nom : </td>
  						<td><input type="text" name="nom" placeholder="Entrez votre nom" required="true" /></td>
  					</tr>
  					
  					<tr>
  						<td>Prénom : </td>
  						<td><input type="text" name="prenom" placeholder="Entrez votre prénom" required="true" /></td>
  					</tr>
  
  					<tr>
011cb454   grouille   Ajout compte
24
25
26
27
28
  						<td>Groupe : </td>
  						<td>
  							<select id="groupe" name="groupe" required />
  								<option> </option>
  								<?php
2f67e41a   grouille   Test
29
  								/*foreach($groupes as $groupe)
011cb454   grouille   Ajout compte
30
  								{
6d917299   grouille   Ajout compte
31
  									echo "<option value=$groupe['id']>$groupe['nom']</option>";
2f67e41a   grouille   Test
32
  								}*/
011cb454   grouille   Ajout compte
33
34
35
36
37
38
  								?>
  							</select>
  						</td>
  					</tr>
  
  					<tr>
19ae2416   jnduwamu   MAJ du site
39
40
41
42
43
44
45
46
47
48
49
50
  						<td>Identifiant : </td>
  						<td><input type="text" name="id" placeholder="Entrez votre identifiant" maxlength="30" required="true" /></td>
  					</tr>
  					
  					<tr>
  						<td>Mot de passe :</td>
  						<td><input type="password" name="pass1" placeholder="Entrez votre mot de passe" required="true" /></td>
  					</tr>
  					<tr>
  						<td>Confirmer mot de passe :</td>
  						<td><input type="password" name="pass2" placeholder="Entrez votre mot de passe" required="true" /></td>
  					</tr>
19ae2416   jnduwamu   MAJ du site
51
52
  				</tbody>
  			</table>
41313a7a   Guillaume   MAJ site
53
  			<input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="S'inscrire"/>
3bff9633   Guillaume   MAJ site
54
  			<br/>
19ae2416   jnduwamu   MAJ du site
55
56
57
  		</form>
  	</div>
  </div>