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

74 lines
2.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');
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') {
$basic_package = 'Y';
$full_package = 'Y';
}
?>
<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 align='right' valign='top'><?php displayLanguageText('TEXT-FEATURE'); ?>: </td>
<td align='left' valign='top'><input type='text' name='feature' id='feature' value="<?php echo($feature) ?>" size='100'></td>
</tr>
<tr>
<td align='right' valign='top'><?php displayLanguageText('TEXT-NOTES'); ?>: </td>
<td align='left' valign='top'><textarea name='notes' rows='5' cols='80'><?php echo($notes) ?></textarea></td>
</td>
</tr>
<tr>
<td align='right' valign='top'><?php displayLanguageText('TEXT-BASIC-PACKAGE'); ?>: </td>
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","basic_package",$basic_package) ?></td>
</tr>
<tr>
<td align='right' valign='top'><?php displayLanguageText('TEXT-FULL-PACKAGE'); ?>: </td>
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","full_package",$full_package) ?></td>
</tr>
<tr>
<td align='right' valign='top'><?php displayLanguageText('TEXT-SCHOOL-FEES'); ?>: </td>
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","school_fees",$school_fees) ?></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='<?php echo($action) ?>'>
<input type='hidden' name='naction' value='<?php echo($next_naction) ?>'>
<input type='hidden' name='record_num' value='<?php echo($record_num) ?>'>
<br>
<br>
</td>
</tr>
</table>
</form>