You are here

function ad_report_admin_display in Advertisement 5.2

Same name and namespace in other branches
  1. 6.3 report/ad_report.module \ad_report_admin_display()
  2. 6.2 report/ad_report.module \ad_report_admin_display()
  3. 7 report/ad_report.module \ad_report_admin_display()

Display the administrative report.

1 string reference to 'ad_report_admin_display'
ad_report_menu in report/ad_report.module
Implementation of hook_menu().

File

report/ad_report.module, line 225
Provides comprehensive charts and reports about advertising statistics.

Code

function ad_report_admin_display() {
  $start = $_SESSION['ad_report_start'];
  $end = $_SESSION['ad_report_end'];
  $group = $_SESSION['ad_report_group'];
  $output = '<div class="image"><img src="' . url("ad_report/0/bargraph/admin/{$start}/{$end}") . '" /></div>';
  $output .= ad_report_admin_ad_table(strtotime($start), strtotime($end), $group);
  $output .= '<div>' . l(t('Modify report'), 'admin/content/ad/report') . '</div>';
  return $output;
}