-
Notifications
You must be signed in to change notification settings - Fork 1
/
search_events_to_add_promotions_to_ui.php
69 lines (58 loc) · 2.05 KB
/
search_events_to_add_promotions_to_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
65
66
67
68
69
<?php
/**
* Created by PhpStorm.
* User: Ryan
* Date: 10/26/2015
* Time: 1:05 PM
*/
require('ui_utilities.inc');
// Main Control Logic: It just calls a function
ui_show_search_event_form();
//------------------------------------------------------------
function ui_show_search_event_form()
{
$promoCodes_selected = $_POST['promoCodes'];
//Create an HTML document using the ECHO statements
ui_print_header("ADD PROMOTIONS TO EVENT");
echo "<div class='center'>";
echo "<center><H3>SEARCH FOR EVENT TO ADD PROMOTIONS TO</H3></center>";
echo "<BR/>";
echo "<FORM action='retrieve_events_to_add_promotions_to.php' method='post'>";
foreach($promoCodes_selected as $promoCode)
{
echo '<input type="hidden" name="promoCodes[]" value="'.$promoCode.'" />';
}
echo "<table>";
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>Event Code:</SPAN></TD>';
echo '<TD><INPUT NAME="eventCode" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>Name:</SPAN></TD>';
echo '<TD><INPUT NAME="name" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>Start Date:</SPAN></TD>';
echo '<TD><INPUT NAME="startDate" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>End Date:</SPAN></TD>';
echo '<TD><INPUT NAME="endDate" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>Description:</SPAN></TD>';
echo '<TD><INPUT NAME="description" TYPE="text" SIZE=50/></TD>';
echo '</tr>';
echo '<tr>'; //
echo '<TD><SPAN ALIGN=RIGHT>Ad Type:</SPAN></TD>';
echo '<TD><INPUT NAME="adType" 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" value="Search Events" /></TD>';
echo '</tr>';
echo "</table>";
echo "</FORM>";
echo "</div>";
ui_print_footer_with_main_menu_button();
}