diff --git a/web/skins/bootstrap/Makefile.am b/web/skins/bootstrap/Makefile.am deleted file mode 100644 index 986beae0d..000000000 --- a/web/skins/bootstrap/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic - -SUBDIRS = \ - ajax \ - css \ - graphics \ - includes \ - js \ - lang \ - views - -dist_web_DATA = \ - skin.php diff --git a/web/skins/bootstrap/ajax/Makefile.am b/web/skins/bootstrap/ajax/Makefile.am deleted file mode 100644 index f910cbc5c..000000000 --- a/web/skins/bootstrap/ajax/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/ajax - -dist_web_DATA = # No files here diff --git a/web/skins/bootstrap/graphics/Makefile.am b/web/skins/bootstrap/graphics/Makefile.am deleted file mode 100644 index c5c7b6bba..000000000 --- a/web/skins/bootstrap/graphics/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/graphics - -dist_web_DATA = \ - arrow-d.gif \ - arrow-dl.gif \ - arrow-dr.gif \ - arrow-l-d.gif \ - arrow-l.gif \ - arrow-l-u.gif \ - arrow-r.gif \ - arrow-s-d.gif \ - arrow-s-u.gif \ - arrow-u.gif \ - arrow-ul.gif \ - arrow-ur.gif \ - center.gif \ - point-g.gif \ - point-o.gif \ - point-r.gif \ - seq-d.gif \ - seq-u.gif diff --git a/web/skins/bootstrap/graphics/arrow-d.gif b/web/skins/bootstrap/graphics/arrow-d.gif deleted file mode 100644 index 809207beb..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-d.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-dl.gif b/web/skins/bootstrap/graphics/arrow-dl.gif deleted file mode 100644 index 6768249cc..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-dl.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-dr.gif b/web/skins/bootstrap/graphics/arrow-dr.gif deleted file mode 100644 index d497bdbc1..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-dr.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-l-d.gif b/web/skins/bootstrap/graphics/arrow-l-d.gif deleted file mode 100644 index d7b405b1f..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-l-d.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-l-u.gif b/web/skins/bootstrap/graphics/arrow-l-u.gif deleted file mode 100644 index 9422c0f47..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-l-u.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-l.gif b/web/skins/bootstrap/graphics/arrow-l.gif deleted file mode 100644 index 42a300132..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-l.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-r.gif b/web/skins/bootstrap/graphics/arrow-r.gif deleted file mode 100644 index e36acc8d8..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-r.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-s-d.gif b/web/skins/bootstrap/graphics/arrow-s-d.gif deleted file mode 100644 index bb45dd084..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-s-d.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-s-u.gif b/web/skins/bootstrap/graphics/arrow-s-u.gif deleted file mode 100644 index 455160fad..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-s-u.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-u.gif b/web/skins/bootstrap/graphics/arrow-u.gif deleted file mode 100644 index f76f5e005..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-u.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-ul.gif b/web/skins/bootstrap/graphics/arrow-ul.gif deleted file mode 100644 index 9e620edf1..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-ul.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/arrow-ur.gif b/web/skins/bootstrap/graphics/arrow-ur.gif deleted file mode 100644 index 8de5ffdae..000000000 Binary files a/web/skins/bootstrap/graphics/arrow-ur.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/center.gif b/web/skins/bootstrap/graphics/center.gif deleted file mode 100644 index 492410515..000000000 Binary files a/web/skins/bootstrap/graphics/center.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/point-g.gif b/web/skins/bootstrap/graphics/point-g.gif deleted file mode 100644 index 4b790a633..000000000 Binary files a/web/skins/bootstrap/graphics/point-g.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/point-o.gif b/web/skins/bootstrap/graphics/point-o.gif deleted file mode 100644 index 7abad3743..000000000 Binary files a/web/skins/bootstrap/graphics/point-o.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/point-r.gif b/web/skins/bootstrap/graphics/point-r.gif deleted file mode 100644 index 5d06dd6e0..000000000 Binary files a/web/skins/bootstrap/graphics/point-r.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/seq-d.gif b/web/skins/bootstrap/graphics/seq-d.gif deleted file mode 100644 index b58de0948..000000000 Binary files a/web/skins/bootstrap/graphics/seq-d.gif and /dev/null differ diff --git a/web/skins/bootstrap/graphics/seq-u.gif b/web/skins/bootstrap/graphics/seq-u.gif deleted file mode 100644 index f090de352..000000000 Binary files a/web/skins/bootstrap/graphics/seq-u.gif and /dev/null differ diff --git a/web/skins/bootstrap/includes/Makefile.am b/web/skins/bootstrap/includes/Makefile.am deleted file mode 100644 index 690df231a..000000000 --- a/web/skins/bootstrap/includes/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/includes - -dist_web_DATA = \ - init.php \ - config.php \ - functions.php \ - control_functions.php \ - export_functions.php \ - timeline_functions.php diff --git a/web/skins/bootstrap/includes/config.php b/web/skins/bootstrap/includes/config.php deleted file mode 100644 index 9599c6112..000000000 --- a/web/skins/bootstrap/includes/config.php +++ /dev/null @@ -1,112 +0,0 @@ - "100x", - "5000" => "50x", - "2500" => "25x", - "1000" => "10x", - "400" => "4x", - "200" => "2x", - "100" => $SLANG['Real'], - "50" => "1/2x", - "25" => "1/4x", -); - -$scales = array( - "400" => "4x", - "300" => "3x", - "200" => "2x", - "150" => "1.5x", - "100" => $SLANG['Actual'], - "75" => "3/4x", - "50" => "1/2x", - "33" => "1/3x", - "25" => "1/4x", -); - -$bwArray = array( - "high" => $SLANG['High'], - "medium" => $SLANG['Medium'], - "low" => $SLANG['Low'] -); - -switch ( $_COOKIE['zmBandwidth'] ) -{ - case "high" : - { - define( "ZM_WEB_REFRESH_MAIN", ZM_WEB_H_REFRESH_MAIN ); // How often (in seconds) the main console window refreshes - define( "ZM_WEB_REFRESH_CYCLE", ZM_WEB_H_REFRESH_CYCLE ); // How often the cycle watch windows swaps to the next monitor - define( "ZM_WEB_REFRESH_IMAGE", ZM_WEB_H_REFRESH_IMAGE ); // How often the watched image is refreshed (if not streaming) - define( "ZM_WEB_REFRESH_STATUS", ZM_WEB_H_REFRESH_STATUS ); // How often the little status frame refreshes itself in the watch window - define( "ZM_WEB_REFRESH_EVENTS", ZM_WEB_H_REFRESH_EVENTS ); // How often the event listing is refreshed in the watch window, only for recent events - define( "ZM_WEB_CAN_STREAM", ZM_WEB_H_CAN_STREAM ); // Override the automatic detection of browser streaming capability - define( "ZM_WEB_STREAM_METHOD", ZM_WEB_H_STREAM_METHOD ); // Which method should be used to send video streams to your browser - define( "ZM_WEB_DEFAULT_SCALE", ZM_WEB_H_DEFAULT_SCALE ); // What the default scaling factor applied to 'live' or 'event' views is (%) - define( "ZM_WEB_DEFAULT_RATE", ZM_WEB_H_DEFAULT_RATE ); // What the default replay rate factor applied to 'event' views is (%) - define( "ZM_WEB_VIDEO_BITRATE", ZM_WEB_H_VIDEO_BITRATE ); // What the bitrate of any streamed video should be - define( "ZM_WEB_VIDEO_MAXFPS", ZM_WEB_H_VIDEO_MAXFPS ); // What the maximum frame rate of any streamed video should be - define( "ZM_WEB_SCALE_THUMBS", ZM_WEB_H_SCALE_THUMBS ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling - define( "ZM_WEB_EVENTS_VIEW", ZM_WEB_H_EVENTS_VIEW ); // What the default view of multiple events should be. - define( "ZM_WEB_SHOW_PROGRESS", ZM_WEB_H_SHOW_PROGRESS ); // Whether to show the progress of replay in event view. - define( "ZM_WEB_AJAX_TIMEOUT", ZM_WEB_H_AJAX_TIMEOUT ); // Timeout to use for Ajax requests, no timeout used if unset - break; - } - case "medium" : - { - define( "ZM_WEB_REFRESH_MAIN", ZM_WEB_M_REFRESH_MAIN ); // How often (in seconds) the main console window refreshes - define( "ZM_WEB_REFRESH_CYCLE", ZM_WEB_M_REFRESH_CYCLE ); // How often the cycle watch windows swaps to the next monitor - define( "ZM_WEB_REFRESH_IMAGE", ZM_WEB_M_REFRESH_IMAGE ); // How often the watched image is refreshed (if not streaming) - define( "ZM_WEB_REFRESH_STATUS", ZM_WEB_M_REFRESH_STATUS ); // How often the little status frame refreshes itself in the watch window - define( "ZM_WEB_REFRESH_EVENTS", ZM_WEB_M_REFRESH_EVENTS ); // How often the event listing is refreshed in the watch window, only for recent events - define( "ZM_WEB_CAN_STREAM", ZM_WEB_M_CAN_STREAM ); // Override the automatic detection of browser streaming capability - define( "ZM_WEB_STREAM_METHOD", ZM_WEB_M_STREAM_METHOD ); // Which method should be used to send video streams to your browser - define( "ZM_WEB_DEFAULT_SCALE", ZM_WEB_M_DEFAULT_SCALE ); // What the default scaling factor applied to 'live' or 'event' views is (%) - define( "ZM_WEB_DEFAULT_RATE", ZM_WEB_M_DEFAULT_RATE ); // What the default replay rate factor applied to 'event' views is (%) - define( "ZM_WEB_VIDEO_BITRATE", ZM_WEB_M_VIDEO_BITRATE ); // What the bitrate of any streamed video should be - define( "ZM_WEB_VIDEO_MAXFPS", ZM_WEB_M_VIDEO_MAXFPS ); // What the maximum frame rate of any streamed video should be - define( "ZM_WEB_SCALE_THUMBS", ZM_WEB_M_SCALE_THUMBS ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling - define( "ZM_WEB_EVENTS_VIEW", ZM_WEB_M_EVENTS_VIEW ); // What the default view of multiple events should be. - define( "ZM_WEB_SHOW_PROGRESS", ZM_WEB_M_SHOW_PROGRESS ); // Whether to show the progress of replay in event view. - define( "ZM_WEB_AJAX_TIMEOUT", ZM_WEB_M_AJAX_TIMEOUT ); // Timeout to use for Ajax requests, no timeout used if unset - break; - } - case "low" : - { - define( "ZM_WEB_REFRESH_MAIN", ZM_WEB_L_REFRESH_MAIN ); // How often (in seconds) the main console window refreshes - define( "ZM_WEB_REFRESH_CYCLE", ZM_WEB_L_REFRESH_CYCLE ); // How often the cycle watch windows swaps to the next monitor - define( "ZM_WEB_REFRESH_IMAGE", ZM_WEB_L_REFRESH_IMAGE ); // How often the watched image is refreshed (if not streaming) - define( "ZM_WEB_REFRESH_STATUS", ZM_WEB_L_REFRESH_STATUS ); // How often the little status frame refreshes itself in the watch window - define( "ZM_WEB_REFRESH_EVENTS", ZM_WEB_L_REFRESH_EVENTS ); // How often the event listing is refreshed in the watch window, only for recent events - define( "ZM_WEB_CAN_STREAM", ZM_WEB_L_CAN_STREAM ); // Override the automatic detection of browser streaming capability - define( "ZM_WEB_STREAM_METHOD", ZM_WEB_L_STREAM_METHOD ); // Which method should be used to send video streams to your browser - define( "ZM_WEB_DEFAULT_SCALE", ZM_WEB_L_DEFAULT_SCALE ); // What the default scaling factor applied to 'live' or 'event' views is (%) - define( "ZM_WEB_DEFAULT_RATE", ZM_WEB_L_DEFAULT_RATE ); // What the default replay rate factor applied to 'event' views is (%) - define( "ZM_WEB_VIDEO_BITRATE", ZM_WEB_L_VIDEO_BITRATE ); // What the bitrate of any streamed video should be - define( "ZM_WEB_VIDEO_MAXFPS", ZM_WEB_L_VIDEO_MAXFPS ); // What the maximum frame rate of any streamed video should be - define( "ZM_WEB_SCALE_THUMBS", ZM_WEB_L_SCALE_THUMBS ); // Image scaling for thumbnails, bandwidth versus cpu in rescaling - define( "ZM_WEB_EVENTS_VIEW", ZM_WEB_L_EVENTS_VIEW ); // What the default view of multiple events should be. - define( "ZM_WEB_SHOW_PROGRESS", ZM_WEB_L_SHOW_PROGRESS ); // Whether to show the progress of replay in event view. - define( "ZM_WEB_AJAX_TIMEOUT", ZM_WEB_L_AJAX_TIMEOUT ); // Timeout to use for Ajax requests, no timeout used if unset - break; - } -} - -?> diff --git a/web/skins/bootstrap/includes/control_functions.php b/web/skins/bootstrap/includes/control_functions.php deleted file mode 100644 index da5296085..000000000 --- a/web/skins/bootstrap/includes/control_functions.php +++ /dev/null @@ -1,390 +0,0 @@ - -
-
-
-
onclick="controlCmd('')">
-
-
- - - - -
- -
-
-
-
onclick="controlCmd('')">
-
-
- - - - -
-
-
-
-
onclick="controlCmd('')">
-
-
- - - - -
- -
-
-
-
onclick="controlCmd('')">
-
-
- - - - -
- -
-
-
- -
-
-
-
-
-
-
-
-
-
-
- -
- -
-" value="" onclick="controlCmd('');"/>
-
-
- - - - - -
-
- -
-
-
- - - - - - - -
-
- -
- -
- -
- -
- diff --git a/web/skins/bootstrap/includes/export_functions.php b/web/skins/bootstrap/includes/export_functions.php deleted file mode 100644 index 31eb6812e..000000000 --- a/web/skins/bootstrap/includes/export_functions.php +++ /dev/null @@ -1,963 +0,0 @@ - - - - - <?= $title ?> - - - - -'.$SLANG['Frames'].','; - if( $exportImages ) $otherlinks .= ''.$SLANG['Images'].','; - $otherlinks = substr($otherlinks,0,-1); - - -?> - -
-
-

: ()

- - - - - - - - - - - - - - -
()
-
-
- - -'.$SLANG['Event'].','; - if( $exportImages ) $otherlinks .= ''.$SLANG['Images'].','; - $otherlinks = substr($otherlinks,0,-1); - -?> - -
-
-

: ()

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Frame <?= $frame['FrameId'] ?>
-
-
- - -'.$SLANG['Event'].','; - if( $exportFrames ) $otherlinks .= ''.$SLANG['Frames'].','; - $otherlinks = substr($otherlinks,0,-1); - - $filelist = array_keys($myfilelist); - sort($filelist,SORT_NUMERIC); - $slides = '"'.implode('","',$filelist).'"'; - $listcount = count($filelist); -?> - - - -

: ()

- - - - -
-
-
- -
-
-
 
-
 
-
-
- - - - - - - - -

Master

- -
- - -
- - -
-
-

All

- $eids
"; - } - ?> - -
- - - "; - echo "

Monitor: " . $monitorNames[$monitor] . "

"; - foreach ($eids as $eid) - { - if ($eventMonitorId[$eid] == $monitor) - { - ?> -
- '; - } - - ?> - -
- - - -
- - - - - - - - - - <?= ZM_WEB_TITLE_PREFIX ?> - <?= validHtmlStr($title) ?> - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/skins/bootstrap/includes/init.php b/web/skins/bootstrap/includes/init.php deleted file mode 100644 index e69de29bb..000000000 diff --git a/web/skins/bootstrap/includes/timeline_functions.php b/web/skins/bootstrap/includes/timeline_functions.php deleted file mode 100644 index cf92f8689..000000000 --- a/web/skins/bootstrap/includes/timeline_functions.php +++ /dev/null @@ -1,525 +0,0 @@ -"; - if ( $scaleRange >= $minLines ) - { - $scale['range'] = $scaleRange; - break; - } - } - if ( !isset($scale['range']) ) - { - $scale['range'] = (int)($range/($scale['factor']*$align)); - } - $scale['divisor'] = 1; - while ( ($scale['range']/$scale['divisor']) > $maxLines ) - { - $scale['divisor']++; - } - $scale['lines'] = (int)($scale['range']/$scale['divisor']); - return( $scale ); -} - -function getYScale( $range, $minLines, $maxLines ) -{ - $scale['range'] = $range; - $scale['divisor'] = 1; - while ( $scale['range']/$scale['divisor'] > $maxLines ) - { - $scale['divisor']++; - } - $scale['lines'] = (int)(($scale['range']-1)/$scale['divisor'])+1; - - return( $scale ); -} - -function getSlotFrame( $slot ) -{ - $slotFrame = isset($slot['frame'])?$slot['frame']['FrameId']:1; - if ( false && $slotFrame ) - { - $slotFrame -= $monitor['PreEventCount']; - if ( $slotFrame < 1 ) - $slotFrame = 1; - } - return( $slotFrame ); -} - -function parseFilterToTree( $filter ) -{ - if ( count($filter['terms']) > 0 ) - { - $postfixExpr = array(); - $postfixStack = array(); - - $priorities = array( - '<' => 1, - '<=' => 1, - '>' => 1, - '>=' => 1, - '=' => 2, - '!=' => 2, - '=~' => 2, - '!~' => 2, - '=[]' => 2, - '![]' => 2, - 'and' => 3, - 'or' => 4, - ); - - for ( $i = 0; $i <= count($filter['terms']); $i++ ) - { - if ( !empty($filter['terms'][$i]['cnj']) ) - { - while( true ) - { - if ( !count($postfixStack) ) - { - $postfixStack[] = array( 'type'=>"cnj", 'value'=>$filter['terms'][$i]['cnj'], 'sqlValue'=>$filter['terms'][$i]['cnj']); - break; - } - elseif ( $postfixStack[count($postfixStack)-1]['type'] == 'obr' ) - { - $postfixStack[] = array( 'type'=>"cnj", 'value'=>$filter['terms'][$i]['cnj'], 'sqlValue'=>$filter['terms'][$i]['cnj']); - break; - } - elseif ( $priorities[$filter['terms'][$i]['cnj']] < $priorities[$postfixStack[count($postfixStack)-1]['value']] ) - { - $postfixStack[] = array( 'type'=>"cnj", 'value'=>$filter['terms'][$i]['cnj'], 'sqlValue'=>$filter['terms'][$i]['cnj']); - break; - } - else - { - $postfixExpr[] = array_pop( $postfixStack ); - } - } - } - if ( !empty($filter['terms'][$i]['obr']) ) - { - for ( $j = 0; $j < $filter['terms'][$i]['obr']; $j++ ) - { - $postfixStack[] = array( 'type'=>"obr", 'value'=>$filter['terms'][$i]['obr']); - } - } - if ( !empty($filter['terms'][$i]['attr']) ) - { - $dtAttr = false; - switch ( $filter['terms'][$i]['attr']) - { - case 'MonitorName': - $sqlValue = 'M.'.preg_replace( '/^Monitor/', '', $filter['terms'][$i]['attr']); - break; - case 'Name': - $sqlValue = "E.Name"; - break; - case 'Cause': - $sqlValue = "E.Cause"; - break; - case 'DateTime': - $sqlValue = "E.StartTime"; - $dtAttr = true; - break; - case 'Date': - $sqlValue = "to_days( E.StartTime )"; - $dtAttr = true; - break; - case 'Time': - $sqlValue = "extract( hour_second from E.StartTime )"; - break; - case 'Weekday': - $sqlValue = "weekday( E.StartTime )"; - break; - case 'Id': - case 'Name': - case 'MonitorId': - case 'Length': - case 'Frames': - case 'AlarmFrames': - case 'TotScore': - case 'AvgScore': - case 'MaxScore': - case 'Archived': - $sqlValue = "E.".$filter['terms'][$i]['attr']; - break; - case 'DiskPercent': - $sqlValue = getDiskPercent(); - break; - case 'DiskBlocks': - $sqlValue = getDiskBlocks(); - break; - default : - $sqlValue = $filter['terms'][$i]['attr']; - break; - } - if ( $dtAttr ) - { - $postfixExpr[] = array( 'type'=>"attr", 'value'=>$filter['terms'][$i]['attr'], 'sqlValue'=>$sqlValue, 'dtAttr'=>true ); - } - else - { - $postfixExpr[] = array( 'type'=>"attr", 'value'=>$filter['terms'][$i]['attr'], 'sqlValue'=>$sqlValue ); - } - } - if ( isset($filter['terms'][$i]['op']) ) - { - if ( empty($filter['terms'][$i]['op']) ) - { - $filter['terms'][$i]['op' ]= '='; - } - switch ( $filter['terms'][$i]['op' ]) - { - case '=' : - case '!=' : - case '>=' : - case '>' : - case '<' : - case '<=' : - $sqlValue = $filter['terms'][$i]['op']; - break; - case '=~' : - $sqlValue = "regexp"; - break; - case '!~' : - $sqlValue = "not regexp"; - break; - case '=[]' : - $sqlValue = 'in ('; - break; - case '![]' : - $sqlValue = 'not in ('; - break; - } - while( true ) - { - if ( !count($postfixStack) ) - { - $postfixStack[] = array( 'type'=>"op", 'value'=>$filter['terms'][$i]['op'], 'sqlValue'=>$sqlValue ); - break; - } - elseif ( $postfixStack[count($postfixStack)-1]['type'] == 'obr' ) - { - $postfixStack[] = array( 'type'=>"op", 'value'=>$filter['terms'][$i]['op'], 'sqlValue'=>$sqlValue ); - break; - } - elseif ( $priorities[$filter['terms'][$i]['op']] < $priorities[$postfixStack[count($postfixStack)-1]['value']] ) - { - $postfixStack[] = array( 'type'=>"op", 'value'=>$filter['terms'][$i]['op'], 'sqlValue'=>$sqlValue ); - break; - } - else - { - $postfixExpr[] = array_pop( $postfixStack ); - } - } - } - if ( isset($filter['terms'][$i]['val']) ) - { - $valueList = array(); - foreach ( preg_split( '/["\'\s]*?,["\'\s]*?/', preg_replace( '/^["\']+?(.+)["\']+?$/', '$1', $filter['terms'][$i]['val' ]) ) as $value ) - { - switch ( $filter['terms'][$i]['attr']) - { - case 'MonitorName': - case 'Name': - case 'Cause': - case 'Notes': - $value = "'$value'"; - break; - case 'DateTime': - $value = "'".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."'"; - break; - case 'Date': - $value = "to_days( '".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."' )"; - break; - case 'Time': - $value = "extract( hour_second from '".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."' )"; - break; - case 'Weekday': - $value = "weekday( '".strftime( STRF_FMT_DATETIME_DB, strtotime( $value ) )."' )"; - break; - } - $valueList[] = $value; - } - $postfixExpr[] = array( 'type'=>"val", 'value'=>$filter['terms'][$i]['val'], 'sqlValue'=>join( ',', $valueList ) ); - } - if ( !empty($filter['terms'][$i]['cbr']) ) - { - for ( $j = 0; $j < $filter['terms'][$i]['cbr']; $j++ ) - { - while ( count($postfixStack) ) - { - $element = array_pop( $postfixStack ); - if ( $element['type'] == "obr" ) - { - $postfixExpr[count($postfixExpr)-1]['bracket'] = true; - break; - } - $postfixExpr[] = $element; - } - } - } - } - while ( count($postfixStack) ) - { - $postfixExpr[] = array_pop( $postfixStack ); - } - - $exprStack = array(); - //foreach ( $postfixExpr as $element ) - //{ - //echo $element['value']." "; - //} - //echo "
"; - foreach ( $postfixExpr as $element ) - { - if ( $element['type'] == 'attr' || $element['type'] == 'val' ) - { - $node = array( 'data'=>$element, 'count'=>0 ); - $exprStack[] = $node; - } - elseif ( $element['type'] == 'op' || $element['type'] == 'cnj' ) - { - $right = array_pop( $exprStack ); - $left = array_pop( $exprStack ); - $node = array( 'data'=>$element, 'count'=>2+$left['count']+$right['count'], 'right'=>$right, 'left'=>$left ); - $exprStack[] = $node; - } - else - { - Fatal( "Unexpected element type '".$element['type']."', value '".$element['value']."'" ); - } - } - if ( count($exprStack) != 1 ) - { - Fatal( "Expression stack has ".count($exprStack)." elements" ); - } - $exprTree = array_pop( $exprStack ); - return( $exprTree ); - } - return( false ); -} - -function _parseTreeToInfix( $node ) -{ - $expression = ''; - if ( isset($node) ) - { - if ( isset($node['left']) ) - { - if ( !empty($node['data']['bracket']) ) - $expression .= '( '; - $expression .= _parseTreeToInfix( $node['left'] ); - } - $expression .= $node['data']['value']." "; - if ( isset($node['right']) ) - { - $expression .= _parseTreeToInfix( $node['right'] ); - if ( !empty($node['data']['bracket']) ) - $expression .= ') '; - } - } - return( $expression ); -} - -function parseTreeToInfix( $tree ) -{ - return( _parseTreeToInfix( $tree ) ); -} - -function _parseTreeToSQL( $node, $cbr=false ) -{ - $expression = ''; - if ( $node ) - { - if ( isset($node['left']) ) - { - if ( !empty($node['data']['bracket']) ) - $expression .= '( '; - $expression .= _parseTreeToSQL( $node['left'] ); - } - $inExpr = $node['data']['type'] == 'op' && ($node['data']['value'] == '=[]' || $node['data']['value'] == '![]'); - $expression .= $node['data']['sqlValue']; - if ( !$inExpr ) - $expression .= ' '; - if ( $cbr ) - $expression .= ') '; - if ( isset($node['right']) ) - { - $expression .= _parseTreeToSQL( $node['right'], $inExpr ); - if ( !empty($node['data']['bracket']) ) - $expression .= ') '; - } - } - return( $expression ); -} - -function parseTreeToSQL( $tree ) -{ - return( _parseTreeToSQL( $tree ) ); -} - -function _parseTreeToFilter( $node, &$terms, &$level ) -{ - $elements = array(); - if ( $node ) - { - if ( isset($node['left']) ) - { - if ( !empty($node['data']['bracket']) ) - $terms[$level]['obr'] = 1; - _parseTreeToFilter( $node['left'], $terms, $level ); - } - if ( $node['data']['type'] == 'cnj' ) - { - $level++; - } - $terms[$level][$node['data']['type']] = $node['data']['value']; - if ( isset($node['right']) ) - { - _parseTreeToFilter( $node['right'], $terms, $level ); - if ( !empty($node['data']['bracket']) ) - $terms[$level]['cbr'] = 1; - } - } -} - -function parseTreeToFilter( $tree ) -{ - $terms = array(); - if ( isset($tree) ) - { - $level = 0; - _parseTreeToFilter( $tree, $terms, $level ); - } - return( array( 'terms' => $terms ) ); -} - -function parseTreeToQuery( $tree ) -{ - $filter = parseTreeToFilter( $tree ); - parseFilter( $filter, false, '&' ); - return( $filter['query'] ); -} - -function _drawTree( $node, $level ) -{ - if ( isset($node['left']) ) - { - _drawTree( $node['left'], $level+1 ); - } - echo str_repeat( ".", $level*2 ).$node['data']['value']."
"; - if ( isset($node['right']) ) - { - _drawTree( $node['right'], $level+1 ); - } -} - -function drawTree( $tree ) -{ - _drawTree( $tree, 0 ); -} - -function _extractDatetimeRange( &$node, &$minTime, &$maxTime, &$expandable, $subOr ) -{ - $pruned = $leftPruned = $rightPruned = false; - if ( $node ) - { - if ( isset($node['left']) && isset($node['right']) ) - { - if ( $node['data']['type'] == 'cnj' && $node['data']['value'] == 'or' ) - { - $subOr = true; - } - elseif ( !empty($node['left']['data']['dtAttr']) ) - { - if ( $subOr ) - { - $expandable = false; - } - elseif ( $node['data']['type'] == 'op' ) - { - if ( $node['data']['value'] == '>' || $node['data']['value'] == '>=' ) - { - if ( !$minTime || $minTime > $node['right']['data']['sqlValue'] ) - { - $minTime = $node['right']['data']['value']; - return( true ); - } - } - if ( $node['data']['value'] == '<' || $node['data']['value'] == '<=' ) - { - if ( !$maxTime || $maxTime < $node['right']['data']['sqlValue'] ) - { - $maxTime = $node['right']['data']['value']; - return( true ); - } - } - } - else - { - Fatal( "Unexpected node type '".$node['data']['type']."'" ); - } - return( false ); - } - - $leftPruned = _extractDatetimeRange( $node['left'], $minTime, $maxTime, $expandable, $subOr ); - $rightPruned = _extractDatetimeRange( $node['right'], $minTime, $maxTime, $expandable, $subOr ); - - if ( $leftPruned && $rightPruned ) - { - $pruned = true; - } - elseif ( $leftPruned ) - { - $node = $node['right']; - } - elseif ( $rightPruned ) - { - $node = $node['left']; - } - } - } - return( $pruned ); -} - -function extractDatetimeRange( &$tree, &$minTime, &$maxTime, &$expandable ) -{ - $minTime = ""; - $maxTime = ""; - $expandable = true; - - _extractDateTimeRange( $tree, $minTime, $maxTime, $expandable, false ); -} - -function appendDatetimeRange( &$tree, $minTime, $maxTime=false ) -{ - $attrNode = array( 'data'=>array( 'type'=>'attr', 'value'=>'DateTime', 'sqlValue'=>'E.StartTime', 'dtAttr'=>true ), 'count'=>0 ); - $valNode = array( 'data'=>array( 'type'=>'val', 'value'=>$minTime, 'sqlValue'=>$minTime ), 'count'=>0 ); - $opNode = array( 'data'=>array( 'type'=>'op', 'value'=>'>=', 'sqlValue'=>'>=' ), 'count'=>2, 'left'=>$attrNode, 'right'=>$valNode ); - if ( isset($tree) ) - { - $cnjNode = array( 'data'=>array( 'type'=>'cnj', 'value'=>'and', 'sqlValue'=>'and' ), 'count'=>2+$tree['count']+$opNode['count'], 'left'=>$tree, 'right'=>$opNode ); - $tree = $cnjNode; - } - else - { - $tree = $opNode; - } - - if ( $maxTime ) - { - $attrNode = array( 'data'=>array( 'type'=>'attr', 'value'=>'DateTime', 'sqlValue'=>'E.StartTime', 'dtAttr'=>true ), 'count'=>0 ); - $valNode = array( 'data'=>array( 'type'=>'val', 'value'=>$maxTime, 'sqlValue'=>$maxTime ), 'count'=>0 ); - $opNode = array( 'data'=>array( 'type'=>'op', 'value'=>'<=', 'sqlValue'=>'<=' ), 'count'=>2, 'left'=>$attrNode, 'right'=>$valNode ); - $cnjNode = array( 'data'=>array( 'type'=>'cnj', 'value'=>'and', 'sqlValue'=>'and' ), 'count'=>2+$tree['count']+$opNode['count'], 'left'=>$tree, 'right'=>$opNode ); - $tree = $cnjNode; - } -} - -?> diff --git a/web/skins/bootstrap/lang/Makefile.am b/web/skins/bootstrap/lang/Makefile.am deleted file mode 100644 index 6a089b4fa..000000000 --- a/web/skins/bootstrap/lang/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/lang - -dist_web_DATA = # No files here diff --git a/web/skins/bootstrap/skin.php b/web/skins/bootstrap/skin.php deleted file mode 100644 index c6af0dd59..000000000 --- a/web/skins/bootstrap/skin.php +++ /dev/null @@ -1,66 +0,0 @@ - diff --git a/web/skins/bootstrap/views/css/Makefile.am b/web/skins/bootstrap/views/css/Makefile.am deleted file mode 100644 index 39c270cf7..000000000 --- a/web/skins/bootstrap/views/css/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/views/css - -dist_web_DATA = \ - console.css \ - controlcaps.css \ - control.css \ - devices.css \ - event.css \ - events.css \ - export.css \ - filter.css \ - frame.css \ - frames.css \ - groups.css \ - log.css \ - monitor.css \ - montage_2wide.css \ - montage_3wide50enlarge.css \ - montage_3wide.css \ - montage_4wide.css \ - montage.css \ - montage_freeform.css \ - options.css \ - stats.css \ - timeline.css \ - timeline.css.php \ - video.css \ - watch.css \ - zone.css diff --git a/web/skins/bootstrap/views/css/console.css b/web/skins/bootstrap/views/css/console.css deleted file mode 100644 index 49920402a..000000000 --- a/web/skins/bootstrap/views/css/console.css +++ /dev/null @@ -1,97 +0,0 @@ -#systemTime { - float: left; -} - -#title { - margin: 0 auto; - text-align: center; - width: 50%; -} - -#systemStats { - float: right; -} - -#monitorSummary { - float: left; - text-align: left; - width: 20%; -} - -#devices { - float: left; -} - -#loginBandwidth { - margin: 0 auto; - text-align: center; - width: 40%; -} - -#cycleMontage { - float: right; -} - -#options { - float: right; - text-align: right; - width: 20%; -} - -#consoleTable { - width: 100%; -} - -#consoleTable tr.highlight { - background-color: #eeeeee; -} - -#consoleTable thead th { - padding-bottom: 4px; - vertical-align: middle; -} - -#consoleTable tfoot td { - padding-top: 4px; - vertical-align: middle; -} - -#consoleTable th,td { - height: 16px; - text-align: left; -} - -#consoleTable .colOrder { - text-align: center; -} - -#consoleTable .colMark { - width: 32px; - text-align: center; -} - -#consoleTable .colEvents { - text-align: right; -} - -#consoleTable .colZones { - text-align: right; -} - -#consoleTable .colLeftButtons { - text-align: left; -} - -#consoleTable .colLeftButtons input { - margin-right: 24px; -} - -#consoleTable .colRightButtons { - text-align: right; - padding-right: 8px; -} - -#consoleTable .colRightButtons input { - margin: 0 8px; -} - diff --git a/web/skins/bootstrap/views/css/control.css b/web/skins/bootstrap/views/css/control.css deleted file mode 100644 index 0096ffcd7..000000000 --- a/web/skins/bootstrap/views/css/control.css +++ /dev/null @@ -1 +0,0 @@ -@import url(../../css/control.css); diff --git a/web/skins/bootstrap/views/css/controlcaps.css b/web/skins/bootstrap/views/css/controlcaps.css deleted file mode 100644 index 1a2783fd7..000000000 --- a/web/skins/bootstrap/views/css/controlcaps.css +++ /dev/null @@ -1,3 +0,0 @@ -#content table.major .colCanMove, #content table.major .colCanZoom, #content table.major .colCanFocus, #content table.major .colCanIris, #content table.major .colCanWhiteBal, #content table.major .colHasPresets { - text-align: center; -} diff --git a/web/skins/bootstrap/views/css/devices.css b/web/skins/bootstrap/views/css/devices.css deleted file mode 100644 index 6015985d0..000000000 --- a/web/skins/bootstrap/views/css/devices.css +++ /dev/null @@ -1,4 +0,0 @@ -input.set { - border: 1px #7F7FB2 dashed; -} - diff --git a/web/skins/bootstrap/views/css/export.css b/web/skins/bootstrap/views/css/export.css deleted file mode 100644 index e22851ca0..000000000 --- a/web/skins/bootstrap/views/css/export.css +++ /dev/null @@ -1,15 +0,0 @@ -#contentTable + input { - margin-top: 6px; -} - -#contentTable th, #contentTable td { - white-space: nowrap; -} - -#exportProgress { - margin: 8px auto 4px; -} - -#downloadLink { - margin-top: 8px; -} diff --git a/web/skins/bootstrap/views/css/filter.css b/web/skins/bootstrap/views/css/filter.css deleted file mode 100644 index 2287cfea2..000000000 --- a/web/skins/bootstrap/views/css/filter.css +++ /dev/null @@ -1,25 +0,0 @@ -#filterSelector { -} - -table.filterTable { - width: 100%; -} - -#fieldsTable td { - height: 16px; -} - -#fieldsTable input[type=button] { - width: 1.6em; - margin-left: 2px; - text-align: center; -} - -#sortTable input[type=text] { - margin-right: 4px; -} - -#actionsTable input[type=text] { - margin-left: 4px; -} - diff --git a/web/skins/bootstrap/views/css/frame.css b/web/skins/bootstrap/views/css/frame.css deleted file mode 100644 index 2c7789349..000000000 --- a/web/skins/bootstrap/views/css/frame.css +++ /dev/null @@ -1,30 +0,0 @@ -#controls { - width: 80%; - text-align: center; - margin: 0 auto; -} - -#controls a { - width: 40px; - margin-left: -20px; -} - -#firstLink { - position: absolute; - left: 13%; -} - -#prevLink { - position: absolute; - left: 37%; -} - -#nextLink { - position: absolute; - left: 63%; -} - -#lastLink { - position: absolute; - left: 87%; -} diff --git a/web/skins/bootstrap/views/css/frames.css b/web/skins/bootstrap/views/css/frames.css deleted file mode 100644 index 249fa3751..000000000 --- a/web/skins/bootstrap/views/css/frames.css +++ /dev/null @@ -1,15 +0,0 @@ -#contentTable.major .colId, #contentTable.major .colType, #contentTable.major .colTimeStamp, #contentTable.major .colTimeDelta, #contentTable.major .colScore { - text-align: center; -} - -tr.alarm { - background-color: #fa8072; -} - -tr.bulk { - background-color: #cccccc; -} - -tr.normal { - background-color: #ffffff; -} diff --git a/web/skins/bootstrap/views/css/groups.css b/web/skins/bootstrap/views/css/groups.css deleted file mode 100644 index 64f5013de..000000000 --- a/web/skins/bootstrap/views/css/groups.css +++ /dev/null @@ -1,6 +0,0 @@ -#contentTable .colSelect { - text-align: center; -} - -#contentTable .colSelect input { -} diff --git a/web/skins/bootstrap/views/css/log.css b/web/skins/bootstrap/views/css/log.css deleted file mode 100644 index 44f309b9b..000000000 --- a/web/skins/bootstrap/views/css/log.css +++ /dev/null @@ -1,53 +0,0 @@ -#logSummary { - margin: 4px auto 0; - border-collapse: collapse; -} - -#logSummary tr { - margin: 0; - padding: 0; -} - -#logSummary td { - border: 1px solid #7f7fb2; - padding: 0 6px; - text-align: center; - font-size: 10px; - line-height: 15px; -} - -tr.log-fat td { - background-color:#ffcccc; - font-weight: bold; -} - -tr.log-err td { - background-color:#ffcccc; -} - -tr.log-war td { - background-color: #ffe4b5; -} - -tr.log-dbg td { - color: #666666; - font-style: italic; -} - -#exportLog label { - vertical-align: middle; -} - -#exportLog input[type=radio] { - margin-right: 4px; - vertical-align: middle; -} - -#exportError { - display: none; - color: #dc143c; - margin-bottom: 8px; -} - -#exportErrorText { -} diff --git a/web/skins/bootstrap/views/css/monitor.css b/web/skins/bootstrap/views/css/monitor.css deleted file mode 100644 index 7cac28fe1..000000000 --- a/web/skins/bootstrap/views/css/monitor.css +++ /dev/null @@ -1,5 +0,0 @@ -.swatch { - border: 1px solid black; - margin-left: 3px; - padding: 0px; -} diff --git a/web/skins/bootstrap/views/css/montage.css b/web/skins/bootstrap/views/css/montage.css deleted file mode 100644 index 1afd402a7..000000000 --- a/web/skins/bootstrap/views/css/montage.css +++ /dev/null @@ -1,41 +0,0 @@ -#header { - width: 99%; -} - -#layout { - margin-right: 10px; -} - -#content { - width: 99%; -} - -#monitors .alarm { - color: #ff0000; -} - -#monitors .alert { - color: #ffa500; -} - -#monitors .imageFeed { - text-align: center; - vertical-align: middle; -} - -#monitors .imageFeed img.idle { - border: 2px solid #ffffff; -} - -#monitors .imageFeed img.alarm { - border: 2px solid #ff0000; -} - -#monitors .imageFeed img.alert { - border: 2px solid #ffa500; -} - -#monitors .monitorState { - margin: 2px auto; - text-align: center; -} diff --git a/web/skins/bootstrap/views/css/montage_2wide.css b/web/skins/bootstrap/views/css/montage_2wide.css deleted file mode 100644 index b0fa77298..000000000 --- a/web/skins/bootstrap/views/css/montage_2wide.css +++ /dev/null @@ -1,30 +0,0 @@ -#monitors { - width: 100%; - margin: 0 auto; - text-align: center; -} - -#monitors .monitorFrame { - padding: 1px; - float: left; -} - -#monitors .monitor { -} - -#monitorFrame0, #monitorFrame2, #monitorFrame4, #monitorFrame6, #monitorFrame8, #monitorFrame10, #monitorFrame12, #monitorFrame14 { - width: 49%; - clear: both; -} - -#monitor0, #monitor2, #monitor4, #monitor6, #monitor8, #monitor10, #monitor12, #monitor14 { - float: right; -} - -#monitorFrame1, #monitorFrame3, #monitorFrame5, #monitorFrame7, #monitorFrame9, #monitorFrame11, #monitorFrame13, #monitorFrame15 { - width: 49%; -} - -#monitor1, #monitor3, #monitor5, #monitor7, #monitor9, #monitor11, #monitor13, #monitor15 { - float: left; -} diff --git a/web/skins/bootstrap/views/css/montage_3wide.css b/web/skins/bootstrap/views/css/montage_3wide.css deleted file mode 100644 index 81f0c00ae..000000000 --- a/web/skins/bootstrap/views/css/montage_3wide.css +++ /dev/null @@ -1,37 +0,0 @@ -#monitors { - width: 100%; - margin: 0 auto; - text-align: center; -} - -#monitors .monitorFrame { - padding: 1px; - float: left; - width: 33%; -} - -#monitors .monitor { - text-align: center; -} - -#monitorFrame0, #monitorFrame3, #monitorFrame6, #monitorFrame9, #monitorFrame12, #monitorFrame15 { - clear: both; -} - -#monitor0, #monitor3, #monitor6, #monitor9, #monitor12, #monitor15 { - float: right; -} - -#monitorFrame1, #monitorFrame4, #monitorFrame7, #monitorFrame10, #monitorFrame13, #monitorFrame16 { - text-align: center; -} - -#monitor1, #monitor4, #monitor7, #monitor10, #monitor13, #monitor16 { -} - -#monitorFrame2, #monitorFrame5, #monitorFrame8, #monitorFrame11, #monitorFrame14, #monitorFrame17 { -} - -#monitor2, #monitor5, #monitor8, #monitor11, #monitor14, #monitor17 { - float: left; -} diff --git a/web/skins/bootstrap/views/css/montage_3wide50enlarge.css b/web/skins/bootstrap/views/css/montage_3wide50enlarge.css deleted file mode 100644 index 59bedd9ba..000000000 --- a/web/skins/bootstrap/views/css/montage_3wide50enlarge.css +++ /dev/null @@ -1,74 +0,0 @@ -#monitors { - width: 100%; - margin: 0 auto; - text-align: center; -} - -#monitors .monitorFrame { - float: left; - padding: 1px; -} - -#monitors .monitor { - text-align: center; -} - -#monitorFrame0, #monitorFrame3, #monitorFrame6, #monitorFrame9, #monitorFrame12, #monitorFrame15 { - width: 32%; - text-align: right; - clear: both; -} - -#monitor0, #monitor3, #monitor6, #monitor9, #monitor12, #monitor15 { - margin-left: auto; - margin-right: 0; -} - -#monitorFrame1, #monitorFrame4, #monitorFrame7, #monitorFrame10, #monitorFrame13, #monitorFrame16 { - width: 32%; - text-align: center; -} - -#monitor1, #monitor4, #monitor7, #monitor10, #monitor13, #monitor16 { - margin-left: auto; - margin-right: auto; -} - -#monitorFrame2, #monitorFrame5, #monitorFrame8, #monitorFrame11, #monitorFrame14, #monitorFrame17 { - width: 32%; - text-align: left; -} - -#monitor2, #monitor5, #monitor8, #monitor11, #monitor14, #monitor17 { - margin-left: 0; - margin-right: auto; -} - -#monitors .imageFeed img { - width: 100%; - height: 100%; -} - -#monitors .monitorFrame > div.alarm, #monitors .monitorFrame > div.alert { - position: absolute; - width: 96%; - left: 2%; - top: 72px; -} - -#monitors .monitorFrame > div.alert { - z-index: 100; -} - -#monitors .monitorFrame > div.alarm { - z-index: 200; -} - -#monitors .monitorFrame div.alarm, #monitors .monitorFrame div.alert { - font-size: 140%; - line-height: 160%; -} - -#monitors .monitorFrame div.monitorState { - text-align: center; -} diff --git a/web/skins/bootstrap/views/css/montage_4wide.css b/web/skins/bootstrap/views/css/montage_4wide.css deleted file mode 100644 index 4e5b7bc49..000000000 --- a/web/skins/bootstrap/views/css/montage_4wide.css +++ /dev/null @@ -1,44 +0,0 @@ -#monitors { - width: 100%; - margin: 0 auto; - text-align: center; -} - -#monitors .monitorFrame { - padding: 1px; - float: left; - width: 24.5%; -} - -#monitors .monitor { - text-align: center; -} - -#monitorFrame0, #monitorFrame4, #monitorFrame8, #monitorFrame12, #monitorFrame16, #monitorFrame20 { - clear: both; -} - -#monitor0, #monitor4, #monitor8, #monitor12, #monitor16, #monitor20 { - float: right; -} - -#monitorFrame1, #monitorFrame5, #monitorFrame9, #monitorFrame13, #monitorFrame17, #monitorFrame21 { - text-align: center; -} - -#monitor1, #monitor5, #monitor9, #monitor13, #monitor17, #monitor21 { -} - -#monitorFrame2, #monitorFrame6, #monitorFrame10, #monitorFrame14, #monitorFrame18, #monitorFrame22 { - text-align: center; -} - -#monitor2, #monitor6, #monitor10, #monitor14, #monitor18, #monitor22 { -} - -#monitorFrame3, #monitorFrame7, #monitorFrame11, #monitorFrame15, #monitorFrame19, #monitorFrame23 { -} - -#monitor3, #monitor7, #monitor11, #monitor15, #monitor19, #monitor23 { - float: left; -} diff --git a/web/skins/bootstrap/views/css/montage_freeform.css b/web/skins/bootstrap/views/css/montage_freeform.css deleted file mode 100644 index da6a4bb22..000000000 --- a/web/skins/bootstrap/views/css/montage_freeform.css +++ /dev/null @@ -1,9 +0,0 @@ -#monitors { - margin: 0 auto; - text-align: center; -} - -#monitors .monitorFrame { - float: left; - padding: 1px; -} diff --git a/web/skins/bootstrap/views/css/options.css b/web/skins/bootstrap/views/css/options.css deleted file mode 100644 index f2635edea..000000000 --- a/web/skins/bootstrap/views/css/options.css +++ /dev/null @@ -1,24 +0,0 @@ -input.small { - width: 6em; -} - -input.medium { - width: 9em; -} - -input.large { - width: 20em; -} - -#contentTable.optionTable th, #contentTable.optionTable td { - vertical-align: top; -} - -#contentTable.userTable th, #contentTable.userTable td { - text-align: center; -} - -#contentTable.userTable .colMonitor, #contentTable.userTable .colUsername { - text-align: left; -} - diff --git a/web/skins/bootstrap/views/css/plugin.css b/web/skins/bootstrap/views/css/plugin.css deleted file mode 100644 index 040e26558..000000000 --- a/web/skins/bootstrap/views/css/plugin.css +++ /dev/null @@ -1,20 +0,0 @@ -#settingsPanel { - float: left; - margin: 0 2px; -} - -#pluginSettings { - border-collapse: collapse; -} - -#pluginSettings th, #pluginSettings td { - border: 1px solid #7f7fb2; - padding: 3px; - text-align: left; -} - -#pluginSettings th[scope=row] { - padding: 4px 3px 3px; - vertical-align: top; - white-space: nowrap; -} diff --git a/web/skins/bootstrap/views/css/stats.css b/web/skins/bootstrap/views/css/stats.css deleted file mode 100644 index c47e85e3a..000000000 --- a/web/skins/bootstrap/views/css/stats.css +++ /dev/null @@ -1,9 +0,0 @@ -#contentTable.major .colZone, #contentTable.major .colPixelDiff, #contentTable.major .colAlarmPx, #contentTable.major .colFilterPx, #contentTable.major .colBlobPx, #contentTable.major .colBlobs, #contentTable.major .colBlobSizes, #contentTable.major .colAlarmLimits, #contentTable.major .colScore { - - text-align: center; -} - -#contentTable.major .rowNoStats { - text-align: center; - padding: 20px; -} diff --git a/web/skins/bootstrap/views/css/timeline.css b/web/skins/bootstrap/views/css/timeline.css deleted file mode 100644 index 6b66ea4e1..000000000 --- a/web/skins/bootstrap/views/css/timeline.css +++ /dev/null @@ -1,222 +0,0 @@ -#content { - position: relative; - text-align: center; - border: 1px solid #666666; - margin: 0 auto; -} - -#title { - position: relative; - margin: 0 auto; - color: #016A9D; - height: 30px; - font-size: 13px; - font-weight: bold; - line-height: 20px; -} - -#listLink { - position: absolute; - top: 5px; - left: 20px; - height: 15px; -} - -#closeLink { - position: absolute; - top: 5px; - right: 20px; - height: 15px; -} - -#topPanel { - position: relative; - height: 220px; - margin: 4px auto 6px; -} - -#topPanel #imagePanel -{ - width: 50%; - float: left; - text-align: right; -} - -#topPanel #image { - float: right; - margin: 0 auto; - width: 90%; - text-align: right; - margin-right: 2px; - background-color: #eeeeee; - border: 1px solid #c8c8c8; -} - -#topPanel #image img { - float: left; - top: 0px; - background-color: #f8f8f8; - width: 100%; -} - -#topPanel #dataPanel { - width: 45%; - float: left; - text-align: left; - margin-left: 2px; -} - -#topPanel #textPanel { - text-align: left; - width: 100%; - height: 140px; - margin: 0 auto; - color: #016A9D; - font-size: 11px; - font-weight: bold; - line-height: 14px; - background-color: #eeeeee; - border: 1px solid #c8c8c8; - padding: 2px; -} - -#topPanel #navPanel { - width: 100%; - height: 70px; - margin: 4px auto; -} - -#topPanel #navPanel input { - background-color: #eeeeee; - border: 1px solid #c8c8c8; - padding: 5px; -} - -#chartPanel { - position: relative; - margin: 0 auto; -} - -#chartPanel #chart { - position: relative; - border: 1px solid black; - margin: 0 auto; - z-index: 0; -} - -#chartPanel #activity { - position: absolute; - text-align: center; - left: 0px; - border-bottom: 1px solid #cccccc; -} - -#chartPanel #activity div.activity { - position: absolute; - bottom: 0px; - z-index: 3; - width: 1px; -} - -#chartPanel .events { - position: absolute; - text-align: center; - left: 0px; - background-color: #fcfcfc; - border-bottom: 1px solid black; -} - -#chartPanel .event { - position: absolute; - bottom: 0px; - z-index: 3; -} - -#chartLabels { - margin: 25px auto 0; - text-align: center; -} - -#range { - width: 30%; - margin: 0 auto; - color: #016A9D; - font-size: 11px; - font-weight: bold; - line-height: 20px; -} - -#key { - float: right; - margin-top: -4px; - text-align: right; -} - -span.keyEntry { -} - -img.keyBox { - position: relative; - border: 1px solid black; - width: 16px; - height: 16px; - top: 4px; - margin-left: 4px; -} - -div.majGridX { - position: absolute; - z-index: 1; - top: 0px; - width: 1px; - border-left: dotted 1px #cccccc; -} - -div.majTickX { - position: absolute; - bottom: -7px; - width: 1px; - height: 7px; - border-left: solid 1px black; -} - -div.majLabelX { - position: absolute; - text-align: center; - bottom: -20px; - width: 50px; - font-size: 9px; - font-weight: normal; -} - -div.majGridY { - position: absolute; - z-index: 1; - left: 0px; - height: 1px; - border-top: dotted 1px #cccccc; -} - -div.majTickY { - position: absolute; - left: -7px; - height: 1px; - width: 7px; - border-top: solid 1px black; -} - -div.majLabelY { - position: absolute; - text-align: right; - left: -30px; - width: 20px; - font-size: 9px; - font-weight: normal; -} - -div.zoom { - position: absolute; - z-index: 2; - bottom: 0px; -} - diff --git a/web/skins/bootstrap/views/css/timeline.css.php b/web/skins/bootstrap/views/css/timeline.css.php deleted file mode 100644 index 3bc75fbcf..000000000 --- a/web/skins/bootstrap/views/css/timeline.css.php +++ /dev/null @@ -1,77 +0,0 @@ -.chartSize { - width: px; - height: px; -} - -.graphSize { - width: px; - height: px; -} - -.graphHeight { - height: px; -} - -.graphWidth { - width: px; -} - -.imageSize { - width: px; - height: px; -} - -.imageHeight { - height: px; -} - -.activitySize { - width: px; - height: px; -} - -.eventsSize { - width: px; - height: px; -} - -.eventsHeight { - height: px; -} - -#chartPanel .eventsPos { - top: px; -} - -#chartPanel .activityPos { - top: px; -} - -#chartPanel .eventsPos { - top: px; -} - -.monitorColour { - background-color: ; -} - diff --git a/web/skins/bootstrap/views/css/video.css b/web/skins/bootstrap/views/css/video.css deleted file mode 100644 index 7e9708f2c..000000000 --- a/web/skins/bootstrap/views/css/video.css +++ /dev/null @@ -1,19 +0,0 @@ -#contentTable + input { - margin-top: 6px; -} - -#videoProgress { - margin: 8px auto 4px; -} - -#videoFilesHeader { - margin: 8px auto 4px; -} - -#videoNoFiles { - margin: 4px auto; -} - -#videoFile { - margin-bottom: 6px; -} diff --git a/web/skins/bootstrap/views/css/watch.css b/web/skins/bootstrap/views/css/watch.css deleted file mode 100644 index 82cfca234..000000000 --- a/web/skins/bootstrap/views/css/watch.css +++ /dev/null @@ -1,134 +0,0 @@ -@import url(../../css/control.css); - -#menuBar { - margin: 6px auto 4px; - text-align: center; -} - -#menuBar #monitorName { - float: left; -} - -#menuBar #closeControl { - float: right; -} - -#menuBar #menuControls { - margin: 0 auto; - width: 60%; -} - -#menuBar #menuControls #controlControl { - float: left; -} - -#menuBar #menuControls #eventsControl { - float: left; -} - -#menuBar #menuControls #settingsControl { - float: right; -} - -#menuBar #menuControls #scaleControl { - margin: 0 auto; -} - -#imageFeed{ - text-align: center; -} - -#monitorStatus { - margin: 4px auto; - text-align: center; -} - -#monitorStatus #enableDisableAlarms { - float: left; -} - -#monitorStatus #forceCancelAlarm { - float: right; -} - -#monitorStatus #monitorState { -} - -#dvrControls { - margin-top: 3px; - margin-bottom: 2px; - text-align: center; -} - -#dvrControls input { - height: 20px; - width: 28px; - padding-bottom: 3px; - margin: 0 3px; -} - -#dvrControls input[disabled] { - color: #aaaaaa; -} - -#dvrControls input.active { - border: 1px solid blue; -} - -#dvrControls input.inactive { - border: 1px solid green; -} - -#dvrControls input.unavail { - border: 1px solid red; -} - -#replayStatus { - margin: 3px 0 2px; - text-align: center; - clear: both; -} - -#replayStatus > span { - padding: 0 4px; -} - -#events { - margin: 0 auto; -} - -#eventList { - width: 100%; -} - -#eventList thead td { - font-weight: bold; -} - -#eventList th, #eventList td { - text-align: center; -} - -li { - display: inline; - list-style-type: none; -} - -span.alarm { - color: #DC143C; - font-weight: bold; -} - -span.alert { - color: #FF8C00; - font-weight: bold; -} - -#eventList tr.recent { - background-color: #B0E0E6; -} - -#eventList tr.highlight { - background-color: #DCDCDC; -} - diff --git a/web/skins/bootstrap/views/css/zone.css b/web/skins/bootstrap/views/css/zone.css deleted file mode 100644 index 2f6754275..000000000 --- a/web/skins/bootstrap/views/css/zone.css +++ /dev/null @@ -1,95 +0,0 @@ -#settingsPanel { - float: left; - margin: 0 2px; -} - -#zoneSettings { - border-collapse: collapse; -} - -#zoneSettings th, #zoneSettings td { - border: 1px solid #7f7fb2; - padding: 3px; - text-align: left; -} - -#zoneSettings th[scope=row] { - padding: 4px 3px 3px; - vertical-align: top; - white-space: nowrap; -} - -#definitionPanel { - float: left; - margin: 0 2px; - text-align: center; -} - -#definitionPanel input[type=submit], #definitionPanel input[type=submit] { - margin: 0 4px; -} - -#imagePanel { - position: relative; -} - -/* NB: The size of the imageFrame determines the area within which the markers - * may be moved. When adjusting the padding and margins of the imageFrame and - * the DIVs within it, test that the markers behave sensibly when dragged to - * the extreme edges of the imageFrame. */ -#imageFrame { - position: relative; - padding: 0 3px 3px 0; /* Compensate for negative margins in the markers just below. */ -} - -#imageFrame div { - position: absolute; - width: 7px; - height: 7px; - margin-left: -3px; - margin-top: -3px; - z-index: 5; -} - -#imageFrame div { - background-image: url(../../graphics/point-g.gif); -} - -#imageFrame div.highlight { - background-image: url(../../graphics/point-o.gif); -} - -#imageFrame div.active { - background-image: url(../../graphics/point-r.gif); -} - -#zonePoints { - margin: 8px 0; - border-collapse: collapse; -} - -#zonePoints td { - vertical-align: top; -} - -#zonePoints table { - border-collapse: collapse; -} - -#zonePoints table tr.highlight { - background-color: #f0e68c; -} - -#zonePoints table tr.active { - background-color: #ffa07a; -} - -#zonePoints table th, #zonePoints table td { - border: 1px solid #7f7fb2; - padding: 3px; - text-align: center; -} - -#zonePoints table a { - margin: 0 2px; -} diff --git a/web/skins/bootstrap/views/js/Makefile.am b/web/skins/bootstrap/views/js/Makefile.am deleted file mode 100644 index ba1845e0c..000000000 --- a/web/skins/bootstrap/views/js/Makefile.am +++ /dev/null @@ -1,49 +0,0 @@ -AUTOMAKE_OPTIONS = gnu - -webdir = @WEB_PREFIX@/skins/classic/views/js - -dist_web_DATA = \ - console.js \ - console.js.php \ - control.js \ - controlpreset.js \ - controlpreset.js.php \ - cycle.js \ - cycle.js.php \ - devices.js \ - donate.js \ - donate.js.php \ - event.js \ - event.js.php \ - events.js \ - events.js.php \ - export.js \ - export.js.php \ - filter.js \ - filter.js.php \ - group.js \ - groups.js \ - log.js \ - login.js \ - Makefile.am \ - monitor.js \ - monitor.js.php \ - monitorpreset.js \ - monitorprobe.js \ - montage.js \ - montage.js.php \ - options.js.php \ - postlogin.js \ - state.js \ - state.js.php \ - timeline.js \ - timeline.js.php \ - user.js \ - version.js \ - version.js.php \ - video.js \ - video.js.php \ - watch.js \ - watch.js.php \ - zone.js \ - zone.js.php diff --git a/web/skins/bootstrap/views/js/console.js.php b/web/skins/bootstrap/views/js/console.js.php deleted file mode 100644 index 90f66a619..000000000 --- a/web/skins/bootstrap/views/js/console.js.php +++ /dev/null @@ -1,28 +0,0 @@ -var consoleRefreshTimeout = ; - - 0 ) - { - if ( ZM_DYN_DONATE_REMINDER_TIME < time() ) - { - $showDonatePopup = true; - } - } - else - { - $nextReminder = time() + 30*24*60*60; - dbQuery( "update Config set Value = '".$nextReminder."' where Name = 'ZM_DYN_DONATE_REMINDER_TIME'" ); - } - } -} -?> -var showVersionPopup = ; -var showDonatePopup = ; diff --git a/web/skins/bootstrap/views/js/control.js b/web/skins/bootstrap/views/js/control.js deleted file mode 100644 index 819f088d8..000000000 --- a/web/skins/bootstrap/views/js/control.js +++ /dev/null @@ -1,49 +0,0 @@ -var controlParms = "view=request&request=control"; -var controlReq = new Request.JSON( { url: thisUrl, method: 'post', timeout: AJAX_TIMEOUT, onSuccess: getControlResponse } ); - -function getControlResponse( respObj, respText ) -{ - if ( !respObj ) - return; - //console.log( respText ); - if ( respObj.result != 'Ok' ) - { - alert( "Control response was status = "+respObj.status+"\nmessage = "+respObj.message ); - } -} - -function controlCmd( control, event, xtell, ytell ) -{ - var locParms = "&id="+$('mid').get('value'); - if ( event && (xtell || ytell) ) - { - var xEvent = new Event( event ); - var target = xEvent.target; - var coords = $(target).getCoordinates(); - - var l = coords.left; - var t = coords.top; - var x = xEvent.page.x - l; - var y = xEvent.page.y - t; - - if ( xtell ) - { - var xge = parseInt( (x*100)/coords.width ); - if ( xtell == -1 ) - xge = 100 - xge; - else if ( xtell == 2 ) - xge = 2*(50 - xge); - locParms += "&xge="+xge; - } - if ( ytell ) - { - var yge = parseInt( (y*100)/coords.height ); - if ( ytell == -1 ) - yge = 100 - yge; - else if ( ytell == 2 ) - yge = 2*(50 - yge); - locParms += "&yge="+yge; - } - } - controlReq.send( controlParms+"&control="+control+locParms ); -} diff --git a/web/skins/bootstrap/views/js/controlpreset.js b/web/skins/bootstrap/views/js/controlpreset.js deleted file mode 100644 index ec2629cae..000000000 --- a/web/skins/bootstrap/views/js/controlpreset.js +++ /dev/null @@ -1,14 +0,0 @@ -function updateLabel() -{ - var presetIndex = $('contentForm').preset.getValue(); - if ( labels[presetIndex] ) - { - $('contentForm').newLabel.value = labels[presetIndex]; - } - else - { - $('contentForm').newLabel.value = ""; - } -} - -window.addEvent( 'domready', updateLabel ); diff --git a/web/skins/bootstrap/views/js/controlpreset.js.php b/web/skins/bootstrap/views/js/controlpreset.js.php deleted file mode 100644 index 0aac01bf6..000000000 --- a/web/skins/bootstrap/views/js/controlpreset.js.php +++ /dev/null @@ -1,9 +0,0 @@ -var labels = new Array(); -$label ) -{ -?> -labels[] = ""; - diff --git a/web/skins/bootstrap/views/js/cycle.js b/web/skins/bootstrap/views/js/cycle.js deleted file mode 100644 index e799a422e..000000000 --- a/web/skins/bootstrap/views/js/cycle.js +++ /dev/null @@ -1,11 +0,0 @@ -function nextCycleView() -{ - window.location.replace( '?view=cycle&group='+currGroup+'&mid='+nextMid+'&mode='+mode, cycleRefreshTimeout ); -} - -function initCycle() -{ - nextCycleView.periodical( cycleRefreshTimeout ); -} - -window.addEvent( 'domready', initCycle ); diff --git a/web/skins/bootstrap/views/js/cycle.js.php b/web/skins/bootstrap/views/js/cycle.js.php deleted file mode 100644 index c9dabaec4..000000000 --- a/web/skins/bootstrap/views/js/cycle.js.php +++ /dev/null @@ -1,5 +0,0 @@ -var currGroup = ""; -var nextMid = ""; -var mode = ""; - -var cycleRefreshTimeout = ; diff --git a/web/skins/bootstrap/views/js/devices.js b/web/skins/bootstrap/views/js/devices.js deleted file mode 100644 index 8191518fc..000000000 --- a/web/skins/bootstrap/views/js/devices.js +++ /dev/null @@ -1,47 +0,0 @@ -function switchDeviceOn( element, key ) -{ - var form = element.form; - form.view.value = currentView; - form.action.value = 'device'; - form.command.value = 'on'; - form.key.value = key; - form.submit(); -} - -function switchDeviceOff( element, key ) -{ - var form = element.form; - form.view.value = currentView; - form.action.value = 'device'; - form.command.value = 'off'; - form.key.value = key; - form.submit(); -} - -function deleteDevice( element ) -{ - var form = element.form; - form.view.value = currentView; - form.action.value = 'delete'; - form.submit(); -} - -function configureButtons( element, name ) -{ - var form = element.form; - var checked = false; - for (var i = 0; i < form.elements.length; i++) - { - if ( form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - checked = true; - break; - } - } - } - form.deleteBtn.disabled = !checked; -} - -window.focus(); diff --git a/web/skins/bootstrap/views/js/donate.js b/web/skins/bootstrap/views/js/donate.js deleted file mode 100644 index 87d99198b..000000000 --- a/web/skins/bootstrap/views/js/donate.js +++ /dev/null @@ -1,14 +0,0 @@ -function submitForm( element ) -{ - var form = element.form; - if ( form.option.selectedIndex == 0 ) - form.view.value = currentView; - else - form.view.value = 'none'; - form.submit(); -} - -if ( action == "donate" && option == "go" ) -{ - zmWindow(); -} diff --git a/web/skins/bootstrap/views/js/donate.js.php b/web/skins/bootstrap/views/js/donate.js.php deleted file mode 100644 index 9d24e392f..000000000 --- a/web/skins/bootstrap/views/js/donate.js.php +++ /dev/null @@ -1,2 +0,0 @@ -var action = ''; -var option = ''; diff --git a/web/skins/bootstrap/views/js/events.js b/web/skins/bootstrap/views/js/events.js deleted file mode 100644 index 6aa129932..000000000 --- a/web/skins/bootstrap/views/js/events.js +++ /dev/null @@ -1,150 +0,0 @@ -function closeWindows() -{ - window.close(); - // This is a hack. The only way to close an existing window is to try and open it! - var filterWindow = window.open( thisUrl+'?view=none', 'zmFilter', 'width=1,height=1' ); - filterWindow.close(); -} - -function toggleCheckbox( element, name ) -{ - var form = element.form; - var checked = element.checked; - for (var i = 0; i < form.elements.length; i++) - if (form.elements[i].name.indexOf(name) == 0) - form.elements[i].checked = checked; - form.viewBtn.disabled = !checked; - form.editBtn.disabled = !checked; - form.archiveBtn.disabled = unarchivedEvents?!checked:true; - form.unarchiveBtn.disabled = archivedEvents?!checked:true; - form.exportBtn.disabled = !checked; - form.deleteBtn.disabled = !checked; -} - -function configureButton( element, name ) -{ - var form = element.form; - var checked = element.checked; - if ( !checked ) - { - for (var i = 0; i < form.elements.length; i++) - { - if ( form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - checked = true; - break; - } - } - } - } - if ( !element.checked ) - form.toggleCheck.checked = false; - form.viewBtn.disabled = !checked; - form.editBtn.disabled = !checked; - form.archiveBtn.disabled = (!checked)||(!unarchivedEvents); - form.unarchiveBtn.disabled = (!checked)||(!archivedEvents); - form.exportBtn.disabled = !checked; - form.deleteBtn.disabled = !checked; -} - -function deleteEvents( element, name ) -{ - var form = element.form; - var count = 0; - for (var i = 0; i < form.elements.length; i++) - { - if (form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - count++; - break; - } - } - } - if ( count > 0 ) - { - if ( confirm( confirmDeleteEventsString ) ) - { - form.action.value = 'delete'; - form.submit(); - } - } -} - -function editEvents( element, name ) -{ - var form = element.form; - var eids = new Array(); - for (var i = 0; i < form.elements.length; i++) - { - if (form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - eids[eids.length] = 'eids[]='+form.elements[i].value; - } - } - } - createPopup( '?view=eventdetail&'+eids.join( '&' ), 'zmEventDetail', 'eventdetail' ); -} - -function exportEvents( element, name ) -{ - var form = element.form; - var eids = new Array(); - for (var i = 0; i < form.elements.length; i++) - { - if (form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - eids[eids.length] = 'eids[]='+form.elements[i].value; - } - } - } - createPopup( '?view=export&'+eids.join( '&' ), 'zmExport', 'export' ); -} - -function viewEvents( element, name ) -{ - var form = element.form; - var events = new Array(); - for (var i = 0; i < form.elements.length; i++) - { - if ( form.elements[i].name.indexOf(name) == 0) - { - if ( form.elements[i].checked ) - { - events[events.length] = form.elements[i].value; - } - } - } - if ( events.length > 0 ) - { - createPopup( '?view=event&eid='+events[0]+'&filter[terms][0][attr]=Id&&filter[terms][0][op]=%3D%5B%5D&&filter[terms][0][val]='+events.join('%2C')+sortQuery+'&page=1&play=1', 'zmEvent', 'event', maxWidth, maxHeight ); - } -} - -function archiveEvents( element, name ) -{ - var form = element.form; - form.action.value = 'archive'; - form.submit(); -} - -function unarchiveEvents( element, name ) -{ - var form = element.form; - form.action.value = 'unarchive'; - form.submit(); -} - -if ( openFilterWindow ) -{ - //opener.location.reload(true); - createPopup( '?view=filter&page='+thisPage+filterQuery, 'zmFilter', 'filter' ); - location.replace( '?view='+currentView+'&page='+thisPage+filterQuery ); -} diff --git a/web/skins/bootstrap/views/js/events.js.php b/web/skins/bootstrap/views/js/events.js.php deleted file mode 100644 index 497d0c96e..000000000 --- a/web/skins/bootstrap/views/js/events.js.php +++ /dev/null @@ -1,13 +0,0 @@ -//var openFilterWindow = ; -var openFilterWindow = false; - -var archivedEvents = ; -var unarchivedEvents = ; - -var filterQuery = ''; -var sortQuery = ''; - -var maxWidth = ; -var maxHeight = ; - -var confirmDeleteEventsString = ""; diff --git a/web/skins/bootstrap/views/js/export.js b/web/skins/bootstrap/views/js/export.js deleted file mode 100644 index 482b41d72..000000000 --- a/web/skins/bootstrap/views/js/export.js +++ /dev/null @@ -1,58 +0,0 @@ -function configureExportButton( element ) -{ - var form = element.form; - - var checkCount = 0; - var radioCount = 0; - for ( var i = 0; i < form.elements.length; i++ ) - if ( form.elements[i].type == "checkbox" && form.elements[i].checked ) - checkCount++; - else if ( form.elements[i].type == "radio" && form.elements[i].checked ) - radioCount++; - form.elements['exportButton'].disabled = (checkCount == 0 || radioCount == 0); -} - -function startDownload( exportFile ) -{ - window.location.replace( exportFile ); -} - -var exportTimer = null; - -function exportProgress() -{ - var tickerText = $('exportProgressTicker').get('text'); - if ( tickerText.length < 1 || tickerText.length > 4 ) - $('exportProgressTicker').set( 'text', '.' ); - else - $('exportProgressTicker').appendText( '.' ); -} - -function exportResponse( respObj, respText ) -{ - window.location.replace( thisUrl+'?view='+currentView+'&'+eidParm+'&exportFile='+respObj.exportFile+'&generated='+((respObj.result=='Ok')?1:0) ); -} - -function exportEvent( form ) -{ - var parms = 'view=request&request=event&action=export'; - parms += '&'+$(form).toQueryString(); - var query = new Request.JSON( { url: thisUrl, method: 'post', data: parms, onSuccess: exportResponse } ); - query.send(); - $('exportProgress').removeClass( 'hidden' ); - $('exportProgress').setProperty( 'class', 'warnText' ); - $('exportProgressText').set( 'text', exportProgressString ); - exportProgress(); - exportTimer = exportProgress.periodical( 500 ); -} - -function initPage() -{ - configureExportButton( $('exportButton') ); - if ( exportReady ) - { - startDownload.pass( exportFile ).delay( 1500 ); - } -} - -window.addEvent( 'domready', initPage ); diff --git a/web/skins/bootstrap/views/js/export.js.php b/web/skins/bootstrap/views/js/export.js.php deleted file mode 100644 index e51089c14..000000000 --- a/web/skins/bootstrap/views/js/export.js.php +++ /dev/null @@ -1,22 +0,0 @@ - -var eidParm = ''; - -var eidParm = 'eid='; - - -var exportReady = ; -var exportFile = ''; - -var exportProgressString = ''; diff --git a/web/skins/bootstrap/views/js/filter.js b/web/skins/bootstrap/views/js/filter.js deleted file mode 100644 index 300862640..000000000 --- a/web/skins/bootstrap/views/js/filter.js +++ /dev/null @@ -1,120 +0,0 @@ -function updateButtons( element ) -{ - var form = element.form; - - if ( element.type == 'checkbox' && element.checked ) - form.elements['executeButton'].disabled = false; - else - { - var canExecute = false; - if ( form.elements['autoArchive'].checked ) - canExecute = true; - else if ( typeof ZM_OPT_FFMPEG !== "undefined" && form.elements['autoVideo'].checked ) - canExecute = true; - else if ( typeof ZM_OPT_UPLOAD !== "undefined" && form.elements['autoUpload'].checked ) - canExecute = true; - else if ( typeof ZM_OPT_EMAIL !== "undefined" && form.elements['autoEmail'].checked ) - canExecute = true; - else if ( typeof ZM_OPT_MESSAGE !== "undefined" && form.elements['autoMessage'].checked ) - canExecute = true; - else if ( form.elements['autoExecute'].checked && form.elements['autoExecuteCmd'].value != '' ) - canExecute = true; - else if ( form.elements['autoDelete'].checked ) - canExecute = true; - form.elements['executeButton'].disabled = !canExecute; - } -} - -function clearValue( element, line ) -{ - var form = element.form; - var val = form.elements['filter[terms]['+line+'][val]']; - val.value = ''; -} - -function submitToFilter( element, reload ) -{ - var form = element.form; - form.target = window.name; - form.view.value = 'filter'; - form.reload.value = reload; - form.submit(); -} - -function submitToEvents( element ) -{ - var form = element.form; - if ( validateForm( form ) ) - { - form.target = 'zmEvents'; - form.view.value = 'events'; - form.action.value = ''; - form.execute.value = 0; - form.submit(); - } -} - -function executeFilter( element ) -{ - var form = element.form; - if ( validateForm( form ) ) - { - form.target = 'zmEvents'; - form.view.value = 'events'; - form.action.value = 'filter'; - form.execute.value = 1; - form.submit(); - } -} - -function saveFilter( element ) -{ - var form = element.form; - - var popupName = 'zmEventsFilterSave'; - createPopup( thisUrl, popupName, 'filtersave' ); - - form.target = popupName; - form.view.value = 'filtersave'; - form.submit(); -} - -function deleteFilter( element, name ) -{ - if ( confirm( deleteSavedFilterString+" '"+name+"'" ) ) - { - var form = element.form; - form.action.value = 'delete'; - form.fid.value = name; - submitToFilter( element, 1 ); - } -} - -function addTerm( element, line ) -{ - var form = element.form; - form.target = window.name; - form.view.value = currentView; - form.action.value = 'filter'; - form.subaction.value = 'addterm'; - form.line.value = line; - form.submit(); -} - -function delTerm( element, line ) -{ - var form = element.form; - form.target = window.name; - form.view.value = currentView; - form.action.value = 'filter'; - form.subaction.value = 'delterm'; - form.line.value = line; - form.submit(); -} - -function init() -{ - updateButtons( $('executeButton') ); -} - -window.addEvent( 'domready', init ); diff --git a/web/skins/bootstrap/views/js/filter.js.php b/web/skins/bootstrap/views/js/filter.js.php deleted file mode 100644 index 924bf88f4..000000000 --- a/web/skins/bootstrap/views/js/filter.js.php +++ /dev/null @@ -1,55 +0,0 @@ -var deleteSavedFilterString = ""; -function validateForm( form ) -{ - 2 ) -{ -?> - var bracket_count = 0; - - var obr = form.elements['filter[terms][][obr]']; - var cbr = form.elements['filter[terms][][cbr]']; - bracket_count += parseInt(obr.options[obr.selectedIndex].value); - bracket_count -= parseInt(cbr.options[cbr.selectedIndex].value); - - if ( bracket_count ) - { - alert( "" ); - return( false ); - } - - - var val = form.elements['filter[terms][][val]']; - if ( val.value == '' ) - { - alert( "" ); - return( false ); - } - - return( true ); -} - - - - - - -