예제 #1
0
echo $active_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->getActiveUsersReport();
$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 
예제 #2
0
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 
예제 #3
0
<?php

/**COPYRIGHTS**/
// Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com
/**COPYRIGHTS**/
/**
 * A cron job script for generating Report on User Usage
 */
include_once 'config.php';
$do_user = new User();
$do_user->getAllUsersId();
while ($do_user->next()) {
    $do_report = new ReportUserUsage();
    $do_report->addUpdateReportData($do_user->iduser);
    $do_report->free();
}