version 1.18, 2003/03/02 16:12:39
|
version 1.41, 2003/03/05 13:57:37
|
Line 11
|
Line 11
|
<form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find"> |
<form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find"> |
<input size="6" name="id"></form> |
<input size="6" name="id"></form> |
</li> |
</li> |
</ul><?php $doNotCapitalise = 01; $project='mozdev'; $project = 'optimoz'; | </ul><?php $doNotCapitalise = 1; // $project='mozdev'; |
|
|
$bug_component = array('gestures', 'radial'); | //show_source(BUGS); |
| |
| //$project = 'optimoz'; |
| |
| //$hide_Latest_bugs_filed = 1; |
| //$hiding_BZ_h4 = 1; |
| //$bug_component = array('gesture', 'radial'); |
| //$comp_desc = array('Mouse Gestures', 'Radial Context'); |
|
|
?> |
?> |
|
|
<?php |
<?php |
|
|
// $Id$ |
// $Id$ |
|
// $cvsId: bug.html,v 1.23 2003/03/03 10:29:59 cdn Exp svc$ |
|
|
require(PHP_INC.CONNECT); |
require(PHP_INC.CONNECT); |
|
|
|
$product = ucwords($project); |
|
|
|
if ( $doNotCapitalise ) |
|
$product = $project; |
|
|
|
if ( ! $hiding_BZ_h4 ) |
|
print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n"; |
|
|
|
$Latest_bugs_filed = 'Latest bugs filed on '; |
|
|
|
if ( $hide_Latest_bugs_filed ) |
|
unset($Latest_bugs_filed); |
|
|
$id = "bug_id"; |
$id = "bug_id"; |
$desc = "short_desc"; |
$desc = "short_desc"; |
$res = "resolution"; |
$res = "resolution"; |
$table = "bugs"; |
$table = "bugs"; |
$target = "product"; |
$target = "product"; |
$amount = 60; | $stat = "bug_status"; |
$bug_url = "http://mozdev.org/bugs/show_bug.cgi?id="; | |
|
|
| if (!isset($amount)) |
| $amount = 10; |
$product = ucwords($project); | |
|
|
$query = " SELECT $id, $desc, $component, $res | $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 |
FROM $table |
WHERE $target='$product' |
WHERE $target='$product' |
AND $component='%" . $bug_component[1] . "%' | AND $component LIKE '%" . $bug_component[$j] . "%' |
ORDER BY $id DESC |
ORDER BY $id DESC |
LIMIT $amount |
LIMIT $amount |
"; |
"; |
Line 51 $bug_component = array('gestures', 'radi
|
Line 81 $bug_component = array('gestures', 'radi
|
|
|
$row = mysql_num_rows($my_result); |
$row = mysql_num_rows($my_result); |
|
|
if ( $doNotCapitalise ) | if ( $k > 1 || $hiding_BZ_h4 ) |
$product = $project; | if ( empty($comp_desc[$j]) ) |
| print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "</h4>\n"; |
print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n"; | else |
| print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $comp_desc[$j] . "</h4>\n"; |
|
|
print '<table cellspacing="2" cellpadding="2" border=0>' . "\n"; | print '<table class="BZ-table" cellspacing="2" cellpadding="2" border="0">' . "\n"; |
|
|
print "<thead>\n<tr>\n"; |
print "<thead>\n<tr>\n"; |
print '<th bgcolor="#990000"><font color="#ffffff">Bug #</font></th>'; | print '<th class="BZ-th-bug">Bug #</th>'; |
print '<th bgcolor="#FF9900">Component</th>' . "\n\n"; | print '<th class="BZ-th-desc">Description</th>' . "\n\n"; |
print '<th bgcolor="#FF9900">Description</th>' . "\n\n"; | |
print "</tr>\n</thead>\n"; |
print "</tr>\n</thead>\n"; |
|
|
print "<tbody>\n"; |
print "<tbody>\n"; |
Line 69 $bug_component = array('gestures', 'radi
|
Line 99 $bug_component = array('gestures', 'radi
|
$printstrike = false; |
$printstrike = false; |
print "<tr>\n<td>\n"; |
print "<tr>\n<td>\n"; |
$bug_id = mysql_result($my_result, $i, $id); |
$bug_id = mysql_result($my_result, $i, $id); |
|
$status = mysql_result($my_result, $i, $stat); |
$strike = mysql_result($my_result, $i, $res); |
$strike = mysql_result($my_result, $i, $res); |
if ($strike == "FIXED" || $strike == "INVALID" || $strike=="DUPLICATE") | if ($status=="CLOSED" || $strike=="DUPLICATE" || $strike == "FIXED" || $strike == "INVALID") |
$printstrike = true; |
$printstrike = true; |
if ($printstrike) |
if ($printstrike) |
print "<strike>"; |
print "<strike>"; |
Line 80 $bug_component = array('gestures', 'radi
|
Line 111 $bug_component = array('gestures', 'radi
|
if ($printstrike) |
if ($printstrike) |
print "</strike>"; |
print "</strike>"; |
print "\n</td>\n<td>\n"; |
print "\n</td>\n<td>\n"; |
// print htmlspecialchars ( mysql_result($my_result, $i, $component),ENT_QUOTES); |
|
print mysql_result($my_result, $i, $component); |
|
print "\n</td>\n<td>\n"; |
|
print htmlspecialchars ( mysql_result($my_result, $i, $desc),ENT_QUOTES); |
print htmlspecialchars ( mysql_result($my_result, $i, $desc),ENT_QUOTES); |
print "</td>\n</tr>\n"; |
print "</td>\n</tr>\n"; |
} |
} |
print "</tbody>\n"; |
print "</tbody>\n"; |
print "</table>\n\n"; | print "</table>\n"; |
| } |
|
|
?> |
?> |