-
Notifications
You must be signed in to change notification settings - Fork 1
/
deleteEvent.php
73 lines (73 loc) · 3.13 KB
/
deleteEvent.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
<!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="font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet">
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="dispRegistrationscss.css">
</head>
<body>
<div class="container-fluid" id="wrapper">
<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 Sub Events</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">Remove Events</h1>
</div>
</header>
<div class="col-12">
<form action="deleteEventDB.php" method="post">
<div class="form-group">
<label for="addEvent">Delete Event</label>
<select class="form-control" id="delSubEvent" name="delete_subevents">
<?php
require_once ("config.php");
$query = "SELECT event_name FROM events";
$response = @mysqli_query($dbc, $query);
if ($response) {
while ($row = mysqli_fetch_array($response)) {
echo '<option>' . $row['event_name'] . '</option>';
}
} else {
echo "Error: " . mysqli_error($dbc);
}
?>
</select>
</div>
<button class="btn btn-primary" type="submit" name="submit">Delete</button>
</form>
</div>
</main>
</div>
</div>
</body>
</html>