コード例 #1
0
ファイル: filter_api.php プロジェクト: vipjaven/mantisbt
/**
 * print relationship fields
 * @return void
 */
function print_filter_relationship_type()
{
    global $g_filter;
    $c_reltype_value = $g_filter[FILTER_PROPERTY_RELATIONSHIP_TYPE];
    if (!$c_reltype_value) {
        $c_reltype_value = -1;
    }
    relationship_list_box($c_reltype_value, 'relationship_type', true);
    echo '<input type="text" name="', FILTER_PROPERTY_RELATIONSHIP_BUG, '" size="5" maxlength="10" value="', $g_filter[FILTER_PROPERTY_RELATIONSHIP_BUG], '" />';
}
コード例 #2
0
		</td>
	</tr>
<?php 
}
# Relationship (in case of cloned bug creation...)
if ($f_master_bug_id > 0) {
    ?>
	<tr>
		<th class="category">
			<?php 
    echo lang_get('relationship_with_parent');
    ?>
		</th>
		<td>
			<?php 
    relationship_list_box(config_get('default_bug_relationship_clone'), 'rel_type', false, true);
    ?>
			<?php 
    echo '<strong>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</strong>';
    ?>
		</td>
	</tr>

	<tr>
		<td class="category">
			<?php 
    echo lang_get('copy_from_parent');
    ?>
		</td>
		<td>
			<label><input <?php 
コード例 #3
0
/**
 * print HTML relationship form
 * @param integer $p_bug_id A bug identifier.
 * @return void
 */
function relationship_view_box($p_bug_id)
{
    ?>
<br/>

<?php 
    collapse_open('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr class="row-2">
	<td width="15%" class="form-title" colspan="2">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    if (ON == config_get('relationship_graph_enable')) {
        ?>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=relation', lang_get('relation_graph'));
        ?>
</span>
		<span class="small"><?php 
        print_bracket_link('bug_relationship_graph.php?bug_id=' . $p_bug_id . '&graph=dependency', lang_get('dependency_graph'));
        ?>
</span>
		<?php 
    }
    ?>
	</td>
</tr>
<?php 
    # bug not read-only and user authenticated
    if (!bug_is_readonly($p_bug_id)) {
        # user access level at least updater
        if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) {
            ?>
<tr class="row-1">
	<th class="category"><?php 
            echo lang_get('add_new_relationship');
            ?>
</th>
	<td><?php 
            echo lang_get('this_bug');
            ?>
		<form method="post" action="bug_relationship_add.php">
		<?php 
            echo form_security_field('bug_relationship_add');
            ?>
		<input type="hidden" name="src_bug_id" value="<?php 
            echo $p_bug_id;
            ?>
" size="4" />
		<?php 
            relationship_list_box(config_get('default_bug_relationship'));
            ?>
		<input type="text" name="dest_bug_id" value="" />
		<input type="submit" name="add_relationship" class="button" value="<?php 
            echo lang_get('add_new_relationship_button');
            ?>
" />
		</form>
	</td></tr>
<?php 
        }
    }
    ?>
<tr>
	<td colspan="2"><?php 
    echo relationship_get_summary_html($p_bug_id);
    ?>
</td>
</tr>
</table>

<?php 
    collapse_closed('relationships');
    ?>
<table class="width100" cellspacing="1">
<tr>
	<td class="form-title">
		<?php 
    collapse_icon('relationships');
    echo lang_get('bug_relationships');
    ?>
	</td>
</tr>
</table>

<?php 
    collapse_end('relationships');
}
コード例 #4
0
<!-- Relationship (in case of cloned bug creation...) -->
<?php 
if ($f_master_bug_id > 0) {
    ?>
<tr <?php 
    echo helper_alternate_class();
    ?>
>
	<td class="category">
		<?php 
    echo lang_get('relationship_with_parent');
    ?>
	</td>
	<td>
		<?php 
    relationship_list_box(-2, "rel_type", false, true);
    ?>
		<?php 
    print '<b>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</b>';
    ?>
	</td>
</tr>
<?php 
}
?>

<!-- Report Stay (report more bugs) -->
<tr <?php 
echo helper_alternate_class();
?>
>
コード例 #5
0
<!-- Relationship (in case of cloned bug creation...) -->
<?php 
if ($f_master_bug_id > 0) {
    ?>
<tr <?php 
    echo helper_alternate_class();
    ?>
>
	<td class="category">
		<?php 
    echo lang_get('relationship_with_parent');
    ?>
	</td>
	<td>
		<?php 
    relationship_list_box(BUG_BLOCKS);
    ?>
		<?php 
    print '<b>' . lang_get('bug') . ' ' . bug_format_id($f_master_bug_id) . '</b>';
    ?>
	</td>
</tr>
<?php 
}
?>

<!-- Report Stay (report more bugs) -->
<tr <?php 
echo helper_alternate_class();
?>
>
コード例 #6
0
ファイル: filter_api.php プロジェクト: amjadtbssm/website
function print_filter_relationship_type()
{
    global $t_filter;
    $c_reltype_value = $t_filter['relationship_type'];
    if (!$c_reltype_value) {
        $c_reltype_value = -1;
    }
    relationship_list_box($c_reltype_value, "relationship_type", true);
    ?>
		<input type="text" name="relationship_bug" size="5" maxlength="10" value="<?php 
    echo $t_filter['relationship_bug'];
    ?>
" />
		<?php 
}
コード例 #7
0
ファイル: bug_report_page.php プロジェクト: rombert/mantisbt
		<td>
			<label><input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PUBLIC ?>" <?php check_checked( $f_view_state, VS_PUBLIC ) ?> /> <?php echo lang_get( 'public' ) ?></label>
			<label><input <?php echo helper_get_tab_index() ?> type="radio" name="view_state" value="<?php echo VS_PRIVATE ?>" <?php check_checked( $f_view_state, VS_PRIVATE ) ?> /> <?php echo lang_get( 'private' ) ?></label>
		</td>
	</tr>
	<?php
	}
	//Relationship (in case of cloned bug creation...)
	if( $f_master_bug_id > 0 ) {
?>
	<tr <?php echo helper_alternate_class() ?>>
		<th class="category">
			<?php echo lang_get( 'relationship_with_parent' ) ?>
		</th>
		<td>
			<?php relationship_list_box( /* none */ -2, "rel_type", false, true ) ?>
			<?php echo '<strong>' . lang_get( 'bug' ) . ' ' . bug_format_id( $f_master_bug_id ) . '</strong>' ?>
		</td>
	</tr>

	<tr <?php echo helper_alternate_class() ?>>
		<td class="category">
			<?php echo lang_get( 'copy_from_parent' ) ?>
		</td>
		<td>
			<label><input <?php echo helper_get_tab_index() ?> type="checkbox" id="copy_notes_from_parent" name="copy_notes_from_parent" <?php check_checked( $f_copy_notes_from_parent ) ?> /> <?php echo lang_get( 'copy_notes_from_parent' ) ?></label>
			<label><input <?php echo helper_get_tab_index() ?> type="checkbox" id="copy_attachments_from_parent" name="copy_attachments_from_parent" <?php check_checked( $f_copy_attachments_from_parent ) ?> /> <?php echo lang_get( 'copy_attachments_from_parent' ) ?></label>
		</td>
	</tr>
<?php
	}