cvs: pearweb /public_html account-info.php
| From: | Stig Bakken | Date: | Fri, 28 Dec 2001 03:49:21 +0000 |
| Subject: | cvs: pearweb /public_html account-info.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1717@lists.php.net to get a copy of this message | ||
ssb Thu Dec 27 22:49:21 2001 EDT
Modified files:
/pearweb/public_html account-info.php
Log:
* convert to border-box class, add display of notes
Index: pearweb/public_html/account-info.php
diff -u pearweb/public_html/account-info.php:1.4 pearweb/public_html/account-info.php:1.5
--- pearweb/public_html/account-info.php:1.4 Wed Dec 26 14:54:25 2001
+++ pearweb/public_html/account-info.php Thu Dec 27 22:49:21 2001
@@ -2,7 +2,7 @@
/**
* Details about PEAR accounts
*
- * $Id: account-info.php,v 1.4 2001/12/26 19:54:25 cox Exp $
+ * $Id: account-info.php,v 1.5 2001/12/28 03:49:21 ssb Exp $
*/
/**
@@ -33,52 +33,28 @@
print "<br />\n";
print "<br />\n";
-print "<table border=\"0\" cellspacing=\"1\"
cellpadding=\"5\">\n";
-print " <tr>\n";
-print " <th bgcolor=\"#CCCCCC\">Handle:</th>\n";
-print " <td bgcolor=\"#e8e8e8\">$handle</td>\n";
-print " </tr>\n";
-
-print " <tr>\n";
-print " <th bgcolor=\"#CCCCCC\">Name:</th>\n";
-print " <td
bgcolor=\"#e8e8e8\">".$row['name']."</td>\n";
-print " </tr>\n";
+print "<table border=\"0\" cellspacing=\"4\"
cellpadding=\"0\">\n";
+print "<tr><td valign=\"top\">\n";
+$bb = new BorderBox("Account Details", "100%", "", 2, true);
+$bb->horizHeadRow("Handle:", $handle);
+$bb->horizHeadRow("Name:", $row['name']);
if ($row['showemail'] != 0) {
- print " <tr>\n";
- print " <th bgcolor=\"#CCCCCC\">EMail:</th>\n";
- print " <td bgcolor=\"#e8e8e8\"><a href=\"mailto:".$row['email']."\">".$row['email']."</a></td>\n";
- print " </tr>\n";
+ $bb->horizHeadRow("Email:", $row['email']);
}
-
if ($row['homepage'] != "") {
- print " <tr>\n";
- print " <th bgcolor=\"#CCCCCC\">Homepage:</th>\n";
- print " <td bgcolor=\"#e8e8e8\"><a
href=\"".$row['homepage']."\"
target=\"_blank\">".$row['homepage']."</a></td>\n";
- print " </tr>\n";
-}
-
-print " <tr>\n";
-print " <th bgcolor=\"#CCCCCC\">Registered since:</th>\n";
-print " <td
bgcolor=\"#e8e8e8\">".$row['created']."</td>\n";
-print " </tr>\n";
-
-print " <tr>\n";
-print " <th bgcolor=\"#CCCCCC\">Additional information:</th>\n";
-print " <td
bgcolor=\"#e8e8e8\">".$row['userinfo']." </td>\n";
-print " </tr>\n";
-
-print " <tr>\n";
-print " <th valign=\"top\" bgcolor=\"#cccccc\">CVS
Access:</th>\n";
-print " <td bgcolor=\"#e8e8e8\">".implode("<br />",
$access)."</td>\n";
-print " </tr>\n";
+ $bb->horizHeadRow("Homepage:",
+ "<a href=\"$row[homepage]\" target=\"_blank\">".
+ "$row[homepage]</a></td>\n");
+}
+
+$bb->horizHeadRow("Registered since:", $row['created']);
+$bb->horizHeadRow("Additional information:", $row['userinfo']);
+$bb->horizHeadRow("CVS Access:", implode("<br />", $access));
if ($row['admin'] == 1) {
- print " <tr>\n";
- print " <td colspan=\"2\"
bgcolor=\"#e8e8e8\">".$row['name']." is a PEAR
administrator.</td>\n";
- print " </tr>\n";
+ $bb->fullRow("$row[name] is a PEAR administrator.");
}
-print "</table>\n";
$query = "SELECT p.id, p.name, m.role
FROM packages p, maintains m
@@ -92,26 +68,28 @@
DB::raiseError("query failed: ".$sth->message);
}
-if ($sth->numRows() > 0) {
- print "<br /><br />\n";
- print "<table border=\"0\" cellspacing=\"1\"
cellpadding=\"5\">\n";
- print " <tr>\n";
- print " <th colspan=\"2\" bgcolor=\"#e8e8e8\">Maintaining the
following packages:</td>";
- print " </tr>\n<tr><th bgcolor=\"#e8e8e8\">Package
Name</th>";
- print "<th bgcolor=\"#e8e8e8\">Role</th></tr>\n";
+$bb->end();
+print "</td><td valign=\"top\">\n";
+
+$bb = new BorderBox("Maintaining These Packages:", "100%", "", 2,
true);
+
+if ($sth->numRows() > 0) {
+ $bb->headRow("Package Name", "Role");
while (is_array($row = $sth->fetchRow())) {
- print " <tr>\n";
- print " <td bgcolor=\"#e8e8e8\">";
- print " <a
href=\"pkginfo.php?pacid={$row['id']}\">{$row['name']}</a>";
- print " </td>\n";
- print " <td bgcolor=\"#e8e8e8\"
align=\"center\">{$row['role']}";
- print " </td>\n";
- print " </tr>\n";
+ $bb->plainRow("<a
href=\"pkginfo.php?pacid=$row[id]\">$row[name]</a>",
+ $row['role']);
}
-
- print "</table>";
}
+
+$bb->end();
+
+print "<br />\n";
+
+display_user_notes($handle, "100%");
+
+print "</td></tr></table>\n";
+
response_footer();
?>