Example #1
0
    }
    echo '</tr>';
}
#
# Status, Resolution
#
if ($t_show_status || $t_show_resolution) {
    echo '<tr>';
    $t_spacer = 2;
    if ($t_show_status) {
        # Status
        echo '<th class="category"><label for="status">' . lang_get('status') . '</label></th>';
        # choose color based on status
        $status_label = html_get_status_css_class($t_bug->status);
        echo '<td class="' . $status_label . '">';
        print_status_option_list('status', $t_bug->status, access_can_close_bug($t_bug), $t_bug->project_id);
        echo '</td>';
    } else {
        $t_spacer += 2;
    }
    if ($t_show_resolution) {
        # Resolution
        echo '<th class="category"><label for="resolution">' . lang_get('resolution') . '</label></th>';
        echo '<td><select ' . helper_get_tab_index() . ' id="resolution" name="resolution">';
        print_enum_string_option_list('resolution', $t_bug->resolution);
        echo '</select></td>';
    } else {
        $t_spacer += 2;
    }
    # spacer
    if ($t_spacer > 0) {
echo helper_alternate_class();
?>
>

	<!-- Status -->
	<td class="category">
		<?php 
echo lang_get('status');
?>
	</td>
	<td bgcolor="<?php 
echo get_status_color($t_bug->status);
?>
">
		<?php 
print_status_option_list('status', $t_bug->status, $t_bug->reporter_id == auth_get_current_user_id() && ON == config_get('allow_reporter_close'), $t_bug->project_id);
?>
	</td>

	<?php 
# Duplicate Id
# MASC RELATIONSHIP
if (OFF == config_get('enable_relationship')) {
    # Duplicate ID
    echo '<td class="category">', lang_get('duplicate_id'), '&nbsp;</td>';
    echo '<td>';
    echo '<input ', helper_get_tab_index(), ' type="text" name="duplicate_id" value="', $t_bug->duplicate_id, '" maxlength="7" />&nbsp;';
    echo '</td>';
} else {
    # spacer
    echo '<td colspan="2">&nbsp;</td>';