Files
HotLunches/staff_categories.php
2026-10-19 15:22:52 -07:00

40 lines
989 B
PHP

<?php
require_once("include/globals.php");
if (SessionActive() != 1 || ! UserLoggedIn()) {
header("Location: /");
exit();
}
//
// Process all actions to list and edit records
//
$naction = "";
$CurrentTable = "staff_categories";
$FormFile = "staff_categories.dialog.php";
$JQueryFile = "staff_categories.js.php";
$DialogWidth = 400;
$TitleText = getLanguageText('TEXT-STAFF-CATEGORY');
$RequiredFields = array('category_title');
$tableAction = "staff-categories";
$SequenceFlag = 'Y';
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Communications Administrator');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
endTemplate();
exit();
}
startTemplate();
include "form.js.php";
endTemplate();
?>