First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,83 @@
|
||||
<?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','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 = "email_aliases";
|
||||
$tarray = initializeTableArray($initTableName);
|
||||
extract($tarray, EXTR_OVERWRITE);
|
||||
}
|
||||
|
||||
$updated_date = date("Y-m-d",time());
|
||||
$schoolURL = $school_record['url'];
|
||||
|
||||
|
||||
$scriptName = str_replace("/m/data1/app.hotlunches.net/","",__FILE__);
|
||||
include "help.docs.php";
|
||||
|
||||
?>
|
||||
<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='25%' align='right' valign='top'><?php displayLanguageText('TEXT-EMAIL-ALIASES'); ?>: </td>
|
||||
<td width='75%' align='left' valign='top'><input type='text' name='alias' id='alias' value="<?php echo($alias) ?>" size='20'>@<?php echo($schoolURL) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-EMAIL-ADDRESS'); ?>: </td>
|
||||
<td align='left' valign='top'>
|
||||
<input type='text' name='email_addresses' id='email_addresses' value="<?php echo($email_addresses) ?>" size='100'><br>
|
||||
<span class='small'><?php displayLanguageText('TEXT-ENTER-EMAIL-ADDRESSES'); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2'> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-DATE-ADDED'); ?>: </td>
|
||||
<td align='left' valign='top'><input type='text' name='added_date' id='added_date' value="<?php echo($added_date) ?>" size='15' readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' valign='top'><?php displayLanguageText('TEXT-UPDATED-DATE'); ?>: </td>
|
||||
<td align='left' valign='top'><input type='text' name='updated_date' id='updated_date' value="<?php echo($updated_date) ?>" size='15' readonly></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>
|
||||
<p><a href='/?action=email-aliases' class='btn btn--primary>'><?php displayLanguageText('TEXT-EMAIL-ALIASES'); ?></a></p>
|
||||
Reference in new issue
Block a user