[med-svn] r553 - in trunk/community/website: . img inc
hanska-guest at alioth.debian.org
hanska-guest at alioth.debian.org
Thu Oct 4 14:52:20 UTC 2007
Author: hanska-guest
Date: 2007-10-04 14:52:19 +0000 (Thu, 04 Oct 2007)
New Revision: 553
Added:
trunk/community/website/bugs.php
trunk/community/website/img/yellow.png
Modified:
trunk/community/website/inc/parser.inc.php
trunk/community/website/index.php
Log:
Added bugs.php
New icon added
Improvements to parser.inc.php
Added "pages" section + TODO list edited
Added: trunk/community/website/bugs.php
===================================================================
--- trunk/community/website/bugs.php (rev 0)
+++ trunk/community/website/bugs.php 2007-10-04 14:52:19 UTC (rev 553)
@@ -0,0 +1,87 @@
+<?php
+require_once("inc/header.inc.php");
+//require_once("inc/parser.inc.php");
+
+$login = "debian-med-packaging at lists.alioth.debian.org";
+//$url = "http://qa.debian.org/developer.php?login=$login";
+
+$soapUrl = "http://bugs.debian.org/cgi-bin/soap.cgi";
+$nameSpace = "Debbugs/SOAP";
+
+$soap = new SoapClient(null, array('location' => $soapUrl,
+ 'uri' => $nameSpace));
+
+$package = ($_GET["pkg"]) ? $_GET["pkg"] : "all";
+
+$bugs = array();
+
+if ($package == "all") {
+ $bug_numbers = $soap->get_bugs("maint", $login);
+} else {
+ $bug_numbers = $soap->get_bugs("package", $package);
+}
+
+$count = count($bug_numbers);
+
+foreach($bug_numbers as $index => $number) {
+ $info = $soap->get_status($number);
+ $info = $info[$number];
+ $bugs[$info->package][$number]["severity"] = $info->severity;
+ $bugs[$info->package][$number]["tags"] = ($info->tags) ? $info->tags : "";
+ $bugs[$info->package][$number]["date"] = date("r", $info->date);
+ $bugs[$info->package][$number]["submitter"] = $info->originator;
+}
+
+ksort($bugs);
+
+//print_r($info);
+//print_r($bugs);
+?>
+<table class="columns">
+<tr>
+ <td class="left">
+ <span class="section">envelope</span>
+ <div class="section">
+ <div class="sectionTop"></div>
+ <div class="row">
+ Bugs for package:
+ <strong><?=$package?></strong>
+ </div>
+ <div class="row">
+ Total bugs:
+ <strong><?=$count?></strong>
+ </div>
+ </div>
+ </td>
+ <td class="main">
+ <div class="pageBody">
+ <h1>Bugs for package "<?=$package?>"</h1>
+ <table class="messageHeaders">
+ <?php
+ foreach($bugs as $package => $bug) {
+ ?>
+ <tr>
+ <td class="name"><?=$package?>:</td>
+ <td class="value"> </td>
+ </tr>
+ <?php
+ foreach($bug as $key => $value) {
+ ?>
+ <tr>
+ <td class="value" colspan="2"><?=$key?></td>
+ </tr>
+ <?php
+ }
+ }
+ ?>
+ </table>
+ <div class="messageBody">
+ <?php//$info["log"]?>
+ </div>
+ </div>
+ </td>
+</tr>
+</table>
+<?php
+require_once("inc/footer.inc.php");
+?>
Added: trunk/community/website/img/yellow.png
===================================================================
(Binary files differ)
Property changes on: trunk/community/website/img/yellow.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/community/website/inc/parser.inc.php
===================================================================
--- trunk/community/website/inc/parser.inc.php 2007-10-04 07:36:40 UTC (rev 552)
+++ trunk/community/website/inc/parser.inc.php 2007-10-04 14:52:19 UTC (rev 553)
@@ -2,18 +2,25 @@
require_once("table-parser.inc.php");
-function ParseMembersTable($project_id) {
- $url = "http://alioth.debian.org/project/memberlist.php?group_id=".$project_id;
+function retrieveData($url) {
$fp = fopen($url, "r");
if ($fp) {
while (!feof($fp)) {
- $page .= fgets($fp, 4096);
+ $data .= fgets($fp, 4096);
}
fclose($fp);
} else {
echo "Cannot open $url.\n";
}
+
+ return $data;
+}
+function ParseMembersTable($project_id) {
+ $url = "http://alioth.debian.org/project/memberlist.php?group_id=".$project_id;
+
+ $page = retrieveData($url);
+
/* We now need to extract our table from the mess of the page.
* We're looking for:
* <table width="100%" border="0" cellspacing="1" cellpadding="2">
@@ -50,5 +57,4 @@
}
return $members;
}
-
?>
Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php 2007-10-04 07:36:40 UTC (rev 552)
+++ trunk/community/website/index.php 2007-10-04 14:52:19 UTC (rev 553)
@@ -65,6 +65,16 @@
</table>
</div>
</div>
+ <span class="section">pages</span>
+ <div class="section">
+ <div class="sectionTop"></div>
+ <div class="row">
+ <ul>
+ <li><a href="/bugs.php">Bugs Page</a></li>
+ <li>…</li>
+ </ul>
+ </div>
+ </div>
<span class="section">UTC time</span>
<div class="section">
<div class="sectionTop"></div>
@@ -130,7 +140,7 @@
<a href="http://alioth.debian.org/project/memberlist.php?group_id=30063">
http://alioth.debian.org/project/memberlist.php?group_id=30063</a> — it also has links to
personal pages and usernames!</del></li>
- <li>bugs retrieval from Debian BTS;</li>
+ <li>bugs retrieval from Debian BTS;<img src="/img/yellow.png" alt="In progress" title="In progress" /></li>
<li>…</li>
</ul>
</div>
More information about the debian-med-commit
mailing list