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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Sat Feb 22 21:07:23 2003 UTC (21 years, 6 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 jonen 1.1 <?php
2    
3     /**
4     * This example illustrates the use of the
5     * TextCSSNav widget.
6     *
7     *
8     * $Id: widget3.php,v 1.4 2002/10/30 23:14:44 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     //create the page object
24     $page = new HTMLPageClass("phpHtmlLib Widgets - TextCSSNav",
25     XHTML_TRANSITIONAL);
26    
27     //enable output debugging.
28     $page->set_text_debug( $_GET["debug"] );
29    
30     //add the css
31     $page->add_css_link( "/phphtmllib/css/defaulttheme.php" );
32    
33     //create the InfoTable Object
34     //create the widget and enable
35     //the auto highlighting of the selected Nav
36     $textcssnav = new TextCSSNav(TRUE);
37     $textcssnav->add($_SERVER["PHP_SELF"], "TextCSSNav", "Some Link dude");
38     $textcssnav->add($_SERVER["PHP_SELF"], "Some Link", "Some Link dude");
39     $textcssnav->add($_SERVER["PHP_SELF"], "Another", "Another link...Click me");
40     $textcssnav->add($_SERVER["PHP_SELF"], "And another", "Some Link dude");
41    
42     $page->add( $textcssnav );
43    
44     print $page->render();
45     ?>

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