/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/examples/widget5.php
ViewVC logotype

Contents of /nfo/php/libs/com.newsblob.phphtmllib/examples/widget5.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Sat Feb 22 21:07:23 2003 UTC (21 years, 4 months ago) by jonen
Branch: MAIN
Changes since 1.1: +0 -0 lines
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)

1 <?php
2
3 /**
4 * This example illustrates the use of the
5 * FooterNav widget.
6 *
7 *
8 * $Id: widget5.php,v 1.1 2002/09/26 21:03:43 hemna Exp $
9 *
10 * @author Walter A. Boring IV <waboring@buildabetterweb.com>
11 * @package phpHtmlLib
12 * @subpackage widget-examples
13 * @version 2.0
14 *
15 */
16
17 /**
18 * Include the phphtmllib libraries
19 *
20 */
21 include_once("includes.inc");
22
23
24 //create the page object
25 $page = new HTMLPageClass("phpHtmlLib Widgets - FooterNav Example",
26 XHTML_TRANSITIONAL);
27
28 //enable output debugging.
29 $page->set_text_debug( $_GET["debug"] );
30
31 //add the css
32 $page->add_css_link( "/css/defaulttheme.php" );
33
34 //Build the Footer Widget object
35 $footer = new FooterNav("PHPHtmlLib");
36
37 //Set the copyright flag, to automatically show
38 //a copyright string under the links
39 $footer->set_copyright_flag( TRUE );
40
41 //set the email address for the webmaster
42 //this will automatically build a clickable
43 //mailto link for that email address
44 $footer->set_webmaster_email("waboring@buildabetterweb.com");
45
46 //now build a few links that the user can click on
47 //for a common footer navigational object.
48 $footer->add("/", "Home");
49 $footer->add("/downloads.php", "Downloads");
50 $footer->add($_SERVER["PHP_SELF"]."?debug=1", "Debug");
51
52 $page->add( $footer );
53
54 print $page->render();
55 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed