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 |
|
|
?> |