Files
HotLunches/staff.set_price_category.form.php
2026-10-19 15:22:52 -07:00

57 lines
1.4 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');
if (checkPermission($AllowedUserTypes) != 1) {
echo("<br>\n");
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
return;
}
$PageTitle = getLanguageText('TEXT-STAFF-UPDATE');
$ButtonText = getLanguageText('TEXT-UPDATE');
?>
<br>
<form method='post' action='/'>
<?php
$message_width = $default_form_width;
include "form.messages.php";
?>
<table width='<?php echo($default_form_width) ?>' class='content-table'>
<tr>
<td colspan='2' align='center' class='heading'><?php echo($PageTitle) ?></td>
</tr>
<tr>
<td colspan='2' align='center'>&nbsp;</td>
</tr>
<tr>
<td width='40%' align='right' valign='top'><?php displayLanguageText('TEXT-MENU-PRICE-CATEGORY'); ?>: </td>
<td align='left' valign='top'>
<select name='category' id='category'>
<?php BuildFileList("menu_price_category.txt","Regular") ?>
</select>
</td>
</tr>
<tr>
<td colspan='2' align='center'>
<br>
<input type='submit' class='btn btn--primary' value='<?php echo($ButtonText) ?>'>
<input type='hidden' name='action' value='staff'>
<input type='hidden' name='naction' value='set-price-category'>
<br>
<br>
</td>
</tr>
</table>
</form>