/
bug_view_inc.php
179 lines (176 loc) · 4.23 KB
/
bug_view_inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Revision: 1.2 $
# $Author: jfitzell $
# $Date: 2002-10-20 23:59:48 $
#
# $Id: bug_view_inc.php,v 1.2 2002-10-20 23:59:48 jfitzell Exp $
# --------------------------------------------------------
?>
<?php
# This include file prints out the bug information
# $f_bug_id MUST be specified before the file is included
?>
<?php
$c_bug_id = (integer)$f_bug_id;
$query ="SELECT *, UNIX_TIMESTAMP(date_submitted) as date_submitted, ".
"UNIX_TIMESTAMP(last_updated) as last_updated ".
"FROM $g_mantis_bug_table ".
"WHERE id='$c_bug_id' ".
"LIMIT 1";
$result = db_query( $query );
$row = db_fetch_array( $result );
extract( $row, EXTR_PREFIX_ALL, 'v' );
$query ="SELECT * ".
"FROM $g_mantis_bug_text_table ".
"WHERE id='$v_bug_text_id' ".
"LIMIT 1";
$result = db_query( $query );
$row = db_fetch_array( $result );
extract( $row, EXTR_PREFIX_ALL, 'v2' );
$v_os = string_display( $v_os );
$v_os_build = string_display( $v_os_build );
$v_platform = string_display( $v_platform );
$v_version = string_display( $v_version );
$v_summary = string_display( $v_summary );
$v2_description = string_display( $v2_description );
$v2_steps_to_reproduce = string_display( $v2_steps_to_reproduce );
$v2_additional_information = string_display( $v2_additional_information );
?>
<br />
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="6">
<?php echo $s_viewing_bug_simple_details_title ?>
</td>
</tr>
<tr>
<td class="category" width="15%">
<?php echo $s_id ?>
</td>
<td class="category" width="20%">
<?php echo $s_category ?>
</td>
<td class="category" width="15%">
<?php echo $s_severity ?>
</td>
<td class="category" width="20%">
<?php echo $s_reproducibility ?>
</td>
<td class="category" width="15%">
<?php echo $s_date_submitted ?>
</td>
<td class="category" width="15%">
<?php echo $s_last_update ?>
</td>
</tr>
<tr class="row-2">
<td>
<?php echo $v_id ?>
</td>
<td>
<?php echo $v_category ?>
</td>
<td>
<?php echo get_enum_element( 'severity', $v_severity ) ?>
</td>
<td>
<?php echo get_enum_element( 'reproducibility', $v_reproducibility ) ?>
</td>
<td>
<?php print_date( config_get( 'normal_date_format' ), $v_date_submitted ) ?>
</td>
<td>
<?php print_date( config_get( 'normal_date_format' ), $v_last_updated ) ?>
</td>
</tr>
<tr height="5" class="spacer">
<td colspan="6">
</td>
</tr>
<tr class="row-1">
<td class="category">
<?php echo $s_reporter ?>
</td>
<td colspan="5">
<?php print_user( $v_reporter_id ) ?>
</td>
</tr>
<tr class="row-2">
<td class="category">
<?php echo $s_assigned_to ?>
</td>
<td colspan="5">
<?php print_user( $v_handler_id ) ?>
</td>
</tr>
<tr class="row-1">
<td class="category">
<?php echo $s_priority ?>
</td>
<td>
<?php echo get_enum_element( 'priority', $v_priority ) ?>
</td>
<td class="category">
<?php echo $s_resolution ?>
</td>
<td>
<?php echo get_enum_element( 'resolution', $v_resolution ) ?>
</td>
<td colspan="2">
</td>
</tr>
<tr class="row-2">
<td class="category">
<?php echo $s_status ?>
</td>
<td bgcolor="<?php echo get_status_color( $v_status ) ?>">
<?php echo get_enum_element( 'status', $v_status ) ?>
</td>
<td class="category">
<?php echo $s_duplicate_id ?>
</td>
<td>
<?php print_duplicate_id( $v_duplicate_id ) ?>
</td>
<td colspan="2">
</td>
</tr>
<tr height="5" class="spacer">
<td colspan="6">
</td>
</tr>
<tr class="row-1">
<td class="category">
<?php echo $s_summary ?>
</td>
<td colspan="5">
<?php echo $v_summary ?>
</td>
</tr>
<tr class="row-2">
<td class="category">
<?php echo $s_description ?>
</td>
<td colspan="5">
<?php echo $v2_description ?>
</td>
</tr>
<tr class="row-1">
<td class="category">
<?php echo $s_additional_information ?>
</td>
<td colspan="5">
<?php echo $v2_additional_information ?>
</td>
</tr>
</table>