2023-01-23 11:03:31 +01:00

57 lines
2.0 KiB
PHP

<?php
/* ----------------------------------------------------------------------
$Id: reports.php 437 2013-06-22 15:33:30Z r23 $
MyOOS [Shopsystem]
https://www.oos-shop.de
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
File: reports.php,v 1.4 2002/03/16 00:20:11 hpdl
----------------------------------------------------------------------
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
----------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------- */
$bActive = ($_SESSION['selected_box'] == 'reports' ) ? TRUE : FALSE;
$aBlocks[] = array(
'heading' => BOX_HEADING_REPORTS,
'link' => oos_href_link_admin(basename($_SERVER['PHP_SELF']), oos_get_all_get_params(array('selected_box')) . 'selected_box=reports'),
'icon' => 'fa fa-bar-chart-o',
'active' => $bActive,
'contents' => array(
array(
'code' => $aContents['stats_products_purchased'],
'title' => BOX_REPORTS_PRODUCTS_PURCHASED,
'link' => oos_admin_files_boxes('stats_products_purchased', 'selected_box=reports')
),
array(
'code' => $aContents['stats_products_viewed'],
'title' => BOX_REPORTS_PRODUCTS_VIEWED,
'link' => oos_admin_files_boxes('stats_products_viewed', 'selected_box=reports')
),
array(
'code' => $aContents['stats_low_stock'],
'title' => BOX_REPORTS_STOCK_LEVEL,
'link' => oos_admin_files_boxes('stats_low_stock', 'selected_box=reports')
),
array(
'code' => $aContents['stats_customers'],
'title' => BOX_REPORTS_ORDERS_TOTAL,
'link' => oos_admin_files_boxes('stats_customers', 'selected_box=reports')
),
array(
'code' => $aContents['stats_sales_report2'],
'title' => BOX_REPORTS_SALES_REPORT2,
'link' => oos_admin_files_boxes('stats_sales_report2', 'selected_box=reports')
),
),
);