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

53 lines
2.1 KiB
PHP

<?php
require_once("include/globals.php");
include("phpdir.php");
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Communications Administrator');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
$action = '';
$naction = '';
header("Location: /?action=$action&naction=$naction$headerArgs&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
exit();
}
$content = str_replace("admin/","",$content);
?>
<link href="summernote/summernote-lite.min.css" rel="stylesheet">
<script language="JavaScript" type="text/javascript" src="summernote/summernote-lite.min.js"></script>
<script src="summernote/summernote-image-attributes.js"></script>
<script src="summernote/lang/en-us.js"></script>
<center>
<form action="/" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="6">
<tr>
<td align='left' valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td align="right" width="15%"><?php displayLanguageText('TEXT-PAGE'); ?>: </td>
<td align="left" width="85%"><input type="text" name="content_id" value="<?php echo("$content_id"); ?>" size="80" readonly></td>
</tr>
<input type="hidden" name="record_num" value="<?php echo($record_num); ?>">
<input type="hidden" name="action" value="content">
<input type="hidden" name="naction" value="<?php echo($next_naction); ?>">
<input type="hidden" name="content_type" value="C">
<tr>
<td colspan="2" align="left">
<br>
<textarea cols='150' rows='10' id='content' name='content' class='summernote'><?php echo($content) ?></textarea>
<?php include "summernote.images.php" ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<p><input type="submit" class="btn btn--primary> btn btn-login" value="<?php displayLanguageText('RECORD-UPDATE-ENTRY'); ?>"></p>
</form>
</center>