Diff for /cdn/www/bug.html between versions 1.23 and 1.29

version 1.23, 2003/03/03 10:29:59 version 1.29, 2003/03/03 15:47:16
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 = 01; // $project='mozdev'; $project = 'optimoz'; </ul><?php $doNotCapitalise = 1; // $project='mozdev'; $project = 'optimoz'; 
   
   //$hiding_BZ_h4 = 1;
 //$bug_component = array('gesture', 'radial');  //$bug_component = array('gesture', 'radial');
 //$comp_desc = array('Mouse Gestures', 'Radial Context');  //$comp_desc = array('Mouse Gestures', 'Radial Context');
   
Line 21 Line 22
 <?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);  $product   = ucwords($project);
   
   if ( $doNotCapitalise )    if ( $doNotCapitalise )
     $product = $project;      $product = $project;
       
  print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n";  if ( ! $hiding_BZ_h4 )
     print '<h4 id="BZ-h4">Latest bugs filed for ' . $product . "</h4>\n\n";
   
   $id             = "bug_id";    $id             = "bug_id";
   $desc           = "short_desc";    $desc           = "short_desc";
Line 38 Line 41
   $target         = "product";    $target         = "product";
   
   if (!isset($amount))    if (!isset($amount))
    $amount         = 10;    $amount       = 10;
   
   $bug_url        = "http://" . HOST . "/bugs/show_bug.cgi?id=";    $bug_url        = "http://" . HOST . "/bugs/show_bug.cgi?id=";
   
Line 67 Line 70
   
   $row            = mysql_num_rows($my_result);    $row            = mysql_num_rows($my_result);
   
  if ( $k > 1 )  if ( $k > 1 || $hiding_BZ_h4 )
     if ( empty($comp_desc[$j]) )      if ( empty($comp_desc[$j]) )
       print '<h4 class="BZ-component-h4">' . mysql_result($my_result, 0, $component) . "</h4>\n";        print '<h4 class="BZ-component-h4">' . mysql_result($my_result, 0, $component) . "</h4>\n";
     else      else
Line 77 Line 80
   
   print "<thead>\n<tr>\n";    print "<thead>\n<tr>\n";
   print '<th class="BZ-th-bug">Bug #</th>';    print '<th class="BZ-th-bug">Bug #</th>';
 //  print '<th bgcolor="#FF9900">Component</th>' . "\n\n";  
   print '<th class="BZ-th-desc">Description</th>' . "\n\n";    print '<th class="BZ-th-desc">Description</th>' . "\n\n";
   print "</tr>\n</thead>\n";    print "</tr>\n</thead>\n";
   
Line 97 Line 99
     if ($printstrike)      if ($printstrike)
       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 mysql_result($my_result, $i, $component);  
 //    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";
   }    }

Removed from v.1.23  
changed lines
  Added in v.1.29


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