[ 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 31 auth_ensure_user_authenticated(); 32 33 compress_enable(); 34 35 html_page_top1(); 36 html_page_top2(); 37 ?> 38 <br /> 39 <div align="center"> 40 <?php 41 $t_query_to_store = filter_db_get_filter( gpc_get_cookie( config_get( 'view_all_cookie' ), '' ) ); 42 $t_query_arr = filter_db_get_available_queries(); 43 44 # Let's just see if any of the current filters are the 45 # same as the one we're about the try and save 46 foreach( $t_query_arr as $t_id => $t_name ) { 47 if ( filter_db_get_filter( $t_id ) == $t_query_to_store ) { 48 print lang_get( 'query_exists' ) . ' (' . $t_name . ')<br />'; 49 } 50 } 51 52 # Check for an error 53 $t_error_msg = strip_tags( gpc_get_string( 'error_msg', null ) ); 54 if ( $t_error_msg != null ) { 55 print "<br />$t_error_msg<br /><br />"; 56 } 57 58 print lang_get( 'query_name' ) . ': '; 59 ?> 60 <form method="post" action="query_store.php"> 61 <input type="text" name="query_name" /><br /> 62 <?php 63 if ( access_has_project_level( config_get( 'stored_query_create_shared_threshold' ) ) ) { 64 print '<input type="checkbox" name="is_public" value="on" /> '; 65 print lang_get( 'make_public' ); 66 print '<br />'; 67 } 68 ?> 69 <input type="checkbox" name="all_projects" value="on" <?php check_checked( ALL_PROJECTS == helper_get_current_project() ) ?> > 70 <?php print lang_get( 'all_projects' ); ?><br /><br /> 71 <input type="submit" class="button" value="<?php print lang_get( 'save_query' ); ?>" /> 72 </form> 73 <form action="view_all_bug_page.php"> 74 <input type="submit" class="button" value="<?php print lang_get( 'go_back' ); ?>" /> 75 </form> 76 <?php 77 echo '</div>'; 78 html_page_bottom1( __FILE__ ); 79 ?>
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 |
![]() |