$content->assign('error', 'No Report Found');
    displayPage($content, 'report', 'report.tpl', 'Mozilla Reporter - Error');
    exit;
}
// We need this for continuity params in particular
$query = new query();
$query_input = $query->processQueryInputs();
$title = "Report for " . $reportQuery->fields['host_hostname'] . " - " . $reportQuery->fields['report_id'];
$content->assign('report_id', $reportQuery->fields['report_id']);
$content->assign('report_url', $reportQuery->fields['report_url']);
//$host_continuity_params = $query->continuityParams(array('report_id', 'report_product', 'report_file_date', 'product_family', 'page'));
$content->assign('host_continuity_params', $host_continuity_params);
$content->assign('host_url', $config['base_url'] . '/app/query/?host_hostname=' . $reportQuery->fields['host_hostname'] . '&' . $host_continuity_params . 'submit_query=Query');
$content->assign('host_hostname', $reportQuery->fields['host_hostname']);
$content->assign('report_problem_type', resolveProblemTypes($reportQuery->fields['report_problem_type']));
$content->assign('report_behind_login', resolveBehindLogin($reportQuery->fields['report_behind_login']));
$content->assign('report_product', $reportQuery->fields['report_product']);
$content->assign('report_gecko', $reportQuery->fields['report_gecko']);
$content->assign('report_useragent', $reportQuery->fields['report_useragent']);
$content->assign('report_buildconfig', $reportQuery->fields['report_buildconfig']);
$content->assign('report_platform', $reportQuery->fields['report_platform']);
$content->assign('report_oscpu', $reportQuery->fields['report_oscpu']);
$content->assign('report_language', $reportQuery->fields['report_language']);
$content->assign('report_charset', $reportQuery->fields['report_charset']);
$content->assign('report_file_date', $reportQuery->fields['report_file_date']);
$content->assign('report_email', $reportQuery->fields['report_email']);
$content->assign('report_ip', $reportQuery->fields['report_ip']);
$content->assign('report_description', $reportQuery->fields['report_description']);
if ($screenshot) {
    $content->assign('screenshot', $screenshot);
}
 function outputHTML()
 {
     global $iolib;
     $continuity_params = $this->continuityParams(array('count', 'ascdesc', 'orderby'));
     // Data
     $output = array();
     $rowNum = 0;
     if (sizeof($this->resultSet) > 0) {
         foreach ($this->resultSet as $row) {
             $colNum = 0;
             // Prepend if new_front;
             $output[$rowNum][0]['text'] = 'Detail';
             if (isset($row['count'])) {
                 $output[$rowNum][0]['url'] = '/query/?host_hostname=' . $row['host_hostname'] . '&' . $continuity_params . '&selected%5B%5D=report_file_date';
             } else {
                 $output[$rowNum][0]['url'] = '/report/?report_id=' . $row['report_id'] . '&' . $continuity_params;
             }
             $colNum++;
             foreach ($row as $cellName => $cellData) {
                 if (!($cellName == 'report_id' && $this->artificialReportID)) {
                     $output[$rowNum][$colNum]['col'] = $cellName;
                     if ($cellName == 'report_problem_type') {
                         $cellData = resolveProblemTypes($cellData);
                     } else {
                         if ($cellName == 'report_behind_login') {
                             $cellData = resolveBehindLogin($cellData);
                         }
                     }
                     $output[$rowNum][$colNum]['text'] = $cellData;
                     $colNum++;
                 }
             }
             $rowNum++;
         }
     }
     return $output;
 }