[med-svn] r586 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Thu Oct 4 21:49:56 UTC 2007


Author: hanska-guest
Date: 2007-10-04 21:49:56 +0000 (Thu, 04 Oct 2007)
New Revision: 586

Added:
   trunk/community/website/bugs.html
   trunk/community/website/bugs.php
Removed:
   trunk/community/website/bugs.php
Log:
Uploading first skeleton for bugs
(test commit - Website didn't get updated with Steffen
M?\195?\182ller's commit :s)


Copied: trunk/community/website/bugs.html (from rev 575, trunk/community/website/bugs.php)
===================================================================
--- trunk/community/website/bugs.html	                        (rev 0)
+++ trunk/community/website/bugs.html	2007-10-04 21:49:56 UTC (rev 586)
@@ -0,0 +1,85 @@
+<?php
+require_once("inc/header.inc.php");
+
+$login = "debian-med-packaging at lists.alioth.debian.org";
+
+$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"><?=_("summary")?></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">&nbsp;</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");
+?>

Deleted: trunk/community/website/bugs.php
===================================================================
--- trunk/community/website/bugs.php	2007-10-04 21:29:23 UTC (rev 585)
+++ trunk/community/website/bugs.php	2007-10-04 21:49:56 UTC (rev 586)
@@ -1,85 +0,0 @@
-<?php
-require_once("inc/header.inc.php");
-
-$login = "debian-med-packaging at lists.alioth.debian.org";
-
-$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"><?=_("summary")?></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">&nbsp;</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/bugs.php
===================================================================
--- trunk/community/website/bugs.php	                        (rev 0)
+++ trunk/community/website/bugs.php	2007-10-04 21:49:56 UTC (rev 586)
@@ -0,0 +1,5 @@
+<?php
+require_once("inc/header.inc.php");
+//require_once("bugs.html");
+require_once("inc/footer.inc.php");
+?>




More information about the debian-med-commit mailing list