First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,84 @@
|
||||
<?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','Communications Administrator');
|
||||
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);
|
||||
|
||||
$school_in_session = 'Y';
|
||||
$hotlunch_menu_on_date = 'Y';
|
||||
$text_color = '000000';
|
||||
$bgcolor = 'FFFFFF';
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<script type="text/javascript" src="include/jscolor.js"></script>
|
||||
<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'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='40%' align='right' valign='top'><?php displayLanguageText('TEXT-EVENT-TYPE-TITLE'); ?>: </td>
|
||||
<td width='60%' align='left' valign='top'><input type='text' name='event_type_title' id='event_type_title' value="<?php echo($event_type_title) ?>" size='50'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-SCHOOL-IN-SESSION'); ?>: </td>
|
||||
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","school_in_session",$school_in_session) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-MENU-ON-DATE'); ?>: </td>
|
||||
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","hotlunch_menu_on_date",$hotlunch_menu_on_date) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-DISPLAY-ON-CALENDAR-ORDER-FORM'); ?>: </td>
|
||||
<td align='left' valign='top'><?php BuildFileRadio("yn.txt","display_on_order_form",$display_on_order_form) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><a name='textcolor'></a><?php displayLanguageText('TEXT-TEXT-COLOR'); ?>: </td>
|
||||
<td align='left' valign='top'><input type='text' name='text_color' value='<?php echo($text_color) ?>' class='color' size='10'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><a name='bgcolor'></a><?php displayLanguageText('TEXT-BACKGROUND-COLOR'); ?>: </td>
|
||||
<td align='left' valign='top'><input type='text' name='bg_color' value='<?php echo($bg_color) ?>' class='color' size='10'></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>
|
||||
Reference in new issue
Block a user