cvs: phpweb / books.php

From: Date: Sun, 11 Mar 2001 14:52:02 +0000
Subject: cvs: phpweb / books.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4397@lists.php.net to get a copy of this message
goba Sun Mar 11 06:52:02 2001 EDT Modified files: /phpweb books.php Log: Always print out the categories, and use subheading... Index: phpweb/books.php diff -u phpweb/books.php:1.92 phpweb/books.php:1.93 --- phpweb/books.php:1.92 Sun Mar 11 06:36:08 2001 +++ phpweb/books.php Sun Mar 11 06:52:01 2001 @@ -694,21 +694,20 @@ if (!isset($book_types[$type])) { unset($type); } -if (isset($type)) { - echo '<h1>' . $book_types[$type] . '</h1>'; ?> +echo '<h1>PHP Books</h1>'; + +if (isset($type)) { ?> <p> Click on a book for more information or (in most cases) to purchase it. -Remember, if you buy the book using the links on this page, you are helping -to support PHP development! +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! </p> <?php } else { ?> -<h1> -PHP Books -</h1> <p> Choose one category from the ones below to go to a listing of books -about the subject. +about that subject. </p> <?php } ?> @@ -757,22 +756,22 @@ </FORM> </p> -<P><BR></P> +<P><BR></P>Jump to:<?php -<?php + echo '<ul>'; + foreach ($books as $btype => $book_list) { + if ($btype == $type) { continue; } + echo '<li>' . make_link("/books.php?type=$btype", $book_types[$btype] . " [" . count($book_list) . " books]"); + } + echo '</ul>'; if (isset($type)) { + echo '<h1>' . $book_types[$type] . '</h1>'; echo '<table border=0 cellpadding=5>'; foreach ($books[$type] as $one_book) { showBook($one_book); } echo '</table>'; - } else { - echo '<ul>'; - foreach ($books as $btype => $book_list) { - echo '<li>' . make_link("/books.php?type=$btype", $book_types[$btype] . " [" . count($book_list) . " books]"); - } - echo '</ul>'; } commonFooter();

« previous php.mirrors (#4397) next »