forked from AppsDesignTeam7/RIN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
createEvent.php
80 lines (67 loc) · 2.42 KB
/
createEvent.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset = "utf-8">
<title>Create Event</title>
<link rel="stylesheet" type="text/css" href="_css/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
</head>
<body>
<header role = "banner">
<?php include('_php/banner.php'); ?>
</header>
<!-- if a user is not logged in, redirect to the login page -->
<?php if (!isset($_SESSION['UserID'])) header('location: login.php'); ?>
<main>
<h4>Enter Event Details</h4>
<?php
// If the user has tried to submit an invalid event, show the error message
if (isset($_SESSION['eventCreationError'])) {
echo '<h4 style="color:red">' . $_SESSION['eventCreationError'] . '<h4>';
}
?>
<form action="_php/handleCreateEvent.php" method="post">
<select name="type" method="post">
<option value=-1>Event Type</option>
<option value=2 >Conference</option>
<option value=1 >Courses</option>
<option value=0 >Seminars</option>
</select>
<br>
<input type="a" name="eventTitle" placeholder="Event Title"><br>
<br>
<input type="a" name="location" placeholder="Location"><br>
<br>
<input type="a" name="date" placeholder="Date (dd/mm/yyyy)"><br>
<br>
<input type="a" name="time" placeholder="Time (hh:mm, 24h)"><br>
<br>
<input type="a" name="description" placeholder="Description"><br>
<br>
<input type="a" name="duration" placeholder="Duration (hours)"><br>
<br>
<input type="a" name="speaker" placeholder="Speaker"><br>
<br>
<input type="a" name="fees" placeholder="Fees"><br>
<br>
<input type="a" name="linkToWebsite" placeholder="Link to Website"><br>
<br>
<input type="a" name="tags" placeholder="Tags"><br>
<br>
<input type="a" name="deadline" placeholder="Abstract Deadline (Conferences Only, dd/mm/yyyy)"><br>
<br>
<button class="formSubmissionButton" id="createEventButton">Create Event!</button>
<br>
</form>
</main>
<!--Footer-->
<footer id = "pageFooter">
<ul id = "footerNav">
<li class="footerLink"><a href="tandc.htm">Terms and Conditions</a></li>
<li class="footerLink"><a href ="contact.htm">Contact</a></li>
<li class="footerLink"><a href= "copy.htm">Copyright</a></li>
</ul>
</footer>
</body>
</html>