73 lines
1.6 KiB
PHP
73 lines
1.6 KiB
PHP
<?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();
|
|
?>
|