File:  [mozdev] / cdn / www / linkToolbar / boog.html
Revision 1.26: download - view: text, annotated - select for diffs - revision graph
Fri Feb 4 10:14:36 2005 UTC (14 years, 10 months ago) by cdn
Branches: MAIN
CVS tags: HEAD
restrict components to product

    1: <p><a href="http://downloads.mozdev.org/cdn/linkToolbar/linkToolbar.xpi">Install the Link Toolbar</a>.</p>
    2: 
    3: <p>A <a href="http://extensionroom.mozdev.org/more-info/linktoolbar">useful description</a> is located elsewhere.</p>
    4: 
    5: <ul>
    6: <li><a href="http://bugzilla.mozdev.org/buglist.cgi?product=cdn&amp;component=link%20toolbar">See all Link Toolbar bugs</a></li>
    7: <li><a href="http://bugzilla.mozdev.org/buglist.cgi?product=cdn&amp;component=link%20toolbar&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED">See open Link Toolbar bugs</a></li>
    8: <li><a href="http://bugzilla.mozdev.org/buglist.cgi?product=cdn&amp;component=linkit">See all LinkIt bugs</a></li>
    9: <li><a href="http://bugzilla.mozdev.org/buglist.cgi?product=cdn&amp;component=linkit&amp;bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED">See open LinkIt bugs</a></li>
   10: </ul>
   11: 
   12: 
   13: <p><a name="archives"></a><!-- <?php echo $REQUEST_URI; ?> -->
   14: <a href="<?php echo $d_m_o; echo substr($page, 0, strrpos($page, '/')); ?>" title="#archives">Older versions</a></p>
   15: 
   16: <?php
   17: 
   18: //http://www.mozilla.org/status/2001-10-11.html
   19: //http://www.mozilla.org/releases/mozilla0.9.5/#new
   20: 
   21: //http://www.euronet.nl/~tekelenb/WWW/LINK/
   22: 
   23: $hiding_BZ_h4 = 1;
   24: 
   25: $bug_component = array('link toolbar','linkit');
   26: 
   27: // include(BUGS);
   28: 
   29: // rewritten to suit bugzilla 2.18 branch
   30: 
   31:   if ( ! $hiding_BZ_h4 ) {
   32:     echo '<h4 id="BZ-h4">Latest bugs filed for ';
   33:     if ( $doNotCapitalise ) echo $project;
   34:     else echo ucwords($project);
   35:     echo "</h4>\n\n";
   36:   }
   37: 
   38:   $Latest_bugs_filed = 'Latest bugs filed on ';
   39: 
   40:   if ( $hide_Latest_bugs_filed )
   41:     $Latest_bugs_filed = '';
   42: 
   43:   if (!isset($amount))
   44:     $amount       = 10;
   45: 
   46:   $bug_url        = "http://bugzilla." . HOST . "/show_bug.cgi?id=";
   47: 
   48: require_once(PHP_INC.CONNECT);
   49: 
   50: // port to PEAR :: DB ?
   51: 
   52: require_once 'DB.php';
   53: 
   54: $dsn = "mysql://$user:$password@$host/$database";
   55: 
   56: $q1 =& DB::connect($dsn);
   57: if (DB::isError($q1)) {
   58:   die($q1->getMessage());
   59: }
   60: 
   61: $rq1 = $q1 -> getOne("select id from products where name='$project'");
   62: if (DB::isError($rq1)) {
   63:         die ($rq1->getMessage());
   64: }
   65: 
   66: if($rq1) {
   67: 
   68:  $pID = $rq1;
   69: 
   70:   $k = count($bug_component);
   71: 
   72:   $c_id = array();
   73:   $c_id = '';
   74: 
   75:   $q2 =& DB::connect($dsn);
   76:   if (DB::isError($q2)) {
   77:     die($q2->getMessage());
   78:   }
   79: 
   80:   foreach ($bug_component as $c) {
   81:     $c_id = $q2 -> getOne("select id from components where name='$c' and product_id=$pID");
   82: 
   83:   $rq3 = $q2 -> query("select bug_id, short_desc, resolution, bug_status from bugs
   84:   where component_id = $c_id and product_id = $pID
   85:   ORDER BY bug_id DESC
   86:   LIMIT $amount");
   87: 
   88:   if ( $k > 1 || $hiding_BZ_h4 )
   89:     if ( empty($comp_desc[$j]) )
   90:       print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $c) . "</h4>\n";
   91:     else
   92:       print '<h4 class="BZ-component-h4">' . $Latest_bugs_filed . $comp_desc[$j] . "</h4>\n";
   93: 
   94:  echo '<table class="BZ-table" cellspacing="0" cellpadding="0" border="0">' . "\n";
   95: 
   96:  echo "<thead>\n<tr>\n";
   97:  echo '<th class="BZ-th-bug">Bug #</th>';
   98:  echo '<th class="BZ-th-desc">Description</th>' . "\n\n";
   99:  echo "</tr>\n</thead>\n";
  100: 
  101:  echo "<tbody>\n";
  102: 
  103:  while ($row = $rq3 -> fetchRow(DB_FETCHMODE_OBJECT)) {
  104:   // do stuff
  105: 
  106:     $printstrike = false;
  107:     print "<tr><td>\n";
  108: 
  109:     $bug_id = $row -> bug_id;
  110:     $status = $row -> bug_status;
  111:     $strike =   $row -> resolution;
  112: 
  113:     if ($status == "CLOSED" || $strike == "DUPLICATE" || $strike == "FIXED" ||
  114:         $strike == "WONTFIX" || $strike == "WORKSFORME" || $strike == "INVALID")
  115:       $printstrike = true;
  116:     if ($printstrike)
  117:       print '<span class="BZ-strike" title="' . $status . ' ' . $strike . '">'; // ?
  118:     print "<a href=\"$bug_url$bug_id\">";
  119:     print $bug_id;
  120:     print "</a>";
  121:     if ($printstrike)
  122:       print "</span>";
  123:     print "\n</td>\n<td>\n";
  124:     print htmlspecialchars ($row -> short_desc, ENT_QUOTES);
  125:     print "</td>\n</tr>\n";
  126:  }
  127: 
  128:  if ( ! $rq3 -> numRows() )
  129:   echo '<tr><td colspan="2">No bugs.</td></tr>' . "\n";
  130: 
  131:  $rq3 -> free();
  132: 
  133:  echo "</tbody>\n";
  134:  echo "</table>\n";
  135: 
  136:  }
  137:  
  138: } else {
  139:   echo "\n<p>This project has no bugzilla product.</p>\n";
  140: }
  141: 
  142:  $q2 -> disconnect();
  143:  $q1 -> disconnect();
  144: 
  145: ?>

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