-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathnewEvent.php
38 lines (36 loc) · 1.36 KB
/
newEvent.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
<?
include_once('includes/header.php');
?>
<body id="responsiveDemo">
<div class="container">
<div class="row">
<div class="g12">
<h2 class="h4">New event</h2>
<p class="demoDesc">With this form you can create a new event.</p>
<form id="newEventForm">
<div class="fg">
<label>Event Title</label>
<input id="title" name="title" type="text" class="text large" />
</div>
<div class="fg">
<label>Event Type</label>
<select id="type" name="type" class="large">
<?
$groupQuery = "SELECT id, name FROM eventstypes ORDER BY name";
$db->query($groupQuery); // query the database
while ($db->nextRecord())
{
echo "<option value='".$db->Record['id']."'>".$db->Record['name']."</option>";
}
?>
</select>
</div>
<a id="createEventTrigger" href="#" class="bt">Create event</a>
</form>
</div>
</div>
</div>
</body>
<?
include_once('includes/footer.php');
?>