Diff for /cdn/www/bug.html between versions 1.2 and 1.31

version 1.2, 2003/02/28 14:41:10 version 1.31, 2003/03/03 16:05:12
Line 5 Line 5
 <a href="http://www.mozdev.org/bugs/enter_bug.cgi?product=cdn">new bug</a>  <a href="http://www.mozdev.org/bugs/enter_bug.cgi?product=cdn">new bug</a>
  for cdn   for cdn
 </li>  </li>
<LI>View <A <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> 
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 <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>
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><br>  <li>Search by Bug Number<br><br>
<FORM action=http://mozdev.org/bugs/show_bug.cgi method=get><INPUT type=submit value=Find> <INPUT size=6 <form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find">
name=id></FORM><input size="6" name="id"></form>
 </li>  </li>
</ul><?php $doNotCapitalise = 1; ?></ul><?php $doNotCapitalise = 1; // $project='mozdev';
 
 $project = 'optimoz'; 
 
 //$hide_Latest_bugs_filed = 1;
 //$hiding_BZ_h4 = 1;
 //
 $bug_component = array('gesture', 'radial');
 //
 $comp_desc = array('Mouse Gestures', 'Radial Context');
 
 ?>
   
 <?php  <?php
   
 // $Id$  // $Id$
   // $cvsId: bug.html,v 1.23 2003/03/03 10:29:59 cdn Exp svc$
   
   require(PHP_INC.CONNECT);    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";    $id             = "bug_id";
   $desc           = "short_desc";    $desc           = "short_desc";
   $res            = "resolution";    $res            = "resolution";
   $table          = "bugs";    $table          = "bugs";
   $target         = "product";    $target         = "product";
   $amount         = 10;  
   $bug_url        = "http://mozdev.org/bugs/show_bug.cgi?id=";  
   
  $component      = 'component';        if (!isset($amount))
      $amount       = 10;
  $product        = ucwords($project); 
   $bug_url        = "http://" . HOST . "/bugs/show_bug.cgi?id=";
   
  $query          = " SELECT $id, $desc, $component, $res   $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
                       FROM $table                        FROM $table
                      WHERE $target='$product'                       WHERE $target='$product'
                      ORDER BY $id                       AND $component LIKE '%" . $bug_component[$j] . "%'
                      DESC LIMIT $amount                      ORDER BY $id DESC
                       LIMIT $amount
                     ";                      ";
   
   $my_result      = mysql_query($query, $connect);    $my_result      = mysql_query($query, $connect);
Line 50  name=id></FORM> Line 80  name=id></FORM>
   
   $row            = mysql_num_rows($my_result);    $row            = mysql_num_rows($my_result);
   
  if ( $doNotCapitalise )  if ( $k > 1 || $hiding_BZ_h4 )
    $product = $project;    if ( empty($comp_desc[$j]) )
        print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . mysql_result($my_result, 0, $component) . "</h4>\n";
  print "<h4>Latest bugs filed for $product</h4>\n\n";    else
        print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $comp_desc[$j] . "</h4>\n";
  print "<table cellspacing=\"2\" cellpadding=\"2\" border=0>\n";
    print '<table class="BZ-table" cellspacing="2" cellpadding="2" border="0">' . "\n";
 
   print "<thead>\n<tr>\n";    print "<thead>\n<tr>\n";
  print '<th bgcolor="#990000"><font color="#ffffff">Bug #</font></th>' .  print '<th class="BZ-th-bug">Bug #</th>';
  print '<th bgcolor="#FF9900">Description</th>' . "\n\n";  print '<th class="BZ-th-desc">Description</th>' . "\n\n";
   print "</tr>\n</thead>\n";    print "</tr>\n</thead>\n";
   
   print "<tbody>\n";    print "<tbody>\n";
Line 82  name=id></FORM> Line 113  name=id></FORM>
     print "</td>\n</tr>\n";      print "</td>\n</tr>\n";
   }    }
   print "</tbody>\n";    print "</tbody>\n";
  print "</table>\n\n";  print "</table>\n";
  }
   
 ?>  
   
   ?>

Removed from v.1.2  
changed lines
  Added in v.1.31


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