-
Notifications
You must be signed in to change notification settings - Fork 0
/
dispRegistrations.php
90 lines (90 loc) · 3.67 KB
/
dispRegistrations.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device width, initial-scale=1, shrink-to-fit=no">
<title>Luna</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="dispRegistrationscss.css" rel="stylesheet">
<link href="font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<div id="wrapper" class="container-fluid">
<div class="row">
<nav class="sidebar col-2 bg-faded sidebar-style-1">
<h1 class="navbar-brand">
<a href="#"><strong>Kreiva</strong></a>
</h1>
<ul class="nav nav-pills flex-column sidebar-nav">
<li class="nav-item">
<a href="adminpage.php" class="nav-link">Dashboard</a>
</li>
<li class="nav-item">
<a href="dispRegistrations.php" class="nav-link">Registrations</a>
</li>
<li class="nav-item">
<a href="trial_events.php" class="nav-link">Events</a>
</li>
<li class="nav-items">
<a href="addEvent.php" class="nav-link"><em class="fa fa-plus"></em> Add Events</a>
</li>
<li class="nav-items">
<a href="addSubEvents.php" class="nav-link"><em class="fa fa-plus"></em> Add SubEvents</a>
</li>
<li class="nav-items">
<a href="deleteEvent.php" class="nav-link"><em class="fa fa-trash-o"></em> Remove Events</a>
</li>
</ul>
<a href="#" class="logout-button">
<em class="fa fa-lock"></em>
Signout
</a>
</nav>
<main class="col-10 ml-auto">
<header class="page-header row">
<div class="col-md-6 col-lg-8">
<h1 class="display-4">Registrations</h1>
</div>
</header>
<div class="col-12">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Name</th>
<th>College</th>
<th>Email</th>
<th>Events</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<?php
require_once('config.php');
$query = "SELECT name, college, email, events, status FROM registrations";
$response = @mysqli_query($dbc, $query);
if ($response) {
while ($row = mysqli_fetch_array($response)) {
echo '<tr><td>' . $row['name'] . '</td>' .
'<td>' . $row['college'] . '</td>' .
'<td>' . $row['email'] . '</td>' .
'<td>' . $row['events'] . '</td>' .
'<td>' . $row['status'] . '</td>';
echo '</tr>';
}
} else {
echo "Couldn't issue database query";
echo mysqli_error($dbc);
}
mysqli_close($dbc);
?>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
</body>
</html>