38 lines
856 B
PHP
38 lines
856 B
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
|
|
// Start the template and output buffering
|
|
startTemplate();
|
|
$templatePageTitle = getLanguageText('TEXT-ORDERS');
|
|
echo("<br>\n");
|
|
include "form.messages.php";
|
|
|
|
// Parent order list
|
|
if (in_array($_SESSION['UserInfo']['type'],array('Parent','Administration Team','Schedule Team','Financial Team'))) {
|
|
include "hotlunch_order_list.parent.php";
|
|
}
|
|
|
|
// Staff person order list
|
|
if ($_SESSION['UserInfo']['type'] == 'Staff') {
|
|
include "hotlunch_order_list.staff.php";
|
|
}
|
|
|
|
// Guest order list
|
|
if ($_SESSION['UserInfo']['type'] == 'Guest') {
|
|
include "hotlunch_order_list.guest.php";
|
|
}
|
|
|
|
|
|
$user_num = intval($_SESSION['UserInfo']['record_num']);
|
|
|
|
include "get.adobe.php";
|
|
|
|
endTemplate();
|
|
?>
|