print_documentation_link('category'); echo '</label>'; ?> </th> <td width="70%"> <?php if ($t_changed_project) { echo '[' . project_get_field($t_bug->project_id, 'name') . '] '; } ?> <select <?php echo helper_get_tab_index(); ?> id="category_id" name="category_id" class="autofocus"> <?php print_category_option_list($f_category_id); ?> </select> </td> </tr> <?php } if ($t_show_reproducibility) { ?> <tr> <th class="category"> <label for="reproducibility"><?php print_documentation_link('reproducibility'); ?> </label>
echo '<td width="15%" class="category">', $t_show_date_submitted ? lang_get('date_submitted') : '', '</td>'; echo '<td width="15%" class="category">', $t_show_last_updated ? lang_get('last_update') : '', '</td>'; echo '</tr>'; # # Values for Bug Id, Project Name, Category, View State, Date Submitted, Last Updated # echo '<tr>'; # Bug ID echo '<td>', $t_formatted_bug_id, '</td>'; # Project Name echo '<td>', $t_project_name, '</td>'; # Category echo '<td>'; if ($t_show_category) { echo '<select ' . helper_get_tab_index() . ' id="category_id" name="category_id">'; print_category_option_list($t_bug->category_id, $t_bug->project_id); echo '</select>'; } echo '</td>'; # View State echo '<td>'; if ($t_can_change_view_state) { echo '<select ' . helper_get_tab_index() . ' id="view_state" name="view_state">'; print_enum_string_option_list('view_state', (int) $t_bug->view_state); echo '</select>'; } else { if ($t_show_view_state) { echo $t_view_state; } } echo '</td>';
function ERP_custom_function_print_global_category_option_list($p_sel_value) { // Need to disable allow_no_category for a moment ERP_set_temporary_overwrite('allow_no_category', OFF); // Need to disable inherit projects for one moment. ERP_set_temporary_overwrite('subprojects_inherit_categories', OFF); $t_sel_value = (array) $p_sel_value; print_category_option_list($t_sel_value, ALL_PROJECTS); $t_all_projects = project_get_all_rows(); $t_projects_info = array(); foreach ($t_all_projects as $t_project) { $t_projects_info[$t_project['id']] = $t_project['name']; } natcasesort($t_projects_info); foreach ($t_projects_info as $t_project_id => $t_project_name) { echo '<optgroup label="' . string_attribute($t_project_name) . '">'; print_category_option_list($t_sel_value, (int) $t_project_id); echo '</optgroup>'; } }
print_custom_field_input($t_custom_field_def, $t_bug_id); } else { echo "<select name=\"{$t_form}\">"; switch ($f_action) { case 'COPY': case 'MOVE': print_project_option_list(null, false); break; case 'ASSIGN': print_assign_to_option_list(0, $t_project_id); break; case 'VIEW_STATUS': print_enum_string_option_list('view_state', config_get('default_bug_view_status')); break; case 'UP_CATEGORY': print_category_option_list(); break; case 'UP_TARGET_VERSION': case 'UP_FIXED_IN_VERSION': print_version_option_list('', $t_project_id, VERSION_ALL); break; } # other forms use the same function to display the list if ($t_request > '') { print_enum_string_option_list($t_request, FIXED); } echo '</select>'; } ?> </td> </tr>
<?php echo plugin_lang_get( 'disable' );?></option> </select> </p> </td> </tr> <tr class="row-2"> <th class="category" width="25%"><?php echo lang_get( 'categories' );?></th> <td> <p><label for="keepcategory"><?php echo plugin_lang_get( 'keep_same_category' );?></label> <input type="checkbox" checked="checked" id="keepcategory" name="keepcategory" /></p> <p><?php echo plugin_lang_get( 'fallback_category' );?> <select name="defaultcategory"> <?php print_category_option_list( );?> </select> </p> </td> </tr> <tr> <td colspan="2" class="center"> <input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' )?>" /> </td> </tr> </table> </form>