diff --git a/web/zm_html_view_filter.php b/web/zm_html_view_filter.php index 8da7efaf1..86b527406 100644 --- a/web/zm_html_view_filter.php +++ b/web/zm_html_view_filter.php @@ -37,8 +37,29 @@ while ( $row = mysql_fetch_assoc( $result ) ) } } +$auto_str = ""; if ( isset($filter_data) ) { + $auto_text = array(); + if ( $filter_data['AutoArchive'] ) + $auto_text[] = $zmSlangAutoArchiveAbbr; + if ( $filter_data['AutoVideo'] ) + $auto_text[] = $zmSlangAutoVideoAbbr; + if ( $filter_data['AutoUpload'] ) + $auto_text[] = $zmSlangAutoUploadAbbr; + if ( $filter_data['AutoEmail'] ) + $auto_text[] = $zmSlangAutoEmailAbbr; + if ( $filter_data['AutoMessage'] ) + $auto_text[] = $zmSlangAutoMessageAbbr; + if ( $filter_data['AutoExecute'] ) + $auto_text[] = $zmSlangAutoExecuteAbbr; + if ( $filter_data['AutoDelete'] ) + $auto_text[] = $zmSlangAutoDeleteAbbr; + if ( count($auto_text) ) + { + $auto_str = '['.join( ',', $auto_text ).']'; + } + foreach( split( '&', $filter_data['Query'] ) as $filter_parm ) { list( $key, $value ) = split( '=', $filter_parm, 2 ); @@ -247,7 +268,7 @@ window.focus();
= $zmSlangUseFilter ?>: 1 ) { echo buildSelect( $select_name, $filter_names, "submitToFilter( document.filter_form, 1 );" ); } else { ?> | += $zmSlangUseFilter ?>: 1 ) { echo buildSelect( $select_name, $filter_names, "submitToFilter( document.filter_form, 1 );" ); } else { ?> = $auto_str ?> | = $zmSlangSave ?> | diff --git a/web/zm_lang_en_gb.php b/web/zm_lang_en_gb.php index 0ff55875e..f6413710e 100644 --- a/web/zm_lang_en_gb.php +++ b/web/zm_lang_en_gb.php @@ -112,14 +112,21 @@ $zmSlangAttrTime = 'Time'; $zmSlangAttrTotalScore = 'Total Score'; $zmSlangAttrWeekday = 'Weekday'; $zmSlangAutoArchiveEvents = 'Automatically archive all matches'; +$zmSlangAutoArchiveAbbr = 'Archive'; $zmSlangAuto = 'Auto'; $zmSlangAutoDeleteEvents = 'Automatically delete all matches'; +$zmSlangAutoDeleteAbbr = 'Delete'; $zmSlangAutoEmailEvents = 'Automatically email details of all matches'; +$zmSlangAutoEmailAbbr = 'Email'; $zmSlangAutoExecuteEvents = 'Automatically execute command on all matches'; +$zmSlangAutoExecuteAbbr = 'Execute'; $zmSlangAutoMessageEvents = 'Automatically message details of all matches'; +$zmSlangAutoMessageAbbr = 'Message'; $zmSlangAutoStopTimeout = 'Auto Stop Timeout'; $zmSlangAutoUploadEvents = 'Automatically upload all matches'; +$zmSlangAutoUploadAbbr = 'Upload'; $zmSlangAutoVideoEvents = 'Automatically create video for all matches'; +$zmSlangAutoVideoAbbr = 'Video'; $zmSlangAvgBrScore = 'Avg.