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

+80
View File
@@ -0,0 +1,80 @@
<?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');
if (checkPermission($AllowedUserTypes) != 1) {
echo("<br>\n");
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
include "form.messages.php";
return;
}
?>
<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'>&nbsp;</td>
</tr>
<tr>
<td width='25%' align='right' valign='top'>Script Name: </td>
<td width='75%' align='left' valign='top'><input type='text' name='script_file_name' id='script_file_name' value="<?php echo($script_file_name) ?>" size='50'></td>
</tr>
<tr>
<td align='right' valign='top'>Help Document: </td>
<td align='left' valign='top'>
<select name='help_doc_num'>
<?php
$query = "select hd.*,hc.sequence,hc.category " .
"from help_documents as hd, help_categories as hc " .
"where hd.category_num = hc.record_num " .
"order by hc.sequence,hd.sequence";
$results = db_query($query);
$prev_cat = "";
while ($row = db_fetch_array($results)) {
extract($row);
if ($category != $prev_cat) {
if (strlen($prev_cat) > 0) echo(" </optgroup>\n");
echo(" <optgroup label='$category'>\n");
$prev_cat = $category;
}
echo(" <option value='$record_num'>$title</option>\n");
}
echo(" </optgroup>\n");
?>
</select>
</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=help-page-links' class='btn btn--primary>'>Help Pages List</a></p>