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

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

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