-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent_view.php
More file actions
70 lines (69 loc) · 3.18 KB
/
Copy pathstudent_view.php
File metadata and controls
70 lines (69 loc) · 3.18 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
<?php require 'dbconnexion.php'; require 'code.php'; ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap demo</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
</head>
<body>
<div class="container mt-5">
<div class="row">
<h1 class="text-center fw-bold">Users management</h1>
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4>
View student details
<a href="index.php" class="btn btn-danger float-end">Back</a>
</h4>
</div>
<div class="card-body">
<?php
$student_id=$_GET['id'];
$readOne =$pdo->query("SELECT * from add_student WHERE id='$student_id'");
$i = 1;
while($student=$readOne->fetch()){
?>
<input type="hidden" name="student_id" value="<?= $student['id'] ; ?>">
<div class="mb-3">
<label class="fw-bold">Student Name</label>
<p>
<?= $student['name_student'] ; ?>
</p>
</div>
<div class="mb-3">
<label class="fw-bold">Student Email</label>
<p>
<?= $student['email'] ; ?>
</p>
</div>
<div class="mb-3">
<label class="fw-bold">Student Phone</label>
<p>
<?= $student['phone'] ; ?>
</p>
</div>
<div class="mb-3">
<label class="fw-bold">Student matricule</label>
<p>
<?= $student['matricule'] ; ?>
</p>
</div>
<?php
++$i;
}
?>
</div>
</div>
</div>
<?php
// $object = new person($student['name_student'],$student['email'],$student['phone'],$student['matricule']);
// $affich = $object->show_details();
?>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
</body>
</html>