Skip to content

Commit

Permalink
Dev Print Answers working again in EM, but PDF export does not look g…
Browse files Browse the repository at this point in the history
…ood.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11187 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Oct 17, 2011
1 parent a5a5bed commit 9b18688
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions application/controllers/printanswers.php
Expand Up @@ -287,23 +287,22 @@ function view($surveyid,$printableexport=FALSE)
$this->pdf->Output($sExportFileName."-".$surveyid.".pdf","D");
}

LimeExpressionManager::FinishProcessingGroup();
LimeExpressionManager::FinishProcessingPage();
// Note, don't need to output JavaScript for print answers.

//Display the page with user answers
if(!$printableexport)
{

sendcacheheaders();
doHeader();

echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/startpage.pstpl'),array(),array());
echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/printanswers.pstpl'),array('ANSWERTABLE'=>$printoutput),array(),array());
echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/endpage.pstpl'),array(),array());
echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/startpage.pstpl'));
echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/printanswers.pstpl'),array('ANSWERTABLE'=>$printoutput));
echo templatereplace(file_get_contents(sGetTemplatePath($thistpl).'/endpage.pstpl'));
echo "</body></html>";
}

LimeExpressionManager::FinishProcessingGroup();
LimeExpressionManager::FinishProcessingPage();

}


Expand Down

0 comments on commit 9b18688

Please sign in to comment.