1<?php
2
3// Pandora FMS - http://pandorafms.com
4// ==================================================
5// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
6// Please see http://pandorafms.org for full contribution list
7
8// This program is free software; you can redistribute it and/or
9// modify it under the terms of the GNU General Public License
10// as published by the Free Software Foundation for version 2.
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14// GNU General Public License for more details.
15
16global $result;
17
18$table->width = "98%";
19$table->class = "databox";
20
21$table->head[0] = __('Description');
22$table->head[1] = __('User');
23$table->head[2] = __('Date');
24
25$table->data = array();
26
27if (isset($result['tracking'][0]) && is_array($result['tracking'][0])) {
28	$tracking = $result['tracking'];
29}
30else {
31	$tracking = $result;
32}
33
34$row = 0;
35foreach ($tracking as $value) {
36
37	$table->data[$row][0] = $value['description'];
38	$table->data[$row][1] = $value['id_user'];
39	$table->data[$row][2] = $value['timestamp'];
40	$row++;
41}
42
43html_print_table($table);
44
45?>
46