0 ) { $eventsSql .= ' AND E.Id IN ('.implode(',', array_map(function(){return '?';}, $_REQUEST['eids'])). ')'; $eventsValues += $_REQUEST['eids']; } else if ( isset($_REQUEST['filter']) ) { parseSort(); $filter = Filter::parse($_REQUEST['filter']); $filterQuery = $filter->querystring(); if ( $filter->sql() ) { $eventsSql .= $filter->sql(); } $eventsSql .= " ORDER BY $sortColumn $sortOrder"; if ( isset($_REQUEST['filter']['Query']['limit']) ) $eventsSql .= ' LIMIT '.validInt($_REQUEST['filter']['Query']['limit']); } # end if filter $results = dbQuery($eventsSql, $eventsValues); echo 'Export the following ' .$results->rowCount() . ' events:
'; $disk_space_total = 0; ?> Monitor()->DefaultScale(), ZM_WEB_DEFAULT_SCALE), SCALE_BASE); ?> Archived() ? ' class="archived"' : '' ?>> DiskSpace(); $event_count += 1; echo ''; } unset($event); echo ' '; } # end foreach event ?>
Id().($event->Archived()?'*':'') ?> Name()).($event->Archived()?'*':'') ?> MonitorId(), $event->MonitorName(), canEdit( 'Monitors' ) ) ?> Cause()), canEdit( 'Events' ), 'title="' .htmlspecialchars($event->Notes()). '" class="eDetailLink" data-eid=' .$event->Id(). '"') ?> StartTime())) . ( $event->EndTime() ? ' until ' . strftime(STRF_FMT_DATETIME_SHORTER, strtotime($event->EndTime()) ) : '' ) ?> Length() ) ?> Id(), $event->Frames() ) ?> Id(), $event->AlarmFrames() ) ?> TotScore() ?> AvgScore() ?> MaxScore() ?> '.human_filesize($event->DiskSpace()).'
events