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

54 lines
1.4 KiB
PHP

<?php
require_once("include/globals.php");
if (SessionActive() != 1 || ! UserLoggedIn()) {
header("Location: /");
exit();
}
//
// Process all actions to list and edit records
//
$CurrentTable = "school_contact_list";
$DeleteField = "contact_name,contact_email";
$FormFile = "application_contacts.dialog.php";
$DialogWidth = 500;
$TitleText = getLanguageText('TEXT-CONTACT');
$SequenceFlag = 'Y';
$tableAction = "application-contacts";
$RequiredFields = array('contact_name','contact_email','contact_phone','contact_position');
$FieldDefaultValues = array(
'contact_position' => 'Application Contact'
);
$templatePageTitle = "$TitleText " . getLanguageText('TEXT-ADMINISTRATION');
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Communications Administrator');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
endTemplate();
exit();
}
startTemplate();
?>
<table width='750'>
<tr>
<td align='center' class='notice' style='padding: 5px;'>
<p class='notice'><b><?php displayLanguageText('TEXT-CONTACTS-MESSAGE'); ?></b></p>
</td>
</tr>
</table>
<?php
include "form.js.php";
endTemplate();
?>