From 3b1458bb885929c78071b645eff3f2060eba3058 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 19 Feb 2020 14:17:44 -0500 Subject: [PATCH] add Emailed status to events list --- web/skins/classic/views/events.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/web/skins/classic/views/events.php b/web/skins/classic/views/events.php index ba57769be..cfbe90383 100644 --- a/web/skins/classic/views/events.php +++ b/web/skins/classic/views/events.php @@ -191,21 +191,25 @@ while ( $event_row = dbFetchNext($results) ) { ?> Archived()) echo ' class="archived"' ?>> '.$event->Id().($event->Archived()?'*':'') ?> - '.validHtmlStr($event->Name()).($event->Archived()?'*':'') ?> + '.validHtmlStr($event->Name()).($event->Archived()?'*':'') ?>
+Emailed() ) + echo 'Emailed '; +?> + MonitorId(), 'zmMonitor'.$event->MonitorId(), 'monitor', $event->MonitorName(), canEdit( 'Monitors' ) ) ?> Id(), 'zmEventDetail', 'eventdetail', validHtmlStr($event->Cause()), canEdit( 'Events' ), 'title="'.htmlspecialchars($event->Notes()).'"' ) ?> Notes()) { + if ( $event->Notes() ) { # if notes include detection objects, then link it to objdetect.jpg - if (strpos($event->Notes(),'detected:')!== false){ + if ( strpos($event->Notes(), 'detected:') !== false ) { # make a link echo makePopupLink( '?view=image&eid='.$event->Id().'&fid=objdetect', 'zmImage', array('image', reScale($event->Width(), $scale), reScale($event->Height(), $scale)), - "
".$event->Notes()."
"); - } - elseif ($event->Notes() != 'Forced Web: ') { - echo "
".$event->Notes()."
"; + '
'.$event->Notes().'
'); + } else if ( $event->Notes() != 'Forced Web: ' ) { + echo '
'.$event->Notes().'
'; } } ?>