Diff for /cdn/www/bug.html between versions 1.6 and 1.20

version 1.6, 2003/02/28 21:34:37 version 1.20, 2003/03/02 18:03:11
Line 11 Line 11
 <form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find">  <form action="http://mozdev.org/bugs/show_bug.cgi" method="get"><input type="submit" value="Find">
 <input size="6" name="id"></form>  <input size="6" name="id"></form>
 </li>  </li>
</ul><?php $doNotCapitalise = 0; $project = 'optimoz'; ?></ul><?php $doNotCapitalise = 01; $project='mozdev'; $project = 'optimoz'; 
 
 $bug_component = array('gesture', 'radial');
 
 ?>
   
 <?php  <?php
   
Line 24 Line 28
   $res            = "resolution";    $res            = "resolution";
   $table          = "bugs";    $table          = "bugs";
   $target         = "product";    $target         = "product";
  $amount         = 10;  $amount         = 60;
   $bug_url        = "http://mozdev.org/bugs/show_bug.cgi?id=";    $bug_url        = "http://mozdev.org/bugs/show_bug.cgi?id=";
   
   $component      = 'component';          $component      = 'component';      
Line 34 Line 38
   $query          = " SELECT $id, $desc, $component, $res    $query          = " SELECT $id, $desc, $component, $res
                       FROM $table                        FROM $table
                       WHERE $target='$product'                        WHERE $target='$product'
                      GROUP BY $component                      AND $component LIKE '%" . $bug_component[1] . "%'
                       ORDER BY $id DESC                        ORDER BY $id DESC
                       LIMIT $amount                        LIMIT $amount
                     ";                      ";
Line 50 Line 54
   if ( $doNotCapitalise )    if ( $doNotCapitalise )
     $product = $project;      $product = $project;
       
  print '<h4 id="BZ-h4">Latest bugs filed for $product</h4>' . "\n\n";  print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n";
   
  print '<table cellspacing="2" cellpadding="2" border=0>' . "\n";  print '<h4 class="BZ-component-h4">' . mysql_result($my_result, 0, $component) . "</h4>\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">Component</th>' . "\n\n";//  print '<th bgcolor="#FF9900">Component</th>' . "\n\n";
  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 77 Line 83
       print "</strike>";        print "</strike>";
     print "\n</td>\n<td>\n";      print "\n</td>\n<td>\n";
 //    print htmlspecialchars (  mysql_result($my_result, $i, $component),ENT_QUOTES);  //    print htmlspecialchars (  mysql_result($my_result, $i, $component),ENT_QUOTES);
    print mysql_result($my_result, $i, $component);//    print mysql_result($my_result, $i, $component);
    print "\n</td>\n<td>\n";//    print "\n</td>\n<td>\n";
     print htmlspecialchars (  mysql_result($my_result, $i, $desc),ENT_QUOTES);      print htmlspecialchars (  mysql_result($my_result, $i, $desc),ENT_QUOTES);
     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.6  
changed lines
  Added in v.1.20


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