*** empty log message ***

This commit is contained in:
duergner 2004-03-15 17:34:35 +00:00
parent 8f95c7da0b
commit 375b2109b1
2 changed files with 15 additions and 13 deletions

View File

@ -438,12 +438,6 @@ placeholder for variables passed to this help entry. The placeholder must follow
placeholder defined by the PHP <b>printf</b> function. HTML/CSS elements are allowed here as long placeholder defined by the PHP <b>printf</b> function. HTML/CSS elements are allowed here as long
as they follow the XHTML1.0 Strict specification. as they follow the XHTML1.0 Strict specification.
<br><br> <br><br>
<span style="font-weight: bold;">Variables</span> <span style="font-style: italic;">(OPTIONAL)</span>
<br>An array of variables used as arguments for the formated string submitted in the <b>Text</b>
field. This may be but must not be an assiciated array where each argument to be passed on is a
single row in the array. This array may only consist of types that can be passed as arguments to PHP's
<b>printf</b> function.
<br><br>
<span style="font-weight: bold;">SeeAlso</span> <span style="font-style: italic;">(OPTIONAL)</span> <span style="font-weight: bold;">SeeAlso</span> <span style="font-style: italic;">(OPTIONAL)</span>
<br>An array of references to anonther related subjects. Each row of the array must contain a field <br>An array of references to anonther related subjects. Each row of the array must contain a field
called "text" with the text that should be displayed and may contain a field called "link" which is used called "text" with the text that should be displayed and may contain a field called "link" which is used

View File

@ -56,7 +56,7 @@ function echoHTMLFoot()
} }
/* Print help site */ /* Print help site */
function displayHelp($helpEntry) { function displayHelp($helpEntry,$helpVariables) {
/* Load external help page */ /* Load external help page */
if($helpEntry["ext"] == "TRUE") if($helpEntry["ext"] == "TRUE")
{ {
@ -67,11 +67,6 @@ function displayHelp($helpEntry) {
/* Print help site out of $helpEntry */ /* Print help site out of $helpEntry */
else else
{ {
$helpVariables = array();
while($current = current($helpEntry['Variables'])) {
array_push($helpVariables,$current);
next($helpEntry['variables']);
}
echoHTMLHead(); echoHTMLHead();
echo " <h1 class=\"help\">" . $helpEntry['Headline'] . "</h1>\n"; echo " <h1 class=\"help\">" . $helpEntry['Headline'] . "</h1>\n";
$format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n"; $format = " <p class=\"help\">" . $helpEntry['Text'] . "</p>\n";
@ -119,6 +114,19 @@ else {
} }
} }
displayHelp($helpEntry); $i = 1;
$moreVariables = true;
$helpVariables = array();
while($moreVariables) {
if(isset($_GET['var' . $i])) {
array_push($helpVariables,$_GET['var' . $i]);
$i++;
}
else {
$moreVariables = false;
}
}
displayHelp($helpEntry,$helpVariables);
?> ?>