cvs: pearweb /public_html authors.php detail-author.php

From: Date: Sat, 01 Sep 2001 15:58:08 +0000
Subject: cvs: pearweb /public_html authors.php detail-author.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-729@lists.php.net to get a copy of this message
mj Sat Sep 1 11:58:08 2001 EDT Added files: /pearweb/public_html detail-author.php Modified files: /pearweb/public_html authors.php Log: * added information page for authors Index: pearweb/public_html/authors.php diff -u pearweb/public_html/authors.php:1.6 pearweb/public_html/authors.php:1.7 --- pearweb/public_html/authors.php:1.6 Wed Aug 15 09:52:46 2001 +++ pearweb/public_html/authors.php Sat Sep 1 11:58:08 2001 @@ -41,7 +41,8 @@ } print " <TD><A HREF=\"$homepage\">$homepage</A></TD>\n"; - print " <TD><A HREF=\"edit-author.php?handle=".$row['handle']."\">[edit]</A></TD>\n"; + print " <TD><A HREF=\"edit-author.php?handle=".$row['handle']."\">[edit]</A>&nbsp; + <A HREF=\"detail-author.php?handle=".$row['handle']."\">[details]</A></TD>\n"; print " </TR>\n"; } Index: pearweb/public_html/detail-author.php +++ pearweb/public_html/detail-author.php <?php response_header("Author information"); $sth = $dbh->query("SELECT * FROM users WHERE registered = 1 AND handle = '".$HTTP_GET_VARS['handle']."'"); if (DB::isError($sth)) { DB::raiseError(); } if ($sth->numRows() == 0) { PEAR::raiseError("No author information found!"); } print "<H1>Information about author \"".$HTTP_GET_VARS['handle']."\"</H1>\n"; $row = $sth->fetchRow(DB_FETCHMODE_ASSOC); print "<P>\n"; print "<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"5\">\n"; print " <TR>\n"; print " <TH BGCOLOR=\"#CCCCCC\">Handle:</TH>\n"; print " <TD BGCOLOR=\"#e8e8e8\">".$HTTP_GET_VARS['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"; 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"; } 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"; if ($row['admin'] == 1) { print " <TR>\n"; print " <TD COLSPAN=\"2\" BGCOLOR=\"#e8e8e8\">".$row['name']." is a PEAR administrator.</TD>\n"; print " </TR>\n"; } print "</TABLE>\n"; $query = "SELECT package FROM maintains WHERE handle = '".$HTTP_GET_VARS['handle']."'"; $sth = $dbh->query($query); if (DB::IsError($sth)) { 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 BGCOLOR=\"#e8e8e8\">The author is maintaing the following packages:</TD>"; print " </TR>\n"; } while (is_array($row = $sth->fetchRow(DB_FETCHMODE_ASSOC))) { print " <TR>\n"; print " <TD BGCOLOR=\"#e8e8e8\">".$row['package']."</TD>\n"; print " </TR>\n"; } if ($sth->numRows() > 0) { print "</TABLE>"; } response_footer(); ?>

« previous php.pear.cvs (#729) next »