2013-05-01 19:24:42 +08:00
|
|
|
<h2>Events</h2>
|
2013-05-16 05:53:07 +08:00
|
|
|
<?php $count = 0; ?>
|
2013-05-31 10:43:48 +08:00
|
|
|
<ol id="selectable">
|
2013-05-16 05:53:07 +08:00
|
|
|
<?php foreach ($monitors as $monitor): ?>
|
2013-05-31 10:43:48 +08:00
|
|
|
<li id="Monitor_<?php echo $monitor['Monitor']['Id']; ?>">
|
|
|
|
<?php echo $monitor['Monitor']['Name']; ?>
|
|
|
|
<?php echo count($monitor['Event']); ?>
|
|
|
|
<?php echo $eventsLastHour[$count][0]['count']; ?>
|
|
|
|
<?php echo $eventsLastDay[$count][0]['count']; ?>
|
|
|
|
<?php echo $eventsLastWeek[$count][0]['count']; ?>
|
|
|
|
<?php echo $eventsLastMonth[$count][0]['count']; ?>
|
|
|
|
<?php echo $eventsArchived[$count][0]['count']; ?>
|
|
|
|
</li>
|
2013-05-16 05:53:07 +08:00
|
|
|
<?php $count++; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php unset($monitor); ?>
|
2013-05-31 10:43:48 +08:00
|
|
|
</ol>
|
2013-05-29 19:45:47 +08:00
|
|
|
<div id="Events">
|
2013-05-31 10:43:48 +08:00
|
|
|
<div style="clear:both;"><?php echo $this->Paginator->numbers(); ?></div>
|
2013-05-29 19:45:47 +08:00
|
|
|
<table>
|
2013-05-16 05:53:07 +08:00
|
|
|
<tr>
|
|
|
|
<th>Event Name</th>
|
|
|
|
<th>Monitor Name</th>
|
2013-05-01 19:02:12 +08:00
|
|
|
<th>Length</th>
|
|
|
|
</tr>
|
|
|
|
|
2013-05-31 10:54:51 +08:00
|
|
|
<?php foreach ($events as $key => $value): ?>
|
2013-05-01 19:02:12 +08:00
|
|
|
<tr>
|
|
|
|
<td>
|
2013-05-31 10:54:51 +08:00
|
|
|
<?php
|
|
|
|
echo $this->Html->link($this->Html->image('/events/'.$thumbData[$key]['Path'], array(
|
|
|
|
'alt' => $thumbData[$key]['Frame']['FrameId'].'/'.$thumbData[$key]['Event']['MaxScore'],
|
|
|
|
'width' => $thumbData[$key]['Width'],
|
|
|
|
'height' => $thumbData[$key]['Height']
|
|
|
|
)), array('controller' => 'events', 'action' => 'view', $value['Event']['Id']),
|
|
|
|
array('escape' => false));
|
|
|
|
?>
|
2013-05-31 11:00:09 +08:00
|
|
|
</td>
|
|
|
|
<td><?php echo $value['Monitor']['Name']; ?></td>
|
|
|
|
<td><?php echo $value['Event']['Length']; ?></td>
|
2013-05-01 19:02:12 +08:00
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
2013-05-31 10:54:51 +08:00
|
|
|
<?php unset($key); ?>
|
2013-05-01 19:02:12 +08:00
|
|
|
</table>
|
2013-05-31 10:43:48 +08:00
|
|
|
<div><?php echo $this->Paginator->numbers(); ?></div>
|
2013-05-29 19:45:47 +08:00
|
|
|
</div>
|