File:  [mozdev] / cdn / www / bug.html
Revision 1.31: download - view: text, annotated - select for diffs - revision graph
Mon Mar 3 16:05:12 2003 UTC (16 years, 3 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
more trivialities

    1: <h5 class="page-header">Bugs</h5>
    2: 
    3: <ul>
    4: <li>Enter a 
    5: <a href="http://www.mozdev.org/bugs/enter_bug.cgi?product=cdn">new bug</a>
    6:  for cdn
    7: </li>
    8: <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> 
    9: <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>
   10: <li>Search by Bug Number<br><br>
   11: <form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find">
   12: <input size="6" name="id"></form>
   13: </li>
   14: </ul><?php $doNotCapitalise = 1; // $project='mozdev';
   15: 
   16: $project = 'optimoz'; 
   17: 
   18: //$hide_Latest_bugs_filed = 1;
   19: //$hiding_BZ_h4 = 1;
   20: //
   21: $bug_component = array('gesture', 'radial');
   22: //
   23: $comp_desc = array('Mouse Gestures', 'Radial Context');
   24: 
   25: ?>
   26: 
   27: <?php
   28: 
   29: // $Id: bug.html,v 1.31 2003/03/03 16:05:12 cdn Exp $
   30: // $cvsId: bug.html,v 1.23 2003/03/03 10:29:59 cdn Exp svc$
   31: 
   32:   require(PHP_INC.CONNECT);
   33: 
   34:   $product   = ucwords($project);
   35: 
   36:   if ( $doNotCapitalise )
   37:     $product = $project;
   38:   
   39:   if ( ! $hiding_BZ_h4 )
   40:     print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n";
   41: 
   42:   $Latest_bugs_filed = 'Latest bugs filed on ';
   43:   
   44:   if ( $hide_Latest_bugs_filed )
   45:     unset($Latest_bugs_filed);
   46:     
   47:   $id             = "bug_id";
   48:   $desc           = "short_desc";
   49:   $res            = "resolution";
   50:   $table          = "bugs";
   51:   $target         = "product";
   52: 
   53:   if (!isset($amount))
   54:     $amount       = 10;
   55: 
   56:   $bug_url        = "http://" . HOST . "/bugs/show_bug.cgi?id=";
   57: 
   58:   $component      = 'component';
   59: 
   60:   if ( !isset($bug_component) )
   61:     $bug_component[0] = '';
   62: 
   63:   $k = count($bug_component);
   64: 
   65:  for ($j=0; $j < $k; ++$j)
   66:  {
   67:   $query          = " SELECT $id, $desc, $component, $res
   68:                       FROM $table
   69:                       WHERE $target='$product'
   70:                       AND $component LIKE '%" . $bug_component[$j] . "%'
   71:                       ORDER BY $id DESC
   72:                       LIMIT $amount
   73:                     ";
   74: 
   75:   $my_result      = mysql_query($query, $connect);
   76: 
   77:   $e              = mysql_error();
   78:   if($e)
   79:     print  "ERROR:latest_bugs: $e"; 
   80: 
   81:   $row            = mysql_num_rows($my_result);
   82: 
   83:   if ( $k > 1 || $hiding_BZ_h4 )
   84:     if ( empty($comp_desc[$j]) )
   85:       print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "</h4>\n";
   86:     else
   87:       print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $comp_desc[$j] . "</h4>\n";
   88: 
   89:   print '<table class="BZ-table" cellspacing="2" cellpadding="2" border="0">' . "\n";
   90: 
   91:   print "<thead>\n<tr>\n";
   92:   print '<th class="BZ-th-bug">Bug #</th>';
   93:   print '<th class="BZ-th-desc">Description</th>' . "\n\n";
   94:   print "</tr>\n</thead>\n";
   95: 
   96:   print "<tbody>\n";
   97:   for($i=0; $i<$row; $i++) {
   98:     $printstrike = false;
   99:     print "<tr>\n<td>\n";
  100:     $bug_id =  mysql_result($my_result, $i, $id);
  101:     $strike =  mysql_result($my_result, $i, $res);
  102:     if ($strike == "FIXED" || $strike == "INVALID" || $strike=="DUPLICATE")
  103:       $printstrike = true;
  104:     if ($printstrike)
  105:       print "<strike>";
  106:     print "<a href=\"$bug_url$bug_id\">";
  107:     print $bug_id;
  108:     print "</a>";
  109:     if ($printstrike)
  110:       print "</strike>";
  111:     print "\n</td>\n<td>\n";
  112:     print htmlspecialchars (  mysql_result($my_result, $i, $desc),ENT_QUOTES);
  113:     print "</td>\n</tr>\n";
  114:   }
  115:   print "</tbody>\n";
  116:   print "</table>\n";
  117:  }
  118: 
  119: ?>

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