start('sidebar'); ?> end(); ?> 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->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'], $this->Form->postLink( 'Delete', array('action' => 'delete', $value['Event']['Id']), array('confirm' => 'Are you sure?')) )); } ?>