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(); }
function ui_show_search_item_form() { //Create an HTML document using the ECHO statements ui_print_header("FIND BIGGEST SAVINGS FOR AN ITEM"); echo "<div class='center'>"; echo "<center>"; echo "<H3>Search for Item to find the biggest savings for.</H3>"; echo "<H4>Enter keywords for item search. Some fields may be left blank.</H4>"; echo "</center>"; echo "<BR/>"; echo "<FORM action='retrieve_items_to_find_savings.php' method='post'>"; echo "<table>"; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Item Number:</SPAN></TD>'; echo '<TD><INPUT NAME="itemNumber" TYPE="text" SIZE=50/></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Item Description:</SPAN></TD>'; echo '<TD><INPUT NAME="itemDescription" TYPE="text" SIZE=50/></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Category:</SPAN></TD>'; echo '<TD><INPUT NAME="category" TYPE="text" SIZE=50/></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Department Name:</SPAN></TD>'; echo '<TD><INPUT NAME="departmentName" 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 Items"/></TD>'; echo '</tr>'; echo "</table>"; echo "</FORM>"; echo "</div>"; ui_print_footer_with_main_menu_button(); }
function ui_show_search_promotion_form() { //Create an HTML document using the ECHO statements ui_print_header("VIEW PROMOTIONS AND ITEMS"); echo "<div class='center'>"; echo "<center>"; echo "<H3>Search for Promotion's and associated Items</H3>"; echo "<H4>Enter keywords for Promotion search. Fields may be left blank.</H4>"; echo "</center>"; echo "<BR/>"; echo "<FORM action='retrieve_promotions_items.php' method='post'>"; echo "<table>"; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Amount Off:</SPAN></TD>'; echo '<TD><INPUT ID="promotionValue" NAME="promotionValue" TYPE="text" SIZE=50/></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Promotion Type:</SPAN></TD>'; echo '<TD><select ID="promotionType" NAME="promotionType">'; $n = 0; $dropDownValues = get_promoType_dropdown_values(); while ($dropDownValue = mysql_fetch_array($dropDownValues)) { echo "<option value='{$dropDownValue[$n]}'>{$dropDownValue[$n]}</option>"; } $x = ''; $n++; echo "<option value='{$dropDownValue[$n]}'>{$x}</option>"; echo '</select></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD align="right"><input type="reset" value="Reset" /></TD>'; echo '<TD align="right"><input type="submit" value="Search Promotion" /></TD>'; echo '</tr>'; echo "</table>"; echo "</FORM>"; echo "</div>"; ui_print_footer_with_main_menu_button(); }
function ui_show_search_promotion_form() { $itemNumbersSelected = $_POST['itemNumbers']; //Create an HTML document using the ECHO statements ui_print_header("ADD ITEMS TO PROMOTION"); echo "<div class='center'>"; echo "<center><H3>SEARCH FOR PROMOTION TO ADD ITEMS TO</H3></center>"; echo "<BR/>"; echo "<FORM action='retrieve_promotions.php' method='post'>"; foreach ($itemNumbersSelected as $itemNo) { echo '<input type="hidden" name="itemNumbers[]" value="' . $itemNo . '" />'; } echo "<table>"; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Promotion Code:</SPAN></TD>'; echo '<TD><INPUT NAME="promoCode" 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>Description:</SPAN></TD>'; echo '<TD><INPUT NAME="description" 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 Promotion" /></TD>'; echo '</tr>'; echo "</table>"; echo "</FORM>"; echo "</div>"; ui_print_footer_with_main_menu_button(); }
function ui_show_search_promotion_form() { //Create an HTML document using the ECHO statements ui_print_header("ADD PROMOTIONS TO EVENT"); echo "<div class='center'>"; echo "<center>"; echo "<H3>Search for Promotions to Add to Event</H3>"; echo "<H4>Enter keywords for promotion search. Some fields may be left blank.</H4>"; echo "</center>"; echo "<BR/>"; echo "<FORM action='retrieve_promotions_to_add_to_event.php' method='post'>"; echo "<table>"; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>PromoCode:</SPAN></TD>'; echo '<TD><INPUT NAME="promoCode" TYPE="text" SIZE=50/></TD>'; echo '</tr>'; echo '<tr>'; // echo '<TD><SPAN ALIGN=RIGHT>Promotion Name:</SPAN></TD>'; echo '<TD><INPUT NAME="name" 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 align="right"><input type="reset" value="Reset" /></TD>'; echo '<TD align="right"><input type="submit" value="Search Promotions"/></TD>'; echo '</tr>'; echo "</table>"; echo "</FORM>"; echo "</div>"; ui_print_footer_with_main_menu_button(); }