cvs: phpweb / docs.php
| From: | Hojtsy Gabor | Date: | Sat, 04 Aug 2001 15:56:25 +0000 |
| Subject: | cvs: phpweb / docs.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5879@lists.php.net to get a copy of this message | ||
goba Sat Aug 4 11:56:25 2001 EDT
Modified files:
/phpweb docs.php
Log:
Print that "," only where needed,
some newlines deleted
Index: phpweb/docs.php
diff -u phpweb/docs.php:1.101 phpweb/docs.php:1.102
--- phpweb/docs.php:1.101 Sat Aug 4 11:31:19 2001
+++ phpweb/docs.php Sat Aug 4 11:56:25 2001
@@ -51,34 +51,32 @@
</p>
<table border="0" cellpadding="3" cellspacing="2"
width="100%">
-
<tr
bgcolor="#cccccc"><th>Format</th><th>Languages</th></tr>
-
<tr><th bgcolor="#dddddd">View Online</th><td
bgcolor="#eeeeee">
<?php
- foreach ($man_languages as $langcode) {
- echo '<a href="/manual/' . $langcode . '/">' .
$LANGUAGES[$langcode] . '</a>, ';
+ $langcount = count($man_languages);
+ foreach ($man_languages as $langnum = $langcode) {
+ echo '<a href="/manual/' . $langcode . '/">' .
$LANGUAGES[$langcode] . '</a>';
+ echo ($langcount != $langnum) ? ", " : "";
}
?>
</td></tr>
-
<tr><th bgcolor="#dddddd">Printer friendly</th><td
bgcolor="#eeeeee">
<?php
foreach ($man_languages as $langcode) {
- echo '<a href="/manual/' . $langcode . '/html/">' .
$LANGUAGES[$langcode] . '</a>, ';
+ echo '<a href="/manual/' . $langcode . '/html/">' .
$LANGUAGES[$langcode] . '</a>';
+ echo ($langcount != $langnum) ? ", " : "";
}
?>
</td></tr>
-
<tr><th bgcolor="#dddddd">Downloads</th><td
bgcolor="#eeeeee">
For other downloadable formats, please visit our new
<a href="download-docs.php">documentation downloads</a> page.
</td></tr>
-
</table>
<?php echo hdelim(); ?>