First Commit

This commit is contained in:
mark committed 2026-10-19 15:22:52 -07:00
1 parent 5eb9dd037d
commit 2e62c0e60b
11877 files changed
+2035312

No files matched your search

+72
View File
@@ -0,0 +1,72 @@
<?php
require_once("include/globals.php");
if (SessionActive() != 1 || ! UserLoggedIn()) {
header("Location: /");
exit();
}
// Start the template and output buffering
startTemplate();
$templatePageTitle = "Application Terms and Definitions";
// Ensure that only valid user types have access to this module
$AllowedUserTypes = array('SuperUser','System Administrator','Communications Administrator','Administration Team');
if (checkPermission($AllowedUserTypes) != 1) {
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
endTemplate();
exit();
}
//
// Process all actions to list and edit records
//
$CurrentTable = "help_definitions";
//
// List all definitions
//
// Get records to display
$query = "select phrase,definition,record_num " .
"from help_definitions " .
"order by phrase";
$results = db_query($query);
?>
<br>
<table width='90%' cellpadding='10' cellspacing='2' class='content-table'>
<tr class='heading'>
<td align='center'>Definitions</td>
</tr>
<?php
$count = 0;
while ($row = db_fetch_array($results)) {
extract($row);
$bgclass = 'data-odd';
if ($count % 2) $bgclass = 'data-even';
$count++;
?>
<tr class='<?php echo($bgclass) ?>'>
<td align='center'>
<div class='phrase'>
<p class='large'><b><?php echo($phrase) ?></b></p>
<p><?php echo(nl2br($definition)) ?></p>
</div>
</td>
</tr>
<?php
}
?>
</table>
<?php
endTemplate();
?>