942 lines
41 KiB
PHP
942 lines
41 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Application Volunteer','Schedule Volunteer','Administration Team','Schedule Team','Supplier');
|
|
if (checkPermission($AllowedUserTypes) != 1) {
|
|
echo("<br>\n");
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
include "form.messages.php";
|
|
return;
|
|
}
|
|
|
|
|
|
// Setup default values on insert
|
|
if ($naction == 'add') {
|
|
$initTableName = $CurrentTable;
|
|
$tarray = initializeTableArray($initTableName);
|
|
extract($tarray, EXTR_OVERWRITE);
|
|
|
|
$online_price = '0.00';
|
|
$offline_price = '0.00';
|
|
$special_price1 = '0.00';
|
|
$special_price2 = '0.00';
|
|
$special_price3 = '0.00';
|
|
$number_of_alternate_prices = 0;
|
|
$alternate_price1 = '0.0';
|
|
$alternate_price2 = '0.0';
|
|
$alternate_price3 = '0.0';
|
|
$alternate_price4 = '0.0';
|
|
$alternate_price5 = '0.0';
|
|
$alternate_price6 = '0.0';
|
|
$alternate_price7 = '0.0';
|
|
$alternate_price8 = '0.0';
|
|
$alternate_price9 = '0.0';
|
|
$alternate_price10 = '0.0';
|
|
$taxable_item = 'N';
|
|
$min_quantity = 0;
|
|
$warn_quantity = 0;
|
|
$max_quantity = 0;
|
|
$max_quantity_by = 'Order';
|
|
$number_of_labels = 1;
|
|
$quantity_available = 0;
|
|
$min_options = 0;
|
|
$max_options = 0;
|
|
$min_options2 = 0;
|
|
$max_options2 = 0;
|
|
$min_options3 = 0;
|
|
$max_options3 = 0;
|
|
$menu_group = "";
|
|
$active = 'Y';
|
|
$display_price = 'Y';
|
|
$item_type = 'Item';
|
|
$menu_item_format = 'D';
|
|
}
|
|
|
|
if ($naction == 'add-heading') {
|
|
$online_price = '0.00';
|
|
$offline_price = '0.00';
|
|
$special_price1 = '0.00';
|
|
$special_price2 = '0.00';
|
|
$special_price3 = '0.00';
|
|
$number_of_alternate_prices = 0;
|
|
$alternate_price1 = '0.0';
|
|
$alternate_price2 = '0.0';
|
|
$alternate_price3 = '0.0';
|
|
$alternate_price4 = '0.0';
|
|
$alternate_price5 = '0.0';
|
|
$alternate_price6 = '0.0';
|
|
$alternate_price7 = '0.0';
|
|
$alternate_price8 = '0.0';
|
|
$alternate_price9 = '0.0';
|
|
$alternate_price10 = '0.0';
|
|
$taxable_item = 'N';
|
|
$min_quantity = 0;
|
|
$warn_quantity = 0;
|
|
$max_quantity = 0;
|
|
$max_quantity_by = 'Order';
|
|
$quantity_available = 0;
|
|
$min_options = 0;
|
|
$max_options = 0;
|
|
$min_options2 = 0;
|
|
$max_options2 = 0;
|
|
$min_options3 = 0;
|
|
$max_options3 = 0;
|
|
$menu_group = "";
|
|
$active = 'Y';
|
|
$display_price = 'N';
|
|
}
|
|
|
|
|
|
$min_quantity = intval($min_quantity);
|
|
$warn_quantity = intval($warn_quantity);
|
|
$max_quantity = intval($max_quantity);
|
|
$quantity_available = intval($quantity_available);
|
|
$min_options = intval($min_options);
|
|
$max_options = intval($max_options);
|
|
$min_options2 = intval($min_options2);
|
|
$max_options2 = intval($max_options2);
|
|
$min_options3 = intval($min_options3);
|
|
$max_options3 = intval($max_options3);
|
|
|
|
$alternate_price1 = number_format($alternate_price1,2);
|
|
$alternate_price2 = number_format($alternate_price2,2);
|
|
$alternate_price3 = number_format($alternate_price3,2);
|
|
$alternate_price4 = number_format($alternate_price4,2);
|
|
$alternate_price5 = number_format($alternate_price5,2);
|
|
$alternate_price6 = number_format($alternate_price6,2);
|
|
$alternate_price7 = number_format($alternate_price7,2);
|
|
$alternate_price8 = number_format($alternate_price8,2);
|
|
$alternate_price9 = number_format($alternate_price9,2);
|
|
$alternate_price10 = number_format($alternate_price10,2);
|
|
|
|
|
|
$numClasses = db_getVal("select count(*) from classes where school_num = $base_school_num and entry_type = 'Class'");
|
|
|
|
$numItemClasses = 0;
|
|
$select_classes = 'All Classes';
|
|
if (isset($record_num) && intval($record_num) > 0) {
|
|
$query = "SELECT count(*) FROM hotlunch_menu_items_classes " .
|
|
"WHERE school_num = $school_num " .
|
|
"AND schedule_num = $schedule_num " .
|
|
"AND menu_num = $menu_num " .
|
|
"AND menu_item_num = $record_num";
|
|
$numItemClasses = intval(db_getVal($query));
|
|
if ($numItemClasses > 0) {
|
|
$select_classes = 'Selected Classes';
|
|
}
|
|
}
|
|
|
|
if (isset($schedule_num) && !isset($hotlunch_schedule)) {
|
|
$hotlunch_schedule = db_getVal("SELECT * FROM hotlunch_schedules WHERE school_num = $school_num AND record_num = $schedule_num");
|
|
}
|
|
|
|
?>
|
|
<script>
|
|
// Menu Prices Form
|
|
$(document).ready(function() {
|
|
|
|
var num_alt_prices = <?php echo(intval($number_of_alternate_prices)) ?>;
|
|
|
|
<?php if ($numItemClasses > 0) { ?>
|
|
$("#selected-classes-row").show();
|
|
<?php } else { ?>
|
|
$("#selected-classes-row").hide();
|
|
<?php } ?>
|
|
|
|
$("input[name='select_classes']").change(function() {
|
|
var sclasses = $("input[name='select_classes']:checked").val();
|
|
if (sclasses == 'Selected Classes') $("#selected-classes-row").show();
|
|
else $("#selected-classes-row").hide();
|
|
});
|
|
|
|
$(".alt10").hide();
|
|
if (num_alt_prices > 0) $(".alt"+num_alt_prices).show();
|
|
|
|
$("#number_of_alternate_prices").change(function() {
|
|
var num_alt_prices = $(this).val();
|
|
|
|
$(".alt10").hide();
|
|
if (num_alt_prices > 0) $(".alt"+num_alt_prices).show();
|
|
});
|
|
|
|
$(".first-product-select-field").change(function() {
|
|
var product_num = $(this).val();
|
|
|
|
$.ajax({
|
|
url: "ajax.DataRecord.Fetch.php",
|
|
data: {
|
|
table_name: 'supplier_products',
|
|
record_num: product_num
|
|
},
|
|
dataType: "json"
|
|
}).done(
|
|
function(results) {
|
|
$('.item-field').each(function() {
|
|
var pname = $(this).attr('pname');
|
|
var fid = $(this).attr('id');
|
|
$("#"+fid).val(results[pname]);
|
|
});
|
|
var num_alt_prices = $("#number_of_alternate_prices").val();
|
|
|
|
$(".alt10").hide();
|
|
if (num_alt_prices > 0) $(".alt"+num_alt_prices).show();
|
|
}
|
|
);
|
|
});
|
|
|
|
// $(".product-select-field").change(function() {
|
|
$(document).on('change', '#dialog_product1', function() {
|
|
alert('change');
|
|
});
|
|
|
|
$(document).on('change', '.product-select-field', function() {
|
|
var product_num = $(this).val();
|
|
var row_num = $(this).attr('row_num');
|
|
|
|
alert(product_num);
|
|
if (product_num > 0) {
|
|
row_num = Math.abs(row_num) + 1;
|
|
alert(row_num);
|
|
$("#row"+row_num).show();
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<br>
|
|
<form method='post' action='/'>
|
|
<?php
|
|
$message_width = $default_form_width;
|
|
include "form.messages.php";
|
|
?>
|
|
<table width='98%' class='content-table'>
|
|
<tr>
|
|
<td colspan='2' align='center' class='heading'><?php echo($PageTitle) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2' align='center'> </td>
|
|
</tr>
|
|
<?php
|
|
if ($item_type != 'Heading') {
|
|
?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MENU'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='menu_num' id='menu_num' class='select-width400'>
|
|
<?php
|
|
$query = "select * from hotlunch_menu_dates " .
|
|
"where school_num = $school_num " .
|
|
"and schedule_num = $schedule_num " .
|
|
"order by sequence,menu_date";
|
|
$results = db_query($query);
|
|
|
|
while ($row = db_fetch_array($results)) {
|
|
$mtitle = $row['menu_title'];
|
|
$mdate = $row['menu_date'];
|
|
$rnum = $row['record_num'];
|
|
|
|
if ($hotlunch_schedule['display_menu_date'] == 'Y') {
|
|
$mtitle .= " - $mdate";
|
|
}
|
|
|
|
$selected = "";
|
|
if (isset($menu_num) && $menu_num == $rnum) {
|
|
$selected_date = 'Y';
|
|
$selected = " selected='selected'";
|
|
}
|
|
echo(" <option value='$rnum'$selected>$mtitle</option>\n");
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
// Get school names for clarity
|
|
$SchoolNames[$school_num] = $school_record['school_name'];
|
|
if ($supplier_school_num != $school_num) {
|
|
$SchoolNames[$supplier_school_num] = db_getVal("SELECT school_name FROM schools WHERE record_num = $supplier_school_num");
|
|
}
|
|
|
|
// Setup loop parameters
|
|
$num_products = 50;
|
|
|
|
// Get set of supplier items available
|
|
$query = "select * from suppliers " .
|
|
"where school_num = $supplier_school_num " .
|
|
"and status = 'Active' " .
|
|
"order by supplier_name";
|
|
$suppliers = db_query($query);
|
|
if (db_num_rows($suppliers) > 0) {
|
|
$products_array = array();
|
|
$all_items = array();
|
|
$count = 0;
|
|
|
|
// Process each supplier
|
|
while ($supplier = db_fetch_array($suppliers)) {
|
|
$supplier_num = $supplier['record_num'];
|
|
$supplier_name = $supplier['supplier_name'];
|
|
$sname = $SchoolNames[$supplier['school_num']];
|
|
$supplier_name .= " ($sname)";
|
|
|
|
$query = "select * from supplier_products " .
|
|
"where supplier_num = $supplier_num " .
|
|
"and school_num = $supplier_school_num " .
|
|
"and product_type = 'Product' " .
|
|
"AND status = 'Active' " .
|
|
"order by sequence,product_name";
|
|
$products = db_query($query);
|
|
|
|
// Process each product
|
|
if (db_num_rows($products) > 0) {
|
|
$products_array[$count]['Supplier'] = $supplier_name;
|
|
$items_array = array();
|
|
$icount = 0;
|
|
while ($row = db_fetch_array($products)) {
|
|
$descr = "";
|
|
if (strlen($row['product_description'])) $descr = " - " . $row['product_description'];
|
|
$name = $row['product_name'] . "$descr (" . $row['package_qty'] . " for $currencySymbol" . number_format($row['package_cost'],2) . ")";
|
|
$pnum = $row['record_num'];
|
|
$items_array[$icount]['num'] = $pnum;
|
|
$items_array[$icount]['name'] = $name;
|
|
|
|
$entry = array();
|
|
|
|
$entry['num'] = $pnum;
|
|
$entry['name'] = $row['product_name'];
|
|
$entry['description'] = $row['product_description'];
|
|
$entry['label'] = $row['label_name'];
|
|
$entry['online'] = $row['standard_online_price'];
|
|
$entry['offline'] = $row['standard_offline_price'];
|
|
$entry['special1'] = $row['special_price1'];
|
|
$entry['special2'] = $row['special_price2'];
|
|
$entry['special3'] = $row['special_price3'];
|
|
$entry['number_of_alternate_prices'] = $row['number_of_alternate_prices'];
|
|
$entry['alternate_price1'] = $row['alternate_price1'];
|
|
$entry['alternate_price2'] = $row['alternate_price2'];
|
|
$entry['alternate_price3'] = $row['alternate_price3'];
|
|
$entry['alternate_price4'] = $row['alternate_price4'];
|
|
$entry['alternate_price5'] = $row['alternate_price5'];
|
|
$entry['alternate_price6'] = $row['alternate_price6'];
|
|
$entry['alternate_price7'] = $row['alternate_price7'];
|
|
$entry['alternate_price8'] = $row['alternate_price8'];
|
|
$entry['alternate_price9'] = $row['alternate_price9'];
|
|
$entry['alternate_price10'] = $row['alternate_price10'];
|
|
$entry['taxable_item'] = $row['taxable_product'];
|
|
$entry['options_title'] = $row['options_title'];
|
|
$entry['options'] = $row['product_options'];
|
|
$entry['default_options'] = $row['default_options'];
|
|
$entry['min_options'] = $row['min_options'];
|
|
$entry['max_options'] = $row['max_options'];
|
|
$entry['options2_title'] = $row['options2_title'];
|
|
$entry['options2'] = $row['product_options2'];
|
|
$entry['default_options2'] = $row['default_options2'];
|
|
$entry['min_options2'] = $row['min_options2'];
|
|
$entry['max_options2'] = $row['max_options2'];
|
|
$entry['options3_title'] = $row['options3_title'];
|
|
$entry['options3'] = $row['product_options3'];
|
|
$entry['default_options3'] = $row['default_options3'];
|
|
$entry['min_options3'] = $row['min_options3'];
|
|
$entry['max_options3'] = $row['max_options3'];
|
|
$entry['hot_cold_food'] = $row['hot_cold_food'];
|
|
if (array_key_exists('min_quantity', $row)) $entry['min_quantity'] = $row['min_quantity'];
|
|
if (array_key_exists('warn_quantity', $row)) $entry['warn_quantity'] = $row['warn_quantity'];
|
|
if (array_key_exists('max_quantity', $row)) $entry['max_quantity'] = $row['max_quantity'];
|
|
if (array_key_exists('max_quantity_by', $row)) $entry['max_quantity_by'] = $row['max_quantity_by'];
|
|
if (array_key_exists('image', $row)) $entry['image'] = $row['image'];
|
|
if (array_key_exists('nutrition', $row)) $entry['nutrition'] = $row['nutritional_info'];
|
|
if (array_key_exists('rating', $row)) $entry['rating'] = $row['bc_guideline_rating'];
|
|
|
|
$all_items[] = $entry;
|
|
$icount++;
|
|
}
|
|
$products_array[$count]['Items'] = $items_array;
|
|
$count++;
|
|
}
|
|
}
|
|
|
|
$menu_items = array();
|
|
for ($i = 0; $i < $num_products; $i++) {
|
|
$menu_items[$i]['qty'] = 1;
|
|
$menu_items[$i]['num'] = 0;
|
|
}
|
|
|
|
// Get existing products for this menu item
|
|
$displayRows = 2;
|
|
if ($naction != 'add') {
|
|
$query = "select hmp.*,sp.product_name " .
|
|
"from hotlunch_menu_products as hmp,supplier_products as sp " .
|
|
"where hmp.school_num = $school_num " .
|
|
"and menu_item_num = $record_num " .
|
|
"and hmp.supplier_product_num = sp.record_num " .
|
|
"and sp.school_num = $supplier_school_num " .
|
|
"order by product_sequence";
|
|
$results = db_query($query);
|
|
if (db_num_rows($results)) {
|
|
$count = 0;
|
|
while ($row = db_fetch_array($results)) {
|
|
$pnum = $row['supplier_product_num'];
|
|
$pqty = $row['supplier_product_qty'];
|
|
$menu_items[$count]['num'] = $pnum;
|
|
$menu_items[$count]['qty'] = $pqty;
|
|
$count++;
|
|
if ($count > 1) $displayRows++;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (count($products_array) > 0) {
|
|
?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-SUPPLIER-PRODUCTS'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<table cellpadding='1' cellspacing='1' align='left' class='content-table'>
|
|
<tr>
|
|
<td width='15%' align='center' class='subheading'><?php displayLanguageText('TEXT-QUANTITY'); ?></td>
|
|
<td align='center' class='subheading'><?php displayLanguageText('TEXT-PRODUCT'); ?></td>
|
|
</tr>
|
|
<?php
|
|
for ($row = 0; $row < 50; $row++) {
|
|
$bgclass = 'data-even';
|
|
if ($row % 2) $bgclass = 'data-odd';
|
|
if ($row + 1 > $displayRows) $bgclass .= ' invisible';
|
|
?>
|
|
<tr id='row<?php echo($row) ?>' class='<?php echo($bgclass) ?>'>
|
|
<td align='center'>
|
|
<input type='text' name='qty<?php echo($row) ?>' id='qty<?php echo($row) ?>' value='<?php echo($menu_items[$row]['qty']) ?>' size='5'>
|
|
</td>
|
|
<td align='center'>
|
|
<?php if ($row == 0) { ?>
|
|
<select name='product<?php echo($row) ?>' id='product<?php echo($row) ?>' row_num='<?php echo($row) ?>' class='first-product-select-field select-width400'>
|
|
<?php } else { ?>
|
|
<select name='product<?php echo($row) ?>' id='product<?php echo($row) ?>' row_num='<?php echo($row) ?>' class='product-select-field select-width400'>
|
|
<?php } ?>
|
|
<option value='0'></option>
|
|
<?php
|
|
$maxLength = 100;
|
|
for ($i = 0; $i < count($products_array); $i++) {
|
|
$supplier = $products_array[$i]['Supplier'];
|
|
echo("<optgroup label=\"$supplier\">\n");
|
|
$items_array = $products_array[$i]['Items'];
|
|
for ($j = 0; $j < count($items_array); $j++) {
|
|
$pnum = $items_array[$j]['num'];
|
|
$name = $items_array[$j]['name'];
|
|
if (strlen($name) > $maxLength) $name = substr($name, 0, $maxLength) . "...";
|
|
|
|
$selected = "";
|
|
if ($menu_items[$row]['num'] == $pnum) $selected = " selected='selected'";
|
|
echo("<option value='$pnum'$selected>$name</option>\n");
|
|
}
|
|
echo("</optgroup>\n");
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td width='25%' align='right' valign='top'><?php displayLanguageText('TEXT-ITEM-TITLE'); ?>: </td>
|
|
<td width='75%' align='left' valign='top'>
|
|
<input type='text' name='item_title' id='item_title' value="<?php echo(str_replace('"',""",$item_title)) ?>" size='80' pname='product_name' class='form-field item-field'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-ITEM-TITLE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ITEM-DESCRIPTION'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='item_description' id='item_description' value="<?php echo(str_replace('"',""",$item_description)) ?>" size='100' pname='product_description' class='form-field item-field'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-ITEM-DESCRIPTION-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-LABEL-TITLE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='label_title' id='label_title' value="<?php echo(str_replace('"',""",$label_title)) ?>" size='30' maxlength='30' pname='label_name' class='form-field item-field'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-LABEL-TITLE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MENU-ITEM-FORMAT'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='menu_item_format' id='menu_item_format' class='form-field'>
|
|
<?php BuildFileList("menu_item_format.txt", $menu_item_format) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ACTIVE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='active' id='active' class='form-field'>
|
|
<?php BuildFileList("yn.txt", $active) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ACTIVE-UNTIL-DATE'); ?>: </td>
|
|
<td align='left' valign='top'><input type='text' name='active_until_date' id='active_until_date' class='date-field form-field' value='<?php echo($active_until_date) ?>'></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-DISPLAY-ITEM-PRICE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='display_price' id='display_price' class='form-field'>
|
|
<?php BuildFileList("yn.txt",$display_price) ?>
|
|
</select><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-DISPLAY-ITEM-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ON-LINE-PRICE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='online_price' id='online_price' value="<?php echo($online_price) ?>" size='6' pname='standard_online_price' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-ON-LINE-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-PAPER-PRICE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='offline_price' id='offline_price' value="<?php echo($offline_price) ?>" size='6' pname='standard_offline_price' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-PAPER-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php if ($school_record['special_item_prices'] == 'Y') { ?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php echo($Special1_Title) ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='special_price1' id='special_price1' value="<?php echo($special_price1) ?>" size='6' pname='special_price1' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-SPECIAL-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php echo($Special2_Title) ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='special_price2' id='special_price2' value="<?php echo($special_price2) ?>" size='6' pname='special_price2' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-SPECIAL-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php echo($Special3_Title) ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='special_price3' id='special_price3' value="<?php echo($special_price3) ?>" size='6' pname='special_price3' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-SPECIAL-PRICE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php if ($school_record['implement_multiple_item_prices'] == 'Y') { ?>
|
|
<tr>
|
|
<td align='right' valign='top'>Number of Alternate Prices: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='number_of_alternate_prices' id='number_of_alternate_prices' pname='number_of_alternate_prices' class='form-field item-field'>>
|
|
<?php
|
|
for ($n = 0; $n <= 10; $n++) {
|
|
$selected = "";
|
|
if (isset($number_of_alternate_prices) && $number_of_alternate_prices == $n) $selected = " selected='selected'";
|
|
echo(" <option value='$n'$selected>$n</option>\n");
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr class='alt1 alt2 alt3 alt4 alt5 alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 1: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price1' id='alternate_price1' value="<?php echo($alternate_price1) ?>" size='10' pname='alternate_price1' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt2 alt3 alt4 alt5 alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 2: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price2' id='alternate_price2' value="<?php echo($alternate_price2) ?>" size='10' pname='alternate_price2' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt3 alt4 alt5 alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 3: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price3' id='alternate_price3' value="<?php echo($alternate_price3) ?>" size='10' pname='alternate_price3' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt4 alt5 alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 4: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price4' id='alternate_price4' value="<?php echo($alternate_price4) ?>" size='10' pname='alternate_price4' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt5 alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 5: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price5' id='alternate_price5' value="<?php echo($alternate_price5) ?>" size='10' pname='alternate_price5' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt6 alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 6: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price6' id='alternate_price6' value="<?php echo($alternate_price6) ?>" size='10' pname='alternate_price6' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt7 alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 7: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price7' id='alternate_price7' value="<?php echo($alternate_price7) ?>" size='10' pname='alternate_price7' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt8 alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 8: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price8' id='alternate_price8' value="<?php echo($alternate_price8) ?>" size='10' pname='alternate_price8' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt9 alt10'>
|
|
<td align='right' valign='top'>Alternate Price 9: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price9' id='alternate_price9' value="<?php echo($alternate_price9) ?>" size='10' pname='alternate_price9' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<tr class='alt10'>
|
|
<td align='right' valign='top'>Alternate Price 10: </td>
|
|
<td align='left' valign='top'><input type='text' name='alternate_price10' id='alternate_price10' value="<?php echo($alternate_price10) ?>" size='10' pname='alternate_price10' class='form-field item-field rtext'></td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-TAXABLE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='taxable_item' id='taxable_item' pname='taxable_product' class='form-field item-field'>
|
|
<?php BuildFileList("yn.txt",$taxable_item) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php if (($siteType != 'schoolfees' && $siteType != 'registration') && $school_record['display_bc_food_guidelines'] == 'Y') { ?>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-FOOD-GUIDELINES-RATING'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='bc_guideline_rating' id='bc_guideline_rating' pname='bc_guideline_rating' class='form-field item-field'>
|
|
<?php BuildFileList("bc_guideline_rating.txt",$bc_guideline_rating) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MINIMUM-ORDER-QUANTITY'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='min_quantity' id='min_quantity' value="<?php echo($min_quantity) ?>" size='6' class='form-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-MINIMUM-ORDER-QUANTITY-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-WARNING-QUANTITY'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='warn_quantity' id='warn_quantity' value="<?php echo($warn_quantity) ?>" size='6' class='form-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-WARNING-QUANTITY-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MAXIMUM-ORDER-QUANTITY'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='max_quantity' id='max_quantity' value="<?php echo($max_quantity) ?>" size='6' class='form-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-MAXIMUM-ORDER-QUANTITY-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MAXIMUM-ORDER-QUANTITY-LIMITED-BY'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='max_quantity_by' id='max_quantity_by' class='form-field'>
|
|
<?php BuildFileList("max_quantity_by.txt",$max_quantity_by) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-NUMBER-OF-ITEM-LABELS'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='number_of_labels' id='number_of_labels' class='form-field'>
|
|
<?php BuildFileList("number_of_labels.txt",$number_of_labels) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-QUANTITY-AVAILABLE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='quantity_available' id='quantity_available' value="<?php echo($quantity_available) ?>" size='6' class='form-field rtext'
|
|
<span class='small'><?php displayLanguageText('TEXT-QUANTITY-AVAILABLE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-MENU-GROUP'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='menu_group' id='menu_group' class='form-field'>
|
|
<option value=''><?php displayLanguageText('TEXT-NO-GROUP'); ?></option>
|
|
<?php BuildFileList("menu_group.txt",$menu_group) ?>
|
|
</select><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-MENU-GROUP-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS-TITLE'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='options_title' id='options_title' value="<?php echo($options_title) ?>" size='20' pname='options_title' class='form-field item-field'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-OPTIONS-TITLE-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='options' id='options' rows='4' cols='60' pname='product_options' class='form-field item-field'><?php echo($options) ?></textarea><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-OPTIONS-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-DEFAULT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='default_options' id='default_options' rows='2' cols='60' pname='default_options' class='form-field item-field'><?php echo($default_options) ?></textarea><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-DEFAULT-OPTIONS-MSG'); ?>span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MINIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='min_options' id='min_options' value="<?php echo($min_options) ?>" size='6' pname='min_options' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-MINIMUM-OPTIONS-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MAXIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='max_options' id='max_options' value="<?php echo($max_options) ?>" size='6' pname='max_options' class='form-field item-field rtext'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-MAXIMUM-OPTIONS-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS-TITLE'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='options2_title' id='options2_title' value="<?php echo($options2_title) ?>" size='20' pname='options2_title' class='form-field item-field'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='options2' id='options2' rows='4' cols='60' pname='product_options2' class='form-field item-field'><?php echo($options2) ?></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-DEFAULT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='default_options2' id='default_options2' rows='2' cols='60' pname='default_options2' class='form-field item-field'><?php echo($default_options2) ?></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MINIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='min_options2' id='min_options2' value="<?php echo($min_options2) ?>" size='6' pname='min_options2' class='form-field item-field rtext'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MAXIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='max_options2' id='max_options2' value="<?php echo($max_options2) ?>" size='6' pname='max_options2' class='form-field item-field rtext'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS-TITLE'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='options3_title' id='options3_title' value="<?php echo($options3_title) ?>" size='20' pname='options3_title' class='form-field item-field'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='options3' id='options3' rows='4' cols='60' pname='product_options3' class='form-field item-field'><?php echo($options3) ?></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-DEFAULT-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<textarea name='default_options3' id='default_options3' rows='2' cols='60' pname='default_options3' class='form-field item-field'><?php echo($default_options3) ?></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MINIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='min_options3' id='min_options3' value="<?php echo($min_options3) ?>" size='6' pname='min_options3' class='form-field item-field rtext'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top' bgcolor='#dddddd'><?php displayLanguageText('TEXT-MAXIMUM-OPTIONS'); ?>: </td>
|
|
<td align='left' valign='top' bgcolor='#dddddd'>
|
|
<input type='text' name='max_options3' id='max_options3' value="<?php echo($max_options3) ?>" size='6' pname='max_options3' class='form-field item-field rtext'>
|
|
</td>
|
|
</tr>
|
|
<?php if ($siteType != 'schoolfees' && $siteType != 'registration') { ?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-HOT-OR-COLD-FOOD-CLASSIFICATION'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='hot_cold_food' id='hot_cold_food' pname='hot_cold_food' class='form-field item-field'>
|
|
<?php BuildFileList("hot_cold.txt",$hot_cold_food) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
<?php
|
|
// Determine if there are any images available
|
|
echo("<!-- imagedir: $imagedir -->");
|
|
$dir = opendir($imagedir);
|
|
$imageFiles = array();
|
|
while (($file = readdir($dir)) != false) {
|
|
if ($file == ".") continue;
|
|
if ($file == "..") continue;
|
|
$imageFiles[] = $file;
|
|
}
|
|
|
|
if (count($imageFiles) > 0) {
|
|
sort($imageFiles);
|
|
?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-IMAGE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<select name='image' id='image' pname='image' class='form-field item-field'>
|
|
<option value=''></option>
|
|
<?php
|
|
for ($i = 0; $i < count($imageFiles); $i++) {
|
|
$fname = $imageFiles[$i];
|
|
$selected = "";
|
|
if ($fname == $image) $selected = " selected='selected'";
|
|
echo(" <option value=\"$fname\"$selected>$fname</option>\n");
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan='2'> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ADDITIONAL-INFORMATION'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<textarea name='nutritional_info' id='nutritional_info' rows='4' cols='80' pname='nutritional_info' class='form-field item-field'><?php echo($nutritional_info) ?></textarea><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-ADDITIONAL-INFORMATION-MESSAGE'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-ITEM-MESSAGE'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='item_message' id='item_message' value="<?php echo($item_message) ?>" size='80' pname='item_message' class='form-field item-field'>
|
|
</td>
|
|
</tr>
|
|
<?php if ($numClasses > 0) { ?>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-CLASSES'); ?></td>
|
|
<td align='left' valign='top'>
|
|
<select name='select_classes' id='select_classes' class='form-field'>
|
|
<?php BuildFileList("select_classes.txt",$select_classes) ?>
|
|
</td>
|
|
</tr>
|
|
<?php } else { ?>
|
|
<input type='hidden' name='select_classes' id='select_classes' value='All Classes' class='form-field'>
|
|
<?php } ?>
|
|
<tr id='selected-classes-row'>
|
|
<td align='right' valign='top'><?php echo($GlobalText['SelectedClasses']); ?></td>
|
|
<td align='left' valign='top'>
|
|
<?php
|
|
if ($numClasses == 0) $numClasses = 1;
|
|
$selectSize = 10;
|
|
if ($numClasses < 10) $selectSize = $numClasses + 1;
|
|
?>
|
|
<select name='selected_classes[]' id='selected_classes' size='<?php echo($selectSize) ?>' multiple class='form-field select-width400'>
|
|
<?php
|
|
// Get set of classes
|
|
$classes = db_query("select record_num from classes where school_num = $base_school_num and entry_type = 'Class' order by sequence");
|
|
while ($row = db_fetch_array($classes)) {
|
|
$class_num = $row['record_num'];
|
|
$class_info = getClassInfo($class_num);
|
|
|
|
$selected = "";
|
|
if ($naction == 'edit' && intval($record_num) > 0 && intval($class_num) > 0) {
|
|
$schedule_access = db_getVal("select count(*) from hotlunch_menu_items_classes " .
|
|
"WHERE school_num = $school_num " .
|
|
"AND schedule_num = $schedule_num " .
|
|
"AND menu_num = $menu_num " .
|
|
"AND menu_item_num = $record_num " .
|
|
"AND class_num = $class_num");
|
|
}
|
|
if (isset($schedule_access) && $schedule_access == 1) $selected = " selected='selected'";
|
|
echo(" <option value='$class_num'$selected>$class_info</option>\n");
|
|
}
|
|
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
} else {
|
|
if (!isset($item_title)) $item_title = '';
|
|
if (!isset($item_description)) $item_description = '';
|
|
if (!isset($heading_visibility)) $heading_visibility = 'visible';
|
|
if (!isset($heading_page_break)) $heading_page_break = 'N';
|
|
if (!isset($record_num)) $record_num = 0;
|
|
?>
|
|
<tr>
|
|
<td width='25%' align='right' valign='top'><?php displayLanguageText('TEXT-HEADING'); ?>: </td>
|
|
<td width='75%' align='left' valign='top'>
|
|
<input type='text' name='item_title' id='item_title' value="<?php echo(str_replace('"',""",$item_title)) ?>" size='70' class='form-field'><br>
|
|
<span class='small'><?php displayLanguageText('TEXT-ORDER-FORM-HEADING-MSG'); ?></span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-DESCRIPTION'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<input type='text' name='item_description' id='item_description' value="<?php echo(str_replace('"',""",$item_description)) ?>" size='70' class='form-field'>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-VISIBILITY'); ?>: </td>
|
|
<td align='left' valign='top'>
|
|
<?php BuildFileRadio("heading_visibility.txt","heading_visibility",$heading_visibility) ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='right' valign='top'><?php displayLanguageText('TEXT-INSERT-PAGE-BREAK'); ?>: </td>
|
|
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","heading_page_break",$heading_page_break) ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan='2' align='center'>
|
|
<br>
|
|
<input type='submit' class='btn btn--primary' value="<?php echo($ButtonText) ?>">
|
|
<input type='hidden' name='action' value='<?php echo($action) ?>'>
|
|
<input type='hidden' name='naction' value='<?php echo($next_naction) ?>'>
|
|
<input type='hidden' name='schedule_num' id='schedule_num' value='<?php echo($schedule_num) ?>' class='form-field'>
|
|
<input type='hidden' name='item_type' id='item_type' value='<?php echo($item_type) ?>' class='form-field'>
|
|
<input type='hidden' name='record_num' value='<?php echo($record_num) ?>'>
|
|
<?php if ($item_type == 'Heading') { ?>
|
|
<input type='hidden' name='menu_num' id='menu_num' value='<?php echo($menu_num) ?>' class='form-field'>
|
|
<?php } ?>
|
|
<br>
|
|
<br>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|