' . make_link ($title_link, $title[0]) . '' . $title[1];
} else {
$img_title = $title;
$title = '
' . make_link ($title_link, $title) . '
';
}
// More than one author for this book
if (is_array($author)) {
// No link for the authors, simple author list
if (!$author_link) {
$temp = $author;
}
// Build links to the authors pages
else {
for ($i=0; $i < count ($author); $i++) {
if ($author_link[$i]) {
$temp[] = make_link ($author_link[$i],$author[$i]);
} else {
$temp[] = $author[$i];
}
}
}
$last = array_pop($temp);
$author = join(', ', $temp) . ' & ' . $last;
}
echo '| ' . hdelim() . " |
\n";
echo '' . "\n";
echo "\n";
print_link ($title_link, make_image ("books/".$image, $img_title, false, false, false, 0) );
echo " \n | \n";
echo "$title\nby ";
if ($author_link) {
print_link ($author_link, $author);
} else {
echo $author;
}
echo " \n\n";
if ($info || $lang != "en") {
echo "\n";
if ($lang != "en") {
echo "in " . $book_langs[$lang] . " \n";
}
echo $info . " \n";
}
echo "" . make_link ($info_link ? $info_link : $title_link, make_image ("caret-rg.gif",">") . "more info" );
echo " \n \n\n | \n
\n\n";
} // end of showBook() function
// Generate book statistics (book numbers by languages)
function bookStats ($books, $btype) {
$stats = array();
foreach ($books[$btype] as $number => $book) {
$stats[$book[7]]++;
}
arsort($stats, SORT_NUMERIC);
return $stats;
} // end of bookStats() function
echo 'PHP Books
';
// If invalid type || lang specified, unset it
list($type, $lang) = explode("_", $type_lang);
if (!isset($book_types[$type])) { unset($type); }
if (!isset($book_langs[$lang])) { unset($lang); }
// If type is set, we are printing books
if (isset($type)) { ?>
Click on a book for more information or (in most cases) to purchase it.
If you would like to jump to another category, choose one from the
list below. Remember, if you buy the book using the links on this page,
you are helping to support PHP development!
Choose one category and/or a language from the ones below to go to
a listing of books about that subject.
There may be more books available that we don't know of yet! You can search
Amazon.com
for PHP related stuff by using this form (or go directly to
Amazon.de
or Amazon.fr
and search there):
' . $book_types[$type] . $suffix . '';
echo '';
shuffle($books[$type]);
foreach ($books[$type] as $one_book) {
if (isset($lang) && $lang != $one_book[7]) { continue; }
showBook($one_book);
}
echo '
';
}
echo "";
commonFooter();
?>