1 |
jonen |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
/** |
4 |
|
|
* This example illustrates the use of the |
5 |
|
|
* TextCSSNav widget. |
6 |
|
|
* |
7 |
|
|
* |
8 |
jonen |
1.3 |
* $Id: widget3.php,v 1.6 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 |
|
|
//create the page object |
24 |
|
|
$page = new HTMLPageClass("phpHtmlLib Widgets - TextCSSNav", |
25 |
|
|
XHTML_TRANSITIONAL); |
26 |
|
|
|
27 |
|
|
//enable output debugging. |
28 |
jonen |
1.3 |
if (isset($_GET['debug'])) { |
29 |
|
|
$page->set_text_debug( TRUE ); |
30 |
|
|
} |
31 |
jonen |
1.1 |
|
32 |
|
|
//add the css |
33 |
|
|
$page->add_css_link( "/phphtmllib/css/defaulttheme.php" ); |
34 |
|
|
|
35 |
|
|
//create the InfoTable Object |
36 |
|
|
//create the widget and enable |
37 |
|
|
//the auto highlighting of the selected Nav |
38 |
|
|
$textcssnav = new TextCSSNav(TRUE); |
39 |
|
|
$textcssnav->add($_SERVER["PHP_SELF"], "TextCSSNav", "Some Link dude"); |
40 |
|
|
$textcssnav->add($_SERVER["PHP_SELF"], "Some Link", "Some Link dude"); |
41 |
|
|
$textcssnav->add($_SERVER["PHP_SELF"], "Another", "Another link...Click me"); |
42 |
|
|
$textcssnav->add($_SERVER["PHP_SELF"], "And another", "Some Link dude"); |
43 |
|
|
|
44 |
|
|
$page->add( $textcssnav ); |
45 |
|
|
|
46 |
|
|
print $page->render(); |
47 |
|
|
?> |