diff --git a/web/Makefile.am b/web/Makefile.am index bd34d9b37..e70e58ca4 100644 --- a/web/Makefile.am +++ b/web/Makefile.am @@ -16,6 +16,7 @@ web_DATA = \ zm_config.php \ zm_control_funcs.php \ zm_db.php \ + zm_export_funcs.php \ zm_funcs.php \ zm_html.php \ zm_html_styles.css \ @@ -34,6 +35,7 @@ web_DATA = \ zm_html_view_event.php \ zm_html_view_eventdetail.php \ zm_html_view_events.php \ + zm_html_view_export.php \ zm_html_view_filter.php \ zm_html_view_filtersave.php \ zm_html_view_frame.php \ @@ -108,6 +110,7 @@ EXTRA_DIST = \ zm_config.php.z \ zm_control_funcs.php \ zm_db.php \ + zm_export_funcs.php \ zm_funcs.php \ zm_html.php \ zm_html_styles.css \ @@ -125,6 +128,7 @@ EXTRA_DIST = \ zm_html_view_event.php \ zm_html_view_eventdetail.php \ zm_html_view_events.php \ + zm_html_view_export.php \ zm_html_view_filter.php \ zm_html_view_filtersave.php \ zm_html_view_frame.php \ diff --git a/web/zm_config.php.z b/web/zm_config.php.z index 1e7e937bc..775ffd354 100644 --- a/web/zm_config.php.z +++ b/web/zm_config.php.z @@ -162,6 +162,7 @@ $jws = array( 'event' => array( 'w'=>96, 'h'=>168 ), 'eventdetail' => array( 'w'=>400, 'h'=>220 ), 'events' => array( 'w'=>720, 'h'=>480 ), + 'export' => array( 'w'=>400, 'h'=>340 ), 'filter' => array( 'w'=>560, 'h'=>250 ), 'filtersave' => array( 'w'=>560, 'h'=>220 ), 'frames' => array( 'w'=>500, 'h'=>300 ), diff --git a/web/zm_export_funcs.php b/web/zm_export_funcs.php new file mode 100644 index 000000000..bcada2b59 --- /dev/null +++ b/web/zm_export_funcs.php @@ -0,0 +1,342 @@ + + + +
+| = $zmSlangId ?> | = $event['Id'] ?> |
| = $zmSlangName ?> | = $event['Name'] ?> |
| = $zmSlangMonitor ?> | = $event['MonitorName'] ?> (= $event['MonitorId'] ?>) |
| = $zmSlangCause ?> | = $event['Cause'] ?> |
| = $zmSlangNotes ?> | = $event['Notes'] ?> |
| = $zmSlangTime ?> | = strftime( "%m/%d %H:%M:%S", strtotime($event['StartTime']) ) ?> |
| = $zmSlangDuration ?> | = $event['Length'] ?> |
| = $zmSlangFrames ?> | = $event['Frames'] ?> |
| = $zmSlangAttrAlarmFrames ?> | = $event['AlarmFrames'] ?> |
| = $zmSlangAttrTotalScore ?> | = $event['TotScore'] ?> |
| = $zmSlangAttrAvgScore ?> | = $event['AvgScore'] ?> |
| = $zmSlangAttrMaxScore ?> | = $event['MaxScore'] ?> |
| = $zmSlangArchived ?> | = $event['Archived']?$zmSlangYes:$zmSlangNo ?> |
| = $zmSlangFrames ?> | |