assign('title', 'Events'); ?> start('sidebar'); ?>
end(); ?> Form->create('Events', array('action' => 'deleteSelected')); ?> Html->tableHeaders(array($this->Form->checkbox('', array('hiddenField' => false, 'class' => 'selectAll')), 'Thumbnail', 'Id', 'Name', 'Monitor', 'Cause', 'Date/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'], $this->Time->format('n/j/y @ g:i:s A', $value['Event']['StartTime'], null, 'EST'), $value[0]['Duration'], $value['Event']['AlarmFrames'], $value['Event']['TotScore'], $value['Event']['AvgScore'], $value['Event']['MaxScore'] )); } ?>
Form->end(); ?> Js->get('#EventsIndexForm')->serializeForm(array('isForm' => true, 'inline' => true)); $this->Js->get('#EventsIndexForm')->event( 'submit', $this->Js->request( array('action' => 'index'), array( 'update' => '#Events', 'data' => $data, 'async' => true, 'dataExpression' => true, 'method' => 'POST' ) ) ); echo $this->Js->writeBuffer(); */ ?>