start('sidebar'); ?>
end(); ?>
echo $this->Form->create('Events', array('action' => 'deleteSelected'));
?>
Html->tableHeaders(array('', 'Thumbnail', 'Id', 'Name', 'Monitor', 'Cause', 'Time', 'Duration', 'Alarm Frames', 'Total Score', 'Avg. Score', 'Max Score'));
foreach ($events as $key => $value) {
echo $this->Html->tableCells(array(
$this->Form->checkbox('delete.', array(
'value' => $value['Event']['Id'],
'hiddenField' => false
)),
$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)),
$value['Event']['Id'],
$value['Event']['Name'],
$value['Monitor']['Name'],
$value['Event']['Cause'],
$value['Event']['StartTime'],
$value[0]['Duration'],
$value['Event']['AlarmFrames'],
$value['Event']['TotScore'],
$value['Event']['AvgScore'],
$value['Event']['MaxScore']
));
}
?>
echo $this->Form->end();
?>