QUEST commands list |
 |
Body section
$Start$<<test_page_name>>
Initializes the training page and opens the html form. test_page_name is the name of the output php file that the QUEST program will create at the end of the process The extension '.php' will be added automatically.
$End$
Inserts the 'Check Answer' button and complete the html form.
$NextPage$<<next_test_page_name>>
Inserts the 'Next Step' button if all the answers are correct. next_test_page_name .php will
be the next page link name.
NB. If you make the html code with Microsoft Word be sure that the
whole command $NextPage$<<next_test_page_name>> is defined as the same language. Otherwise same </span> can
appear in the link name.
$Score$
Inserts the number of correct answers
Question section
$Question$
Defines a new question, then increases and inserts the question number.
$SubQuestion$
Defines a new question, increases but does not insert any question number.
$RT$
Inserts a radio button. The answer is considered correct. For each question
only a $RT$ must be present.
$RF$
Inserts a radio button. The answer is considered not correct.
$MessageTrue$<<message_text>>
Text of the message that will be displayed if the answer is correct. If not specified the $MessageTrueDefaultText$ contents will be showed.
$MessageFalse$<<message_text>>
Text of the message that will be displayed if the answer is not correct. If not specified the $MessageFalseDefaultText$ contents will be showed.
$Result$
If the answer is right/wrong it will be replaced by the true/false default figure ( quiz_true.gif  or quiz_false.gif  ) and by the message true/false text (default text is OK or This is not the correct answer ). When $MessageTrue$ or $MessageFalse$ commands have been specified the default message will be substitute by the text specified by these commands.
Settings
$MessageTrueDefaultText$<<message_text>>
Set the text of the message that will be displayed if the answer is correct.
If not specified the message “OK ” will be showed.
$MessageFalseDefaultText$<<message_text>>
Set the text of the message that will be displayed if the answer is not correct.
If not specified the message “The answer is not correct ” will
be showed.
$MessageTrueDefaultFig$<<message_figure>>
Set the figure that will be displayed if the answer is correct. If not specified the figure  (quiz_true.gif) will be showed.
$MessageFalseDefaultFig$<<message_figure>>
Set the figure that will be displayed if the answer is not correct. If not specified the figure  (quiz_false.gif) will be showed.
Special commands
$PHPcode$<<php_code>>
With this command it is possible to insert a PHP command. For example, by
writing $PHPcode$<<echo '<img src="bullet.gif">'>> we
insert the PHP code: <?php echo '<img src="bullet.gif">'
?> .
$INCLUDE$<<file_name>>
With this command it is possible to insert a PHP include command . For example,
by writing $INCLUDE$<<$root/start.php>> we insert the PHP code: <?php include "$root/start.php" ?>.
|