File:  [mozdev] / cdn / www / bug.html
Revision 1.47: download - view: text, annotated - select for diffs - revision graph
Wed Mar 12 11:32:45 2003 UTC (14 years, 7 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
cdn/www/bug.html

<h5 class="page-header">Bugs</h5>

<ul>
<li>Enter a 
<a href="http://www.mozdev.org/bugs/enter_bug.cgi?product=cdn">new bug</a>
 for cdn
</li>
<li>View <a href="http://mozdev.org/bugs/buglist.cgi?email1=&amp;emailtype1=substring&amp;emailassigned_to1=1&amp;email2=&amp;emailtype2=substring&amp;emailreporter2=1&amp;bugidtype=include&amp;bug_id=&amp;changedin=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;product=cdn&amp;short_desc=&amp;short_desc_type=allwordssubstr&amp;long_desc=&amp;long_desc_type=allwordssubstr&amp;bug_file_loc=&amp;bug_file_loc_type=allwordssubstr&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=&amp;cmdtype=doit&amp;order=Bug+Number">all bugs</a> 
<li>See all <a href="http://mozdev.org/bugs/buglist.cgi?bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED&amp;email1=&amp;emailtype1=substring&amp;emailassigned_to1=1&amp;email2=&amp;emailtype2=substring&amp;emailreporter2=1&amp;bugidtype=include&amp;bug_id=&amp;changedin=&amp;votes=&amp;chfieldfrom=&amp;chfieldto=Now&amp;chfieldvalue=&amp;product=cdn&amp;short_desc=&amp;short_desc_type=allwordssubstr&amp;long_desc=&amp;long_desc_type=allwordssubstr&amp;bug_file_loc=&amp;bug_file_loc_type=allwordssubstr&amp;field0-0-0=noop&amp;type0-0-0=noop&amp;value0-0-0=&amp;cmdtype=doit&amp;order=Bug+Number">open bugs</a></li>
<li>Search by Bug Number<br>
<form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><p><input type="submit" value="Find">
<input size="6" name="id"></p></form>
</li>
</ul><?php $doNotCapitalise = 1; // $project='mozdev';

//show_source(BUGS);

//$project = 'optimoz'; 

//$project = 'www';

//$hide_Latest_bugs_filed = 1;
//$hiding_BZ_h4 = 1;
//$bug_component = array('gesture', 'radial');
//$comp_desc = array('Mouse Gestures', 'Radial Context');

include(MEMBERS);

?>

<?php

// $Id: bug.html,v 1.47 2003/03/12 11:32:45 cdn Exp $
// $cvsId: bug.html,v 1.23 2003/03/03 10:29:59 cdn Exp svc$

  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";
  $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 '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "</h4>\n";
    else
      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 "<thead>\n<tr>\n";
  print '<th class="BZ-th-bug">Bug #</th>';
  print '<th class="BZ-th-desc">Description</th>' . "\n\n";
  print "</tr>\n</thead>\n";

  print "<tbody>\n";
  for($i=0; $i<$row; $i++) {
    $printstrike = false;
    print "<tr>\n<td>\n";
    $bug_id =  mysql_result($my_result, $i, $id);
    $status =  mysql_result($my_result, $i, $stat);
    $strike =  mysql_result($my_result, $i, $res);
    if ($status=="CLOSED" || $strike=="DUPLICATE" || $strike == "FIXED" || $strike == "INVALID")
      $printstrike = true;
    if ($printstrike)
      print '<span class="BZ-strike">';
    print "<a href=\"$bug_url$bug_id\">";
    print $bug_id;
    print "</a>";
    if ($printstrike)
      print "</span>";
    print "\n</td>\n<td>\n";
    print htmlspecialchars (  mysql_result($my_result, $i, $desc),ENT_QUOTES);
    print "</td>\n</tr>\n";
  }

  if ( ! $row )
    print "<tr><td></td><td></td></tr>\n";

  print "</tbody>\n";
  print "</table>\n";
 }

?>

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