File:  [mozdev] / cdn / www / bug.html
Revision 1.33: download - view: text, annotated - select for diffs - revision graph
Wed Mar 5 09:57:16 2003 UTC (16 years, 2 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
...

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

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