-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview.php
151 lines (104 loc) · 3.1 KB
/
view.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?php
$title = 'View Record';
require_once 'includes/header.php';
require_once 'includes/auth_check.php';
require_once 'db/conn.php';
//Get attendee by id
if(!isset($_GET['id'])){
include 'includes/errormessage.php';
}else{
$id = $_GET['id'];
$result = $crud->getStudentDetails($id);
?>
<img src="<?php echo empty ($result['avatar_path']) ? "uploads/blank.png" : $result['avatar_path'] ; ?>" class="rounded mx-auto d-block img-fluid rounded-start" style="width: 15%; height: 15%"/>
<br>
<div class="col d-flex justify-content-center">
<div class="card text-bg-secondary mb-3 border-success" style="width: 20rem;">
<div class="card-header text-bg-dark">
<h5 class="card-title">
<?php
echo $result['fname'] . ' ' . $result['lname'];
?>
</h5>
</div>
<div class="card-body">
<!-- <h6 class="card-subtitle mb-2 text-muted">
<?php
echo $result['name'];
?>
</h6> -->
<p class="card-text">
Gender: <?php
echo $result['gender'];
?>
</p>
<p class="card-text">
Date of Birth: <?php
echo $result['dateofbirth'];
?>
</p>
<p class="card-text">
Address: <?php
echo $result['address1'];
?>
</p>
<p class="card-text">
Town: <?php
echo $result['town'];
?>
</p>
<p class="card-text">
Parish: <?php
echo $result['parish_name'];
?>
</p>
<p class="card-text">
Grade: <?php
echo $result['grade'];
?>
</p>
<p class="card-text">
House: <?php
echo $result['house_name'];
?>
</p>
<p class="card-text">
Event Type: <?php
echo $result['eventtype_name'];
?>
</p>
<p class="card-text">
Email Address: <?php
echo $result['emailaddress'];
?>
</p>
<p class="card-text">
Contact Number: <?php
echo $result['contact'];
?>
</p>
<br/>
<div class="card-footer">
<a href="viewrecords.php" class="btn btn-info">Back to List</a>
<a href="edit.php?id=<?php echo $result['student_id'] ?>" class="btn btn-warning">Edit</a>
<a onclick="return confirm('Are you sure you want to delete');" href="delete.php?id=<?php echo $result['student_id'] ?>" class="btn btn-danger">Delete</a>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<?php } ?>
</div>
<br>
<br>
<br>
<br>
<br>
<?php require_once 'includes/footer.php'; ?>