2 # MantisBT - A PHP based bugtracking system
4 # MantisBT is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
9 # MantisBT is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
20 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
21 * @link http://www.mantisbt.org
24 * @uses authentication_api.php
25 * @uses compress_api.php
26 * @uses config_api.php
27 * @uses database_api.php
28 * @uses filter_api.php
29 * @uses helper_api.php
36 require_once( 'core.php' );
37 require_api( 'authentication_api.php' );
38 require_api( 'compress_api.php' );
39 require_api( 'config_api.php' );
40 require_api( 'database_api.php' );
41 require_api( 'filter_api.php' );
42 require_api( 'helper_api.php' );
43 require_api( 'html_api.php' );
44 require_api( 'lang_api.php' );
45 require_api( 'print_api.php' );
46 require_api( 'rss_api.php' );
48 auth_ensure_user_authenticated();
50 $t_query_arr = filter_db_get_available_queries();
52 # Special case: if we've deleted our last query, we have nothing to show here.
53 if ( count( $t_query_arr ) < 1 ) {
54 print_header_redirect( 'view_all_bug_page.php' );
61 $t_rss_enabled = config_get( 'rss_enabled' );
65 <table
class="width75" cellspacing
="0">
68 $t_max_column_count = 2;
70 foreach( $t_query_arr as $t_id => $t_name ) {
71 if ( $t_column_count == 0 ) {
72 print '<tr ' . helper_alternate_class() . '>';
77 if ( OFF
!= $t_rss_enabled ) {
78 # Use the "new" RSS link style.
79 print_rss( rss_get_issues_feed_url( null, null, $t_id ), lang_get( 'rss' ) );
83 $t_query_id = db_prepare_int( $t_id );
84 print_link( "view_all_set.php?type=3&source_query_id=$t_query_id", $t_name );
86 if ( filter_db_can_delete_filter( $t_id ) ) {
88 print_button( "query_delete_page.php?source_query_id=$t_query_id", lang_get( 'delete_query' ) );
94 if ( $t_column_count == $t_max_column_count ) {
101 if ( ( $t_column_count > 0 ) && ( $t_column_count < $t_max_column_count ) ) {
102 for ( $i = $t_column_count; $i < $t_max_column_count; $i++
) {
103 print '<td> </td>';