Annotation of cdn/www/bug.html, revision 1.36

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

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