Ejemplo n.º 1
0
/**
 * print target version field
 * @return void
 */
function print_filter_show_target_version()
{
    global $g_select_modifier, $g_filter;
    ?>
<!-- Fixed in Version -->
		<select<?php 
    echo $g_select_modifier;
    ?>
 name="<?php 
    echo FILTER_PROPERTY_TARGET_VERSION;
    ?>
[]">
			<option value="<?php 
    echo META_FILTER_ANY;
    ?>
"<?php 
    check_selected($g_filter[FILTER_PROPERTY_TARGET_VERSION], (string) META_FILTER_ANY);
    ?>
>[<?php 
    echo lang_get('any');
    ?>
]</option>
			<option value="<?php 
    echo META_FILTER_NONE;
    ?>
"<?php 
    check_selected($g_filter[FILTER_PROPERTY_TARGET_VERSION], (string) META_FILTER_NONE);
    ?>
>[<?php 
    echo lang_get('none');
    ?>
]</option>
			<?php 
    print_version_option_list($g_filter[FILTER_PROPERTY_TARGET_VERSION], null, VERSION_ALL, false, true);
    ?>
		</select>
		<?php 
}
Ejemplo n.º 2
0
if ($t_show_target_version) {
    ?>
	<tr>
		<th class="category">
			<label for="target_version"><?php 
    echo lang_get('target_version');
    ?>
</label>
		</th>
		<td>
			<select <?php 
    echo helper_get_tab_index();
    ?>
 id="target_version" name="target_version">
				<?php 
    print_version_option_list('', null, VERSION_FUTURE);
    ?>
			</select>
		</td>
	</tr>
<?php 
}
event_signal('EVENT_REPORT_BUG_FORM', array($t_project_id));
?>
	<tr>
		<th class="category">
			<span class="required">*</span><label for="summary"><?php 
print_documentation_link('summary');
?>
</label>
		</th>
Ejemplo n.º 3
0
	<tr <?php 
    echo helper_alternate_class();
    ?>
>
		<td class="category">
			<?php 
    echo lang_get('target_version');
    ?>
		</td>
		<td>
			<select <?php 
    echo helper_get_tab_index();
    ?>
 name="target_version">
				<?php 
    print_version_option_list();
    ?>
			</select>
		</td>
	</tr>
<?php 
}
event_signal('EVENT_REPORT_BUG_FORM', array($t_project_id));
?>
	<tr <?php 
echo helper_alternate_class();
?>
>
		<td class="category">
			<span class="required">*</span><?php 
print_documentation_link('summary');
Ejemplo n.º 4
0
<tr <?php 
    echo helper_alternate_class();
    ?>
>
	<td class="category">
		<?php 
    echo lang_get('product_version');
    ?>
	</td>
	<td>
		<select <?php 
    echo helper_get_tab_index();
    ?>
 name="product_version">
			<?php 
    print_version_option_list($f_product_version, $t_project_id, VERSION_RELEASED);
    ?>
		</select>
	</td>
</tr>
<?php 
}
?>

<!-- spacer -->
<tr class="spacer">
	<td colspan="2"></td>
</tr>


<!-- Summary -->
                $t_show_version = ON == config_get('show_product_version') || AUTO == config_get('show_product_version') && count(version_get_all_rows($t_project_id)) > 0;
                if ($t_show_version) {
                    ?>
		<tr class="row-2">
			<td class="category">
				<?php 
                    echo $t_question_title2;
                    ?>
			</td>
			<td>
				<select name="<?php 
                    echo $t_form2;
                    ?>
">
					<?php 
                    print_version_option_list('', null, VERSION_ALL);
                    ?>
				</select>
			</td>
		</tr>
	<?php 
                }
                break;
        }
    }
} else {
    ?>

<tr class="row-1">
	<td class="category" colspan="2">
		<?php 
Ejemplo n.º 6
0
    $t_spacer = 2;
    # Target Version
    if ($t_show_target_version) {
        echo '<th class="category"><label for="target_version">' . lang_get('target_version') . '</label></th>';
        echo '<td><select ' . helper_get_tab_index() . ' id="target_version" name="target_version">';
        print_version_option_list($t_bug->target_version, $t_bug->project_id, VERSION_FUTURE);
        echo '</select></td>';
    } else {
        $t_spacer += 2;
    }
    # Fixed in Version
    if ($t_show_fixed_in_version) {
        echo '<th class="category"><label for="fixed_in_version">' . lang_get('fixed_in_version') . '</label></th>';
        echo '<td>';
        echo '<select ' . helper_get_tab_index() . ' id="fixed_in_version" name="fixed_in_version">';
        print_version_option_list($t_bug->fixed_in_version, $t_bug->project_id, VERSION_ALL);
        echo '</select>';
        echo '</td>';
    } else {
        $t_spacer += 2;
    }
    # spacer
    echo '<td colspan="', $t_spacer, '">&#160;</td>';
    echo '</tr>';
}
event_signal('EVENT_UPDATE_BUG_FORM', array($t_bug_id, true));
# spacer
echo '<tr class="spacer"><td colspan="6"></td></tr>';
echo '<tr class="hidden"></tr>';
# Summary
if ($t_show_summary) {
Ejemplo n.º 7
0
$t_show_version = ON == config_get('show_product_version') || AUTO == config_get('show_product_version') && count(version_get_all_rows($t_bug->project_id)) > 0;
if ($t_show_version) {
    ?>
	<!-- Product Version -->
	<td class="category">
		<?php 
    echo lang_get('product_version');
    ?>
	</td>
	<td>
		<select <?php 
    echo helper_get_tab_index();
    ?>
 name="version">
			<?php 
    print_version_option_list($t_bug->version, $t_bug->project_id, VERSION_RELEASED);
    ?>
		</select>
	</td>
</tr>

<?php 
}
/*
<tr <?php echo helper_alternate_class() ?>>
	<!-- Fixed in Version -->
	<td class="category">
		<?php echo lang_get( 'fixed_in_version' ) ?>
	</td>
	<td colspan="5">
		<select <?php echo helper_get_tab_index() ?> name="fixed_in_version">
        ?>
	<!-- spacer -->
	<td colspan="2">&nbsp;</td>

	<td class="category">
		<?php 
        echo lang_get('target_version');
        ?>
	</td>
	<td>
	<select <?php 
        echo helper_get_tab_index();
        ?>
 name="target_version">
		<?php 
        print_version_option_list($t_bug->target_version, $t_bug->project_id, VERSION_ALL);
        ?>
	</select>
	</td>
<?php 
    } else {
        ?>
	<!-- spacer -->
	<td colspan="4">&nbsp;</td>
<?php 
    }
    ?>
	<!-- Build -->
	<td class="category">
		<?php 
    echo lang_get('build');
Ejemplo n.º 9
0
function print_filter_show_target_version()
{
    global $t_select_modifier, $t_filter;
    ?>
<!-- Fixed in Version -->
		<select <?php 
    print $t_select_modifier;
    ?>
 name="target_version[]">
			<option value="<?php 
    echo META_FILTER_ANY;
    ?>
" <?php 
    check_selected($t_filter['target_version'], META_FILTER_ANY);
    ?>
>[<?php 
    echo lang_get('any');
    ?>
]</option>
			<option value="<?php 
    echo META_FILTER_NONE;
    ?>
" <?php 
    check_selected($t_filter['target_version'], META_FILTER_NONE);
    ?>
>[<?php 
    echo lang_get('none');
    ?>
]</option>
			<?php 
    print_version_option_list($t_filter['target_version'], null, VERSION_ALL, false, true);
    ?>
		</select>
		<?php 
}
Ejemplo n.º 10
0
    if ($t_show_product_version) {
        ?>
<!-- Fixed in Version -->
<tr <?php 
        echo helper_alternate_class();
        ?>
>
	<th class="category">
		<?php 
        echo lang_get('fixed_in_version');
        ?>
	</th>
	<td>
		<select name="fixed_in_version">
			<?php 
        print_version_option_list(bug_get_field($f_bug_id, 'fixed_in_version'), bug_get_field($f_bug_id, 'project_id'), VERSION_ALL);
        ?>
		</select>
	</td>
</tr>
<?php 
    }
}
?>

<?php 
event_signal('EVENT_BUG_CHANGE_STATUS_FORM', array($f_bug_id));
?>

<!-- Bugnote -->
<tr id="bug-change-status-note" <?php 
<td><select name="_type"><?php 
    display_strategies();
    ?>
</select></td>
<?php 
    if (Source_PVM()) {
        ?>
<td><select name="_pvm_version_id"><?php 
        display_pvm_versions();
        ?>
</select></td>
<?php 
    } else {
        ?>
<td><select name="_version"><?php 
        print_version_option_list('', ALL_PROJECTS, false, true, true);
        ?>
</td>
<?php 
    }
    ?>
<td><input name="_regex" size="18" maxlength="128"/></td>
<td></td>
</tr>

<tr>
<td class="center" colspan="5"><input type="submit" value="<?php 
    echo plugin_lang_get('mapping_update');
    ?>
"/></td>
</tr>
Ejemplo n.º 12
0
				<option value="0" selected="selected"></option>
				<?php print_assign_to_option_list( $f_handler_id ) ?>
			</select>
		</td>
	</tr>
<?php } ?>

<?php // Target Version (if permissions allow)
	if ( $tpl_show_target_version ) { ?>
	<tr <?php echo helper_alternate_class() ?>>
		<th class="category">
			<label for="target_version"><?php echo lang_get( 'target_version' ) ?></label>
		</th>
		<td>
			<select <?php echo helper_get_tab_index() ?> id="target_version" name="target_version">
				<?php print_version_option_list() ?>
			</select>
		</td>
	</tr>
<?php } ?>
<?php event_signal( 'EVENT_REPORT_BUG_FORM', array( $t_project_id ) ) ?>
	<tr <?php echo helper_alternate_class() ?>>
		<th class="category">
			<span class="required">*</span><label for="summary"><?php print_documentation_link( 'summary' ) ?></label>
		</th>
		<td>
			<input <?php echo helper_get_tab_index() ?> type="text" id="summary" name="summary" size="105" maxlength="128" value="<?php echo string_attribute( $f_summary ) ?>" />
		</td>
	</tr>
	<tr <?php echo helper_alternate_class() ?>>
		<th class="category">
Ejemplo n.º 13
0
/**
 *  print target version field
 */
function print_filter_show_target_version() {
	global $t_select_modifier, $t_filter;
	?><!-- Fixed in Version -->
		<select<?php echo $t_select_modifier;?> name="<?php echo FILTER_PROPERTY_TARGET_VERSION;?>[]">
			<option value="<?php echo META_FILTER_ANY?>"<?php check_selected( $t_filter[FILTER_PROPERTY_TARGET_VERSION], META_FILTER_ANY );?>>[<?php echo lang_get( 'any' )?>]</option>
			<option value="<?php echo META_FILTER_NONE?>"<?php check_selected( $t_filter[FILTER_PROPERTY_TARGET_VERSION], META_FILTER_NONE );?>>[<?php echo lang_get( 'none' )?>]</option>
			<?php print_version_option_list( $t_filter[FILTER_PROPERTY_TARGET_VERSION], /* projectId */ null, /* released */ VERSION_ALL, /* leadingBlank */ false, /* withSubs */ true )?>
		</select>
		<?php
}