blob: 5e2e5930c2e57841253fdcbd3ab33a01f07529b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
/**
* Product Statistics.
* @package mirror
* @subpackage admin
*/
$protect=1; // protect this page
require_once('../cfg/init.php');
$title = 'Product Statistics';
$nav = INC.'/admin_nav.php';
require_once(HEADER);
echo '<h2>Product Statistics</h2>';
$stats = Mirror::get_product_stats();
$_GET['sort']=(!empty($_GET['sort']))?$_GET['sort']:'count';
$_GET['order']=(!empty($_GET['order']))?$_GET['order']:'DESC';
$stats=array_order_by($stats,$_GET['sort'],$_GET['order']);
$headers = array(
'count'=>'Hits',
'product_name'=>'Product'
);
ListOut::show($stats,$headers,'simple');
require_once(FOOTER);
|