-
Notifications
You must be signed in to change notification settings - Fork 8
/
adm_reporting_usage.php
86 lines (75 loc) · 2.73 KB
/
adm_reporting_usage.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**COPYRIGHTS**/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/**COPYRIGHTS**/
$pageTitle = 'Ofuz :: Report User Usage';
$Author = 'SQLFusion LLC';
$Keywords = 'Keywords for search engine';
$Description = 'Description for search engine';
$background_color = 'white';
include_once('config.php');
include_once('includes/ofuz_check_access.script.inc.php');
include_once('includes/header.inc.php');
?>
<?php $do_feedback = new Feedback(); $do_feedback->createFeedbackBox(); ?>
<table class="layout_columns"><tr><td class="layout_lmargin"></td><td>
<div class="layout_content">
<?php $thistab = 'Contacts'; include_once('includes/ofuz_navtabs.php'); ?>
<?php $do_breadcrumb = new Breadcrumb(); $do_breadcrumb->getBreadcrumbs(); ?>
<div class="grayline1"></div>
<div class="spacerblock_20"></div>
<div class="contentfull">
<div class="mainheader">
<div class="pad20">
<span class="headline14">User Usage Report</span>
</div>
</div>
<table id="report_user_usage">
<tbody>
<?php
$do_user = new User();
$total_users = $do_user->getTotalUsers();
?>
<tr class="total_users"><td colspan="9">Total Users: <?php echo $total_users; ?></td></tr>
<tr class="report_heading">
<td>Id User</td>
<td>User</td>
<td>Total Contacts</td>
<td>Total Notes</td>
<td>Total Projects</td>
<td>Total Tasks</td>
<td>Total Discussions</td>
<td>Total Invoices</td>
<td>Last Login</td>
</tr>
<?php
$do_report = new ReportUserUsage();
$do_report->getReport();
$count = 1;
while($do_report->next()) {
$class = ($count%2 == 0) ? "even" : "odd";
?>
<tr class="<?php echo $class; ?>">
<td><?php echo $do_report->getData("iduser") ; ?></td>
<td><?php echo $do_report->getData("firstname")." ".$do_report->getData("middlename")." ".$do_report->getData("lastname") ; ?></td>
<td><?php echo $do_report->getData("total_contacts") ; ?></td>
<td><?php echo $do_report->getData("total_notes") ; ?></td>
<td><?php echo $do_report->getData("total_projects") ; ?></td>
<td><?php echo $do_report->getData("total_tasks") ; ?></td>
<td><?php echo $do_report->getData("total_discussion") ; ?></td>
<td><?php echo $do_report->getData("total_invoices") ; ?></td>
<td><?php echo $do_report->getData("last_login") ; ?></td>
</tr>
<?php
$count++;
}
?>
</tbody>
</table>
<div class="spacerblock_80"></div>
<div class="layout_footer"></div>
</div>
</td><td class="layout_rmargin"></td></tr></table>
<?php include_once('includes/ofuz_facebook.php'); ?>
</body>
</html>