forked from BrKillian/PPE3_videoGroupe2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
98 lines (92 loc) · 4.48 KB
/
index.php
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
session_start();
include 'Controleur.php';
function chargerPage()
{
$monControleur = new Controleur();
$monControleur->afficheEntete();
if(isset($_GET['login']))
{
if ((isset($_GET['vue']))&& (isset($_GET['action'])))
{ $monControleur->affichePage($_GET['action'],$_GET['vue']);
}
}
else
{
premier_affichage();
}
$monControleur->affichePiedPage();
}
function premier_affichage()
{
/*echo "<div class = 'centrePage'>
<table border=3 align=center>
<tr align=center>
<td>
<h2> Nouveau compte</h2>
</td>
<td>
<h2> Je suis déjà client </h2>
</td>
</tr>
<tr align=center>
<td>
<form href = 'index.php?vue=compte&action=nouveauLogin' method='post'>
<input type='text' name='nomClient' value='saisir votre nom'/><br>
<input type='text' name='prenomClient' value='Saisir votre prenom'/><br>
<input type='text' name='emailClient' value='Saisir votre email'/><br>
<input type='text' name='dateAbonnementClient' value='Date souhaitée d abonnement'/><br>
<input type='text' name='login' value='Saisir votre login'/><br>
<input type='text' name='Password' value='Choisir un mot de passe'/><br>
<input type='submit' value='Accéder'/>
</form>
</td>
<td>
<form action=index.php method=GET>
<input type='text' name='login'/><br>
<input type='text' name='password'/><br>
<input type='hidden' name='vue' value='compte'>
<input type='hidden' name='action' value='verifLogin'/>
<input type='submit' value='Accéder'/>
</form>
</td>
</tr>
</table>
</div>";*/
echo "</nav>
<div class='container h-100'>
<div class='row h-100 justify-content-center align-items-center'>
<table class='table w-50'>
<thead>
<td class='head-table-connexion text-white'>Je suis déjà client</td>
<td class='head-table-connexion text-white'>Je crée mon compte</td>
</thead>
<tbody>
<tr>
<td class='td-table justify-content-center'>
<form action=index.php method=GET>
<input class='form-group' type='text' placeholder='Login' name='login'/><br>
<input class='form-group' type='password' placeholder='Mot de passe' name='password'/><br>
<input type='hidden' name='vue' value='compte'>
<input type='hidden' name='action' value='verifLogin'/>
<input class='btn btn-secondary mx-auto' type='submit' value='Accéder'/>
</form>
</td>
<td class='justify-content-center td-table'>
<form href = 'index.php?vue=compte&action=nouveauLogin' method='post'>
<input class='form-group' type='text' name='nomClient' placeholder='saisir votre nom'/><br>
<input class='form-group' type='text' name='prenomClient' placeholder='Saisir votre prenom'/><br>
<input class='form-group' type='text' name='emailClient' placeholder='Saisir votre email'/><br>
<input class='form-group' type='date' name='dateAbonnementClient' placeholder='Date souhaitée d abonnement'/><br>
<input class='form-group' type='text' name='login' placeholder='Saisir votre login'/><br>
<input class='form-group' type='password' name='password' placeholder='Choisir un mot de passe'/><br>
<input class='btn btn-secondary' type='submit' value='Accéder'/>
</form>
</td>
</tbody>
</table>
</div>
</div>";
}
chargerPage();
?>