help.php 909 Bytes
<?php
require_once("../../../config/dmsDefaults.php");
require_once("$default->fileSystemRoot/presentation/Html.inc");
global $default;
$heading = "$default->graphicsUrl/heading.gif";
$hStretched = "$default->graphicsUrl/hrepeat.gif";
$row1 = "<img src = ". $heading. ">";

//Output a title bar
echo "<head><Table cellpadding = \"1\" cellspacing = \"1\" border=\"1\" width=\"100%\" height=\"10%\">\n " .
"<tr height=\"20%\"><td background = " . $hStretched ." width =\"100%\">". $row1 ."</td></tr></Table><br></head>\n ";

//Query the database for the helpURL based on the current action
$sQuery = "SELECT HLP.help_info as helpinfo ".
		"FROM $default->owl_help_table AS HLP WHERE '$fAction' = HLP.fSection";
		
$sql = $default->db;
$sql->query($sQuery);

if ($sql->next_record())
{
	require_once("$default->uiDirectory/help/" . $sql->f("helpinfo"));
}
else
{
	echo "No help available for "."$fAction";
}
?>