Commit 58d24ca1a4fe482ffd603f7ae17ebc076ad33159
1 parent
de42133d
Test
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
site/formInscription.php
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | require_once("accesBase.php"); | 2 | require_once("accesBase.php"); |
3 | if(getGroupe($_SESSION['Login'])!=1) | 3 | if(getGroupe($_SESSION['Login'])!=1) |
4 | { header("Location: accueil.php"); } | 4 | { header("Location: accueil.php"); } |
5 | - | ||
6 | $groupes = getGroupes(); | 5 | $groupes = getGroupes(); |
7 | ?> | 6 | ?> |
8 | <div class="row"> | 7 | <div class="row"> |
@@ -28,10 +27,10 @@ $groupes = getGroupes(); | @@ -28,10 +27,10 @@ $groupes = getGroupes(); | ||
28 | <select id="groupe" name="groupe" required /> | 27 | <select id="groupe" name="groupe" required /> |
29 | <option> </option> | 28 | <option> </option> |
30 | <?php | 29 | <?php |
31 | - /*foreach($groupes as $groupe) | 30 | + foreach($groupes as $groupe) |
32 | { | 31 | { |
33 | echo "<option value=$groupe['id']>$groupe['nom']</option>"; | 32 | echo "<option value=$groupe['id']>$groupe['nom']</option>"; |
34 | - }*/ | 33 | + } |
35 | ?> | 34 | ?> |
36 | </select> | 35 | </select> |
37 | </td> | 36 | </td> |
site/inscrire.php
@@ -15,7 +15,7 @@ session_start(); | @@ -15,7 +15,7 @@ session_start(); | ||
15 | include("header.php"); | 15 | include("header.php"); |
16 | require_once("accesBase.php"); | 16 | require_once("accesBase.php"); |
17 | if(getGroupe($_SESSION['Login'])==1) | 17 | if(getGroupe($_SESSION['Login'])==1) |
18 | - { include("formConnexion.php"); } | 18 | + { include("formInscription.php"); } |
19 | else | 19 | else |
20 | { header("Location: accueil.php"); } | 20 | { header("Location: accueil.php"); } |
21 | ?> | 21 | ?> |