} else { header('Cache-Control: public'); header('Content-type: application/pdf'); header('Content-Disposition: attachment; filename="evaluation-' . $iEvaluationId . '.pdf"'); header('Content-Length: ' . strlen($Result)); echo $Result; } } } $strPageTitle = 'Puckstoppers Goaltending Evaluation'; include "layout/header.php"; if (isset($_GET['eval_id']) && is_numeric($_GET['eval_id'])) { $iEvaluationId = $_GET['eval_id']; $objEvaluation = new Evaluation(NULL, $iEvaluationId); $arrEvaluation = $objEvaluation->getEvaluation(); $objEvaluation->markComplete(); $arrCompletedComponents = $objEvaluation->getCompletedComponents(); $arrCompletedComments = $objEvaluation->getCompletedComments(); } else { header('Location: ' . $strLocation . 'admin/'); } $objComment = new Comment(NULL, NULL, NULL); $arrComponents = $objComment->getComponents(); $arrCommentTypes = $objComment->getCommentTypes(); ?> <?php if (!empty($iEvaluationId)) { ?> <input name="evaluation-id" type="hidden" value="<?php echo $iEvaluationId; ?>