cvs: phpweb / docs.php
| From: | Gabor Hojtsy | Date: | Sat, 20 Sep 2003 15:29:39 +0000 |
| Subject: | cvs: phpweb / docs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-21139@lists.php.net to get a copy of this message | ||
goba Sat Sep 20 11:29:39 2003 EDT
Modified files:
/phpweb docs.php
Log:
Ws fixing in the HTML code of the sidebar and the body,
use a standard table (CSS styled table) instead of specifing
colors explicitly, and add better explanation to the PHP/FI 2.0
manual link.
Index: phpweb/docs.php diff -u phpweb/docs.php:1.127 phpweb/docs.php:1.128 --- phpweb/docs.php:1.127 Fri Aug 8 08:58:27 2003 +++ phpweb/docs.php Sat Sep 20 11:29:39 2003 @@ -1,48 +1,50 @@ <?php -include './include/prepend.inc'; +// $Id: docs.php,v 1.128 2003/09/20 15:29:39 goba Exp $ +$_SERVER['BASE_PAGE'] = 'docs.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; $SIDEBAR_DATA=' <h3>FAQ</h3> <p> -The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general -information and those questions that seem to be on most people\'s minds. + The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general + information and those questions that seem to be on most people\'s minds. </p> <h3>Changelog</h3> <p> -You can also find the <a href="/ChangeLog-4.php">PHP Changelog</a> useful, -if you would like to look up changes between various versions of PHP. + You can also find the <a href="/ChangeLog-4.php">PHP Changelog</a> useful, + if you would like to look up changes between various versions of PHP. </p> <h3>More Information</h3> <p> -The <a href="http://zugeschaut-und-mitgebaut.de/php/">PHP Function Table</a> -has an overview about which pages are translated to the -different languages and in which versions of PHP the functions -are available.<br /><br /> - -If you have license questions, see -the <a href="/license/">License FAQ</a>. + The <a href="http://zugeschaut-und-mitgebaut.de/php/">PHP Function Table</a> + has an overview about which pages are translated to the + different languages and in which versions of PHP the functions + are available. +</p> +<p> + If you have license questions, see + the <a href="/license/">License FAQ</a>. </p> <h3>Books</h3> <p> -<a href="/books.php">Books</a> are convenient resources to begin exploring -PHP. <a href="/books.php">The titles listed here</a> will help you to start -learning PHP, as well as extending your existing knowledge. + <a href="/books.php">Books</a> are convenient resources to begin exploring + PHP. <a href="/books.php">The titles listed here</a> will help you to start + learning PHP, as well as extending your existing knowledge. </p> <h3>Sample Code</h3> <p> -Looking for some more sample PHP scripts? Our <a -href="/links.php">links page</a> page lists some archives of sample PHP code - -great places to find many example scripts and useful functions, organized for -your searching pleasure! + Looking for some more sample PHP scripts? Our <a + href="/links.php">links page</a> page lists some archives of sample PHP code - + great places to find many example scripts and useful functions, organized for + your searching pleasure! </p> '; -// Start page with common header -commonHeader("Documentation"); +site_header("Documentation"); // Check for really available manual languages $man_languages = array(); @@ -61,28 +63,33 @@ <h1>Documentation</h1> <p> -The PHP manual is available online in a selection of languages. -You can choose between the printer friendly and graphically -designed versions. Please pick a language and format from -the table below. + The PHP manual is available online in a selection of languages. + You can choose between the printer friendly and graphically + designed versions. Please pick a language and format from + the table below. </p> <p> -You can learn how to integrate our online manual with various tools, including -your web browser, on our <a href="tips.php">quick reference tips</a> page. -You can also get more information about php.net URL shortcuts by visiting our -<a href="urlhowto.php">URL howto page</a>. + You can learn how to integrate our online manual with various tools, including + your web browser, on our <a href="tips.php">quick reference tips</a> page. + You can also get more information about php.net URL shortcuts by visiting our + <a href="urlhowto.php">URL howto page</a>. </p> <p> -Note, that many languages are just under translation, and -the untranslated parts are still in English. The translation -teams are open to contributions though. + Note, that many languages are just under translation, and + the untranslated parts are still in English. The translation + teams are open to contributions though. </p> -<table border="0" cellpadding="3" cellspacing="2" width="100%"> -<tr bgcolor="#cccccc"><th>Formats</th><th>Languages</th></tr> -<tr><th bgcolor="#dddddd">View Online</th><td bgcolor="#eeeeee"> +<table border="0" cellpadding="3" cellspacing="2" class="standard"> + <tr> + <th>Formats</th> + <th>Destinations</th> + </tr> + <tr> + <th class="sub">View Online</th> + <td> <?php // List all manual languages viewable online @@ -92,72 +99,90 @@ if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; // Also link to the external special French version, after the French link if ($langcode == "fr") { - echo '<a href="http://dev.nexen.net/docs/php/annotee/">[Special French]</a>, '; + echo '<a href="http://dev.nexen.net/docs/php/annotee/">[Special French]</a>,' . "\n"; } if ($langcode == $LANG) { echo "</b>"; } - } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Printer friendly</th><td bgcolor="#eeeeee"> + </td> + </tr> + <tr> + <th class="sub">Printer friendly</th> + <td> <?php // List printer friendly pages of all manual languages foreach ($man_languages as $langnum => $langcode) { if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/print/index.php">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; if ($langcode == $LANG) { echo "</b>"; } } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Printer friendly<br />with notes</th><td bgcolor="#eeeeee"> + </td> + </tr> + <tr> + <th class="sub">Printer friendly<br />with notes</th> + <td> <?php // List printer friendly pages with notes of all manual languages foreach ($man_languages as $langnum => $langcode) { if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/printwn/index.php">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; if ($langcode == $LANG) { echo "</b>"; } } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Downloads</th><td bgcolor="#eeeeee"> -For downloadable formats, please visit our -<a href="download-docs.php">documentation downloads</a> page. -</td></tr> -<tr><th bgcolor="#dddddd">Other manuals</th><td bgcolor="#eeeeee"> -The <a href="/manual/howto">Documentation HOWTO</a> is also -available for online reading. -<a href="http://gtk.php.net/docs.php">PHP-GTK</a> and -<a href="http://pear.php.net/manual/">PEAR</a> manuals -can be found on separate servers. -</td></tr> + </td> + </tr> + <tr> + <th class="sub">Downloads</th> + <td> + For downloadable formats, please visit our + <a href="download-docs.php">documentation downloads</a> page. + </td> + </tr> + <tr> + <th class="sub">Other manuals</th> + <td> + The <a href="/manual/howto">Documentation HOWTO</a> is also + available for online reading. + <a href="http://gtk.php.net/docs.php">PHP-GTK</a> and + <a href="http://pear.php.net/manual/">PEAR</a> manuals + can be found on separate servers. + </td> + </tr> </table> <hr /> <h1>CVS Account</h1> -<ul> -<li><a href="/anoncvs.php">Anonymous CVS access instructions</a></li> -<li><a href="/cvs-php.php">Getting a CVS account</a>. If you -wish to help out with the development of PHP, read this.</li> + <ul> + <li> + <a href="/anoncvs.php">Anonymous CVS access instructions</a> + </li> + <li> + <a href="/cvs-php.php">Getting a CVS account</a>. If you + wish to help out with the development of PHP, read this. + </li> </ul> <hr /> <h1>Old/Unsupported Information</h1> -<ul> -<li><a href="/manual/phpfi2.php">PHP/FI 2.0 Manual</a>.</li> -</ul> +<p> + You can still read a copy of the original + <a href="/manual/phpfi2.php">PHP/FI 2.0 Manual</a> + on our site, which we only host for historical purposes. +</p> -<?php commonFooter(); ?> +<?php site_footer(); ?>
Index: phpweb/docs.php diff -u phpweb/docs.php:1.127 phpweb/docs.php:1.128 --- phpweb/docs.php:1.127 Fri Aug 8 08:58:27 2003 +++ phpweb/docs.php Sat Sep 20 11:29:39 2003 @@ -1,48 +1,50 @@ <?php -include './include/prepend.inc'; +// $Id: docs.php,v 1.128 2003/09/20 15:29:39 goba Exp $ +$_SERVER['BASE_PAGE'] = 'docs.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; $SIDEBAR_DATA=' <h3>FAQ</h3> <p> -The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general -information and those questions that seem to be on most people\'s minds. + The <a href="/FAQ.php">PHP FAQ</a> is your first stop for general + information and those questions that seem to be on most people\'s minds. </p> <h3>Changelog</h3> <p> -You can also find the <a href="/ChangeLog-4.php">PHP Changelog</a> useful, -if you would like to look up changes between various versions of PHP. + You can also find the <a href="/ChangeLog-4.php">PHP Changelog</a> useful, + if you would like to look up changes between various versions of PHP. </p> <h3>More Information</h3> <p> -The <a href="http://zugeschaut-und-mitgebaut.de/php/">PHP Function Table</a> -has an overview about which pages are translated to the -different languages and in which versions of PHP the functions -are available.<br /><br /> - -If you have license questions, see -the <a href="/license/">License FAQ</a>. + The <a href="http://zugeschaut-und-mitgebaut.de/php/">PHP Function Table</a> + has an overview about which pages are translated to the + different languages and in which versions of PHP the functions + are available. +</p> +<p> + If you have license questions, see + the <a href="/license/">License FAQ</a>. </p> <h3>Books</h3> <p> -<a href="/books.php">Books</a> are convenient resources to begin exploring -PHP. <a href="/books.php">The titles listed here</a> will help you to start -learning PHP, as well as extending your existing knowledge. + <a href="/books.php">Books</a> are convenient resources to begin exploring + PHP. <a href="/books.php">The titles listed here</a> will help you to start + learning PHP, as well as extending your existing knowledge. </p> <h3>Sample Code</h3> <p> -Looking for some more sample PHP scripts? Our <a -href="/links.php">links page</a> page lists some archives of sample PHP code - -great places to find many example scripts and useful functions, organized for -your searching pleasure! + Looking for some more sample PHP scripts? Our <a + href="/links.php">links page</a> page lists some archives of sample PHP code - + great places to find many example scripts and useful functions, organized for + your searching pleasure! </p> '; -// Start page with common header -commonHeader("Documentation"); +site_header("Documentation"); // Check for really available manual languages $man_languages = array(); @@ -61,28 +63,33 @@ <h1>Documentation</h1> <p> -The PHP manual is available online in a selection of languages. -You can choose between the printer friendly and graphically -designed versions. Please pick a language and format from -the table below. + The PHP manual is available online in a selection of languages. + You can choose between the printer friendly and graphically + designed versions. Please pick a language and format from + the table below. </p> <p> -You can learn how to integrate our online manual with various tools, including -your web browser, on our <a href="tips.php">quick reference tips</a> page. -You can also get more information about php.net URL shortcuts by visiting our -<a href="urlhowto.php">URL howto page</a>. + You can learn how to integrate our online manual with various tools, including + your web browser, on our <a href="tips.php">quick reference tips</a> page. + You can also get more information about php.net URL shortcuts by visiting our + <a href="urlhowto.php">URL howto page</a>. </p> <p> -Note, that many languages are just under translation, and -the untranslated parts are still in English. The translation -teams are open to contributions though. + Note, that many languages are just under translation, and + the untranslated parts are still in English. The translation + teams are open to contributions though. </p> -<table border="0" cellpadding="3" cellspacing="2" width="100%"> -<tr bgcolor="#cccccc"><th>Formats</th><th>Languages</th></tr> -<tr><th bgcolor="#dddddd">View Online</th><td bgcolor="#eeeeee"> +<table border="0" cellpadding="3" cellspacing="2" class="standard"> + <tr> + <th>Formats</th> + <th>Destinations</th> + </tr> + <tr> + <th class="sub">View Online</th> + <td> <?php // List all manual languages viewable online @@ -92,72 +99,90 @@ if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; // Also link to the external special French version, after the French link if ($langcode == "fr") { - echo '<a href="http://dev.nexen.net/docs/php/annotee/">[Special French]</a>, '; + echo '<a href="http://dev.nexen.net/docs/php/annotee/">[Special French]</a>,' . "\n"; } if ($langcode == $LANG) { echo "</b>"; } - } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Printer friendly</th><td bgcolor="#eeeeee"> + </td> + </tr> + <tr> + <th class="sub">Printer friendly</th> + <td> <?php // List printer friendly pages of all manual languages foreach ($man_languages as $langnum => $langcode) { if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/print/index.php">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; if ($langcode == $LANG) { echo "</b>"; } } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Printer friendly<br />with notes</th><td bgcolor="#eeeeee"> + </td> + </tr> + <tr> + <th class="sub">Printer friendly<br />with notes</th> + <td> <?php // List printer friendly pages with notes of all manual languages foreach ($man_languages as $langnum => $langcode) { if ($langcode == $LANG) { echo "<b>"; } echo '<a href="/manual/' . $langcode . '/printwn/index.php">' . $LANGUAGES[$langcode] . '</a>'; - echo ($lastlang != $langnum) ? ", " : ""; + echo ($lastlang != $langnum) ? ",\n" : "\n"; if ($langcode == $LANG) { echo "</b>"; } } ?> -</td></tr> -<tr><th bgcolor="#dddddd">Downloads</th><td bgcolor="#eeeeee"> -For downloadable formats, please visit our -<a href="download-docs.php">documentation downloads</a> page. -</td></tr> -<tr><th bgcolor="#dddddd">Other manuals</th><td bgcolor="#eeeeee"> -The <a href="/manual/howto">Documentation HOWTO</a> is also -available for online reading. -<a href="http://gtk.php.net/docs.php">PHP-GTK</a> and -<a href="http://pear.php.net/manual/">PEAR</a> manuals -can be found on separate servers. -</td></tr> + </td> + </tr> + <tr> + <th class="sub">Downloads</th> + <td> + For downloadable formats, please visit our + <a href="download-docs.php">documentation downloads</a> page. + </td> + </tr> + <tr> + <th class="sub">Other manuals</th> + <td> + The <a href="/manual/howto">Documentation HOWTO</a> is also + available for online reading. + <a href="http://gtk.php.net/docs.php">PHP-GTK</a> and + <a href="http://pear.php.net/manual/">PEAR</a> manuals + can be found on separate servers. + </td> + </tr> </table> <hr /> <h1>CVS Account</h1> -<ul> -<li><a href="/anoncvs.php">Anonymous CVS access instructions</a></li> -<li><a href="/cvs-php.php">Getting a CVS account</a>. If you -wish to help out with the development of PHP, read this.</li> + <ul> + <li> + <a href="/anoncvs.php">Anonymous CVS access instructions</a> + </li> + <li> + <a href="/cvs-php.php">Getting a CVS account</a>. If you + wish to help out with the development of PHP, read this. + </li> </ul> <hr /> <h1>Old/Unsupported Information</h1> -<ul> -<li><a href="/manual/phpfi2.php">PHP/FI 2.0 Manual</a>.</li> -</ul> +<p> + You can still read a copy of the original + <a href="/manual/phpfi2.php">PHP/FI 2.0 Manual</a> + on our site, which we only host for historical purposes. +</p> -<?php commonFooter(); ?> +<?php site_footer(); ?>