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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Sat Sep 20 00:20:55 2003 UTC (20 years, 10 months ago) by jonen
Branch: MAIN
Changes since 1.2: +4 -2 lines
+ updated whole phphtmllib to v2.3.0

1 jonen 1.1 <?php
2    
3     /**
4     * This example illustrates the use of the
5     * FooterNav widget.
6     *
7     *
8 jonen 1.3 * $Id: widget5.php,v 1.3 2003/07/28 17:02:03 hemna Exp $
9 jonen 1.1 *
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 jonen 1.3 if (isset($_GET['debug'])) {
30     $page->set_text_debug( TRUE );
31     }
32 jonen 1.1
33     //add the css
34     $page->add_css_link( "/css/defaulttheme.php" );
35    
36     //Build the Footer Widget object
37     $footer = new FooterNav("PHPHtmlLib");
38    
39     //Set the copyright flag, to automatically show
40     //a copyright string under the links
41     $footer->set_copyright_flag( TRUE );
42    
43     //set the email address for the webmaster
44     //this will automatically build a clickable
45     //mailto link for that email address
46     $footer->set_webmaster_email("waboring@buildabetterweb.com");
47    
48     //now build a few links that the user can click on
49     //for a common footer navigational object.
50     $footer->add("/", "Home");
51     $footer->add("/downloads.php", "Downloads");
52     $footer->add($_SERVER["PHP_SELF"]."?debug=1", "Debug");
53    
54     $page->add( $footer );
55    
56     print $page->render();
57     ?>

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