[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 ?> 20 <?php 21 require_once ( 'core.php' ); 22 $t_core_path = config_get( 'core_path' ); 23 24 require_once( $t_core_path.'compress_api.php' ); 25 require_once( $t_core_path.'filter_api.php' ); 26 require_once( $t_core_path.'current_user_api.php' ); 27 require_once( $t_core_path.'bug_api.php' ); 28 require_once( $t_core_path.'string_api.php' ); 29 require_once( $t_core_path.'date_api.php' ); 30 require_once( $t_core_path.'rss_api.php' ); 31 32 auth_ensure_user_authenticated(); 33 34 $t_query_arr = filter_db_get_available_queries(); 35 36 # Special case: if we've deleted our last query, we have nothing to show here. 37 if ( sizeof( $t_query_arr ) < 1 ) { 38 print_header_redirect( 'view_all_bug_page.php' ); 39 } 40 41 compress_enable(); 42 43 html_page_top1(); 44 html_page_top2(); 45 46 $t_use_query_url = 'view_all_set.php?type=3&source_query_id='; 47 $t_delete_query_url = 'query_delete_page.php?source_query_id='; 48 49 $t_rss_enabled = config_get( 'rss_enabled' ); 50 ?> 51 <br /> 52 <div align="center"> 53 <table class="width75" cellspacing="0"> 54 <?php 55 $t_column_count = 0; 56 $t_max_column_count = 2; 57 58 foreach( $t_query_arr as $t_id => $t_name ) { 59 if ( $t_column_count == 0 ) { 60 print '<tr ' . helper_alternate_class() . '>'; 61 } 62 63 print '<td>'; 64 65 if ( OFF != $t_rss_enabled ) { 66 # Use the "new" RSS link style. 67 print_rss( rss_get_issues_feed_url( null, null, $t_id ), lang_get( 'rss' ) ); 68 echo ' '; 69 } 70 71 print '<a href="' . $t_use_query_url . db_prepare_int( $t_id ) . '">' . string_display( $t_name ) . '</a>'; 72 73 if ( filter_db_can_delete_filter( $t_id ) ) { 74 echo ' '; 75 print_button( $t_delete_query_url . db_prepare_int( $t_id ), lang_get( 'delete_query' ) ); 76 } 77 78 print '</td>'; 79 80 $t_column_count++; 81 if ( $t_column_count == $t_max_column_count ) { 82 print '</tr>'; 83 $t_column_count = 0; 84 } 85 } 86 87 # Tidy up this row 88 if ( ( $t_column_count > 0 ) && ( $t_column_count < $t_max_column_count ) ) { 89 for ( $i = $t_column_count; $i < $t_max_column_count; $i++ ) { 90 print '<td> </td>'; 91 } 92 print '</tr>'; 93 } 94 ?> 95 </table> 96 </div> 97 <?php html_page_bottom1( __FILE__ ) ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |