'; $alternate = false; // Go through each type of report they can run. foreach ($context['report_types'] as $type) { echo ' '; $alternate = !$alternate; } echo '
', $txt['generate_reports'], '
', $txt['generate_reports_desc'], '
', $txt['generate_reports_type'], ':
'; } // This is the standard template for showing reports in. function template_main() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '
', $txt['results'], '
 '; if (empty($settings['use_tabs'])) echo ' ', ($settings['use_image_buttons'] ? '' . $txt[465] . '' : $txt[465]), ''; echo '
'; if (!empty($settings['use_tabs'])) echo '
  ', $txt[465], '  

'; // Go through each table! foreach ($context['tables'] as $table) { echo ' '; if (!empty($table['title'])) echo ' '; // Now do each row! $row_number = 0; $alternate = false; foreach ($table['data'] as $row) { if ($row_number == 0 && !empty($table['shading']['top'])) echo ' '; else echo ' '; // Now do each column. $column_number = 0; foreach ($row as $key => $data) { // If this is a special seperator, skip over! if (!empty($data['seperator']) && $column_number == 0) { echo ' '; break; } // Shaded? if ($column_number == 0 && !empty($table['shading']['left'])) echo ' '; else echo ' '; $column_number++; } echo ' '; $row_number++; $alternate = !$alternate; } echo '
', $table['title'], '
', $data['value'], ': ', $data['value'] == $table['default_value'] ? '' : ($data['value'] . (empty($data['value']) ? '' : ':')), ' ', $data['value'], '

'; } } // Header of the print page! function template_print_above() { global $context, $settings, $options, $txt; echo ' ', $context['page_title'], ' '; /* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...) Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual. Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big. Standards compliance mode happens when you use xhtml... */ if ($context['browser']['needs_size_fix']) echo ' '; echo ' '; } function template_print() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Go through each table! foreach ($context['tables'] as $table) { echo '
'; if (!empty($table['title'])) echo ' '; // Now do each row! $alternate = false; $row_number = 0; foreach ($table['data'] as $row) { if ($row_number == 0 && !empty($table['shading']['top'])) echo ' '; else echo ' '; // Now do each column!! $column_number = 0; foreach ($row as $key => $data) { // If this is a special seperator, skip over! if (!empty($data['seperator']) && $column_number == 0) { echo ' '; break; } // Shaded? if ($column_number == 0 && !empty($table['shading']['left'])) echo ' '; else echo ' '; $column_number++; } echo ' '; $row_number++; $alternate = !$alternate; } echo '
', $table['title'], '
', $data['value'], ': ', $data['value'] == $table['default_value'] ? '' : ($data['value'] . (empty($data['value']) ? '' : ':')), ' ', $data['value'], '

'; } } // Footer of the print page. function template_print_below() { global $context, $settings, $options; echo '
', theme_copyright(), '
'; } ?>