Latest bugs filed for ' . $product . "\n\n"; $Latest_bugs_filed = 'Latest bugs filed on '; if ( $hide_Latest_bugs_filed ) unset($Latest_bugs_filed); $id = "bug_id"; $desc = "short_desc"; $res = "resolution"; $table = "bugs"; $target = "product"; $stat = "bug_status"; if (!isset($amount)) $amount = 10; $bug_url = "http://" . HOST . "/bugs/show_bug.cgi?id="; $component = 'component'; if ( !isset($bug_component) ) $bug_component[0] = ''; $k = count($bug_component); for ($j=0; $j < $k; ++$j) { $query = " SELECT $id, $desc, $component, $res, $stat FROM $table WHERE $target='$product' AND $component LIKE '%" . $bug_component[$j] . "%' ORDER BY $id DESC LIMIT $amount "; $my_result = mysql_query($query, $connect); $e = mysql_error(); if($e) print "ERROR:latest_bugs: $e"; $row = mysql_num_rows($my_result); if ( $k > 1 || $hiding_BZ_h4 ) if ( empty($comp_desc[$j]) ) print '

' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "

\n"; else print '

' . $Latest_bugs_filed . $comp_desc[$j] . "

\n"; print '' . "\n"; print "\n\n"; print ''; print '' . "\n\n"; print "\n\n"; print "\n"; for($i=0; $i<$row; $i++) { $printstrike = false; print "\n\n\n\n"; } print "\n"; print "
Bug #Description
\n"; $bug_id = mysql_result($my_result, $i, $id); $status = mysql_result($my_result, $i, $stat); $strike = mysql_result($my_result, $i, $res); if ($strike == "FIXED" || $strike == "INVALID" || $strike=="DUPLICATE") $printstrike = true; if ($printstrike) print ""; print ""; print $bug_id; print ""; if ($printstrike) print ""; print "\n\n"; print htmlspecialchars ( mysql_result($my_result, $i, $desc),ENT_QUOTES); print "
\n"; } ?>