'; template_admin_quick_search(); echo $txt['generate_reports'], '

', $txt['generate_reports_desc'], '

', $txt['generate_reports_type'], '

'; // Go through each type of report they can run. foreach ($context['report_types'] as $type) { echo '
'; if (isset($type['description'])) echo '
', $type['description'], '
'; } echo '
'; } // This is the standard template for showing reports in. function template_main() { global $context, $settings, $options, $scripturl, $txt, $modSettings; echo '

', $txt['results'], '

'; if (!empty($context['report_buttons'])) template_button_strip($context['report_buttons'], 'right'); echo '
'; // 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 separator, skip over! if (!empty($data['separator']) && $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['v'], ': ', $data['v'] == $table['default_value'] ? '' : ($data['v'] . (empty($data['v']) ? '' : ':')), ' ', $data['v'], '

'; } echo '
'; } // Header of the print page! function template_print_above() { global $context, $settings, $options, $txt; echo ' ', $context['page_title'], ' '; } 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 separator, skip over! if (!empty($data['separator']) && $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['v'], ': ', $data['v'] == $table['default_value'] ? '' : ($data['v'] . (empty($data['v']) ? '' : ':')), ' ', $data['v'], '

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