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

From: Date: Tue, 16 Sep 2003 19:36:15 +0000
Subject: cvs: pearweb /include layout.php pear-format-html.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12781@lists.php.net to get a copy of this message
mj Tue Sep 16 15:36:15 2003 EDT Modified files: /pearweb/include pear-format-html.php layout.php Log: * Merging response_(header|footer) and common(Header|Footer) into one.

Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.63 pearweb/include/pear-format-html.php:1.64 --- pearweb/include/pear-format-html.php:1.63 Thu Sep 4 11:39:39 2003 +++ pearweb/include/pear-format-html.php Tue Sep 16 15:36:15 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.63 2003/09/04 15:39:39 mj Exp $ + $Id: pear-format-html.php,v 1.64 2003/09/16 19:36:15 mj Exp $ */ /* Send charset */ @@ -85,7 +85,100 @@ } } } - commonHeader($title); +?> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> + <title>PEAR :: <?php echo $title; ?></title> + <link rel="shortcut icon" href="/gifs/favicon.ico" /> + <link rel="stylesheet" href="/style.css" /> + <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/feeds/latest.rss" /> +</head> + +<body <?php + if (!empty($GLOBALS['ONLOAD'])) { + print "onload=\"" . $GLOBALS['ONLOAD']. "\""; + } +?> + bgcolor="#ffffff" + text="#000000" + link="#006600" + alink="#cccc00" + vlink="#003300" +><a name="TOP" /> +<table border="0" cellspacing="0" cellpadding="0" width="100%"> + <tr bgcolor="#339900"> + <td align="left" rowspan="2" width="120" colspan="2" height="1"> +<?php print_link('/', make_image('pearsmall.gif', 'PEAR', false, 'vspace="5" hspace="5"') ); ?><br /> + </td> + <td align="right" valign="top" colspan="3" height="1"> + <font color="#ffffff"><b> + <?php echo strftime("%A, %B %d, %Y"); ?> + </b>&nbsp;<br /> + </font> + </td> + </tr> + + <tr bgcolor="#339900"> + <td align="right" valign="bottom" colspan="3" height="1"> + <?php + + if (empty($_COOKIE['PEAR_USER'])) { + print_link('/login.php', 'Login', false, 'class="menuBlack"'); + } else { + print '<span class="menuWhite">logged in as '; + print strtoupper($_COOKIE['PEAR_USER']); + print '&nbsp;</span><br />'; + print_link('/?logout=1', 'Logout', false, 'class="menuBlack"'); + } + echo delim(); + print_link('/manual/', 'Docs', false, 'class="menuBlack"'); + echo delim(); + print_link('/packages.php', 'Packages', false, 'class="menuBlack"'); + echo delim(); + print_link('/support.php','Support',false,'class="menuBlack"'); + echo delim(); + print_link('/bugs/','Bugs',false,'class="menuBlack"'); + ?>&nbsp;<br /> + <?php spacer(2,2); ?><br /> + </td> + </tr> + + <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + + <tr bgcolor="#006600"> + <td align="right" valign="top" colspan="5" height="1"> + <form method="post" action="/search.php"> + <font color="#ffffff"><small>Search for</small> + <input class="small" type="text" name="search_string" value="" size="20" /> + <small>in the</small> + <select name="search_in" class="small"> + <option value="packages">Packages</option> + <option value="pear-dev">Developer mailing list</option> + <option value="pear-general">General mailing list</option> + <option value="pear-cvs">CVS commits mailing list</option> + </select> + <input type="image" src="/gifs/small_submit_white.gif" alt="search" align="bottom" /></font>&nbsp;<br /></form></td></tr> + + <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + + <!-- Middle section --> + + <tr valign="top"> +<?php if (isset($SIDEBAR_DATA)) { ?> + <td colspan="2" class="sidebar_left" bgcolor="#f0f0f0" width="149"> + <table width="149" cellpadding="4" cellspacing="0"> + <tr valign="top"> + <td><?php echo $SIDEBAR_DATA?><br /></td> + </tr> + </table> + </td> +<?php } ?> + <td> + <table width="100%" cellpadding="10" cellspacing="0"> + <tr> + <td valign="top"> +<?php } function &draw_navigation($data, $menu_title='') @@ -109,6 +202,8 @@ function response_footer($style = false) { + global $LAST_UPDATED, $MIRRORS, $MYSITE, $COUNTRIES,$SCRIPT_NAME, $RSIDEBAR_DATA; + static $called; if ($called) { return; @@ -118,8 +213,66 @@ $style = $GLOBALS['_style']; } - commonFooter(); +?> + </td> + </tr> + </table> + </td> + +<?php if (isset($RSIDEBAR_DATA)) { ?> + <td class="sidebar_right" width="149" bgcolor="#f0f0f0"> + <table width="149" cellpadding="4" cellspacing="0"> + <tr valign="top"> + <td><?php echo $RSIDEBAR_DATA; ?><br /> + </td> + </tr> + </table> + </td> +<?php } ?> + + </tr> + + <!-- Lower bar --> + + <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + <tr bgcolor="#339900"> + <td align="right" valign="bottom" colspan="5" height="1"> +<?php +print_link('/about/privacy.php', 'PRIVACY POLICY', false, 'class="menuBlack"'); +echo delim(); +print_link('/credits.php', 'CREDITS', false, 'class="menuBlack"'); +?> + <br /> + </td> + </tr> + <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1); ?><br /></td></tr> + + <tr valign="top" bgcolor="#cccccc"> + <td colspan="5" height="1"> + <table border="0" cellspacing="0" cellpadding="5" width="100%"> + <tr> + <td> + <small> + <?php print_link('/copyright.php', 'Copyright &copy; 2001, 2002, 2003 The PHP Group'); ?><br /> + All rights reserved.<br /> + </small> + </td> + <td align="right" valign="top"> + <small> + Last updated: <?php echo $LAST_UPDATED; ?><br /> + Bandwidth and hardware provided by: <?php print_link("http://www.pair.com/", "pair Networks"); ?> + </small> + </td> + </tr> + </table> + </td> + </tr> +</table> + +</body> +</html> +<?php } function menu_link($text, $url) { Index: pearweb/include/layout.php diff -u pearweb/include/layout.php:1.70 pearweb/include/layout.php:1.71 --- pearweb/include/layout.php:1.70 Sun Sep 14 10:44:05 2003 +++ pearweb/include/layout.php Tue Sep 16 15:36:15 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: layout.php,v 1.70 2003/09/14 14:44:05 cox Exp $ + $Id: layout.php,v 1.71 2003/09/16 19:36:15 mj Exp $ */ if (empty($prevsearch)) $prevsearch = ''; @@ -159,178 +159,5 @@ return make_link("/bugs/report.php?package=$package", $linktext); } -} - -// commonheader() -// -// - -function commonHeader($title) { - global $SIDEBAR_DATA, $ONLOAD; - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html> -<head> - <title>PEAR :: <?php echo $title; ?></title> - <link rel="shortcut icon" href="/gifs/favicon.ico" /> - <link rel="stylesheet" href="/style.css" /> - <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://<?php echo $_SERVER['HTTP_HOST']; ?>/feeds/latest.rss" /> -</head> - -<body <?php - if (!empty($GLOBALS['ONLOAD'])) { - print "onload=\"" . $GLOBALS['ONLOAD']. "\""; - } -?> - bgcolor="#ffffff" - text="#000000" - link="#006600" - alink="#cccc00" - vlink="#003300" -><a name="TOP" /> -<table border="0" cellspacing="0" cellpadding="0" width="100%"> - <tr bgcolor="#339900"> - <td align="left" rowspan="2" width="120" colspan="2" height="1"> -<?php print_link('/', make_image('pearsmall.gif', 'PEAR', false, 'vspace="5" hspace="5"') ); ?><br /> - </td> - <td align="right" valign="top" colspan="3" height="1"> - <font color="#ffffff"><b> - <?php echo strftime("%A, %B %d, %Y"); ?> - </b>&nbsp;<br /> - </font> - </td> - </tr> - - <tr bgcolor="#339900"> - <td align="right" valign="bottom" colspan="3" height="1"> - <?php - - if (empty($_COOKIE['PEAR_USER'])) { - print_link('/login.php', 'Login', false, 'class="menuBlack"'); - } else { - print '<span class="menuWhite">logged in as '; - print strtoupper($_COOKIE['PEAR_USER']); - print '&nbsp;</span><br />'; - print_link('/?logout=1', 'Logout', false, 'class="menuBlack"'); - } - echo delim(); - print_link('/manual/', 'Docs', false, 'class="menuBlack"'); - echo delim(); - print_link('/packages.php', 'Packages', false, 'class="menuBlack"'); - echo delim(); - print_link('/support.php','Support',false,'class="menuBlack"'); - echo delim(); - print_link('/bugs/','Bugs',false,'class="menuBlack"'); - ?>&nbsp;<br /> - <?php spacer(2,2); ?><br /> - </td> - </tr> - - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> - - <tr bgcolor="#006600"> - <td align="right" valign="top" colspan="5" height="1"> - <form method="post" action="/search.php"> - <font color="#ffffff"><small>Search for</small> - <input class="small" type="text" name="search_string" value="" size="20" /> - <small>in the</small> - <select name="search_in" class="small"> - <option value="packages">Packages</option> - <option value="pear-dev">Developer mailing list</option> - <option value="pear-general">General mailing list</option> - <option value="pear-cvs">CVS commits mailing list</option> - </select> - <input type="image" src="/gifs/small_submit_white.gif" alt="search" align="bottom" /></font>&nbsp;<br /></form></td></tr> - - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> - - <!-- Middle section --> - - <tr valign="top"> -<?php if (isset($SIDEBAR_DATA)) { ?> - <td colspan="2" class="sidebar_left" bgcolor="#f0f0f0" width="149"> - <table width="149" cellpadding="4" cellspacing="0"> - <tr valign="top"> - <td><?php echo $SIDEBAR_DATA?><br /></td> - </tr> - </table> - </td> -<?php } ?> - <td> - <table width="100%" cellpadding="10" cellspacing="0"> - <tr> - <td valign="top"> -<?php -} - - - - -// commonfooter() -// -// - -function commonFooter() { - global $LAST_UPDATED, $MIRRORS, $MYSITE, $COUNTRIES,$SCRIPT_NAME, $RSIDEBAR_DATA; -?> - </td> - </tr> - </table> - </td> - -<?php if (isset($RSIDEBAR_DATA)) { ?> - <td class="sidebar_right" width="149" bgcolor="#f0f0f0"> - <table width="149" cellpadding="4" cellspacing="0"> - <tr valign="top"> - <td><?php echo $RSIDEBAR_DATA; ?><br /> - </td> - </tr> - </table> - </td> -<?php } ?> - - </tr> - - <!-- Lower bar --> - - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> - <tr bgcolor="#339900"> - <td align="right" valign="bottom" colspan="5" height="1"> -<?php -print_link('/about/privacy.php', 'PRIVACY POLICY', false, 'class="menuBlack"'); -echo delim(); -print_link('/credits.php', 'CREDITS', false, 'class="menuBlack"'); -?> - <br /> - </td> - </tr> - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1); ?><br /></td></tr> - - <tr valign="top" bgcolor="#cccccc"> - <td colspan="5" height="1"> - <table border="0" cellspacing="0" cellpadding="5" width="100%"> - <tr> - <td> - <small> - <?php print_link('/copyright.php', 'Copyright &copy; 2001, 2002, 2003 The PHP Group'); ?><br /> - All rights reserved.<br /> - </small> - </td> - <td align="right" valign="top"> - <small> - Last updated: <?php echo $LAST_UPDATED; ?><br /> - Bandwidth and hardware provided by: <?php print_link("http://www.pair.com/", "pair Networks"); ?> - </small> - </td> - </tr> - </table> - </td> - </tr> -</table> - -</body> -</html> -<?php } ?>
« previous php.pear.cvs (#12781) next »