cvs: pearweb / package.xml /public_html/support books.php
| From: | Martin Jansen | Date: | Wed, 08 Nov 2006 13:37:38 +0000 |
| Subject: | cvs: pearweb / package.xml /public_html/support books.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5159@lists.php.net to get a copy of this message | ||
mj Wed Nov 8 13:37:38 2006 UTC
Added files:
/pearweb/public_html/support books.php
Modified files:
/pearweb package.xml
Log:
* Add list of PEAR books in the support section.
http://cvs.php.net/viewvc.cgi/pearweb/package.xml?r1=1.50&r2=1.51&diff_format=u
Index: pearweb/package.xml
diff -u pearweb/package.xml:1.50 pearweb/package.xml:1.51
--- pearweb/package.xml:1.50 Sat Nov 4 02:41:51 2006
+++ pearweb/package.xml Wed Nov 8 13:37:38 2006
@@ -75,6 +75,7 @@
for the possibility of having general election accounts with no developer
privileges
* add missing PEPr tables to the MDB2 schema .xml file
+ * add list of PEAR books in the support section
</notes>
<contents>
<dir baseinstalldir="/" name="/">
@@ -381,6 +382,7 @@
<file name="pear.src" role="web" />
</dir> <!-- /public_html/sidebar -->
<dir name="support">
+ <file name="books.php" role="web" />
<file name="forums.php" role="web" />
<file name="icons.php" role="web" />
<file name="index.php" role="web" />
http://cvs.php.net/viewvc.cgi/pearweb/public_html/support/books.php?view=markup&rev=1.1
Index: pearweb/public_html/support/books.php
+++ pearweb/public_html/support/books.php
<?php
/*
+----------------------------------------------------------------------+
| PEAR Web site version 1.0 |
+----------------------------------------------------------------------+
| Copyright (c) 2006 The PEAR Group |
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt.
|
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
$Id: books.php,v 1.1 2006/11/08 13:37:37 mj Exp $
*/
response_header("Support - Books");
echo "<h1>Support</h1>";
include 'tabs_list.php';
$books = array(
array("title" => "The PEAR Installer Manifesto",
"authors" => array("Gregory Beaver"),
"pearuser" => array("cellog"),
"isbn" => "1904811191",
"url" => "http://www.packtpub.com/PEAR-Installer/book",
"publisher" => "Packt Publishing"
),
array("title" => "PHP Programming with PEAR",
"authors" => array("Stoyan Stefanov", "Stephan
Schmidt", "Aaron Wormus", "Carsten Lucke"),
"pearuser" => array("stoyan", "schst",
"wormus", "luckec"),
"isbn" => "1904811795",
"url" => "http://www.packtpub.com/pear/book",
"publisher" => "Packt Publishing"
),
array("title" => "PHP PEAR — Anwendung und Entwicklung -
Erweiterungen für PHP schreiben",
"authors" => array("Carsten Möhrke"),
"pearuser" => array(),
"isbn" => "3898425800",
"url" => "http://www.galileocomputing.de/katalog/buecher/titel/gp/titelID-891",
"publisher" => "Galileo Computing"
),
array("title" => "Foundations of PEAR: Rapid PHP Development",
"authors" => array("Nathan A. Good", "Allan
Kent"),
"pearuser" => array(),
"isbn" => "1590597397",
"url" => "http://apress.com/book/bookDisplay.html?bID=10181",
"publisher" => "Apress"
)
);
?>
<h2>» <a name="books"
id="books">Books</a></h2>
<p>The following is a list of books that have been written about PEAR.
There are a lot more PHP books that describe some PEAR packages.
You can search for them at <a href="http://www.amazon.com/exec/obidos/external-search?mode=books&keyword=PHP">
Amazon.com</a>.</p>
<table class="form-holder" cellpadding="5" cellspacing="1">
<?php
foreach ($books as $book) {
echo "<tr>\n";
echo " <td rowspan=\"4\" class=\"form-input\">\n";
if (isset($book['image'])) {
echo " <img src=\"/gifs/books/" . $book['image'] .
".gif\" width=\"50\" height=\"100\" />\n";
} else {
echo " <img src=\"/gifs/blank.gif\" width=\"50\"
height=\"100\" />\n";
}
echo "</td>\n";
echo " <td colspan=\"2\" valign=\"top\"
class=\"form-input\">\n";
echo " <strong><a href=\"" . $book['url'] .
"\">\n";
echo " " . $book['title'];
echo " </a></strong>\n";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td class=\"form-input\">Written by:</td>\n";
$authors = array();
for ($i = 0; $i < count($book['authors']); $i++) {
if (!empty($book['pearuser'][$i])) {
$authors[] = " <a href=\"/user/" . $book['pearuser'][$i]
. "\">" . $book['authors'][$i] . "</a>";
} else {
$authors[] = $book['authors'][$i];
}
}
$size = count($authors);
if ($size >= 2) {
echo " <td class=\"form-input\">" . join(array_splice($authors,
0, $size - 1), ", ") . " and " . $authors[0] . "</td>\n";;
} else {
echo " <td class=\"form-input\">" . $authors[0] .
"</td>\n";
}
echo "</tr>\n";
echo "<tr>\n";
echo " <td class=\"form-input\">Publisher:</td>\n";
echo " <td class=\"form-input\">" . $book['publisher'] .
"</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td class=\"form-input\">ISBN:</td>\n";
echo " <td class=\"form-input\">" . $book['isbn'] .
"</td>\n";
echo "</tr>\n";
echo "<tr><td colspan=\"2\"> </td></tr>\n";
}
?>
</table>
<p>Are you an author or publisher of one of the above books? No image?
Let <a href="mailto:<?php echo PEAR_WEBMASTER_EMAIL;
?>">us know</a>
if we are allowed to use an image of your book's cover page
here. Is your book missing? Then tell us about it, too.</p>
<p><a href="/support/">« Back to the Support
overview</a></p>
<?php
response_footer();
?>