-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodifier.php
More file actions
77 lines (74 loc) · 3.13 KB
/
modifier.php
File metadata and controls
77 lines (74 loc) · 3.13 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
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
<html>
<head>
<title>Plateforme ESSA</title>
<h1>VOUS ÊTES DANS LA PAGE DE MODIFICATION DES INFORMATIONS</h1>
<h2></h2>
<meta charset="UTF-8"/>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="bootstrap.min.css">
</head>
<body>
<img class="a" src="ESSA.PNG" height="110" width="180"/>
<img class="b" src="CAMES.PNG" height="110" width="180"/>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="essa.css"/>
<?php
try
{
$connexion = new PDO('mysql:host=localhost;dbname=plategesedu', 'root', '');
$requete="select * from etudiant where Id=".$_GET['id'];
$resultat=$connexion->query($requete);
foreach($resultat as $row);
{
?>
<form action="traitemodif.php" method="post">
<div class="row">
<div>
<div class="col">
<label class="grey" for="username">Entrer l'id de l'édiant:</label>
<input class="form-control" type="hidden" name="id" id="username" value="<?php echo $row['id'] ; ?>" size="23" />
</div>
<div>
<div class="col">
<label class="grey" for="username">Entrez le nom de l'étudiant:</label>
<input class="form-control" type="text" name="Nom" id="username" value="<?php echo $row['Nom'] ; ?>" size="23" />
</div>
<div>
<div class="col">
<label class="grey" for="username">Entrez le Prenom de l'étudiant:</label>
<input class="form-control" type="text" name="Prenom" id="username" value="<?php echo $row['Prenom'] ; ?>" size="23" />
</div>
<div>
<div class="col">
<label class="grey" for="username">Entrez son Login:</label>
<input class="form-control" type="text" name="Login" id="username" value="<?php echo $row['Login'] ; ?>" size="23" />
</div>
<div class="col">
<label class="grey" for="username">Entrez son Password:</label>
<input class="form-control" type="text" name="Password" id="username" value="<?php echo $row['Password'] ; ?>" size="23" />
</div>
<div class="col">
<label class="grey" for="username">Renseigner son Niveau:</label>
<input class="form-control" type="text" name="Niveau" id="username" value="<?php echo $row['Niveau'] ; ?>" size="23" />
</div>
<div class="col">
<label class="grey" for="username">Son Adresse:</label>
<input class="form-control" type="text" name="Adresse" id="username" value="<?php echo $row['Adresse'] ; ?>" size="23" />
</div>
<div class="col">
<label class="grey" for="username">Entrez son Numéro de téléphone:</label>
<input class="form-control" type="text" name="Tel" id="username" value="<?php echo $row['Tel'] ; ?>" size="23" />
</div>
<br>
<div>
<div class="col">
<button type="submit" class="btn btn-warning">ENREGISTRER</button>
</div>
</div>
</form>
<?php
}
}catch (Exception $e){
die('Erreur : ' . $e->getMessage());
}?>
</div>