| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 # Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 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. 8 # 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. 13 # 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/>. 16 17 auth_reauthenticate( ); 18 19 html_page_top( plugin_lang_get( 'import' ) ); 20 21 $t_this_page = plugin_page('import'); //FIXME with plugins this does not work... 22 print_manage_menu( $t_this_page ); 23 24 $t_max_file_size = (int)min( 25 ini_get_number( 'upload_max_filesize' ), 26 ini_get_number( 'post_max_size' ), 27 config_get( 'max_file_size' ) 28 ); 29 30 // We need a project to import into 31 $t_project_id = helper_get_current_project( ); 32 if( ALL_PROJECTS == $t_project_id ) { 33 print_header_redirect( "login_select_proj_page.php?ref=$t_this_page" ); 34 } 35 36 ?> 37 38 <div class="center"> 39 <form name="file_upload" method="post" enctype="multipart/form-data" action="<?php echo plugin_page( 'import_action' )?>"> 40 <?php echo form_security_field( 'plugin_xml_import_action' ) ?> 41 42 <input type="hidden" name="project_id" value="<?php echo $t_project_id;?>" /> 43 44 <table class="width100"> 45 <tr> 46 <td class="form-title" colspan="2"> 47 <?php 48 echo plugin_lang_get( 'importing_in_project' ) . ' ' . string_display( project_get_field( $t_project_id, 'name' ) ); 49 ?> 50 </td> 51 </tr> 52 <tr class="row-1"> 53 <td class="category" width="25%"> 54 <?php echo lang_get( 'select_file' )?><br /> 55 <?php echo '<span class="small">(' . lang_get( 'max_file_size' ) . ': ' . number_format( $t_max_file_size / 1000 ) . 'k)</span>'?> 56 </td> 57 <td width="85%"> 58 <input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size?>" /> 59 <input type="hidden" name="step" value="1" /> 60 <input name="file" type="file" size="40" /> 61 </td> 62 </tr> 63 <tr> 64 <td class="form-title" colspan="2"> 65 <?php 66 echo plugin_lang_get( 'import_options' ); 67 ?> 68 </td> 69 </tr> 70 71 <tr class="row-2"> 72 <th class="category" width="25%"> 73 <?php echo plugin_lang_get( 'cross_references' );?> 74 </th> 75 <td> 76 <p><?php echo plugin_lang_get( 'default_strategy' );?> 77 <select name="strategy"> 78 <option value="renumber" title="<?php echo plugin_lang_get( 'renumber_desc' );?>"> 79 <?php echo plugin_lang_get( 'renumber' );?></option> 80 <option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>"> 81 <?php echo plugin_lang_get( 'link' );?></option> 82 <option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>"> 83 <?php echo plugin_lang_get( 'disable' );?></option> 84 </select> 85 </p> 86 <p><?php echo plugin_lang_get( 'fallback' );?> 87 <select name="fallback"> 88 <option value="link" title="<?php echo plugin_lang_get( 'link_desc' );?>"> 89 <?php echo plugin_lang_get( 'link' );?></option> 90 <option value="disable" title="<?php echo plugin_lang_get( 'disable_desc' );?>"> 91 <?php echo plugin_lang_get( 'disable' );?></option> 92 </select> 93 </p> 94 95 </td> 96 </tr> 97 98 <tr class="row-2"> 99 <th class="category" width="25%"><?php echo lang_get( 'categories' );?></th> 100 <td> 101 <p><label for="keepcategory"><?php echo plugin_lang_get( 'keep_same_category' );?></label> 102 <input type="checkbox" checked="checked" id="keepcategory" name="keepcategory" /></p> 103 104 <p><?php echo plugin_lang_get( 'fallback_category' );?> 105 <select name="defaultcategory"> 106 <?php print_category_option_list( );?> 107 </select> 108 </p> 109 110 </td> 111 </tr> 112 113 114 <tr> 115 <td colspan="2" class="center"> 116 <input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' )?>" /> 117 </td> 118 </tr> 119 </table> 120 </form> 121 122 </div> 123 <?php 124 html_page_bottom();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |