--- cdn/www/bug.html 2003/02/28 14:41:10 1.2 +++ cdn/www/bug.html 2003/03/02 18:49:09 1.21 @@ -5,41 +5,55 @@ new bug for cdn -
  • View all -bugs -
  • See all open -bugs
  • +
  • View all bugs +
  • See all open bugs
  • Search by Bug Number

    -
    +
    +
  • - + Latest bugs filed for ' . $product . "\n\n"; + $id = "bug_id"; $desc = "short_desc"; $res = "resolution"; $table = "bugs"; $target = "product"; - $amount = 10; - $bug_url = "http://mozdev.org/bugs/show_bug.cgi?id="; - $component = 'component'; - - $product = ucwords($project); + if (!isset($amount)) + $amount = 10; - $query = " SELECT $id, $desc, $component, $res + $bug_url = "http://" . HOST . "/bugs/show_bug.cgi?id="; + + $component = 'component'; + + if ( !isset($bug_component) ) + $bug_component[0] = ''; + + for ($j=0; $j < count($bug_component); ++$j) + { + $query = " SELECT $id, $desc, $component, $res FROM $table - WHERE $target='$product' - ORDER BY $id - DESC LIMIT $amount + WHERE $target='$product' + AND $component LIKE '%" . $bug_component[$j] . "%' + ORDER BY $id DESC + LIMIT $amount "; $my_result = mysql_query($query, $connect); @@ -50,16 +64,14 @@ name=id> $row = mysql_num_rows($my_result); - if ( $doNotCapitalise ) - $product = $project; - - print "

    Latest bugs filed for $product

    \n\n"; - - print "\n"; - + print '

    ' . mysql_result($my_result, 0, $component) . "

    \n"; + + print '
    ' . "\n"; + print "\n\n"; - print '' . - print '' . "\n\n"; + print ''; +// print '' . "\n\n"; + print '' . "\n\n"; print "\n\n"; print "\n"; @@ -78,10 +90,14 @@ name=id> if ($printstrike) print ""; print "\n\n\n\n\n"; } print "\n"; - print "
    Bug #DescriptionBug #ComponentDescription
    \n"; +// print htmlspecialchars ( mysql_result($my_result, $i, $component),ENT_QUOTES); +// print mysql_result($my_result, $i, $component); +// print "\n\n"; print htmlspecialchars ( mysql_result($my_result, $i, $desc),ENT_QUOTES); print "
    \n\n"; + print "\n"; + } ?> \ No newline at end of file