| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 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 /** 18 * @package MantisBT 19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 20 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 21 * @link http://www.mantisbt.org 22 * 23 * @uses core.php 24 * @uses access_api.php 25 * @uses authentication_api.php 26 * @uses config_api.php 27 * @uses current_user_api.php 28 * @uses event_api.php 29 * @uses form_api.php 30 * @uses gpc_api.php 31 * @uses html_api.php 32 * @uses lang_api.php 33 * @uses print_api.php 34 */ 35 36 /** 37 * MantisBT Core API's 38 */ 39 require_once ( 'core.php' ); 40 require_api( 'access_api.php' ); 41 require_api( 'authentication_api.php' ); 42 require_api( 'config_api.php' ); 43 require_api( 'current_user_api.php' ); 44 require_api( 'event_api.php' ); 45 require_api( 'form_api.php' ); 46 require_api( 'gpc_api.php' ); 47 require_api( 'html_api.php' ); 48 require_api( 'lang_api.php' ); 49 require_api( 'print_api.php' ); 50 51 auth_reauthenticate(); 52 53 access_ensure_global_level( config_get( 'create_project_threshold' ) ); 54 55 html_page_top(); 56 57 print_manage_menu( 'manage_proj_create_page.php' ); 58 59 $f_parent_id = gpc_get( 'parent_id', null ); 60 ?> 61 62 <div id="manage-project-create-div" class="form-container"> 63 <form method="post" id="manage-project-create-form" action="manage_proj_create.php"> 64 <fieldset class="has-required"><?php 65 echo form_security_field( 'manage_proj_create' ); 66 if ( null !== $f_parent_id ) { 67 $f_parent_id = (int) $f_parent_id; ?> 68 <input type="hidden" name="parent_id" value="<?php echo $f_parent_id ?>" /><?php 69 } ?> 70 <legend><span><?php 71 if ( null !== $f_parent_id ) { 72 echo lang_get( 'add_subproject_title' ); 73 } else { 74 echo lang_get( 'add_project_title' ); 75 } ?></span></legend> 76 77 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 78 <label for="project-name" class="required"><span><?php echo lang_get( 'project_name' )?></span></label> 79 <span class="input"><input type="text" id="project-name" name="name" size="64" maxlength="128" /></span> 80 <span class="label-style"></span> 81 </div> 82 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 83 <label for="project-status"><span><?php echo lang_get( 'status' ) ?></span></label> 84 <span class="select"> 85 <select id="project-status" name="status"> 86 <?php print_enum_string_option_list( 'project_status' ) ?> 87 </select> 88 </span> 89 <span class="label-style"></span> 90 </div> 91 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 92 <label for="project-view-state"><span><?php echo lang_get( 'view_status' ) ?></span></label> 93 <span class="select"> 94 <select id="project-view-state" name="view_state"> 95 <?php print_enum_string_option_list( 'view_state' ) ?> 96 </select> 97 </span> 98 <span class="label-style"></span> 99 </div> 100 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 101 <label for="project-inherit-global"><span><?php echo lang_get( 'inherit_global' ) ?></span></label> 102 <span class="checkbox"><input type="checkbox" id="project-inherit-global" name="inherit_global" checked="checked" /></span> 103 <span class="label-style"></span> 104 </div> 105 <?php if ( !is_null( $f_parent_id ) ) { ?> 106 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 107 <label for="project-inherit-parent"><span><?php echo lang_get( 'inherit_parent' ) ?></span></label> 108 <span class="checkbox"><input type="checkbox" id="project-inherit-parent" name="inherit_parent" checked="checked" /></span> 109 <span class="label-style"></span> 110 </div><?php 111 } 112 113 if ( config_get( 'allow_file_upload' ) ) { 114 $t_default_upload_path = ''; 115 # Don't reveal the absolute path to non-administrators for security reasons 116 if ( current_user_is_administrator() ) { 117 $t_default_upload_path = config_get( 'absolute_path_default_upload_folder' ); 118 } 119 ?> 120 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 121 <label for="project-file-path"><span><?php echo lang_get( 'upload_file_path' ) ?></span></label> 122 <span class="input"><input type="text" id="project-file-path" name="file_path" size="70" maxlength="250" value="<?php echo $t_default_upload_path ?>" /></span> 123 <span class="label-style"></span> 124 </div><?php 125 } ?> 126 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 127 <label for="project-description"><span><?php echo lang_get( 'description' ) ?></span></label> 128 <span class="textarea"><textarea id="project-description" name="description" cols="60" rows="5"></textarea></span> 129 <span class="label-style"></span> 130 </div> 131 132 <?php event_signal( 'EVENT_MANAGE_PROJECT_CREATE_FORM' ) ?> 133 134 <span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'add_project_button' ) ?>" /></span> 135 </fieldset> 136 </form> 137 </div> 138 139 <?php 140 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 |