| @@ 453-471 (lines=19) @@ | ||
| 450 | * @access protected |
|
| 451 | * @return void |
|
| 452 | */ |
|
| 453 | protected function _registration_reports() { |
|
| 454 | ||
| 455 | do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' ); |
|
| 456 | ||
| 457 | $page_args = array(); |
|
| 458 | ||
| 459 | $page_args['admin_reports'][] = $this->_registrations_per_day_report( '-1 month' ); // option: '-1 week', '-2 weeks' defaults to '-1 month' |
|
| 460 | $page_args['admin_reports'][] = $this->_get_registrations_per_event_report( '-1 month' ); // option: '-1 week', '-2 weeks' defaults to '-1 month' |
|
| 461 | // $page_args['admin_reports'][] = 'chart1'; |
|
| 462 | ||
| 463 | $template_path = EE_ADMIN_TEMPLATE . 'admin_reports.template.php'; |
|
| 464 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( $template_path, $page_args, TRUE ); |
|
| 465 | ||
| 466 | // EEH_Debug_Tools::printr( $page_args, '$page_args' ); |
|
| 467 | ||
| 468 | // the final template wrapper |
|
| 469 | $this->display_admin_page_with_no_sidebar(); |
|
| 470 | ||
| 471 | } |
|
| 472 | ||
| 473 | ||
| 474 | ||
| @@ 114-130 (lines=17) @@ | ||
| 111 | * @access protected |
|
| 112 | * @return void |
|
| 113 | */ |
|
| 114 | protected function _transaction_reports() { |
|
| 115 | ||
| 116 | $page_args = array(); |
|
| 117 | ||
| 118 | $page_args['admin_reports'][] = $this->_revenue_per_day_report( '-1 month' ); // option: '-1 week', '-2 weeks' defaults to '-1 month' |
|
| 119 | $page_args['admin_reports'][] = $this->_revenue_per_event_report( '-1 month' ); // option: '-1 week', '-2 weeks' defaults to '-1 month' |
|
| 120 | // $page_args['admin_reports'][] = 'chart1'; |
|
| 121 | ||
| 122 | $template_path = EE_ADMIN_TEMPLATE . 'admin_reports.template.php'; |
|
| 123 | $this->_admin_page_title = __('Transactions', 'event_espresso'); |
|
| 124 | $this->_template_args['admin_page_content'] = EEH_Template::display_template( $template_path, $page_args, TRUE ); |
|
| 125 | ||
| 126 | ||
| 127 | // the final template wrapper |
|
| 128 | $this->display_admin_page_with_no_sidebar(); |
|
| 129 | ||
| 130 | } |
|
| 131 | ||
| 132 | ||
| 133 | ||