Skip to content

Commit

Permalink
Dev minor change to show logic file - it was generating embedded <htm…
Browse files Browse the repository at this point in the history
…l> segments

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@12277 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
tmswhite committed Feb 1, 2012
1 parent 7228f48 commit e3a01aa
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions classes/eval/test/survey_logic_file.php
@@ -1,13 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<?php
if (count($_POST) == 0 && !((isset($subaction) && $subaction == 'survey_logic_file'))) {die("Cannot run this script directly");}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Survey Logic File</title>
</head>
<body>
<?php
if (count($_GET) > 0) {
foreach ($_GET as $key=>$val) {
Expand Down Expand Up @@ -43,6 +38,11 @@
}

$form = <<< EOD
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Survey Logic File</title>
</head>
<body>
<form method='post' action='../classes/eval/test/survey_logic_file.php'>
<h3>Generate a logic file for the survey</h3>
<table border='1'>
Expand Down Expand Up @@ -72,6 +72,7 @@
<tr><td colspan='2'><input type='submit'/></td></tr>
</table>
</form>
</body>
EOD;
echo $form;
}
Expand Down Expand Up @@ -101,8 +102,7 @@
$qid = (isset($_POST['qid']) ? sanitize_int($_POST['qid']) : NULL);

print <<< EOD
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Logic File - Survey #$surveyid</title>
<style type="text/css">
Expand Down Expand Up @@ -146,9 +146,7 @@

print <<< EOD
</body>
</html>
EOD;
}
?>
</body>
</html>
</html>

0 comments on commit e3a01aa

Please sign in to comment.