www.pudn.com > crm_lm7ap6.rar > stats.inc, change:2011-08-17,size:753b


<?php
/**
 * @copyright 2011 City of Bloomington, Indiana
 * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
 * @author Cliff Ingham <inghamn@bloomington.in.gov>
 * @param Person $this->person
 */
$notClosed = array('status'=>array('$ne'=>'closed'));

$assigned = count($this->person->getTickets('assigned',$notClosed));
$reported = count($this->person->getTickets('reportedBy',$notClosed));
$referred = count($this->person->getTickets('referred',$notClosed));
echo "
<div class=\"stats\">
	<table>
		<tr><th>Currently assigned cases</th>
			<td>$assigned</td>
		</tr>
		<tr><th>Outstanding reported cases</th>
			<td>$reported</td>
		</tr>
		<tr><th>Current referred cases</th>
			<td>$referred</td>
		</tr>
	</table>
</div>
";