From 1d54216e801b11e9b4447edb9fc3c70ce0454766 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 9 Jan 2019 16:23:58 -0500 Subject: [PATCH] spacing --- web/skins/classic/views/filter.php | 83 +++++++++++++++--------------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/web/skins/classic/views/filter.php b/web/skins/classic/views/filter.php index 2be6c264c..516c5d0f4 100644 --- a/web/skins/classic/views/filter.php +++ b/web/skins/classic/views/filter.php @@ -18,7 +18,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // -if ( !canView( 'Events' ) ) { +if ( !canView('Events') ) { $view = 'error'; return; } @@ -28,7 +28,7 @@ parseSort(); $filterNames = array( ''=>translate('ChooseFilter') ); $filter = NULL; -foreach ( dbFetchAll( 'SELECT * FROM Filters ORDER BY Name' ) as $row ) { +foreach ( dbFetchAll('SELECT * FROM Filters ORDER BY Name') as $row ) { $filterNames[$row['Id']] = $row['Id'] . ' ' . $row['Name']; if ( $row['Background'] ) $filterNames[$row['Id']] .= '*'; @@ -36,7 +36,7 @@ foreach ( dbFetchAll( 'SELECT * FROM Filters ORDER BY Name' ) as $row ) { $filterNames[$row['Id']] .= '&'; if ( isset($_REQUEST['Id']) && $_REQUEST['Id'] == $row['Id'] ) { - $filter = new Filter( $row ); + $filter = new Filter($row); } } if ( ! $filter ) { @@ -69,8 +69,8 @@ if (count($filter->terms()) > 0) { if ( count($terms) ) { for ( $i = 0; $i <= count($terms)-2; $i++ ) { - $obracketTypes[$i] = str_repeat( '(', $i ); - $cbracketTypes[$i] = str_repeat( ')', $i ); + $obracketTypes[$i] = str_repeat('(', $i); + $cbracketTypes[$i] = str_repeat(')', $i); } } @@ -130,28 +130,28 @@ $archiveTypes = array( $focusWindow = true; -$storageareas = array( '' => 'All' ); +$storageareas = array('' => 'All'); //$storageareas[0] = 'Default ' . ZM_DIR_EVENTS; -foreach ( dbFetchAll( 'SELECT Id,Name FROM Storage ORDER BY lower(Name) ASC' ) as $storage ) { +foreach ( dbFetchAll('SELECT Id,Name FROM Storage ORDER BY lower(Name) ASC') as $storage ) { $storageareas[$storage['Id']] = $storage['Name']; } $weekdays = array(); for ( $i = 0; $i < 7; $i++ ) { - $weekdays[$i] = strftime( '%A', mktime( 12, 0, 0, 1, $i+1, 2001 ) ); + $weekdays[$i] = strftime('%A', mktime(12, 0, 0, 1, $i+1, 2001)); } $states = array(); -foreach ( dbFetchAll( 'SELECT Id,Name FROM States ORDER BY lower(Name) ASC' ) as $state_row ) { +foreach ( dbFetchAll('SELECT Id,Name FROM States ORDER BY lower(Name) ASC') as $state_row ) { $states[$state_row['Id']] = $state_row['Name']; } $servers = array(); $servers['ZM_SERVER_ID'] = 'Current Server'; $servers['NULL'] = 'No Server'; -foreach ( dbFetchAll( 'SELECT Id,Name FROM Servers ORDER BY lower(Name) ASC' ) as $server ) { +foreach ( dbFetchAll('SELECT Id,Name FROM Servers ORDER BY lower(Name) ASC') as $server ) { $servers[$server['Id']] = $server['Name']; } $monitors = array(); -foreach ( dbFetchAll( 'select Id,Name from Monitors order by Name asc' ) as $monitor ) { - if ( visibleMonitor( $monitor['Id'] ) ) { +foreach ( dbFetchAll('SELECT Id,Name FROM Monitors ORDER BY Name ASC') as $monitor ) { + if ( visibleMonitor($monitor['Id']) ) { $monitors[$monitor['Name']] = $monitor['Name']; } } @@ -168,7 +168,7 @@ xhtmlHeaders(__FILE__, translate('EventFilter') );
1 ) { - echo htmlSelect( 'Id', $filterNames, $filter->Id(), 'this.form.submit();' ); + echo htmlSelect('Id', $filterNames, $filter->Id(), 'this.form.submit();'); } else { ?> - + - 2 ) { echo htmlSelect( "filter[Query][terms][$i][obr]", $obracketTypes, $term['obr'] ); } else { ?>  - + 2 ) { echo htmlSelect("filter[Query][terms][$i][obr]", $obracketTypes, $term['obr']); } else { ?>  + - + - + - + - + @@ -258,46 +258,46 @@ for ( $i=0; $i < count($terms); $i++ ) { - - + + - - + + - - + + - - + + - - + + - + - + - 2 ) { echo htmlSelect( "filter[Query][terms][$i][cbr]", $cbracketTypes, $term['cbr'] ); } else { ?>  + 2 ) { echo htmlSelect("filter[Query][terms][$i][cbr]", $cbracketTypes, $term['cbr']); } else { ?>  - - /> + + />

- - AutoExecute() ) { ?> checked="checked"/> - + AutoExecute() ) { ?> checked="checked"/> +

@@ -413,14 +412,14 @@ if ( ZM_OPT_MESSAGE ) { Id() ) { ?> - +