cvs: pearweb /include pear-format-html.php

From: Date: Mon, 03 Sep 2001 02:01:21 +0000
Subject: cvs: pearweb /include pear-format-html.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-759@lists.php.net to get a copy of this message
cox Sun Sep 2 22:01:21 2001 EDT Modified files: /pearweb/include pear-format-html.php Log: ws Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.10 pearweb/include/pear-format-html.php:1.11 --- pearweb/include/pear-format-html.php:1.10 Sun Sep 2 20:04:31 2001 +++ pearweb/include/pear-format-html.php Sun Sep 2 22:01:21 2001 @@ -18,10 +18,10 @@ { extract($params); if (empty($title)) { - $title = "The PHP Extension and Application Repository"; + $title = "The PHP Extension and Application Repository"; } if (isset($sidebardata)) { - $GLOBALS['SIDEBAR_DATA'] = $sidebardata; + $GLOBALS['SIDEBAR_DATA'] = $sidebardata; } response_header($title); } @@ -41,20 +41,20 @@ $_style = $style; $rts = rtrim($SIDEBAR_DATA); if (substr($rts, -1) == '-') { - $SIDEBAR_DATA = substr($rts, 0, -1); + $SIDEBAR_DATA = substr($rts, 0, -1); } else { - global $main_menu, $PHP_SELF; - $SIDEBAR_DATA .= "<br /><br />\n"; - $me = basename($PHP_SELF); - foreach ($main_menu as $url => $tit) { - $tt = str_replace(" ", "&nbsp;", $tit); - if ($url == $me) { - $SIDEBAR_DATA .= "<b>&gt;&gt;$tt&lt;&lt;</b><br />\n"; - } else { - $SIDEBAR_DATA .= "&nbsp;&nbsp;&nbsp;<a href=\"$url\">$tt</a><br />\n"; - } - } - $SIDEBAR_DATA .= "<br /><br />\n"; + global $main_menu, $PHP_SELF; + $SIDEBAR_DATA .= "<br /><br />\n"; + $me = basename($PHP_SELF); + foreach ($main_menu as $url => $tit) { + $tt = str_replace(" ", "&nbsp;", $tit); + if ($url == $me) { + $SIDEBAR_DATA .= "<b>&gt;&gt;$tt&lt;&lt;</b><br />\n"; + } else { + $SIDEBAR_DATA .= "&nbsp;&nbsp;&nbsp;<a href=\"$url\">$tt</a><br />\n"; + } + } + $SIDEBAR_DATA .= "<br /><br />\n"; } commonHeader($title); @@ -66,11 +66,11 @@ { static $called; if ($called) { - return; + return; } $called = true; if (!$style) { - $style = $GLOBALS['_style']; + $style = $GLOBALS['_style']; } commonFooter(); @@ -123,19 +123,19 @@ { extract($params); if (!isset($width)) { - $width = "90%"; + $width = "90%"; } if (!isset($indent)) { - $indent = ""; + $indent = ""; } print "$indent<table cellpadding=\"0\" cellspacing=\"1\" border=\"0\" width=\"$width\">\n"; print "$indent <tr>\n"; print "$indent <td bgcolor=\"#000000\">\n"; print " <table cellpadding=\"2\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n"; if (isset($title)) { - print "$indent <tr bgcolor=\"#cccccc\">\n"; - print "$indent <th>$title</th>\n"; - print "$indent </tr>\n"; + print "$indent <tr bgcolor=\"#cccccc\">\n"; + print "$indent <th>$title</th>\n"; + print "$indent </tr>\n"; } print "$indent <tr bgcolor=\"#ffffff\">\n"; print "$indent <td>\n"; @@ -145,7 +145,7 @@ { extract($params); if (!isset($indent)) { - $indent = ""; + $indent = ""; } print "$indent </td>\n"; print "$indent </tr>\n"; @@ -158,7 +158,7 @@ function border_box_start($title, $width = "90%", $indent = "") { if (is_array($title)) { - $title = implode("</th><th>", $title); + $title = implode("</th><th>", $title); } print "$indent<table cellpadding=\"0\" cellspacing=\"1\" border=\"0\" width=\"$width\">\n"; print "$indent <tr>\n"; @@ -184,7 +184,7 @@ function html_table_border(&$tableobj, $width = "100%") { $border = new HTML_Table('border="0" cellpadding="0" cellspacing="1" '. - "width=\"{$width}\""); + "width=\"{$width}\""); $border->addRow(array($tableobj->toHtml()), 'bgcolor="#000000"'); print $border->toHtml(); }

« previous php.pear.cvs (#759) next »