Skip to content

Commit

Permalink
Fixed problem with apostrophes and javascript alerts in onclick actio…
Browse files Browse the repository at this point in the history
…n with speaker.jpg!

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@510 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jul 16, 2003
1 parent 8e80c6e commit aacf8d1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions admin/statistics.php
Expand Up @@ -118,15 +118,15 @@
case "T": // Long free text
$myfield2="T$myfield";
echo "\t\t\t\t<td align='center' valign='top'>$setfont<b>$flt[3]</b>"; //heading
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5]\" [$row[1]]' onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5]\" [$row[1]]' onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";
echo "\t\t\t\t\t<font size='1'>Responses containing:</font><br />\n";
echo "\t\t\t\t\t<textarea $slstyle2 name='$myfield2' rows='3'>".$_POST[$myfield2]."</textarea>";
break;
case "S": // Short free text
$myfield2="T$myfield";
echo "\t\t\t\t<td align='center' valign='top'>$setfont<b>$flt[3]</b>"; //heading
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";
echo "\t\t\t\t\t<font size='1'>Responses containing:</font><br />\n";
echo "\t\t\t\t\t<input type='text' $slstyle2 name='$myfield2' value='".$_POST[$myfield2]."'>";
Expand All @@ -144,7 +144,7 @@
case "D": // Date
$myfield2="D$myfield";
echo "\t\t\t\t<td align='center' valign='top'>$setfont<b>$flt[3]</b>"; //heading
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "&nbsp;<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";
echo "\t\t\t\t\t<font size='1'>Date (YYYY-MM-DD) equals:<br />\n";
$myfield3="$myfield2=";
Expand Down Expand Up @@ -193,7 +193,7 @@
echo "<input type='radio' name='summary' value='$myfield2'";
if ($_POST['summary'] == "$myfield2") {echo " CHECKED";}
echo ">&nbsp;";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5][$row[1]]')\">";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";
echo "\t\t\t\t<select name='{$sid}X{$flt[1]}X{$flt[0]}{$row[0]}[]' multiple $slstyle2>\n";
for ($i=1; $i<=5; $i++)
Expand Down Expand Up @@ -225,7 +225,7 @@
echo "<input type='radio' name='summary' value='$myfield2'";
if ($_POST['summary'] == "$myfield2") {echo " CHECKED";}
echo ">&nbsp;";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";
echo "\t\t\t\t<select name='{$sid}X{$flt[1]}X{$flt[0]}{$row[0]}[]' multiple $slstyle2>\n";
for ($i=1; $i<=10; $i++)
Expand Down Expand Up @@ -256,7 +256,7 @@
echo "<input type='radio' name='summary' value='$myfield2'";
if ($_POST['summary'] == "$myfield2") {echo " CHECKED";}
echo ">&nbsp;";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";

echo "\t\t\t\t<select name='{$sid}X{$flt[1]}X{$flt[0]}{$row[0]}[]' multiple $slstyle2>\n";
Expand Down Expand Up @@ -290,7 +290,7 @@
echo "<input type='radio' name='summary' value='$myfield2'";
if ($_POST['summary'] == "$myfield2") {echo " CHECKED";}
echo ">&nbsp;";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: $flt[5] [$row[1]]')\">";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";

echo "\t\t\t\t<select name='{$sid}X{$flt[1]}X{$flt[0]}{$row[0]}[]' multiple $slstyle2>\n";
Expand Down Expand Up @@ -330,7 +330,7 @@
echo "<input type='radio' name='summary' value='$myfield2'";
if ($_POST['summary'] == "$myfield2") {echo " CHECKED";}
echo ">&nbsp;";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: {$flt[5]} [Rank $i]')\">";
echo "<img src='./images/speaker.jpg' align='bottom' alt=\"$flt[5] [$row[1]]\" onClick=\"alert('QUESTION: ".str_replace("'", "`", $flt[5])." ".str_replace("'", "`", $row[1])."')\">";
echo "<br />\n";

echo "\t\t\t\t<select name='{$sid}X{$flt[1]}X{$flt[0]}{$i}[]' multiple $slstyle2>\n";
Expand Down

0 comments on commit aacf8d1

Please sign in to comment.