-
Notifications
You must be signed in to change notification settings - Fork 1
/
new_event_ui.php
64 lines (51 loc) · 2.36 KB
/
new_event_ui.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
<?php
require('ui_utilities.inc');
//------------------------------------------------------------
// Main Control Logic: It just calls a function
ui_show_new_event_form();
//------------------------------------------------------------
function ui_show_new_event_form()
{
//Create an HTML document using the ECHO statements
$script = "<script type='text/javascript' src='Javascript/ValidateEvent.js'> </script>";
$script1 = "<link rel=\"stylesheet\" href=\"http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css\">";
$script2 = "<script src=\"http://code.jquery.com/jquery-1.10.2.js\"></script>";
$script3 = "<script src=\"http://code.jquery.com/ui/1.11.4/jquery-ui.js\"></script>";
$args = array($script1, $script2, $script3, $script);
ui_print_header_with_head_elements("ADD NEW EVENT", $args);
echo "<div class='center'>";
echo "<FORM action='insert_event.php' method='post'>";
echo "<table>";
echo '<tr>'; // Event Code
echo '<TD><SPAN ALIGN=RIGHT>Event Code:</SPAN></TD>';
echo '<TD><INPUT NAME="eventCode" ID="eventCode" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; // Event Name
echo '<TD><SPAN ALIGN=RIGHT>Event Name:</SPAN></TD>';
echo '<TD><INPUT NAME="eventName" ID="eventName" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; // Start Date
echo '<TD><SPAN ALIGN=RIGHT>Start Date:</SPAN></TD>';
echo '<TD><INPUT NAME="startDate"ID="startDate" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; // End Date
echo '<TD><SPAN ALIGN=RIGHT>End Date:</SPAN></TD>';
echo '<TD><INPUT NAME="endDate" ID="endDate" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; // Description
echo '<TD><SPAN ALIGN=RIGHT>Description:</SPAN></TD>';
echo '<TD><INPUT NAME="description" ID="description" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; // Type
echo '<TD><SPAN ALIGN=RIGHT>Type:</SPAN></TD>';
echo '<TD><INPUT NAME="type" ID="type" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>';
echo '<td align="right"><input type="reset" value="Reset" /></td>';
echo '<td align="right"><input type="submit" onclick="return validateForm();" value="Submit New Event Data" /></td>';
echo '</tr>';
echo "</table>";
echo "</FORM>";
echo "</div>";
ui_print_footer_with_main_menu_button();
}