-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_page.php
81 lines (62 loc) · 2.68 KB
/
admin_page.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
<?php
include_once 'classes/db1.php';
$result = mysqli_query($conn,"SELECT * FROM staff_coordinator s ,event_info ef ,student_coordinator st,events e where e.event_id= ef.event_id and e.event_id= s.event_id and e.event_id= st.event_id");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>xyz2023</title>
</head>
<body>
<?php include 'utils/adminHeader.php'?>
<div class = "content">
<div class = "container">
<h1>Event details</h1>
<?php
if (mysqli_num_rows($result) > 0) {
?>
<table class="table table-hover" >
<thead>
<tr>
<th>Event_name</th>
<th>No. of Participents</th>
<th>Price</th>
<th>Student Cordinator</th>
<th>Staff Cordinator</th>
<th>Date</th>
<th>Time</th>
<th>location </th>
</tr>
</thead>
<tbody>
<?php
$i=0;
while($row = mysqli_fetch_array($result)){
echo '<tr>';
echo '<td>' . $row['event_title'] . '</td>';
echo '<td>' . $row['participents'] . '</td>';
echo '<td>' . $row['event_price'] . '</td>';
echo '<td>' . $row['st_name'] . '</td>';
echo '<td>' . $row['name'] . '</td>';
echo '<td>'.$row['Date'].'</td>';
echo '<td>'.$row['time'].'</td>';
echo '<td>'.$row['location'].'</td>';
echo '<td>'
.'<a class="delete" href="deleteEvent.php?id='.$row['event_id'].'">Delete</a> '
.'</td>';
echo '</tr>';
$i++;
}
?>
</tbody>
</table>
<?php
}
?>
<a class="btn btn-default" href = "createEventForm.php">Create Event</a><!--register button-->
</div>
</div>
<?php require 'utils/footer.php'; ?>
</body>
</html>