-
Notifications
You must be signed in to change notification settings - Fork 1
/
addSubEvents.php
84 lines (84 loc) · 3.69 KB
/
addSubEvents.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
<!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">
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="dispRegistrationscss.css">
<link href="font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet">
</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">Add/Remove Events</h1>
</div>
</header>
<div class="col-12">
<form action="addSubEventsToDB.php" method="post">
<div class="form-group">
<label for="addSubEvent">Select Event</label>
<select class="form-control" id="addSubEvent" name="sub_events">
<?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>
<div class="form-group">
<label for="addsub">Add SubEvent</label>
<input type="text" id="addsub" class="form-control" name="addSub">
</div>
<div class="form-group">
<label for="description">Add Description</label>
<textarea class="form-control" id="description" rows="5" name="Describe"></textarea>
</div>
<button class="btn btn-primary" type="submit" name="submit">Add</button>
</form>
</div>
</main>
</div>
</div>
</body>
</html>