-
Notifications
You must be signed in to change notification settings - Fork 1
/
event_reg.php
91 lines (84 loc) · 4.04 KB
/
event_reg.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
91
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
require_once('class.RegisterWizardPage.php');
$page = new RegisterWizardPage('Event');
$index = $page->add_wizard_step('Basic Questions');
$page->add_form_group($index, 'Event Host', 'host', 'text', 'The camp, art project, or person who is hosting the event.', array('required'=>'true'));
$page->add_form_group($index, 'Event Location', 'location', 'text', 'The camp, art project, or other location at which this event will be held.', array('required'=>'true'));
$index = $page->add_wizard_step('Day and Time');
$days = array(
array('id'=>'Thursday', 'name'=>'Thursday May 25, 2017'),
array('id'=>'Friday', 'name'=>'Friday May 26, 2017'),
array('id'=>'Saturday', 'name'=>'Saturday May 27, 2017'),
array('id'=>'Sunday', 'name'=>'Sunday May 28, 2017'),
array('id'=>'Monday', 'name'=>'Monday May 29, 2017')
);
$day_count = count($days);
for($i = 0; $i < $day_count; $i++)
{
$page->add_raw_html($index, '<div class="form-check">
<input class="form-check-input" type="checkbox" name="'.$days[$i]['id'].'" id="'.$days[$i]['id'].'">
<label for="need_logistics" class="form-check-label non-required">'.$days[$i]['name'].'</label>
</div>');
}
$options = array(
array('value'=>'all', 'text'=>'All Day', 'selected'=>TRUE),
array('value'=>'0100', 'text'=>'1 AM'),
array('value'=>'0200', 'text'=>'2 AM'),
array('value'=>'0300', 'text'=>'3 AM'),
array('value'=>'0400', 'text'=>'4 AM'),
array('value'=>'0500', 'text'=>'5 AM'),
array('value'=>'0600', 'text'=>'6 AM'),
array('value'=>'0700', 'text'=>'7 AM'),
array('value'=>'0800', 'text'=>'8 AM'),
array('value'=>'0900', 'text'=>'9 AM'),
array('value'=>'1000', 'text'=>'10 AM'),
array('value'=>'1100', 'text'=>'11 AM'),
array('value'=>'1200', 'text'=>'Noon'),
array('value'=>'1300', 'text'=>'1 PM'),
array('value'=>'1400', 'text'=>'2 PM'),
array('value'=>'1500', 'text'=>'3 PM'),
array('value'=>'1600', 'text'=>'4 PM'),
array('value'=>'1700', 'text'=>'5 PM'),
array('value'=>'1800', 'text'=>'6 PM'),
array('value'=>'1900', 'text'=>'7 PM'),
array('value'=>'2000', 'text'=>'8 PM'),
array('value'=>'2030', 'text'=>'Dusk'),
array('value'=>'2100', 'text'=>'9 PM'),
array('value'=>'2200', 'text'=>'10 PM'),
array('value'=>'2300', 'text'=>'11 PM'),
array('value'=>'0000', 'text'=>'Midnight'),
array('value'=>'?', 'text'=>'Until we run out of stuff or are tired!')
);
$page->add_form_group($index, 'Start Time:', 'start', 'select', 'When your event will start.', array('options'=>$options));
$page->add_form_group($index, 'End Time:', 'end', 'select', 'When your event will end.', array('options'=>$options));
$index = $page->add_wizard_step('Event Type');
$types = array(
array('id'=>'amenities', 'name'=>'Amenities and Services'),
array('id'=>'art', 'name'=>'Art Installation'),
array('id'=>'costume', 'name'=>'Costumed or Themed Event'),
array('id'=>'dance', 'name'=>'Dance Party'),
array('id'=>'rampage', 'name'=>'Flash Mob or Rampage'),
array('id'=>'food', 'name'=>'Food Event'),
array('id'=>'game', 'name'=>'Game'),
array('id'=>'contest', 'name'=>'Contest or Competition'),
array('id'=>'shenanigans', 'name'=>'General Shenanigans'),
array('id'=>'interactive', 'name'=>'Interactive Display'),
array('id'=>'whatthefuckisakiki', 'name'=>'Kiki, We Wanna Have a Kiki'),
array('id'=>'performance', 'name'=>'Live Music'),
array('id'=>'musical', 'name'=>'Musical Event'),
array('id'=>'participation', 'name'=>'Participatory Art Project'),
array('id'=>'skills', 'name'=>'Skills Demonstration'),
array('id'=>'social', 'name'=>'Social Interaction')
);
$type_count = count($types);
for($i = 0; $i < $type_count; $i++)
{
$page->add_raw_html($index, '<div class="form-check">
<input class="form-check-input" type="checkbox" name="'.$types[$i]['id'].'" id="'.$types[$i]['id'].'">
<label for="need_logistics" class="form-check-label non-required">'.$types[$i]['name'].'</label>
</div>');
}
$page->printPage();
?>