Skip to content

Commit

Permalink
Fixed short tags in printable survey
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11924 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Jan 5, 2012
1 parent eceeba7 commit e5b4eab
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions application/views/admin/survey/printablesurvey_view.php
@@ -1,4 +1,4 @@
<?
<?php
$welcome=$_POST['welcome'];
$surveydesc=$_POST['surveydesc'];

Expand All @@ -10,43 +10,43 @@

?>

<?
<?php
echo '<link rel="stylesheet" type="text/css" href="/yii8/templates/default/print_template.css" />';
$survey_output=$_POST['survey_output'];
if (isset($_POST['qidattributes'])){
$qidattributes=$_POST['qidattributes'];
}
while (list ($key, $val) = each ($survey_output)) {


if($key=="GROUPS"){

echo "$val<br>";


}
}
}
if(!empty($qidattributes['max_answers'])) {
?>
<br /><p class='extrahelp'>
<?
<?php
sprintf($clang->gT("Please choose no more than %d items"),$qidattributes['max_answers']);
?>
</p><br />
<?
<?php
}
if(!empty($qidattributes['min_answers'])) {
?>
<br /><p class='extrahelp'>
<?
<?php
sprintf($clang->gT("Please choose at least %d items"), $qidattributes['min_answers']);
?>
</p><br />
<?
<?php
}
?>
<?
<?php
if(isset($_POST['type']) && isset($_POST['type']) && isset($_POST['div_title'])){

$type=$_POST['type'];
$style=$_POST['style'];
$div_title=$_POST['div_title'];
Expand All @@ -55,7 +55,7 @@
case 'radio':
case 'checkbox':if(!defined('IMAGE_'.$type.'_SIZE'))
{

$image_dimensions = getimagesize(PRINT_TEMPLATE_DIR.'print_img_'.$type.'.png');
// define('IMAGE_'.$type.'_SIZE' , ' width="'.$image_dimensions[0].'" height="'.$image_dimensions[1].'"');
define('IMAGE_'.$type.'_SIZE' , ' width="14" height="14"');
Expand All @@ -75,10 +75,10 @@
}
return $output;
}

?>

<?
<?php
if(isset($_POST['qidattributes']) && isset($_POST['surveyprintlang']) && isset($_POST['surveyid'])){
$qidattributes=$_POST['qidattributes'];
$surveyprintlang=$_POST['surveyprintlang'];
Expand All @@ -90,9 +90,9 @@
$newquestiontext=$newresult->read();
?>
<br /><p class='extrahelp'>
<?sprintf($clang->gT("Only answer this question for the items you selected in question %d ('%s')"),$qidattributes['array_filter'], br2nl($newquestiontext['question']));?>
<?phpsprintf($clang->gT("Only answer this question for the items you selected in question %d ('%s')"),$qidattributes['array_filter'], br2nl($newquestiontext['question']));?>
</p><br />
<?
<?php
}
if(!empty($qidattributes['array_filter_exclude']))
{
Expand All @@ -101,15 +101,15 @@
$newquestiontext=$newresult->read();
?>
<br /><p class='extrahelp'>
<?sprintf($clang->gT("Only answer this question for the items you did not select in question %d ('%s')"),$qidattributes['array_filter_exclude'], br2nl($newquestiontext['question'])); ?>
<?phpsprintf($clang->gT("Only answer this question for the items you did not select in question %d ('%s')"),$qidattributes['array_filter_exclude'], br2nl($newquestiontext['question'])); ?>
</p><br />
<?
<?php
}

}
?>

<?
<?php

function _input_type_image( $type , $title = '' , $x = 40 , $y = 1 , $line = '' )
{
Expand Down Expand Up @@ -161,7 +161,7 @@ function _input_type_image( $type , $title = '' , $x = 40 , $y = 1 , $line = ''

?>

<?
<?php
echo $survey_output['END']."<br />";
echo $survey_output['SUBMIT_BY']."<br /><br />";
echo $survey_output['SUBMIT_TEXT'];
Expand Down

0 comments on commit e5b4eab

Please sign in to comment.