Diff for /cdn/www/bug.html between versions 1.28 and 1.42

version 1.28, 2003/03/03 15:43:38 version 1.42, 2003/03/05 14:05:01
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 = 1; // $project='mozdev'; $project = 'optimoz'; </ul><?php $doNotCapitalise = 1; // $project='mozdev';
   
$hiding_BZ_h4 = 1;//show_source(BUGS);
 
 //$project = 'optimoz'; 
 
 $project = 'www';
 
 //$hide_Latest_bugs_filed = 1;
 //$hiding_BZ_h4 = 1;
 //$bug_component = array('gesture', 'radial');  //$bug_component = array('gesture', 'radial');
 //$comp_desc = array('Mouse Gestures', 'Radial Context');  //$comp_desc = array('Mouse Gestures', 'Radial Context');
   
Line 34  $hiding_BZ_h4 = 1; Line 41  $hiding_BZ_h4 = 1;
   if ( ! $hiding_BZ_h4 )    if ( ! $hiding_BZ_h4 )
     print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n";      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";
     $stat           = "bug_status";
   
   if (!isset($amount))    if (!isset($amount))
     $amount       = 10;      $amount       = 10;
Line 54  $hiding_BZ_h4 = 1; Line 67  $hiding_BZ_h4 = 1;
   
  for ($j=0; $j < $k; ++$j)   for ($j=0; $j < $k; ++$j)
  {   {
  $query          = " SELECT $id, $desc, $component, $res  $query          = " SELECT $id, $desc, $component, $res, $stat
                       FROM $table                        FROM $table
                       WHERE $target='$product'                        WHERE $target='$product'
                       AND $component LIKE '%" . $bug_component[$j] . "%'                        AND $component LIKE '%" . $bug_component[$j] . "%'
Line 72  $hiding_BZ_h4 = 1; Line 85  $hiding_BZ_h4 = 1;
   
   if ( $k > 1 || $hiding_BZ_h4 )    if ( $k > 1 || $hiding_BZ_h4 )
     if ( empty($comp_desc[$j]) )      if ( empty($comp_desc[$j]) )
      print '<h4 class="BZ-component-h4">' . mysql_result($my_result, 0, $component) . "</h4>\n";      print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "</h4>\n";
     else      else
      print '<h4 class="BZ-component-h4">' . $comp_desc[$j] . "</h4>\n";      print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $comp_desc[$j] . "</h4>\n";
   
   print '<table class="BZ-table" cellspacing="2" cellpadding="2" border="0">' . "\n";    print '<table class="BZ-table" cellspacing="2" cellpadding="2" border="0">' . "\n";
   
Line 83  $hiding_BZ_h4 = 1; Line 96  $hiding_BZ_h4 = 1;
   print '<th class="BZ-th-desc">Description</th>' . "\n\n";    print '<th class="BZ-th-desc">Description</th>' . "\n\n";
   print "</tr>\n</thead>\n";    print "</tr>\n</thead>\n";
   
  print "<tbody>\n";  if ($row)
     print "<tbody>\n";
 
   for($i=0; $i<$row; $i++) {    for($i=0; $i<$row; $i++) {
     $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 102  $hiding_BZ_h4 = 1; Line 118  $hiding_BZ_h4 = 1;
     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";
   if ($row)
     print "</tbody>\n";
 
   print "</table>\n";    print "</table>\n";
  }   }
   

Removed from v.1.28  
changed lines
  Added in v.1.42


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>