Skip to content

Commit

Permalink
Changed sample help text, added replacement for {QUESTIONHELPPLAINTEXT}
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1117 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 8, 2004
1 parent 636ac7e commit 5155fd8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions admin/templates.php
Expand Up @@ -261,7 +261,7 @@ function templatereplace($line)
$groupdescription="This group description is fairly vacuous, but quite important.";
$navigator="<input class='submit' type='submit' value=' next >> ' name='move' />";
if ($screenname != _TP_WELCOMEPAGE) {$navigator = "<input class='submit' type='submit' value=' << prev ' name='move' />\n".$navigator;}
$help="Help me";
$help="This is some help text";
$totalquestions="10";
$surveyformat="Format";
$completed="Survey is completed and saved.";
Expand Down Expand Up @@ -290,9 +290,15 @@ function templatereplace($line)
$line=str_replace("{TOKEN}", $token, $line);
$line=str_replace("{SID}", $sid, $line);
if ($help)
{$line=str_replace("{QUESTIONHELP}", "<img src='".$publicurl."/help.gif' align='left'>".$help, $line);}
{
$line=str_replace("{QUESTIONHELP}", "<img src='".$publicurl."/help.gif' align='left'>".$help, $line);
$line=str_replace("{QUESTIONHELPPLAINTEXT}", strip_tags(addslashes($help)), $line);
}
else
{$line=str_replace("{QUESTIONHELP}", $help, $line);}
{
$line=str_replace("{QUESTIONHELP}", $help, $line);
$line=str_replace("{QUESTIONHELPPLAINTEXT}", strip_tags(addslashes($help)), $line);
}
$line=str_replace("{NAVIGATOR}", $navigator, $line);
//$submitbutton="<input class='submit' type='submit' value=' "._SUBMIT." ' name='move'>";
$submitbutton="<input class='submit' type='submit' value=' Submit ' name='move'>";
Expand Down

0 comments on commit 5155fd8

Please sign in to comment.